summaryrefslogtreecommitdiff
path: root/tests/unit/java/android/net/netstats
Commit message (Collapse)AuthorAgeFilesLines
* Don't clobber existing history entries.Lorenzo Colitti2022-05-181-8/+0
| | | | | | | | | | | | | | | | | | Currently, adding a history to a NetworkStatsCollection.Builder will overwrite any history that was previously passed in with the same key. This breaks the importer (which is the primary/only caller of this code), because the importer re-uses the same NetworkStatsCollection object to import multiple files. Instead, simply add any passed-in entries after the ones that were already there. Require the caller to pass in entries in order, because NetworkStatsHistory internally assumes that entris are always sorted. Ignore-AOSP-First: in a topic with internal-only changes Bug: 230289468 Test: manually verified this unbreaks the importer Change-Id: Ic8647ff28fca78d579d5f759f96a864877f8158b
* [SUBID01-1]Grow NetworkIdentity to include a new mSubId fieldlifr2022-02-101-1/+1
| | | | | | | | | | | | | | | 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
* [MS59.2] Add unit test for NetworkStatsDataMigrationUtilsjunyulai2022-01-261-0/+112
Test: atest NetworkStatsDataMigrationUtilsTest Bug: 204830222 Change-Id: Ia6e8aec9a828072a2a1e63bec600c2e20d3699b3