Home
last modified time | relevance | path

Searched refs:executionTimeInWindowMs (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DQuotaControllerTest.java478 expectedStats.executionTimeInWindowMs = 0; in testUpdateExecutionStatsLocked_NoTimer()
489 expectedStats.executionTimeInWindowMs = 2 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
501 expectedStats.executionTimeInWindowMs = 4 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
513 expectedStats.executionTimeInWindowMs = 4 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
524 expectedStats.executionTimeInWindowMs = 5 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
537 expectedStats.executionTimeInWindowMs = 6 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
551 expectedStats.executionTimeInWindowMs = 11 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
564 expectedStats.executionTimeInWindowMs = 12 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
579 expectedStats.executionTimeInWindowMs = 22 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
597 expectedStats.executionTimeInWindowMs = 22 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DQuotaController.java182 public long executionTimeInWindowMs; field in QuotaController.ExecutionStats
238 + "executionTimeInWindow=" + executionTimeInWindowMs + ", " in toString()
259 && this.executionTimeInWindowMs == other.executionTimeInWindowMs in equals()
284 result = 31 * result + hashLong(executionTimeInWindowMs); in hashCode()
723 return Math.min(mAllowedTimePerPeriodMs - stats.executionTimeInWindowMs, in getRemainingExecutionTimeLocked()
749 final long allowedTimeRemainingMs = mAllowedTimePerPeriodMs - stats.executionTimeInWindowMs; in getTimeUntilQuotaConsumedLocked()
862 stats.executionTimeInWindowMs = 0; in updateExecutionStatsLocked()
880 stats.executionTimeInWindowMs = in updateExecutionStatsLocked()
886 if (stats.executionTimeInWindowMs >= mAllowedTimeIntoQuotaMs) { in updateExecutionStatsLocked()
931 stats.executionTimeInWindowMs += session.endTimeElapsed - start; in updateExecutionStatsLocked()
[all …]