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 43b334ea5d Introduce client-side rate limiting for TrafficStats APIs
This change introduces client-side rate limiting for TrafficStats
APIs to address a performance issue caused by excessive calls,
resulting in high CPU usage and binder contention. By caching
traffic statistics on the client side, we reduce the frequency
of calls to NetworkStatsService, improving overall system
performance and mitigating potential privacy concerns related
to traffic analysis fingerprints.

This client-side caching mechanism will be disabled and gradually
enabled through a feature flag rollout.

Test: atest CtsNetTestCases:android.net.cts.TrafficStatsTest \
      CtsNetTestCases:android.net.cts.NetworkStatsBinderTest \
      FrameworksNetIntegrationTests:com.android.server.net.integrationtests.NetworkStatsIntegrationTest \
      ConnectivityCoverageTests:android.net.connectivity.com.android.server.net.NetworkStatsServiceTest \
      ConnectivityCoverageTests:android.net.connectivity.android.net.TrafficStatsTest \
      CtsNetTestCases:android.net.cts.IpSecManagerTest#testIkeOverUdpEncapSocket \
      CtsNetTestCasesUpdateStatsPermission:android.net.cts.networkpermission.updatestatspermission.UpdateStatsPermissionTest#testUpdateDeviceStatsPermission
Test: adb shell device_config put tethering trafficstats_client_rate_limit_cache_enabled_flag [-1|1]
Bug: 343260158
Change-Id: If8a252d8d01c1545b23fdc7a00010f249ca09dc2
2024-12-06 08:13:08 +00:00
bpf Make ARM TVs running 32-bit userspace boot on V with new kernels. 2024-12-04 09:59:33 +00:00
clatd [DON'T BLOCK] Test ownership migration rules 2024-01-31 12:34:50 +00:00
common Add daily CertificateTransparencyJob 2024-11-21 14:54:50 +00:00
framework Merge "Add a new module-only API to preload HttpEngine" into main 2024-11-29 05:10:06 +00:00
framework-t Introduce client-side rate limiting for TrafficStats APIs 2024-12-06 08:13:08 +00:00
nearby Add WRITE_ALLOWLISTED_DEVICE_CONFIG perm when modifying DeviceConfig 2024-11-18 23:28:24 -06:00
networksecurity Simplify the Android CT properties 2024-11-28 14:42:09 +00:00
remoteauth Merge "Use LazyLock rather than lazy_static macro." into main 2024-09-11 17:46:22 +00:00
service Read idle timer configurations from the boot namespace 2024-12-02 16:22:10 -08:00
service-t Introduce client-side rate limiting for TrafficStats APIs 2024-12-06 08:13:08 +00:00
staticlibs Add putIfAbsent method to LruCacheWithExpiry 2024-12-06 08:13:08 +00:00
tests Unit test for TrafficStats Rate Limit Cache 2024-12-06 08:13:08 +00:00
Tethering Make Tethering public API for DO/Carrier apps 2024-12-05 11:49:39 +09:00
thread Merge "Handle non IPv6 packet in getRaPios" into main 2024-12-06 05:35:26 +00:00
tools Remove dependencies on the 1-variant fallback 2024-10-22 16:31:00 -07: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 Mark Martin as LAST_RESORT_SUGGESTION 2024-09-26 22:29:48 +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 Add CtsNetTestCase as presubmit for automotive multi-user multi-display 2024-10-24 22:18:00 +00:00