Home
last modified time | relevance | path

Searched refs:WORKING_INDEX (Results 1 – 7 of 7) sorted by relevance

/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
H A DQuotaControllerTest.java333 case WORKING_INDEX: in bucketIndexToUsageStatsBucket()
1560 setStandbyBucket(WORKING_INDEX); in testGetTimeUntilQuotaConsumedLocked_BucketWindow()
1595 setStandbyBucket(WORKING_INDEX); in testGetTimeUntilQuotaConsumedLocked_MaxExecution()
1612 setStandbyBucket(WORKING_INDEX); in testGetTimeUntilQuotaConsumedLocked_MaxExecution()
1629 setStandbyBucket(WORKING_INDEX); in testGetTimeUntilQuotaConsumedLocked_MaxExecution()
1766 setStandbyBucket(WORKING_INDEX); in testGetTimeUntilQuotaConsumedLocked_EdgeOfWindow_BucketWindow()
1847 setStandbyBucket(WORKING_INDEX); in testGetTimeUntilQuotaConsumedLocked_QuotaBump()
5045 setStandbyBucket(WORKING_INDEX); in testGetTimeUntilEJQuotaConsumedLocked_SessionsAtEdgeOfWindow()
5098 setStandbyBucket(WORKING_INDEX); in testGetTimeUntilEJQuotaConsumedLocked_OneSessionStraddlesEdge()
5339 setStandbyBucket(WORKING_INDEX); in testMaybeScheduleStartAlarmLocked_Ej_BucketChange()
[all …]
H A DJobStatusTest.java29 import static com.android.server.job.JobSchedulerService.WORKING_INDEX;
127 effectiveBucket.put(WORKING_INDEX, WORKING_INDEX); in assertEffectiveBucketForMediaExemption()
128 effectiveBucket.put(FREQUENT_INDEX, exemptionGranted ? WORKING_INDEX : FREQUENT_INDEX); in assertEffectiveBucketForMediaExemption()
129 effectiveBucket.put(RARE_INDEX, exemptionGranted ? WORKING_INDEX : RARE_INDEX); in assertEffectiveBucketForMediaExemption()
602 assertEquals(WORKING_INDEX, job.getEffectiveStandbyBucket()); in testGetEffectiveStandbyBucket_buggyApp()
605 job.setStandbyBucket(WORKING_INDEX); in testGetEffectiveStandbyBucket_buggyApp()
606 assertEquals(WORKING_INDEX, job.getEffectiveStandbyBucket()); in testGetEffectiveStandbyBucket_buggyApp()
/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
H A DQuotaController.java29 import static com.android.server.job.JobSchedulerService.WORKING_INDEX;
808 return Math.max(mEJLimitsMs[WORKING_INDEX] / 2, in getMaxJobExecutionTimeMsLocked()
3578 if (mMaxBucketJobCounts[WORKING_INDEX] != newWorkingMaxJobCount) {
3579 mMaxBucketJobCounts[WORKING_INDEX] = newWorkingMaxJobCount;
3838 if (mAllowedTimePerPeriodMs[WORKING_INDEX] != newAllowedTimeWorkingMs) {
3839 mAllowedTimePerPeriodMs[WORKING_INDEX] = newAllowedTimeWorkingMs;
3884 long newWorkingPeriodMs = Math.max(mAllowedTimePerPeriodMs[WORKING_INDEX],
3886 if (mBucketPeriodsMs[WORKING_INDEX] != newWorkingPeriodMs) {
3887 mBucketPeriodsMs[WORKING_INDEX] = newWorkingPeriodMs;
4015 if (mEJLimitsMs[WORKING_INDEX] != newWorkingLimitMs) {
[all …]
H A DJobStatus.java25 import static com.android.server.job.JobSchedulerService.WORKING_INDEX;
1187 bucketWithMediaExemption = Math.min(WORKING_INDEX, actualBucket); in getEffectiveStandbyBucket()
1195 if (isBuggy && bucketWithMediaExemption < WORKING_INDEX) { in getEffectiveStandbyBucket()
1203 return WORKING_INDEX; in getEffectiveStandbyBucket()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/
H A DAlarmManagerServiceTest.java94 import static com.android.server.alarm.AlarmManagerService.WORKING_INDEX;
694 mDeviceConfigKeys.add(mService.mConstants.KEYS_APP_STANDBY_QUOTAS[WORKING_INDEX]);
699 .getInt(eq(mService.mConstants.KEYS_APP_STANDBY_QUOTAS[WORKING_INDEX]), anyInt());
/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/
H A DAlarmManagerService.java225 static final int WORKING_INDEX = 1; field in AlarmManagerService
1189 for (int i = WORKING_INDEX; i < KEYS_APP_STANDBY_QUOTAS.length; i++) { in updateStandbyQuotasLocked()
2407 index = WORKING_INDEX; in getQuotaForBucketLocked()
/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
H A DJobSchedulerService.java458 public static final int WORKING_INDEX = 1;
4176 return WORKING_INDEX;