Searched refs:getRemainingExecutionTimeLocked (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/ |
D | QuotaController.java | 639 return getRemainingExecutionTimeLocked(jobStatus); in getMaxJobExecutionTimeMsLocked() 670 return getRemainingExecutionTimeLocked(stats) > 0 in isWithinQuotaLocked() 695 long getRemainingExecutionTimeLocked(@NonNull final JobStatus jobStatus) { in getRemainingExecutionTimeLocked() method in QuotaController 696 return getRemainingExecutionTimeLocked(jobStatus.getSourceUserId(), in getRemainingExecutionTimeLocked() 702 long getRemainingExecutionTimeLocked(final int userId, @NonNull final String packageName) { in getRemainingExecutionTimeLocked() method in QuotaController 705 return getRemainingExecutionTimeLocked(userId, packageName, standbyBucket); in getRemainingExecutionTimeLocked() 713 private long getRemainingExecutionTimeLocked(final int userId, in getRemainingExecutionTimeLocked() method in QuotaController 718 return getRemainingExecutionTimeLocked( in getRemainingExecutionTimeLocked() 722 private long getRemainingExecutionTimeLocked(@NonNull ExecutionStats stats) { in getRemainingExecutionTimeLocked() method in QuotaController 1297 + getRemainingExecutionTimeLocked(userId, packageName, standbyBucket) in maybeScheduleStartAlarmLocked() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | QuotaControllerTest.java | 1110 mQuotaController.getRemainingExecutionTimeLocked(SOURCE_USER_ID, SOURCE_PACKAGE)); in testGetTimeUntilQuotaConsumedLocked_BucketWindow() 1116 mQuotaController.getRemainingExecutionTimeLocked(SOURCE_USER_ID, SOURCE_PACKAGE)); in testGetTimeUntilQuotaConsumedLocked_BucketWindow() 1122 mQuotaController.getRemainingExecutionTimeLocked(SOURCE_USER_ID, SOURCE_PACKAGE)); in testGetTimeUntilQuotaConsumedLocked_BucketWindow() 1130 mQuotaController.getRemainingExecutionTimeLocked(SOURCE_USER_ID, SOURCE_PACKAGE)); in testGetTimeUntilQuotaConsumedLocked_BucketWindow() 1148 mQuotaController.getRemainingExecutionTimeLocked(SOURCE_USER_ID, SOURCE_PACKAGE)); in testGetTimeUntilQuotaConsumedLocked_MaxExecution() 1161 mQuotaController.getRemainingExecutionTimeLocked(SOURCE_USER_ID, SOURCE_PACKAGE)); in testGetTimeUntilQuotaConsumedLocked_MaxExecution() 1173 mQuotaController.getRemainingExecutionTimeLocked(SOURCE_USER_ID, SOURCE_PACKAGE)); in testGetTimeUntilQuotaConsumedLocked_MaxExecution() 1199 mQuotaController.getRemainingExecutionTimeLocked(SOURCE_USER_ID, SOURCE_PACKAGE)); in testGetTimeUntilQuotaConsumedLocked_EqualTimeRemaining() 1221 mQuotaController.getRemainingExecutionTimeLocked(SOURCE_USER_ID, SOURCE_PACKAGE)); in testGetTimeUntilQuotaConsumedLocked_EqualTimeRemaining() 1510 assertEquals(0, mQuotaController.getRemainingExecutionTimeLocked(jobStatus)); in testMaybeScheduleStartAlarmLocked_Active() [all …]
|