No description. Add one?
  • Java 78%
  • Kotlin 11.8%
  • AIDL 4.4%
  • C++ 3.7%
  • C 1.5%
  • Other 0.5%
Find a file
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
bpf_progs bpf_progs: remove spurious 'btf: true' and Wall/Werror flags 2024-07-25 18:26:02 +00:00
clatd [DON'T BLOCK] Test ownership migration rules 2024-01-31 12:34:50 +00:00
common Support NetworkStats#addEntries API 2024-08-09 14:19:38 +08:00
Cronet Move Cronet's MTS/CTS to external/cronet 2024-05-02 11:54:56 +00:00
DnsResolver Add firewall chains for HAPPY_BOX and user/admin PENALTY_BOX 2024-04-23 15:04:28 +09:00
framework Support NetworkStats#addEntries API 2024-08-09 14:19:38 +08:00
framework-t Support NetworkStats#addEntries API 2024-08-09 14:19:38 +08:00
nearby Baseline Lint FlaggedApi violations 2024-06-20 09:05:51 +02:00
netbpfload Exempt Wear on Arm from 64-bit userspace requirement check. 2024-06-25 10:39:43 +00:00
netd Do not run mapLockTest on 4.9 kernels 2024-06-28 00:27:29 +00:00
remoteauth Switch to libjni_legacy 2024-05-15 23:47:49 +00:00
service Merge "Close the socket fd in case of an exception during setupSocket method to avoid socket leak." into main 2024-07-30 00:29:54 +00:00
service-t Do not send empty TXT records 2024-07-31 12:01:05 +09:00
staticlibs Refactor Drop EtherCat packet test 2024-08-01 03:32:19 +00:00
tests Support NetworkStats#addEntries API 2024-08-09 14:19:38 +08:00
Tethering More documentation about TETHERING_VIRTUAL 2024-07-16 13:39:49 +09:00
thread Merge "[Thread] fix upstream network selector to exclude VPN" into main 2024-08-01 03:20:46 +00:00
tools Update aospify_device for T device 2024-05-22 13:10:19 +09:00
.gitignore Ignores vim temporary files from git 2023-12-23 17:45:32 +08:00
OWNERS Move the owner of xfrm netlink source code to its own directory. 2023-11-22 18:50:00 +09:00
OWNERS_core_networking Update OWNERS to reflect reorg. 2024-04-10 23:24:14 +00:00
OWNERS_core_networking_xts Add "no-op refactors" reviews for delegated reviewers 2024-06-20 06:29:09 +00:00
PREUPLOAD.cfg Enable builtin formatting hooks 2024-07-17 11:51:08 +09:00
TEST_MAPPING Merge "Remove CtsNetTestCasesLatestSdk" into main 2024-07-05 06:15:04 +00:00