Searched refs:STANDBY_BUCKET_RARE (Results 1 – 10 of 10) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | AppStandbyControllerTests.java | 44 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 …]
|
D | AppIdleHistoryTests.java | 27 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/ |
D | AppStandbyController.java | 49 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()
|
D | AppIdleHistory.java | 29 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/ |
D | UsageStatsManager.java | 151 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/ |
D | AlarmManagerServiceTest.java | 39 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/ |
D | ActivityManagerShellCommand.java | 2453 return UsageStatsManager.STANDBY_BUCKET_RARE;
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/ |
D | JobSchedulerService.java | 2643 } else if (bucket > UsageStatsManager.STANDBY_BUCKET_RARE) {
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | QuotaControllerTest.java | 332 return UsageStatsManager.STANDBY_BUCKET_RARE; in bucketIndexToUsageStatsBucket()
|
/frameworks/base/core/api/ |
D | current.txt | 8457 field public static final int STANDBY_BUCKET_RARE = 40; // 0x28
|