Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppStandbyControllerTests.java29 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_ACTIVE;
433 assertTimeout(mController, WORKING_SET_THRESHOLD - 1, STANDBY_BUCKET_ACTIVE); in testBuckets()
449 assertTimeout(mController, RARE_THRESHOLD + 1, STANDBY_BUCKET_ACTIVE); in testBuckets()
464 assertTimeout(mController, WORKING_SET_THRESHOLD - 1, STANDBY_BUCKET_ACTIVE); in testScreenTimeAndBuckets()
485 assertEquals(STANDBY_BUCKET_ACTIVE, mController.getAppStandbyBucket(PACKAGE_1, USER_ID, 0, in testForcedIdle()
493 assertEquals(STANDBY_BUCKET_ACTIVE, getStandbyBucket(mController)); in testNotificationEvent()
496 assertEquals(STANDBY_BUCKET_ACTIVE, getStandbyBucket(mController)); in testNotificationEvent()
506 assertEquals(STANDBY_BUCKET_ACTIVE, getStandbyBucket(mController)); in testSlicePinnedEvent()
509 assertEquals(STANDBY_BUCKET_ACTIVE, getStandbyBucket(mController)); in testSlicePinnedEvent()
520 assertEquals(STANDBY_BUCKET_ACTIVE, getStandbyBucket(mController)); in testSlicePinnedPrivEvent()
[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.java39 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_ACTIVE;
147 STANDBY_BUCKET_ACTIVE,
398 STANDBY_BUCKET_ACTIVE, REASON_SUB_USAGE_SYNC_ADAPTER, in reportContentProviderUsage()
420 bucketToPromote = STANDBY_BUCKET_ACTIVE; in reportExemptedSyncScheduled()
449 STANDBY_BUCKET_ACTIVE, REASON_SUB_USAGE_EXEMPTED_SYNC_START, in reportExemptedSyncStart()
648 int newBucket = Math.max(oldBucket, STANDBY_BUCKET_ACTIVE); // Undo EXEMPTED in checkAndUpdateStandbyState()
656 if (!predictionLate && app.lastPredictedBucket >= STANDBY_BUCKET_ACTIVE in checkAndUpdateStandbyState()
675 if (newBucket >= STANDBY_BUCKET_ACTIVE in checkAndUpdateStandbyState()
677 newBucket = STANDBY_BUCKET_ACTIVE; in checkAndUpdateStandbyState()
861 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()
426 appIdleEnabled ? userHistory.valueAt(i).currentBucket : STANDBY_BUCKET_ACTIVE)); in getAppStandbyBuckets()
451 appUsageHistory.currentBucket = STANDBY_BUCKET_ACTIVE; in setIdle()
552 ? STANDBY_BUCKET_ACTIVE in readAppIdleTimes()
DUsageStatsService.java956 if (bucket < UsageStatsManager.STANDBY_BUCKET_ACTIVE in setAppStandbyBucket()
1043 if (bucket < UsageStatsManager.STANDBY_BUCKET_ACTIVE in setAppStandbyBuckets()
/frameworks/base/core/java/android/app/usage/
DUsageStatsManager.java117 public static final int STANDBY_BUCKET_ACTIVE = 10; field in UsageStatsManager
200 STANDBY_BUCKET_ACTIVE,
484 return STANDBY_BUCKET_ACTIVE; in getAppStandbyBucket()
501 return STANDBY_BUCKET_ACTIVE; in getAppStandbyBucket()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DAppStateTrackerTest.java652 UsageStatsManager.STANDBY_BUCKET_ACTIVE, REASON_MAIN_USAGE); in testExempt()
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerShellCommand.java2184 return UsageStatsManager.STANDBY_BUCKET_ACTIVE;
/frameworks/base/services/core/java/com/android/server/job/
DJobSchedulerService.java2439 else if (bucket > UsageStatsManager.STANDBY_BUCKET_ACTIVE) return WORKING_INDEX; in standbyBucketToBucketIndex()
/frameworks/base/services/core/java/com/android/server/
DAlarmManagerService.java1551 else if (bucket > UsageStatsManager.STANDBY_BUCKET_ACTIVE) index = WORKING_INDEX; in getMinDelayForBucketLocked()
/frameworks/base/config/
Dhiddenapi-public-dex.txt4711 Landroid/app/usage/UsageStatsManager;->STANDBY_BUCKET_ACTIVE:I
/frameworks/base/api/
Dcurrent.txt7514 field public static final int STANDBY_BUCKET_ACTIVE = 10; // 0xa