)]}'
{
  "commit": "43b334ea5d4859e4b8892b02596a46bdcc214fd0",
  "tree": "373988bec20c7edfe9bc8ded884e18e69c3fadd2",
  "parents": [
    "e73e04ae354e5b7e735544a1e939fd7831c16bda"
  ],
  "author": {
    "name": "Junyu Lai",
    "email": "junyulai@google.com",
    "time": "Wed Oct 30 17:28:20 2024 +0800"
  },
  "committer": {
    "name": "Junyu Lai",
    "email": "junyulai@google.com",
    "time": "Fri Dec 06 08:13:08 2024 +0000"
  },
  "message": "Introduce client-side rate limiting for TrafficStats APIs\n\nThis change introduces client-side rate limiting for TrafficStats\nAPIs to address a performance issue caused by excessive calls,\nresulting in high CPU usage and binder contention. By caching\ntraffic statistics on the client side, we reduce the frequency\nof calls to NetworkStatsService, improving overall system\nperformance and mitigating potential privacy concerns related\nto traffic analysis fingerprints.\n\nThis client-side caching mechanism will be disabled and gradually\nenabled through a feature flag rollout.\n\nTest: atest CtsNetTestCases:android.net.cts.TrafficStatsTest \\\n      CtsNetTestCases:android.net.cts.NetworkStatsBinderTest \\\n      FrameworksNetIntegrationTests:com.android.server.net.integrationtests.NetworkStatsIntegrationTest \\\n      ConnectivityCoverageTests:android.net.connectivity.com.android.server.net.NetworkStatsServiceTest \\\n      ConnectivityCoverageTests:android.net.connectivity.android.net.TrafficStatsTest \\\n      CtsNetTestCases:android.net.cts.IpSecManagerTest#testIkeOverUdpEncapSocket \\\n      CtsNetTestCasesUpdateStatsPermission:android.net.cts.networkpermission.updatestatspermission.UpdateStatsPermissionTest#testUpdateDeviceStatsPermission\nTest: adb shell device_config put tethering trafficstats_client_rate_limit_cache_enabled_flag [-1|1]\nBug: 343260158\nChange-Id: If8a252d8d01c1545b23fdc7a00010f249ca09dc2\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "81f2cf92b31d48b831a44213d14f6df1777fd577",
      "old_mode": 33188,
      "old_path": "framework-t/src/android/net/TrafficStats.java",
      "new_id": "868033ad5b691f308eca7776a940f31ffee42229",
      "new_mode": 33188,
      "new_path": "framework-t/src/android/net/TrafficStats.java"
    },
    {
      "type": "modify",
      "old_id": "fb712a18ec4b42571aea03dd17666e1a75ddcfdc",
      "old_mode": 33188,
      "old_path": "service-t/src/com/android/server/net/NetworkStatsService.java",
      "new_id": "a8e32039d39afdb837c8518bc65b2e1f5a155e9d",
      "new_mode": 33188,
      "new_path": "service-t/src/com/android/server/net/NetworkStatsService.java"
    }
  ]
}
