summaryrefslogtreecommitdiff
path: root/tests/unit/java/android/net/NetworkStatsCollectionTest.java
Commit message (Collapse)AuthorAgeFilesLines
* [MS81] Support remove history before cutoff timestampJunyu Lai2022-05-161-0/+85
| | | | | | | | | | | This is needed to ensure corrupted data can be clean up if the data migration process dones't go well. Test: NetworkStatsCollectionTest Bug: 197717846 Change-Id: Ic76ad6f3e96f03791b48988fb2622c9c647ffc7c (cherry picked from commit 306a00316cac03a0c61f995316c9c5682bec2a19) Merged-In: Ic76ad6f3e96f03791b48988fb2622c9c647ffc7c
* Merge "[SUBID01-1]Grow NetworkIdentity to include a new mSubId field"Frank Li2022-02-111-2/+3
|\
| * [SUBID01-1]Grow NetworkIdentity to include a new mSubId fieldlifr2022-02-101-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | [MS83] Add Cts for NetworkStatsCollection/History buildersjunyulai2022-02-091-49/+0
|/ | | | | | | | | Test: 1. atest CtsNetTestCases:android.net.netstats.NetworkStatsHistoryTest 2. atest CtsNetTestCases:android.net.netstats.NetworkStatsCollectionTest 3. atest FrameworksNetTests Ignore-AOSP-First: Required API is not in downstream yet Bug: 218441356 Change-Id: If3d45325623cad987aab35f89c55f84042271adf
* [DU09-1]Adding the NetworkStatsCollection BuilderFrank2022-01-251-0/+57
| | | | | | | | | The purpose is provide NetworkStatsCollection.Builder as public API for adding the stats {@link NetworkStatsHistory} Bug: 215862801 Test: atest NetworkStatsCollectionTest Change-Id: Id83c6fa67880ba361b8e0e15c4d86b90e44ac879
* Merge "Update the SDK for the tests with intended target in T+"Chiachang Wang2022-01-211-2/+2
|\
| * Update the SDK for the tests with intended target in T+Chiachang Wang2022-01-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Correct the SDK for those tests are expected running in T+ device. Check @IgnoreUpTo(S) may be incorrect after receiving patches before T release. Refer to temporary constant definition in DevSdkIgnoreRule until the SDK constant being pushed into AOSP and synced with branch used for mainline. BUg: 215294242 Test: atest CtsNetTestCases CtsNetTestCasesLatestSdk Change-Id: Ide6a241f7944dd1e75bc33b21aa29471a5df94c6
* | [MS57.2] Prepare APIs for data migration utilityJunyu Lai2022-01-201-2/+3
|/ | | | | | Test: atest NetworkStatsHistoryTest#testBuilder Bug: 204830222 Change-Id: I938c3ed50eea0f2349ea92c3824c637eaa77d328
* [MS10.2] Move multiplySafeByRational to NetworkStatsUtilsJunyu Lai2021-12-201-1/+1
| | | | | | Test: atest NetworkStaticLibTests:com.android.net.moduletests.util.NetworkStatsUtilsTest Bug: 204830222 Change-Id: Ib2464bd7607c7ef35fed780fccbc745b565a908c
* [MS07.2] Move NetworkStatsCollection/IdentitySet into frameworksJunyu Lai2021-12-091-0/+596
These files are needed for the data migration util system Api interfaces. Thus, they need to be moved into frameworks folder. This change also set the @IgnoreUpTo annotation to S, since these tests are testing purely platform code on S- devices which is not really necessary for MTS. Also the tests are still covered by the unit tests, since they are always verifying HEAD. Test: TH Bug: 197717846 Change-Id: I93c19b4860864c724be9f9f889ee2173f4605198