android_packages_modules_Co.../framework-t
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
..
api [Thread] Mark ThreadConfiguration#isDhcpv6PdEnabled() as @hide 2024-10-22 07:33:00 +00:00
hiddenapi Make the hiddenapi*-tiramisu.txt files part of framework-connectivity-t 2022-09-13 15:13:15 +00:00
jni Move socket tagging implementation to mainline. 2022-01-30 15:59:44 +09:00
src/android Introduce client-side rate limiting for TrafficStats APIs 2024-12-06 08:13:08 +00:00
Android.bp Expose Connectivity libraries to VCN and tests 2024-11-23 23:07:44 -08:00
lint-baseline.xml Baseline Lint FlaggedApi violations 2024-06-20 09:05:51 +02:00
Sources.bp Use filegroup defaults for framework sources 2023-03-15 10:36:52 +00:00