/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/ |
D | QuotaController.java | 825 private boolean hasTempAllowlistExemptionLocked(int sourceUid, int standbyBucket, in hasTempAllowlistExemptionLocked() argument 827 if (standbyBucket == RESTRICTED_INDEX || standbyBucket == NEVER_INDEX) { in hasTempAllowlistExemptionLocked() 886 final int standbyBucket = jobStatus.getEffectiveStandbyBucket(); 896 jobStatus.getSourceUserId(), jobStatus.getSourcePackageName(), standbyBucket); 905 if (standbyBucket == NEVER_INDEX) return false; 907 if (isQuotaFreeLocked(standbyBucket)) return true; 910 jobStatus.getSourcePackageName(), standbyBucket); 916 if (standbyBucket != RESTRICTED_INDEX && mService.isCurrentlyRunningLocked(jobStatus)) { 927 private boolean isQuotaFreeLocked(final int standbyBucket) { 932 return standbyBucket != RESTRICTED_INDEX; [all …]
|
D | JobStatus.java | 324 private int standbyBucket; field in JobStatus 604 int sourceUserId, int standbyBucket, @Nullable String namespace, String tag, in JobStatus() argument 611 this.standbyBucket = standbyBucket; in JobStatus() 712 if (standbyBucket == RESTRICTED_INDEX) { in JobStatus() 764 int standbyBucket, @Nullable String namespace, String sourceTag, in JobStatus() argument 771 standbyBucket, namespace, in JobStatus() 834 int standbyBucket = JobSchedulerService.standbyBucketForPackage(jobPackage, in createFromJobInfo() local 837 standbyBucket, namespace, tag, /* numFailures */ 0, /* numSystemStops */ 0, in createFromJobInfo() 1270 return standbyBucket; in getStandbyBucket() 1277 } else if (standbyBucket == RESTRICTED_INDEX) { in setStandbyBucket() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | QuotaControllerTest.java | 2308 int standbyBucket = WORKING_INDEX; in testIsWithinQuotaLocked_WithQuotaBump_Duration() local 2309 setStandbyBucket(standbyBucket); in testIsWithinQuotaLocked_WithQuotaBump_Duration() 2327 SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket); in testIsWithinQuotaLocked_WithQuotaBump_Duration() 2396 int standbyBucket = WORKING_INDEX; in testIsWithinQuotaLocked_WithQuotaBump_JobCount() local 2397 setStandbyBucket(standbyBucket); in testIsWithinQuotaLocked_WithQuotaBump_JobCount() 2413 SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket); in testIsWithinQuotaLocked_WithQuotaBump_JobCount() 2482 int standbyBucket = WORKING_INDEX; in testIsWithinQuotaLocked_WithQuotaBump_SessionCount() local 2483 setStandbyBucket(standbyBucket); in testIsWithinQuotaLocked_WithQuotaBump_SessionCount() 2501 SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket); in testIsWithinQuotaLocked_WithQuotaBump_SessionCount() 2838 final int standbyBucket = ACTIVE_INDEX; in testMaybeScheduleStartAlarmLocked_Active() local [all …]
|
/frameworks/base/core/java/android/app/usage/ |
D | UsageStatsManager.java | 1407 public static String standbyBucketToString(int standbyBucket) { in standbyBucketToString() argument 1408 switch (standbyBucket) { in standbyBucketToString() 1424 return String.valueOf(standbyBucket); in standbyBucketToString()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/ |
D | AlarmManagerServiceTest.java | 972 private void testStandbyQuotasDeferralOnSet(int standbyBucket) throws Exception { 973 final int quota = mService.getQuotaForBucketLocked(standbyBucket); 975 anyLong())).thenReturn(standbyBucket); 980 private void testStandbyQuotasDeferralOnExpiration(int standbyBucket) throws Exception { 981 final int quota = mService.getQuotaForBucketLocked(standbyBucket); 983 anyLong())).thenReturn(standbyBucket); 988 private void testStandbyQuotasNoDeferral(int standbyBucket) throws Exception { 989 final int quota = mService.getQuotaForBucketLocked(standbyBucket); 991 anyLong())).thenReturn(standbyBucket); 3557 private void testTemporaryQuota_bumpedAfterDeferral(int standbyBucket) throws Exception { [all …]
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/ |
D | AppStandbyController.java | 1316 final int standbyBucket; in forceIdleState() local 1318 standbyBucket = mAppIdleHistory.setIdle(packageName, userId, idle, elapsedRealtime); in forceIdleState() 1323 maybeInformListeners(packageName, userId, elapsedRealtime, standbyBucket, in forceIdleState() 1711 final int standbyBucket = getAppStandbyBucket(pkgName, userId, nowElapsed, false); in restoreAppToRare() local 1713 if (standbyBucket == STANDBY_BUCKET_NEVER) { in restoreAppToRare()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | AppRestrictionController.java | 1725 String packageName, @UsageStatsManager.StandbyBuckets int standbyBucket, in calcAppRestrictionLevel() argument 1732 switch (standbyBucket) { in calcAppRestrictionLevel() 1751 level = standbyBucket == STANDBY_BUCKET_RESTRICTED in calcAppRestrictionLevel() 1815 @UsageStatsManager.StandbyBuckets int standbyBucket) { in standbyBucketToRestrictionLevel() 1816 switch (standbyBucket) { in standbyBucketToRestrictionLevel()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/ |
D | AlarmManagerService.java | 2499 final int standbyBucket = mUsageStatsManagerInternal.getAppStandbyBucket( in adjustDeliveryTimeBasedOnBucketLocked() local 2504 if (standbyBucket == UsageStatsManager.STANDBY_BUCKET_RESTRICTED) { in adjustDeliveryTimeBasedOnBucketLocked() 2517 final int quotaForBucket = getQuotaForBucketLocked(standbyBucket); in adjustDeliveryTimeBasedOnBucketLocked()
|