/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | AppStandbyControllerTests.java | 30 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 …]
|
D | AppIdleHistoryTests.java | 22 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_ACTIVE; 96 aih.setAppStandbyBucket(PACKAGE_1, USER_ID, 1000, STANDBY_BUCKET_ACTIVE, in testBuckets() 101 aih.setAppStandbyBucket(PACKAGE_2, USER_ID, 2000, STANDBY_BUCKET_ACTIVE, in testBuckets() 107 assertEquals(aih.getAppStandbyBucket(PACKAGE_2, USER_ID, 3000), STANDBY_BUCKET_ACTIVE); in testBuckets() local 119 assertEquals(aih.getAppStandbyBucket(PACKAGE_2, USER_ID, 5000), STANDBY_BUCKET_ACTIVE); in testBuckets() local 141 aih.reportUsage(PACKAGE_1, USER_ID, STANDBY_BUCKET_ACTIVE, in testReason() 156 aih.reportUsage(PACKAGE_1, USER_ID, STANDBY_BUCKET_ACTIVE, in testNullPackage() 159 aih.reportUsage(null, USER_ID, STANDBY_BUCKET_ACTIVE, in testNullPackage()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | AppStandbyController.java | 41 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 …]
|
D | AppIdleHistory.java | 25 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()
|
D | UsageStatsService.java | 1222 if (bucket < UsageStatsManager.STANDBY_BUCKET_ACTIVE in setAppStandbyBucket() 1310 if (bucket < UsageStatsManager.STANDBY_BUCKET_ACTIVE in setAppStandbyBuckets()
|
/frameworks/base/core/java/android/app/usage/ |
D | UsageStatsManager.java | 123 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/ |
D | AlarmManagerServiceTest.java | 22 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_ACTIVE; 265 .thenReturn(STANDBY_BUCKET_ACTIVE); in setUp() 593 testQuotasDeferralOnSet(STANDBY_BUCKET_ACTIVE); in testActiveQuota_deferredOnSet() 599 testQuotasDeferralOnExpiration(STANDBY_BUCKET_ACTIVE); in testActiveQuota_deferredOnExpiration() 605 testQuotasNoDeferral(STANDBY_BUCKET_ACTIVE); in testActiveQuota_notDeferred() 727 assertAndHandleBucketChanged(STANDBY_BUCKET_ACTIVE); in testQuotaUpgrade()
|
D | AppStateTrackerTest.java | 653 UsageStatsManager.STANDBY_BUCKET_ACTIVE, REASON_MAIN_USAGE); in testExempt()
|
/frameworks/base/services/core/java/com/android/server/ |
D | AlarmManagerService.java | 1801 if (bucket <= UsageStatsManager.STANDBY_BUCKET_ACTIVE) { in getQuotaForBucketLocked() 1830 else if (bucket > UsageStatsManager.STANDBY_BUCKET_ACTIVE) index = WORKING_INDEX; in getMinDelayForBucketLocked()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActivityManagerShellCommand.java | 2348 return UsageStatsManager.STANDBY_BUCKET_ACTIVE;
|
/frameworks/base/services/core/java/com/android/server/job/ |
D | JobSchedulerService.java | 2625 else if (bucket > UsageStatsManager.STANDBY_BUCKET_ACTIVE) return WORKING_INDEX; in standbyBucketToBucketIndex()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | QuotaControllerTest.java | 255 return UsageStatsManager.STANDBY_BUCKET_ACTIVE; in bucketIndexToUsageStatsBucket()
|
/frameworks/base/non-updatable-api/ |
D | current.txt | 7798 field public static final int STANDBY_BUCKET_ACTIVE = 10; // 0xa
|
/frameworks/base/api/ |
D | current.txt | 7798 field public static final int STANDBY_BUCKET_ACTIVE = 10; // 0xa
|