Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 57d4dd81 authored by Lee Shombert's avatar Lee Shombert
Browse files

Do not deliver notifications to frozen processes

If a paused process is sent a notification, the notification is not
delivered but is saved until the process is unpaused.  If there is
already a pending instance of the same notification for the process,
the earlier one is deleted.

If a notfication is sent to a process that is not paused, the
notification is delivered immediately.

Pending notifications are delivered when the proces is unpaused. They
are delivered in the order in which they were posted.

The notifications that are affected by this change are:
 * IApplicationThread.clearDnsCache
 * IApplicationThread.updateTimeZone
 * IApplicationThread.scheduleLowMemory
 * IApplicationThread.updateHttpProxy

Test: atest
 * FrameworksServicesTests:com.android.server.am
 * FrameworksMockingServicesTests:com.android.server.am

Flag: com.android.server.am.defer_binders_when_paused
Bug: 327038797
Change-Id: I17bc1551dfd14684848c2c6573bc736340a858c1
parent 5119d552
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment