Enable CORE_DEFER_UNTIL_ACTIVE by default.
By default, mark broadcasts from system components as deferrable-until-active so that we can avoid unfreezing apps in the Cached for delivering these. Bug: 272149552 Test: atest services/tests/mockingservicestests/src/com/android/server/am/BroadcastQueueTest.java Test: atest services/tests/mockingservicestests/src/com/android/server/am/BroadcastQueueModernImplTest.java Change-Id: Iaa0ff4b1039e5bcc016a2a3b0f9674ca3d943708
This commit is contained in:
@@ -242,7 +242,7 @@ public class BroadcastConstants {
|
||||
*/
|
||||
public boolean CORE_DEFER_UNTIL_ACTIVE = DEFAULT_CORE_DEFER_UNTIL_ACTIVE;
|
||||
private static final String KEY_CORE_DEFER_UNTIL_ACTIVE = "bcast_core_defer_until_active";
|
||||
private static final boolean DEFAULT_CORE_DEFER_UNTIL_ACTIVE = false;
|
||||
private static final boolean DEFAULT_CORE_DEFER_UNTIL_ACTIVE = true;
|
||||
|
||||
// Settings override tracking for this instance
|
||||
private String mSettingsKey;
|
||||
|
||||
Reference in New Issue
Block a user