Commit graph android_packages_modules_Co.../tests
Message SHA1
Merge "Test UidCounterSetMap in NetworkStatsServiceTest"
Mark Chien   authored and   Gerrit Code Review   commited 2022-01-27 10:02:35 +00:00
dd26c5709e
Test UidCounterSetMap in NetworkStatsServiceTest
Test: atest FrameworksNetTests
Change-Id: I1ae720fcc3192712b3dcbe69619f97f7df1a1f5e

markchien   commited 2022-01-27 17:28:19 +08:00
8f3917501b
Merge "[MS59.2] Add unit test for NetworkStatsDataMigrationUtils"
Junyu Lai   authored and   Gerrit Code Review   commited 2022-01-27 09:20:10 +00:00
bfdd0f3c3c
Merge "Change NETWORK_TYPE_5G_NSA reference package"
Aaron Huang   authored and   Gerrit Code Review   commited 2022-01-27 08:36:23 +00:00
85a2ef3dd5
Merge "Set exclude_kotlinc_generated_files to false explicitly since kotlin reflection is used in some Connectivity test cases kotlin code."
Wei Li   authored and   Gerrit Code Review   commited 2022-01-27 00:22:49 +00:00
c7231f3e79
Set exclude_kotlinc_generated_files to false explicitly since kotlin reflection is used in some Connectivity test cases kotlin code.
Property "exclude_kotlinc_generated_files" is recently added to exclude some kotlinc generated files that are not needed if kotlin reflection is not used. Currently it defaults to false since there are test failures(b/213966211) which is in FullScoreTest#testToString and FullScoreTest#testMinMaxPolicyConstants that uses kotlin reflection and fails if exclude_kotlinc_generated_files defaults to true. By setting explicitly exclude_kotlinc_generated_files to false on tests like FullScoreTest#testToString, we will be able to finally default this property to true so the kotlinc generated files can be removed for most modules that don't need them.
Bug: 204888276
Bug: 213966211
Test: atest
FrameworksNetTests: com.android.server.connectivity.FullScoreTest
Change-Id: I4ed2d27c27841cb7127f669c8db34c90b4a41b1f

Wei Li   commited 2022-01-26 18:25:23 +00:00
8a177f694a
[MS59.2] Add unit test for NetworkStatsDataMigrationUtils
Test: atest NetworkStatsDataMigrationUtilsTest
Bug: 204830222
Change-Id: Ia6e8aec9a828072a2a1e63bec600c2e20d3699b3

junyulai   authored and   Junyu Lai   commited 2022-01-26 16:53:06 +00:00
a1bb3a36cd
Change NETWORK_TYPE_5G_NSA reference package
NETWORK_TYPE_5G_NSA is moved to NetworkStatsManager

Bug: 210073043
Test: builds, FrameworksNetTests
Change-Id: I9226119ee4f67688a1b4ffdab7e5a86ec0b8e974

