/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/ |
D | QuotaController.java | 644 final int standbyBucket = jobStatus.getEffectiveStandbyBucket(); in isWithinQuotaLocked() local 652 jobStatus.getSourceUserId(), jobStatus.getSourcePackageName(), standbyBucket); in isWithinQuotaLocked() 657 final int standbyBucket) { in isWithinQuotaLocked() argument 658 if (standbyBucket == NEVER_INDEX) return false; in isWithinQuotaLocked() 664 if (standbyBucket != RESTRICTED_INDEX) { in isWithinQuotaLocked() 669 ExecutionStats stats = getExecutionStatsLocked(userId, packageName, standbyBucket); in isWithinQuotaLocked() 671 && isUnderJobCountQuotaLocked(stats, standbyBucket) in isWithinQuotaLocked() 672 && isUnderSessionCountQuotaLocked(stats, standbyBucket); in isWithinQuotaLocked() 676 final int standbyBucket) { in isUnderJobCountQuotaLocked() argument 682 && (stats.bgJobCountInWindow < mMaxBucketJobCounts[standbyBucket]); in isUnderJobCountQuotaLocked() [all …]
|
D | JobStatus.java | 204 private int standbyBucket; field in JobStatus 408 int sourceUserId, int standbyBucket, String tag, int numFailures, in JobStatus() argument 413 this.standbyBucket = standbyBucket; in JobStatus() 472 if (standbyBucket == RESTRICTED_INDEX) { in JobStatus() 523 int standbyBucket, String sourceTag, in JobStatus() argument 529 standbyBucket, in JobStatus() 587 int standbyBucket = JobSchedulerService.standbyBucketForPackage(jobPackage, in createFromJobInfo() local 590 standbyBucket, tag, 0, in createFromJobInfo() 789 return standbyBucket; in getStandbyBucket() 796 } else if (standbyBucket == RESTRICTED_INDEX) { in setStandbyBucket() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | QuotaControllerTest.java | 1474 final int standbyBucket = ACTIVE_INDEX; in testMaybeScheduleStartAlarmLocked_Active() local 1479 standbyBucket); in testMaybeScheduleStartAlarmLocked_Active() 1493 standbyBucket); in testMaybeScheduleStartAlarmLocked_Active() 1499 standbyBucket); in testMaybeScheduleStartAlarmLocked_Active() 1503 setStandbyBucket(standbyBucket, jobStatus); in testMaybeScheduleStartAlarmLocked_Active() 1512 standbyBucket); in testMaybeScheduleStartAlarmLocked_Active() 1525 final int standbyBucket = WORKING_INDEX; in testMaybeScheduleStartAlarmLocked_WorkingSet() local 1528 mQuotaController.maybeScheduleStartAlarmLocked(0, "com.android.test", standbyBucket); in testMaybeScheduleStartAlarmLocked_WorkingSet() 1535 mQuotaController.maybeScheduleStartAlarmLocked(0, "com.android.test", standbyBucket); in testMaybeScheduleStartAlarmLocked_WorkingSet() 1545 mQuotaController.maybeScheduleStartAlarmLocked(0, "com.android.test", standbyBucket); in testMaybeScheduleStartAlarmLocked_WorkingSet() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | AlarmManagerServiceTest.java | 498 private void testQuotasDeferralOnSet(int standbyBucket) throws Exception { in testQuotasDeferralOnSet() argument 499 final int quota = mService.getQuotaForBucketLocked(standbyBucket); in testQuotasDeferralOnSet() 501 anyLong())).thenReturn(standbyBucket); in testQuotasDeferralOnSet() 516 private void testQuotasDeferralOnExpiration(int standbyBucket) throws Exception { in testQuotasDeferralOnExpiration() argument 517 final int quota = mService.getQuotaForBucketLocked(standbyBucket); in testQuotasDeferralOnExpiration() 519 anyLong())).thenReturn(standbyBucket); in testQuotasDeferralOnExpiration() 536 private void testQuotasNoDeferral(int standbyBucket) throws Exception { in testQuotasNoDeferral() argument 537 final int quota = mService.getQuotaForBucketLocked(standbyBucket); in testQuotasNoDeferral() 539 anyLong())).thenReturn(standbyBucket); in testQuotasNoDeferral()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/ |
D | AppStandbyController.java | 985 final int standbyBucket; in forceIdleState() local 987 standbyBucket = mAppIdleHistory.setIdle(packageName, userId, idle, elapsedRealtime); in forceIdleState() 993 maybeInformListeners(packageName, userId, elapsedRealtime, standbyBucket, in forceIdleState()
|
/frameworks/base/services/core/java/com/android/server/ |
D | AlarmManagerService.java | 1881 final int standbyBucket = mUsageStatsManagerInternal.getAppStandbyBucket( in adjustDeliveryTimeBasedOnBucketLocked() local 1888 if (standbyBucket == UsageStatsManager.STANDBY_BUCKET_RESTRICTED) { in adjustDeliveryTimeBasedOnBucketLocked() 1906 final int quotaForBucket = getQuotaForBucketLocked(standbyBucket); in adjustDeliveryTimeBasedOnBucketLocked()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActivityManagerService.java | 9068 int standbyBucket = 0; in noteWakeupAlarm() local 9080 standbyBucket = mUsageStatsService.getAppStandbyBucket(workSourcePackage, in noteWakeupAlarm() 9085 sourcePkg, standbyBucket); in noteWakeupAlarm() 9089 + standbyBucket + " wsName=" + workSourcePackage + ")]"); in noteWakeupAlarm() 9093 standbyBucket = mUsageStatsService.getAppStandbyBucket(sourcePkg, in noteWakeupAlarm() 9097 null, tag, sourcePkg, standbyBucket); in noteWakeupAlarm() 9101 + standbyBucket + "]"); in noteWakeupAlarm()
|