Home
last modified time | relevance | path

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

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DQuotaControllerTest.java388 expectedStats.windowSizeMs = 24 * HOUR_IN_MILLIS; in testOnAppRemovedLocked()
428 expectedStats.windowSizeMs = 24 * HOUR_IN_MILLIS; in testOnUserRemovedLocked()
462 inputStats.windowSizeMs = expectedStats.windowSizeMs = 12 * HOUR_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
470 inputStats.windowSizeMs = expectedStats.windowSizeMs = MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
482 inputStats.windowSizeMs = expectedStats.windowSizeMs = 3 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
493 inputStats.windowSizeMs = expectedStats.windowSizeMs = 5 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
505 inputStats.windowSizeMs = expectedStats.windowSizeMs = 49 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
517 inputStats.windowSizeMs = expectedStats.windowSizeMs = 50 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
528 inputStats.windowSizeMs = expectedStats.windowSizeMs = HOUR_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
542 inputStats.windowSizeMs = expectedStats.windowSizeMs = 2 * HOUR_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
[all …]
/frameworks/base/services/core/java/com/android/server/job/controllers/
DQuotaController.java259 public long windowSizeMs; field in QuotaController.ExecutionStats
317 + "windowSizeMs=" + windowSizeMs + ", " in toString()
337 && this.windowSizeMs == other.windowSizeMs in equals()
362 result = 31 * result + hashLong(windowSizeMs); in hashCode()
856 final long startWindowElapsed = nowElapsed - stats.windowSizeMs; in getTimeUntilQuotaConsumedLocked()
864 if (stats.windowSizeMs == mAllowedTimePerPeriodMs) { in getTimeUntilQuotaConsumedLocked()
954 || stats.windowSizeMs != bucketWindowSizeMs in getExecutionStatsLocked()
958 stats.windowSizeMs = bucketWindowSizeMs; in getExecutionStatsLocked()
990 nowElapsed - mAllowedTimeIntoQuotaMs + stats.windowSizeMs); in updateExecutionStatsLocked()
1003 final long startWindowElapsed = nowElapsed - stats.windowSizeMs; in updateExecutionStatsLocked()
[all …]