Home
last modified time | relevance | path

Searched refs:standbyBucket (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DQuotaControllerTest.java1363 final int standbyBucket = ACTIVE_INDEX; in testMaybeScheduleStartAlarmLocked_Active() local
1368 standbyBucket); in testMaybeScheduleStartAlarmLocked_Active()
1382 standbyBucket); in testMaybeScheduleStartAlarmLocked_Active()
1388 standbyBucket); in testMaybeScheduleStartAlarmLocked_Active()
1392 setStandbyBucket(standbyBucket, jobStatus); in testMaybeScheduleStartAlarmLocked_Active()
1401 standbyBucket); in testMaybeScheduleStartAlarmLocked_Active()
1414 final int standbyBucket = WORKING_INDEX; in testMaybeScheduleStartAlarmLocked_WorkingSet() local
1417 mQuotaController.maybeScheduleStartAlarmLocked(0, "com.android.test", standbyBucket); in testMaybeScheduleStartAlarmLocked_WorkingSet()
1424 mQuotaController.maybeScheduleStartAlarmLocked(0, "com.android.test", standbyBucket); in testMaybeScheduleStartAlarmLocked_WorkingSet()
1434 mQuotaController.maybeScheduleStartAlarmLocked(0, "com.android.test", standbyBucket); in testMaybeScheduleStartAlarmLocked_WorkingSet()
[all …]
/frameworks/base/services/core/java/com/android/server/job/controllers/
DQuotaController.java755 final int standbyBucket = getEffectiveStandbyBucket(jobStatus); in isWithinQuotaLocked() local
763 jobStatus.getSourceUserId(), jobStatus.getSourcePackageName(), standbyBucket); in isWithinQuotaLocked()
768 final int standbyBucket) { in isWithinQuotaLocked() argument
769 if (standbyBucket == NEVER_INDEX) return false; in isWithinQuotaLocked()
778 ExecutionStats stats = getExecutionStatsLocked(userId, packageName, standbyBucket); in isWithinQuotaLocked()
780 && isUnderJobCountQuotaLocked(stats, standbyBucket) in isWithinQuotaLocked()
781 && isUnderSessionCountQuotaLocked(stats, standbyBucket); in isWithinQuotaLocked()
785 final int standbyBucket) { in isUnderJobCountQuotaLocked() argument
791 && (stats.bgJobCountInWindow < mMaxBucketJobCounts[standbyBucket]); in isUnderJobCountQuotaLocked()
795 final int standbyBucket) { in isUnderSessionCountQuotaLocked() argument
[all …]
DJobStatus.java183 private int standbyBucket; field in JobStatus
366 int sourceUserId, int standbyBucket, long heartbeat, String tag, int numFailures, in JobStatus() argument
372 this.standbyBucket = standbyBucket; in JobStatus()
465 int standbyBucket, long baseHeartbeat, String sourceTag, in JobStatus() argument
471 standbyBucket, baseHeartbeat, in JobStatus()
529 int standbyBucket = JobSchedulerService.standbyBucketForPackage(jobPackage, in createFromJobInfo() local
533 ? js.baseHeartbeatForApp(jobPackage, sourceUserId, standbyBucket) in createFromJobInfo()
536 standbyBucket, currentHeartbeat, tag, 0, in createFromJobInfo()
718 return standbyBucket; in getStandbyBucket()
726 standbyBucket = newBucket; in setStandbyBucket()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DIBatteryStats.aidl74 void noteJobStart(String name, int uid, int standbyBucket, int jobid); in noteJobStart() argument
75 void noteJobFinish(String name, int uid, int stopReason, int standbyBucket, int jobid); in noteJobFinish() argument
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DAlarmManagerServiceTest.java530 private void testQuotasDeferralOnSet(int standbyBucket) throws Exception { in testQuotasDeferralOnSet() argument
531 final int quota = mService.getQuotaForBucketLocked(standbyBucket); in testQuotasDeferralOnSet()
533 anyLong())).thenReturn(standbyBucket); in testQuotasDeferralOnSet()
548 private void testQuotasDeferralOnExpiration(int standbyBucket) throws Exception { in testQuotasDeferralOnExpiration() argument
549 final int quota = mService.getQuotaForBucketLocked(standbyBucket); in testQuotasDeferralOnExpiration()
551 anyLong())).thenReturn(standbyBucket); in testQuotasDeferralOnExpiration()
568 private void testQuotasNoDeferral(int standbyBucket) throws Exception { in testQuotasNoDeferral() argument
569 final int quota = mService.getQuotaForBucketLocked(standbyBucket); in testQuotasNoDeferral()
571 anyLong())).thenReturn(standbyBucket); in testQuotasNoDeferral()
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java471 public void noteJobStart(String name, int uid, int standbyBucket, int jobid) { in noteJobStart() argument
477 JobProtoEnums.STOP_REASON_UNKNOWN, standbyBucket, jobid); in noteJobStart()
482 public void noteJobFinish(String name, int uid, int stopReason, int standbyBucket, int jobid) { in noteJobFinish() argument
488 stopReason, standbyBucket, jobid); in noteJobFinish()
DActivityManagerService.java8551 int standbyBucket = 0; in noteWakeupAlarm() local
8563 standbyBucket = mUsageStatsService.getAppStandbyBucket(workSourcePackage, in noteWakeupAlarm()
8568 standbyBucket); in noteWakeupAlarm()
8572 + standbyBucket + " wsName=" + workSourcePackage + ")]"); in noteWakeupAlarm()
8576 standbyBucket = mUsageStatsService.getAppStandbyBucket(sourcePkg, in noteWakeupAlarm()
8580 sourcePkg, standbyBucket); in noteWakeupAlarm()
8584 + standbyBucket + "]"); in noteWakeupAlarm()
/frameworks/base/services/usage/java/com/android/server/usage/
DAppStandbyController.java970 final int standbyBucket; in forceIdleState() local
972 standbyBucket = mAppIdleHistory.setIdle(packageName, userId, idle, elapsedRealtime); in forceIdleState()
978 maybeInformListeners(packageName, userId, elapsedRealtime, standbyBucket, in forceIdleState()
/frameworks/base/services/core/java/com/android/server/
DAlarmManagerService.java1866 final int standbyBucket = mUsageStatsManagerInternal.getAppStandbyBucket( in adjustDeliveryTimeBasedOnBucketLocked() local
1873 final int quotaForBucket = getQuotaForBucketLocked(standbyBucket); in adjustDeliveryTimeBasedOnBucketLocked()
1902 final long minElapsed = lastElapsed + getMinDelayForBucketLocked(standbyBucket); in adjustDeliveryTimeBasedOnBucketLocked()