Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppIdleHistoryTests.java24 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_RARE;
104 aih.setAppStandbyBucket(PACKAGE_1, USER_ID, 3000, STANDBY_BUCKET_RARE, in testBuckets()
107 assertEquals(aih.getAppStandbyBucket(PACKAGE_1, USER_ID, 3000), STANDBY_BUCKET_RARE); in testBuckets() local
119 assertEquals(aih.getAppStandbyBucket(PACKAGE_1, USER_ID, 5000), STANDBY_BUCKET_RARE); in testBuckets() local
123 assertTrue(aih.shouldInformListeners(PACKAGE_1, USER_ID, 5000, STANDBY_BUCKET_RARE)); in testBuckets()
124 assertFalse(aih.shouldInformListeners(PACKAGE_1, USER_ID, 5000, STANDBY_BUCKET_RARE)); in testBuckets()
DAppStandbyControllerTests.java34 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_RARE;
553 assertTimeout(mController, RARE_THRESHOLD + 1, STANDBY_BUCKET_RARE); in testBuckets()
560 assertTimeout(mController, RARE_THRESHOLD * 2 + 2, STANDBY_BUCKET_RARE); in testBuckets()
616 assertNotEquals(STANDBY_BUCKET_RARE, getStandbyBucket(mController, PACKAGE_1)); in testScreenTimeAndBuckets()
619 assertTimeout(mController, RARE_THRESHOLD * 2 + 2, STANDBY_BUCKET_RARE); in testScreenTimeAndBuckets()
625 assertEquals(STANDBY_BUCKET_RARE, getStandbyBucket(mController, PACKAGE_1)); in testForcedIdle()
670 mController.setAppStandbyBucket(PACKAGE_1, USER_ID, STANDBY_BUCKET_RARE, in testPredictionTimedout()
672 assertEquals(STANDBY_BUCKET_RARE, getStandbyBucket(mController, PACKAGE_1)); in testPredictionTimedout()
693 assertEquals(STANDBY_BUCKET_RARE, getStandbyBucket(mController, PACKAGE_1)); in testPredictionTimedout()
744 assertBucket(STANDBY_BUCKET_RARE); in testTimeout()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DAlarmManagerServiceTest.java24 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_RARE;
518 anyLong())).thenReturn(STANDBY_BUCKET_RARE); in testStandbyBucketDelay_rare()
526 + mService.getMinDelayForBucketLocked(STANDBY_BUCKET_RARE); in testStandbyBucketDelay_rare()
644 testQuotasDeferralOnSet(STANDBY_BUCKET_RARE); in testRareQuota_deferredOnSet()
650 testQuotasDeferralOnExpiration(STANDBY_BUCKET_RARE); in testRareQuota_deferredOnExpiration()
656 testQuotasNoDeferral(STANDBY_BUCKET_RARE); in testRareQuota_notDeferred()
692 assertAndHandleBucketChanged(STANDBY_BUCKET_RARE); in testQuotaDowngrade()
693 final int rareQuota = mService.getQuotaForBucketLocked(STANDBY_BUCKET_RARE); in testQuotaDowngrade()
/frameworks/base/services/usage/java/com/android/server/usage/
DAppIdleHistory.java27 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_RARE;
323 return appUsageHistory.currentBucket >= STANDBY_BUCKET_RARE; in isIdle()
443 appUsageHistory.currentBucket = STANDBY_BUCKET_RARE; in setIdle()
DAppStandbyController.java45 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_RARE;
153 STANDBY_BUCKET_RARE
700 && app.lastPredictedBucket <= STANDBY_BUCKET_RARE) { in checkAndUpdateStandbyState()
1373 final boolean idle = bucket >= STANDBY_BUCKET_RARE; in informListeners()
/frameworks/base/core/java/android/app/usage/
DUsageStatsManager.java148 public static final int STANDBY_BUCKET_RARE = 40; field in UsageStatsManager
212 STANDBY_BUCKET_RARE,
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerShellCommand.java2290 return UsageStatsManager.STANDBY_BUCKET_RARE;
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DQuotaControllerTest.java261 return UsageStatsManager.STANDBY_BUCKET_RARE; in bucketIndexToUsageStatsBucket()
/frameworks/base/api/
Dcurrent.txt7797 field public static final int STANDBY_BUCKET_RARE = 40; // 0x28