Aaron Huang   commited 2022-01-26 23:41:17 +08:00
b4ce0fa9b1
Merge changes Ie826477d,I5125a3ac
* changes:
  [CLATJ#26] ClatCoordinator: reword clatd starting failure logging
  [CLATJ#25] ClatCoordinator: stop clatd process gracefully

Nucca Chen   authored and   Gerrit Code Review   commited 2022-01-26 14:50:11 +00:00
f8ed984e9c
[CLATJ#26] ClatCoordinator: reword clatd starting failure logging
Bug: 212345928
Test: build
Change-Id: Ie826477d27db26cc49d113ec8bfacaaa3006e26e

Hungming Chen   authored and   Nucca Chen   commited 2022-01-26 12:23:45 +00:00
6fb21144b8
[MS78.2] Fix NetworkIdentity#Builder crashing on 5G NSA networks
Test: atest NetworkIdentityTest
Fix: 216193400
Change-Id: I00abc97a98dfdf17d5f0c2e6b45d28be9899c5c3

Junyu Lai   commited 2022-01-26 07:53:57 +00:00
30f06afda3
Merge changes from topic "preparation_fork_clatd_from_system_server"
* changes:
  [CLATJ#24] ClatCoordinatorTest: add basic unit tests
  [CLATJ#23] Close the file descriptor manually
  [CLATJ#22] ClatCoordinator: stop clatd
  [CLATJ#21] ClatCoordinator: start clatd

Maciej Å»enczykowski   authored and   Gerrit Code Review   commited 2022-01-26 00:26:48 +00:00
43f9729e90
Merge changes from topic "libnetworkstats"
* changes:
  Rename libnetdbpf to libnetworkstats
  Copy libnetdbpf from system/net to tethering module

Maciej Å»enczykowski   authored and   Gerrit Code Review   commited 2022-01-25 23:52:06 +00:00
e1f8ad4d59
Merge "Add low latency and high bandwidth network capabilities"
Sooraj Sasindran   authored and   Gerrit Code Review   commited 2022-01-25 21:06:16 +00:00
d8645e27c7
Merge "adjust BpfCompatTest now that clatd & netd bpf program have been mainlined"
Maciej Å»enczykowski   authored and   Gerrit Code Review   commited 2022-01-25 19:07:13 +00:00
e0904b5a12
adjust BpfCompatTest now that clatd & netd bpf program have been mainlined
The purpose of this test is to verify that the bpfloader related
stuff in the platform is compatible with mainline module bpf .o's.

To be more precise: the test is trying to check that platform/OEM
BPF programs (and, by implication, the platform/OEM bpfloader) have
a struct layout that is known, and thus that BPF programs shipped
in mainline modules will be compatible (with the OEM bpfloader).

(ie. basically this is trying to make sure that the vendor/oem
haven't made incompatible changes to the bpfloader parsed structs,
these can only be extended safely in aosp master)

Since clatd/netd.o have been moved to mainline they are no longer
a useful representation of the state of the platform side of things.
(we'd simply be testing that mainline is compatible with mainline,
which of course it is...)

As such we pick two other bpf .o files that are still shipped
as part of the platform.

Verified on cuttlefish via 'atest CtsNativeNetTestCases':
  x86 CtsNativeNetTestCases
  -------------------------
  CtsNativeNetTestCases (2 Test(s))
  [1/2] BpfTest#bpfStructSizeTestPreT: IGNORED (0ms)
  [2/2] BpfTest#bpfStructSizeTest: PASSED (0ms)

  Summary (Test executed with 1 device(s).)
  -------
  x86 CtsNativeNetTestCases: Passed: 1, Failed: 0, Ignored: 1, Assumption Failed: 0,

  All tests passed!

Note: it's not clear to me if this code can even ever be run on pre-T devices...
but I guess it shouldn't hurt.

Bug: 215718693
Test: atest
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I1b2d76e5ef95d8e4b94068f5525263653879d1f4

Maciej Å»enczykowski   commited 2022-01-25 19:06:51 +00:00
45f940a9ee
Add low latency and high bandwidth network capabilities
Bug: 194332512
Test: build
Change-Id: I415ca1ba90ea54c4106f806fe855bcb84d3e38ba

Sooraj Sasindran   commited 2022-01-25 09:35:30 -08:00
f8eb713874
Merge "[DU09-1]Adding the NetworkStatsCollection Builder"
Junyu Lai   authored and   Gerrit Code Review   commited 2022-01-25 16:44:16 +00:00
41483efa02
Merge "[MS68.2] Adapt NetworkPolicyManagerService to use registerUsageCallback"
Junyu Lai   authored and   Gerrit Code Review   commited 2022-01-25 13:30:57 +00:00
bc8328bda4
Merge "Add a simple test for ConnectivityService#dump."
Lorenzo Colitti   authored and   Gerrit Code Review   commited 2022-01-25 13:30:17 +00:00
4e9ab4dde0
[CLATJ#24] ClatCoordinatorTest: add basic unit tests
Introduce ClatCoordinatorTest for unit tests of class ClatCoordinator.
Add the tests:
- testStartStopClatd
- testGetFwmark
- testAdjustMtu

Bug: 212345928
Test: atest FrameworksNetTests
Change-Id: I6908eac05b14077b450d51e1432d340c8a247eb1

Hungming Chen   commited 2022-01-25 20:32:25 +08:00
358d582730
[DU09-1]Adding the NetworkStatsCollection Builder
The purpose is provide NetworkStatsCollection.Builder as
public API for adding the stats {@link NetworkStatsHistory}

Bug: 215862801
Test: atest NetworkStatsCollectionTest
Change-Id: Id83c6fa67880ba361b8e0e15c4d86b90e44ac879

Frank   commited 2022-01-25 19:43:23 +08:00
c8856596c5
Merge "Replace some netd calls in NetworkManagementService"
Mark Chien   authored and   Gerrit Code Review   commited 2022-01-25 03:34:54 +00:00
7586d33f22
Merge "Replace INetd#trafficSwapActiveStatsMap with ConnectivityManager API"
Mark Chien   authored and   Gerrit Code Review   commited 2022-01-25 03:34:14 +00:00
f3cf7c00a6
Merge "[MS67.2] Modify tests for registerUsageCallback"
Junyu Lai   authored and   Gerrit Code Review   commited 2022-01-25 01:23:45 +00:00
3f9584bfda
Merge "Add unit test for BpfInterfaceMapUpdate"
Maciej Å»enczykowski   authored and   Gerrit Code Review   commited 2022-01-24 19:05:28 +00:00
d512ec646c
Merge "Add support for Multiple enterprise slice"
Sooraj Sasindran   authored and   Gerrit Code Review   commited 2022-01-24 16:26:03 +00:00
0311ea0bc6
[MS68.2] Adapt NetworkPolicyManagerService to use registerUsageCallback
This change also address comments at aosp/1958145.

Test: atest FrameworksNetTests
Bug: 204830222
Change-Id: I415d74df34caa91b1e1160478ebff30fbd1c7b6f

junyulai   commited 2022-01-24 22:12:42 +08:00
0a007c248c
[MS67.2] Modify tests for registerUsageCallback
Test: atest FrameworksNetTests
Bug: 204830222
Change-Id: Ia4ff535cd703807516d65b582727684cbb670360

junyulai   commited 2022-01-24 18:59:23 +08:00
f8a1d3e5e6
Rename libnetdbpf to libnetworkstats
Two reason for renaming:
1. Avoid module name collision in sc-mainline-prod branch.
2. The libnetdbpf was misnamed before.

Bug: 202086915
Test: atest libnetworkstats_test FrameworksNetTests
      ConnectivityCoverageTests FrameworksNetSmokeTests
      CtsAppOpsTestCases
Change-Id: I87fcf4b1a9d58780a45743a9aa91b9b936e54266

Ken Chen   commited 2022-01-24 11:53:59 +08:00
f426b2b287
[MS56.2] Add unit test for NetworkStatsHistory#Builder
Test: atest NetworkStatsHistoryTest#testBuilder
Bug: 204830222
Change-Id: Id876340bcab7290d5e191dbdfcce7fb4d8ecf96c

Junyu Lai   authored and   junyulai   commited 2022-01-23 20:52:31 +08:00
6d95db48d0
[MS65.4] Address comments at aosp/1954383
Test: atest NetworkIdentityTest#testBuilder
Bug: 204830222
Change-Id: I3d0f8175ee782c76839cbbdb5eb8a1219a61d874

Junyu Lai   authored and   junyulai   commited 2022-01-23 20:52:31 +08:00
84413a92c3
Add support for Multiple enterprise slice
Bug: 194332512
Test: unit test
CTS-Coverage-Bug: 211133973
Change-Id: Ie8be08a7cfa9155168d1da146d02fd1643248bdc

Sooraj Sasindran   commited 2022-01-22 14:39:40 -08:00
f4a58dcd45
wifi data usage: Update calling API name
Bug: 213387087
Test: atest -c NetworkTemplateTest
Test: atest -c NetworkStatsServiceTest
Test: atest -c FrameworksWifiApiTests
Test: atest -c NetworkPolicyManagerServiceTest
Change-Id: I6f65af5e2ff121a2fe5b2429d3eead01e434f8be
Merged-In: I6f65af5e2ff121a2fe5b2429d3eead01e434f8be

Les Lee   commited 2022-01-23 00:07:02 +08:00
c71f2d7425
Merge "Ability to specify which all applications fall under enterprise slice."
Sooraj Sasindran   authored and   Gerrit Code Review   commited 2022-01-21 16:01:44 +00:00
a2e98bdc1a
Add unit test for BpfInterfaceMapUpdate
Bug: 215095957
Test: atest FrameworkNetTests

Change-Id: I92d45e5a606f466ce42504629cb3f87fd9e25d22

markchien   commited 2022-01-21 23:34:25 +08:00
adf119a8ed
Replace some netd calls in NetworkManagementService
This is the corresponding test change with netd usage replacement
in NetworkManagementService.

Bug: 209935649
Test: atest NetworkManagementServiceTest

Change-Id: Id25f2d7d291eef7c8bb12a7fcf67b1619cce6da5

markchien   commited 2022-01-21 17:49:29 +08:00
f243be2267
Merge "[MS65.2] Add unit test of NetworkIdentity#Builder"
Junyu Lai   authored and   Gerrit Code Review   commited 2022-01-21 09:36:08 +00:00
7f3f9c1be0
Ability to specify which all applications fall under enterprise slice.
Bug: 194332512
Test: unit test
Change-Id: I94549a41aaa717add22b0a3e5035beacf6f1b8f2

Sooraj Sasindran   commited 2022-01-21 01:05:12 -08:00
499117f279
Merge "[DU03-2]Remove INetworkStatsService from BatteryStatsImpl"
Frank Li   authored and   Gerrit Code Review   commited 2022-01-21 08:15:25 +00:00
413a3b1306
Replace INetd#trafficSwapActiveStatsMap with ConnectivityManager API
This is the corresponding test change with INetd#trafficSwapActiveStatsMap
usage replacement.

Bug: 209935649
Test: atest NetworkStatsFactoryTest
Change-Id: Ic5e29f6a928c4230322ed658fe8ddbd71d7ea56a

markchien   commited 2022-01-21 16:02:26 +08:00
daf30ef9a8
Merge "Add cts test suite in connectivity/cts deps"
Treehugger Robot   authored and   Gerrit Code Review   commited 2022-01-21 07:36:08 +00:00
38276f1b9c
Merge changes from topic "connectivity-mainline-presubmit-defaults"
* changes:
  Add java defaults for mainline-presubmit as well.
  Run bpf_existence_test in mainline-postsubmit.

Lorenzo Colitti   authored and   Gerrit Code Review   commited 2022-01-21 07:07:41 +00:00
513180aae8
Merge "Update the SDK for the tests with intended target in T+"
Chiachang Wang   authored and   Gerrit Code Review   commited 2022-01-21 06:34:29 +00:00
b04664d7a6
Add cts test suite in connectivity/cts deps
Test: atest CtsNetTestCases
Change-Id: Ib82b703145096a0b974aa602c7cdd505c333bca0

William Escande   commited 2022-01-20 17:52:03 +01:00
02fc79437b
[MS65.2] Add unit test of NetworkIdentity#Builder
Test: atest NetworkIdentityTest#testBuilder
Bug: 204830222
Change-Id: Ie0d56821608c881c3bffe224cfe240fa900c6f39

Junyu Lai   commited 2022-01-20 15:58:30 +00:00
e9c4988632
[MS57.2] Prepare APIs for data migration utility
Test: atest NetworkStatsHistoryTest#testBuilder
Bug: 204830222
Change-Id: I938c3ed50eea0f2349ea92c3824c637eaa77d328

Junyu Lai   commited 2022-01-20 15:06:50 +00:00
56f4a9c3d1
[MS41.2] Add unit test for query history APIs
Test: atest NetworkStatsServiceTest NetworkStatsManagerTest
Bug: 204830222
Bug: 200768422
Change-Id: I1dce7d671c5524496e0451665f62447ef6e454ae

Junyu Lai   commited 2022-01-20 15:06:50 +00:00
7372824eca
Merge "Move LocalSocketTest out of packages/modules/Connectivity."
Lorenzo Colitti   authored and   Gerrit Code Review   commited 2022-01-20 09:43:04 +00:00
ab4c64329b
Merge "Add unit test for NetworkStats iterator"
Aaron Huang   authored and   Gerrit Code Review   commited 2022-01-20 04:09:00 +00:00
ccdf2a5838