Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppStandbyControllerTests.java30 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_ACTIVE;
541 assertTimeout(mController, WORKING_SET_THRESHOLD - 1, STANDBY_BUCKET_ACTIVE); in testBuckets()
557 assertTimeout(mController, RARE_THRESHOLD + 1, STANDBY_BUCKET_ACTIVE); in testBuckets()
567 mController.setAppStandbyBucket(PACKAGE_1, USER_ID, STANDBY_BUCKET_ACTIVE, in testSetAppStandbyBucket()
569 assertEquals(STANDBY_BUCKET_ACTIVE, getStandbyBucket(mController, PACKAGE_1)); in testSetAppStandbyBucket()
575 mController.setAppStandbyBucket(PACKAGE_UNKNOWN, USER_ID, STANDBY_BUCKET_ACTIVE, in testSetAppStandbyBucket()
585 assertEquals(STANDBY_BUCKET_ACTIVE, getStandbyBucket(mController, PACKAGE_UNKNOWN)); in testAppStandbyBucketOnInstallAndUninstall()
608 assertTimeout(mController, WORKING_SET_THRESHOLD - 1, STANDBY_BUCKET_ACTIVE); in testScreenTimeAndBuckets()
629 assertEquals(STANDBY_BUCKET_ACTIVE, mController.getAppStandbyBucket(PACKAGE_1, USER_ID, 0, in testForcedIdle()
637 assertEquals(STANDBY_BUCKET_ACTIVE, getStandbyBucket(mController, PACKAGE_1)); in testNotificationEvent()
[all …]
DAppIdleHistoryTests.java22 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_ACTIVE;
97 aih.setAppStandbyBucket(PACKAGE_1, USER_ID, 1000, STANDBY_BUCKET_ACTIVE, in testBuckets()
102 aih.setAppStandbyBucket(PACKAGE_2, USER_ID, 2000, STANDBY_BUCKET_ACTIVE, in testBuckets()
108 assertEquals(aih.getAppStandbyBucket(PACKAGE_2, USER_ID, 3000), STANDBY_BUCKET_ACTIVE); in testBuckets() local
120 assertEquals(aih.getAppStandbyBucket(PACKAGE_2, USER_ID, 5000), STANDBY_BUCKET_ACTIVE); in testBuckets() local
142 aih.reportUsage(PACKAGE_1, USER_ID, STANDBY_BUCKET_ACTIVE, in testReason()
/frameworks/base/services/usage/java/com/android/server/usage/
DAppStandbyController.java41 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_ACTIVE;
150 STANDBY_BUCKET_ACTIVE,
422 STANDBY_BUCKET_ACTIVE, REASON_SUB_USAGE_SYNC_ADAPTER, in reportContentProviderUsage()
444 bucketToPromote = STANDBY_BUCKET_ACTIVE; in reportExemptedSyncScheduled()
492 STANDBY_BUCKET_ACTIVE, REASON_SUB_USAGE_EXEMPTED_SYNC_START, in reportExemptedSyncStart()
691 int newBucket = Math.max(oldBucket, STANDBY_BUCKET_ACTIVE); // Undo EXEMPTED in checkAndUpdateStandbyState()
699 if (!predictionLate && app.lastPredictedBucket >= STANDBY_BUCKET_ACTIVE in checkAndUpdateStandbyState()
718 if (newBucket >= STANDBY_BUCKET_ACTIVE in checkAndUpdateStandbyState()
720 newBucket = STANDBY_BUCKET_ACTIVE; in checkAndUpdateStandbyState()
905 STANDBY_BUCKET_ACTIVE, subReason, in reportEvent()
[all …]
DAppIdleHistory.java25 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_ACTIVE;
236 if (newBucket == STANDBY_BUCKET_ACTIVE) { in reportUsage()
421 appIdleEnabled ? userHistory.valueAt(i).currentBucket : STANDBY_BUCKET_ACTIVE)); in getAppStandbyBuckets()
446 appUsageHistory.currentBucket = STANDBY_BUCKET_ACTIVE; in setIdle()
557 ? STANDBY_BUCKET_ACTIVE in readAppIdleTimes()
DUsageStatsService.java1222 if (bucket < UsageStatsManager.STANDBY_BUCKET_ACTIVE in setAppStandbyBucket()
1310 if (bucket < UsageStatsManager.STANDBY_BUCKET_ACTIVE in setAppStandbyBuckets()
/frameworks/base/core/java/android/app/usage/
DUsageStatsManager.java123 public static final int STANDBY_BUCKET_ACTIVE = 10; field in UsageStatsManager
209 STANDBY_BUCKET_ACTIVE,
530 return STANDBY_BUCKET_ACTIVE; in getAppStandbyBucket()
547 return STANDBY_BUCKET_ACTIVE; in getAppStandbyBucket()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DAlarmManagerServiceTest.java22 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_ACTIVE;
261 .thenReturn(STANDBY_BUCKET_ACTIVE); in setUp()
590 testQuotasDeferralOnSet(STANDBY_BUCKET_ACTIVE); in testActiveQuota_deferredOnSet()
596 testQuotasDeferralOnExpiration(STANDBY_BUCKET_ACTIVE); in testActiveQuota_deferredOnExpiration()
602 testQuotasNoDeferral(STANDBY_BUCKET_ACTIVE); in testActiveQuota_notDeferred()
720 assertAndHandleBucketChanged(STANDBY_BUCKET_ACTIVE); in testQuotaUpgrade()
DAppStateTrackerTest.java653 UsageStatsManager.STANDBY_BUCKET_ACTIVE, REASON_MAIN_USAGE); in testExempt()
/frameworks/base/services/core/java/com/android/server/
DAlarmManagerService.java1808 if (bucket <= UsageStatsManager.STANDBY_BUCKET_ACTIVE) { in getQuotaForBucketLocked()
1837 else if (bucket > UsageStatsManager.STANDBY_BUCKET_ACTIVE) index = WORKING_INDEX; in getMinDelayForBucketLocked()
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerShellCommand.java2284 return UsageStatsManager.STANDBY_BUCKET_ACTIVE;
/frameworks/base/services/core/java/com/android/server/job/
DJobSchedulerService.java2625 else if (bucket > UsageStatsManager.STANDBY_BUCKET_ACTIVE) return WORKING_INDEX; in standbyBucketToBucketIndex()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DQuotaControllerTest.java255 return UsageStatsManager.STANDBY_BUCKET_ACTIVE; in bucketIndexToUsageStatsBucket()
/frameworks/base/api/
Dcurrent.txt7795 field public static final int STANDBY_BUCKET_ACTIVE = 10; // 0xa