Home
last modified time | relevance | path

Searched refs:REASON_SUB_FORCED_SYSTEM_FLAG_ABUSE (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/core/java/com/android/server/am/
DBaseAppStateTimeSlotEventsTracker.java24 import static android.app.usage.UsageStatsManager.REASON_SUB_FORCED_SYSTEM_FLAG_ABUSE;
274 REASON_SUB_FORCED_SYSTEM_FLAG_ABUSE, true); in onExcessiveEvents()
DAppBatteryTracker.java27 import static android.app.usage.UsageStatsManager.REASON_SUB_FORCED_SYSTEM_FLAG_ABUSE;
1988 REASON_SUB_FORCED_SYSTEM_FLAG_ABUSE, true); in handleUidBatteryUsage()
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppStandbyControllerTests.java31 import static android.app.usage.UsageStatsManager.REASON_SUB_FORCED_SYSTEM_FLAG_ABUSE;
1587 REASON_MAIN_FORCED_BY_SYSTEM | REASON_SUB_FORCED_SYSTEM_FLAG_ABUSE); in testSystemForcedFlags_NotAddedForUserForce()
1606 mController.restrictApp(PACKAGE_1, USER_ID, REASON_SUB_FORCED_SYSTEM_FLAG_ABUSE); in testSystemForcedFlags_AddedForSystemForce()
1611 | REASON_SUB_FORCED_SYSTEM_FLAG_ABUSE, getStandbyBucketReason(PACKAGE_1)); in testSystemForcedFlags_AddedForSystemForce()
1629 REASON_MAIN_FORCED_BY_SYSTEM | REASON_SUB_FORCED_SYSTEM_FLAG_ABUSE); in testSystemForcedFlags_SystemForceChangesBuckets()
1634 | REASON_SUB_FORCED_SYSTEM_FLAG_ABUSE, in testSystemForcedFlags_SystemForceChangesBuckets()
1852 REASON_MAIN_FORCED_BY_SYSTEM | REASON_SUB_FORCED_SYSTEM_FLAG_ABUSE in testAppUpdateOnRestrictedBucketStatus()
1857 assertEquals(REASON_MAIN_FORCED_BY_SYSTEM | REASON_SUB_FORCED_SYSTEM_FLAG_ABUSE, in testAppUpdateOnRestrictedBucketStatus()
/frameworks/base/core/java/android/app/usage/
DUsageStatsManager.java328 public static final int REASON_SUB_FORCED_SYSTEM_FLAG_ABUSE = 1 << 1; field in UsageStatsManager
364 REASON_SUB_FORCED_SYSTEM_FLAG_ABUSE,
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DBackgroundRestrictionTest.java46 import static android.app.usage.UsageStatsManager.REASON_SUB_FORCED_SYSTEM_FLAG_ABUSE;
835 eq(REASON_SUB_FORCED_SYSTEM_FLAG_ABUSE), in testBgCurrentDrainMonitor()
1959 eq(REASON_SUB_FORCED_SYSTEM_FLAG_ABUSE), in testBgCurrentDrainMonitorExemptions()
2165 eq(REASON_SUB_FORCED_SYSTEM_FLAG_ABUSE), in testBgCurrentDrainMonitorExemptions()
2295 eq(REASON_SUB_FORCED_SYSTEM_FLAG_ABUSE), in testBgCurrentDrainMonitorExemptions()
3001 20_000L, REASON_MAIN_FORCED_BY_SYSTEM | REASON_SUB_FORCED_SYSTEM_FLAG_ABUSE, in testPersistRestrictionSettings()