android_packages_modules_Co.../tests/unit/java/com/android
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Junyu Lai 8b1d824ad2 Use Service handler thread for NetworkStatsObservers
This change includes:
  1. Use service handler looper when initializing the observers
     to simplify the structure.
  2. Make the handler variable final in the observers class.
  3. Remove misleading comments, where the callback events
     are actually dispatched on the oneway binder thread,
     which does not block handler thread.
  4. Update tests accordingly.

Test: atest ConnectivityCoverageTests:android.net.connectivity.com.android.server.net.NetworkStatsServiceTest
Test: atest FrameworksNetIntegrationTests:com.android.server.net.integrationtests.NetworkStatsIntegrationTest
Test: atest CtsNetTestCases:NetworkStatsManagerTest
Bug: N/A
Change-Id: I5be92853b5bbc795a36bf774956bdac33d79099b
2024-03-06 18:09:03 +08:00
..
internal/net Test VpnProfile is not modified in startLegacyVpn 2023-11-16 12:28:12 +08:00
metrics Fix flaky testSampleConnectivityState 2024-02-28 12:18:57 +09:00
server Use Service handler thread for NetworkStatsObservers 2024-03-06 18:09:03 +08:00