android_packages_modules_Co.../tests/unit/java/com
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Junyu Lai 244f3e3df2 Add light-weight DefferedBroadcastReceiver for handling broadcast events
This commit introduces the DeferredBroadcastReceiver class, which
defers received Intent handling using a Handler. It prevents
Application Not Responding (ANR) errors by offloading potentially
time-consuming or blocking operations triggered by broadcast
event handling, even if `onReceive` takes a long time on the
handler thread.

Flag: EXEMPT refactor
Test: atest ConnectivityCoverageTests:android.net.connectivity.com.android.server.connectivity.PermissionMonitorTest \
      ConnectivityCoverageTests:android.net.connectivity.com.android.server.ConnectivityServiceTest \
      ConnectivityCoverageTests:android.net.connectivity.com.android.server.connectivity.BroadcastReceiveHelperTest \
      --update-device
Bug: 410731080
Change-Id: Id6191d5ad9ae9f17fca3236110573340aa713048
2025-04-24 10:50:44 +08:00
..
android Add light-weight DefferedBroadcastReceiver for handling broadcast events 2025-04-24 10:50:44 +08:00