Home
last modified time | relevance | path

Searched refs:STANDBY_BUCKET_RARE (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppStandbyControllerTests.java44 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_RARE;
594 mController.setAppStandbyBucket(PACKAGE_1, USER_ID, STANDBY_BUCKET_RARE, in testIsAppIdle_Charging()
596 assertEquals(STANDBY_BUCKET_RARE, getStandbyBucket(mController, PACKAGE_1)); in testIsAppIdle_Charging()
605 assertEquals(STANDBY_BUCKET_RARE, getStandbyBucket(mController, PACKAGE_1)); in testIsAppIdle_Charging()
614 assertEquals(STANDBY_BUCKET_RARE, getStandbyBucket(mController, PACKAGE_1)); in testIsAppIdle_Charging()
628 mController.setAppStandbyBucket(PACKAGE_1, USER_ID, STANDBY_BUCKET_RARE, in testIsAppIdle_Enabled()
630 assertEquals(STANDBY_BUCKET_RARE, getStandbyBucket(mController, PACKAGE_1)); in testIsAppIdle_Enabled()
645 assertEquals(STANDBY_BUCKET_RARE, getStandbyBucket(mController, PACKAGE_1)); in testIsAppIdle_Enabled()
740 assertTimeout(mController, RARE_THRESHOLD + 1, STANDBY_BUCKET_RARE); in testBuckets()
810 assertNotEquals(STANDBY_BUCKET_RARE, getStandbyBucket(mController, PACKAGE_1)); in testScreenTimeAndBuckets()
[all …]
DAppIdleHistoryTests.java27 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_RARE;
110 aih.setAppStandbyBucket(PACKAGE_1, USER_ID, 3000, STANDBY_BUCKET_RARE, in testBuckets()
113 assertEquals(aih.getAppStandbyBucket(PACKAGE_1, USER_ID, 3000), STANDBY_BUCKET_RARE); in testBuckets() local
133 assertEquals(aih.getAppStandbyBucket(PACKAGE_1, USER_ID, 5000), STANDBY_BUCKET_RARE); in testBuckets() local
143 assertTrue(aih.shouldInformListeners(PACKAGE_1, USER_ID, 5000, STANDBY_BUCKET_RARE)); in testBuckets()
144 assertFalse(aih.shouldInformListeners(PACKAGE_1, USER_ID, 5000, STANDBY_BUCKET_RARE)); in testBuckets()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/
DAppStandbyController.java49 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_RARE;
202 STANDBY_BUCKET_RARE,
808 && app.lastPredictedBucket <= STANDBY_BUCKET_RARE) { in checkAndUpdateStandbyState()
855 newBucket = STANDBY_BUCKET_RARE; in checkAndUpdateStandbyState()
1360 final int bucket = mAllowRestrictedBucket ? STANDBY_BUCKET_RESTRICTED : STANDBY_BUCKET_RARE; in restrictApp()
1434 newBucket = STANDBY_BUCKET_RARE; in setAppStandbyBucket()
1479 if (predicted && newBucket >= STANDBY_BUCKET_RARE) { in setAppStandbyBucket()
1553 } else if (newBucket == STANDBY_BUCKET_RARE in setAppStandbyBucket()
1691 final boolean idle = bucket >= STANDBY_BUCKET_RARE; in informListeners()
1750 newBucket = STANDBY_BUCKET_RARE; in maybeUnrestrictBuggyApp()
DAppIdleHistory.java29 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_RARE;
87 static final int IDLE_BUCKET_CUTOFF = STANDBY_BUCKET_RARE;
/frameworks/base/core/java/android/app/usage/
DUsageStatsManager.java151 public static final int STANDBY_BUCKET_RARE = 40; field in UsageStatsManager
330 STANDBY_BUCKET_RARE,
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/
DAlarmManagerServiceTest.java39 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_RARE;
934 testStandbyQuotasDeferralOnSet(STANDBY_BUCKET_RARE); in testRareQuota_deferredOnSet()
939 testStandbyQuotasDeferralOnExpiration(STANDBY_BUCKET_RARE); in testRareQuota_deferredOnExpiration()
944 testStandbyQuotasNoDeferral(STANDBY_BUCKET_RARE); in testRareQuota_notDeferred()
1020 assertAndHandleBucketChanged(STANDBY_BUCKET_RARE); in testStandbyQuotaDowngrade()
1021 final int rareQuota = mService.getQuotaForBucketLocked(STANDBY_BUCKET_RARE); in testStandbyQuotaDowngrade()
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerShellCommand.java2453 return UsageStatsManager.STANDBY_BUCKET_RARE;
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobSchedulerService.java2643 } else if (bucket > UsageStatsManager.STANDBY_BUCKET_RARE) {
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DQuotaControllerTest.java332 return UsageStatsManager.STANDBY_BUCKET_RARE; in bucketIndexToUsageStatsBucket()
/frameworks/base/core/api/
Dcurrent.txt8457 field public static final int STANDBY_BUCKET_RARE = 40; // 0x28