Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppStandbyControllerTests.java44 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_RARE;
665 mController.setAppStandbyBucket(PACKAGE_1, USER_ID, STANDBY_BUCKET_RARE, in testIsAppIdle_Charging()
667 waitAndAssertBucket(STANDBY_BUCKET_RARE, PACKAGE_1); in testIsAppIdle_Charging()
676 waitAndAssertBucket(STANDBY_BUCKET_RARE, PACKAGE_1); in testIsAppIdle_Charging()
685 waitAndAssertBucket(STANDBY_BUCKET_RARE, PACKAGE_1); in testIsAppIdle_Charging()
698 mController.setAppStandbyBucket(PACKAGE_1, USER_ID, STANDBY_BUCKET_RARE, in testIsAppIdle_Enabled()
700 waitAndAssertBucket(STANDBY_BUCKET_RARE, PACKAGE_1); in testIsAppIdle_Enabled()
715 waitAndAssertBucket(STANDBY_BUCKET_RARE, PACKAGE_1); in testIsAppIdle_Enabled()
846 assertTimeout(mController, RARE_THRESHOLD + 1, STANDBY_BUCKET_RARE); in testBuckets()
913 waitAndAssertNotBucket(STANDBY_BUCKET_RARE, PACKAGE_1); in testScreenTimeAndBuckets()
[all …]
DAppIdleHistoryTests.java29 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_RARE;
114 aih.setAppStandbyBucket(PACKAGE_1, USER_ID, 3000, STANDBY_BUCKET_RARE, in testBuckets()
117 assertEquals(aih.getAppStandbyBucket(PACKAGE_1, USER_ID, 3000), STANDBY_BUCKET_RARE); in testBuckets() local
137 assertEquals(aih.getAppStandbyBucket(PACKAGE_1, USER_ID, 5000), STANDBY_BUCKET_RARE); in testBuckets() local
148 assertTrue(aih.shouldInformListeners(PACKAGE_1, USER_ID, 5000, STANDBY_BUCKET_RARE)); in testBuckets()
150 assertFalse(aih.shouldInformListeners(PACKAGE_1, USER_ID, 5000, STANDBY_BUCKET_RARE)); in testBuckets()
217 STANDBY_BUCKET_RARE, 0L, in testBucketExpiryTimes()
227 STANDBY_BUCKET_RARE, 0L, in testBucketExpiryTimes()
/frameworks/base/core/java/android/app/usage/
DUsageStatsManager.java158 public static final int STANDBY_BUCKET_RARE = 40; field in UsageStatsManager
353 STANDBY_BUCKET_RARE,
1417 case STANDBY_BUCKET_RARE: in standbyBucketToString()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DBackgroundRestrictionTest.java54 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_RARE;
239 STANDBY_BUCKET_RARE,
580 STANDBY_BUCKET_FREQUENT, STANDBY_BUCKET_RARE)) { in testTogglingStandbyBucket()
812 eq(STANDBY_BUCKET_RARE), in testBgCurrentDrainMonitor()
905 eq(STANDBY_BUCKET_RARE), in testBgCurrentDrainMonitor()
943 eq(STANDBY_BUCKET_RARE), in testBgCurrentDrainMonitor()
981 eq(STANDBY_BUCKET_RARE), in testBgCurrentDrainMonitor()
1020 eq(STANDBY_BUCKET_RARE), in testBgCurrentDrainMonitor()
1052 doReturn(STANDBY_BUCKET_RARE) in testBgCurrentDrainMonitor()
1113 eq(STANDBY_BUCKET_RARE), in testBgCurrentDrainMonitor()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/
DAppStandbyController.java51 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_RARE;
220 STANDBY_BUCKET_RARE,
1010 && app.lastPredictedBucket <= STANDBY_BUCKET_RARE) { in checkAndUpdateStandbyState()
1714 setAppStandbyBucket(pkgName, userId, STANDBY_BUCKET_RARE, reason, nowElapsed, false); in restoreAppToRare()
1838 if (predicted && newBucket >= STANDBY_BUCKET_RARE) { in setAppStandbyBucket()
1911 } else if (newBucket == STANDBY_BUCKET_RARE in setAppStandbyBucket()
2090 final boolean idle = bucket >= STANDBY_BUCKET_RARE; in informListeners()
2216 newBucket = STANDBY_BUCKET_RARE; in maybeUnrestrictApp()
DAppIdleHistory.java29 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_RARE;
92 static final int IDLE_BUCKET_CUTOFF = STANDBY_BUCKET_RARE;
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/
DAlarmManagerServiceTest.java42 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_RARE;
1043 testStandbyQuotasDeferralOnSet(STANDBY_BUCKET_RARE);
1048 testStandbyQuotasDeferralOnExpiration(STANDBY_BUCKET_RARE);
1053 testStandbyQuotasNoDeferral(STANDBY_BUCKET_RARE);
1139 assertAndHandleBucketChanged(STANDBY_BUCKET_RARE);
1140 final int rareQuota = mService.getQuotaForBucketLocked(STANDBY_BUCKET_RARE);
3606 testTemporaryQuota_bumpedAfterDeferral(STANDBY_BUCKET_RARE);
3659 testTemporaryQuota_bumpedBeforeDeferral(STANDBY_BUCKET_RARE);
/frameworks/base/services/core/java/com/android/server/am/
DAppRestrictionController.java58 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_RARE;
1744 case STANDBY_BUCKET_RARE: in calcAppRestrictionLevel()
1826 case STANDBY_BUCKET_RARE: in standbyBucketToRestrictionLevel()
2286 ? STANDBY_BUCKET_RESTRICTED : STANDBY_BUCKET_RARE); in handleBackgroundRestrictionChanged()
DActivityManagerShellCommand.java3119 return UsageStatsManager.STANDBY_BUCKET_RARE;
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobSchedulerService.java4632 } else if (bucket > UsageStatsManager.STANDBY_BUCKET_RARE) {
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DQuotaControllerTest.java348 return UsageStatsManager.STANDBY_BUCKET_RARE; in bucketIndexToUsageStatsBucket()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/frameworks/base/core/api/
Dcurrent.txt9539 field public static final int STANDBY_BUCKET_RARE = 40; // 0x28