android_packages_modules_Co.../framework-t/api
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
..
current.txt IpSecTransformState: Rename API methods and improve docs 2024-02-15 20:17:30 +00:00
lint-baseline.txt [MS83.2] Make some APIs module-lib instead of system current 2022-03-16 15:31:26 +08:00
module-lib-current.txt Add additional overriding methods to signature files 2023-10-12 19:21:07 +01:00
module-lib-lint-baseline.txt Baseline issues that were previously suppressed 2023-11-07 08:40:36 +00:00
module-lib-removed.txt Add additional overriding methods to signature files 2023-10-12 19:21:07 +01:00
OWNERS Add Thread team to owners of the API files 2023-11-08 12:43:05 +00:00
removed.txt Add additional overriding methods to signature files 2023-10-12 19:21:07 +01:00
system-current.txt Support NetworkStats#addEntries API 2024-08-09 14:19:38 +08:00
system-lint-baseline.txt Baseline issues that were previously suppressed 2023-11-07 08:40:36 +00:00
system-removed.txt Add additional overriding methods to signature files 2023-10-12 19:21:07 +01:00