summaryrefslogtreecommitdiff
path: root/tests/unit/java/android/net/NetworkIdentityTest.kt
Commit message (Collapse)AuthorAgeFilesLines
* [SUBID01-1]Grow NetworkIdentity to include a new mSubId fieldlifr2022-02-101-8/+41
| | | | | | | | | | | | | | | In the previous design of NSS and NPMS, those only had IMSI to identify the cell network. Now the telephony has created the "subId" handle, which is the preferred mechanism for identifying subscribers. This commit adds NetworkStats support for subscriberId as a part of the network identity key Bug: 80526261 Test: atest NetworkTemplateTest NetworkStatsCollectionTest NetworkStatsServiceTest NetworkIdentityTest Ignore-AOSP-First: merge conflict resolutions Change-Id: I8549b11d0fcfc5a9426724d6b90de27b707cb77c
* Change NETWORK_TYPE_5G_NSA reference packageAaron Huang2022-01-261-2/+3
| | | | | | | | NETWORK_TYPE_5G_NSA is moved to NetworkStatsManager Bug: 210073043 Test: builds, FrameworksNetTests Change-Id: I9226119ee4f67688a1b4ffdab7e5a86ec0b8e974
* [MS78.2] Fix NetworkIdentity#Builder crashing on 5G NSA networksJunyu Lai2022-01-261-3/+4
| | | | | | Test: atest NetworkIdentityTest Fix: 216193400 Change-Id: I00abc97a98dfdf17d5f0c2e6b45d28be9899c5c3
* [MS65.4] Address comments at aosp/1954383Junyu Lai2022-01-231-1/+93
| | | | | | Test: atest NetworkIdentityTest#testBuilder Bug: 204830222 Change-Id: I3d0f8175ee782c76839cbbdb5eb8a1219a61d874
* [MS65.2] Add unit test of NetworkIdentity#BuilderJunyu Lai2022-01-201-4/+32
| | | | | | Test: atest NetworkIdentityTest#testBuilder Bug: 204830222 Change-Id: Ie0d56821608c881c3bffe224cfe240fa900c6f39
* Add a test for NetworkIdentity.getMetered()Aaron Huang2021-10-261-0/+46
| | | | | | | | | | | NetworkIdentity has adapted NET_CAPABILITY_TEMPORARILY_NOT_METERED network capability so add a test case for it. Ignore-AOSP-First: The parent of this change contains a CL will conflict with internal tree so ignore AOSP first. Bug: 183776809 Test: this Change-Id: I2ca2a8b4db664b76a5a5ee82fcff451efd87c8ff
* Re-skip connectivity unit tests before SRemi NGUYEN VAN2021-06-301-2/+5
| | | | | | | | | | | | | | | | | | The tests are packaged together with other tests in a common coverage suite, so need to be individually annotated so that they are skipped before S. They do not need to pass on platforms older than S, because such platforms will not updated with the code that is tested. This applies a previous change, this time using DevSdkIgnoreRunner, as SdkSuppress does not work as expected in branches that have a codename 2 versions above the SDK version, as is the case in AOSP. Bug: 187935317 Test: atest ConnectivityCoverageTests on R atest FrameworksNetTests on S Change-Id: I5808d34459a4c19238baf8873afa7cf942828460
* Revert "Skip connectivity unit tests before S"Remi NGUYEN VAN2021-06-291-3/+0
| | | | | | | | | This reverts commit 05dd1ba54005b15d92daf6f26329acf91fb3debb. Reason for revert: Skips more tests than it should in AOSP Bug: 192302892 Change-Id: I7c5638d8c1cc626354d240a06af758e1cdd92e94
* Skip connectivity unit tests before SRemi NGUYEN VAN2021-06-251-0/+3
| | | | | | | | | | | | | The tests are packaged together with other tests in a common coverage suite, so need to be individually annotated so that they are skipped before S. They do not need to pass on platforms older than S, because such platforms will not updated with the code that is tested. Bug: 187935317 Test: atest ConnectivityCoverageTests on R Change-Id: I10da45ae023e7f1e8cd11ec857b84346892a3fa8
* Move net unit tests to packages/ConnectivityRemi NGUYEN VAN2021-05-131-0/+54
Move the tests together with packages/Connectivity code, so both can be moved to packages/modules/Connectivity together. Also reorganize unit tests in a unit/ directory, as other tests (integration/, common/ etc.) have been added in tests/net since they were created. This makes the directory structure consistent. Test: atest FrameworksNetTests Bug: 187814163 Merged-In: I254ffd1c08ec058d594b4ea55cbae5505f8497cc Change-Id: I254ffd1c08ec058d594b4ea55cbae5505f8497cc