android_packages_modules_Co.../tests/common
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
Android.bp Autogenerate connectivity jarjar rules 2022-05-13 17:30:06 +09:00
AndroidManifest_coverage.xml Add connectivity coverage tests 2021-07-05 05:00:36 +00:00
AndroidTest_Coverage.xml Merge "[SettingsProvider] fix connectivity test" 2022-04-21 12:41:49 +00:00
tethering-jni-jarjar-rules.txt ConnectivityCoverageTests refactoring 2022-04-06 19:35:28 +09:00