android_packages_modules_Co.../tests
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
..
common Don't clobber existing history entries. 2022-05-24 11:37:42 +08:00
cts Merge "Add CTS for verifying non-ASCII characters on NsdService" 2022-05-17 06:51:46 +00:00
deflake Enable/disable FrameworksNetTests 2021-10-01 19:29:50 +08:00
integration Autogenerate connectivity jarjar rules 2022-05-13 17:30:06 +09:00
mts improve mts bpf_existence_test to cover netd/clatd maps and programs in new location 2022-04-23 09:20:29 -07:00
native Merge "ConnectivityNativeBinderTest: Check Kernel Version" 2022-04-21 00:00:14 +00:00
smoketest Update tests for NetworkStats code move. 2022-02-28 04:17:13 +00:00
unit Don't clobber existing history entries. 2022-05-24 11:37:42 +08:00