android_packages_modules_Co.../framework-t
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
..
api Make some NetworkStats APIs system-current 2022-04-11 18:45:36 +08:00
jni Move socket tagging implementation to mainline. 2022-01-30 15:59:44 +09:00
src/android 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
Sources.bp Remove unused empty filegroups from connectivityT package. 2022-04-04 07:00:59 +00:00