android_packages_modules_Co.../tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Junyu Lai d0e049455c Support NetworkStats#addEntries API
Currently, NetworkStats#addEntry creates a new instance
containing the requested result instead of mutating the
original object. This creates a heavy memory footprint
when the caller invokes it in a loop because a new NetworkStats
instance is created whenever an addEntry is called.

This change introduces a new API that allows callers to
add a set of entries to a NetworkStats instance. This new
API will clone the instance only once, return the newly
created (and modified) instance, and ensure that the original
instance remains immutable.

Additionally, the change adopts config libraries for flagging
the API and corresponding CTS tests, since Android U-based
branches are no longer downstream of current development branches.

Test: atest FrameworksNetTests:android.net.connectivity.android.net.netstats.NetworkStatsApiTest
Test: atest CtsNetTestCases:NetworkStatsApiTest
Bug: 335680025
Fix: 357772271
API-Coverage-Bug: 357772271
Change-Id: I58513844e681c0621a6107ec4b198cd3957f289d
2024-08-09 14:19:38 +08:00
..
benchmark [DON'T BLOCK] Test ownership migration rules 2024-01-31 14:10:00 +00:00
common Support NetworkStats#addEntries API 2024-08-09 14:19:38 +08:00
cts Refactor Drop EtherCat packet test 2024-08-01 03:32:19 +00:00
deflake [DON'T BLOCK] Test ownership migration rules 2024-01-31 14:10:00 +00:00
integration Revert^2 "Add blocked reason for internet permission" 2024-05-27 02:12:43 +00:00
mts Use compile_multilib: "both" for MTS 2024-07-19 19:26:15 +09:00
native Fix dependencies on connectivity_native lib 2024-07-31 00:39:50 +00:00
smoketest [DON'T BLOCK] Test ownership migration rules 2024-01-31 14:10:00 +00:00
unit Merge "Do not send empty TXT records" into main 2024-07-31 08:54:14 +00:00