android_packages_modules_Co.../tests/unit
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Lorenzo Colitti ec2fbb7159 Don't clobber existing history entries.
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.

Bug: 230289468
Test: manually verified this unbreaks the importer
Change-Id: Ic8647ff28fca78d579d5f759f96a864877f8158b
Merged-In: Ic8647ff28fca78d579d5f759f96a864877f8158b
  (pure cherry-picked from ag/18453213)
2022-05-24 11:37:42 +08:00
..
java Don't clobber existing history entries. 2022-05-24 11:37:42 +08:00
jni remove unneeded inclusions of libbpf_android 2022-02-09 22:10:22 -08:00
res/raw [MS59.2] Add unit test for NetworkStatsDataMigrationUtils 2022-01-26 16:53:06 +00:00
Android.bp Autogenerate connectivity jarjar rules 2022-05-13 17:30:06 +09:00
AndroidManifest.xml [SettingsProvider] fix connectivity test 2022-04-20 09:29:40 -07:00
AndroidTest.xml [SettingsProvider] fix connectivity test 2022-04-20 09:29:40 -07:00
jarjar-rules.txt Add jarjar rule for com.android.testutils.TestBpfMap 2022-02-03 22:53:07 +01:00
vpn-jarjar-rules.txt Remove unused service and test dependencies 2021-11-19 21:14:39 +09:00