Home
last modified time | relevance | path

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

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/utils/quota/
DCountQuotaTrackerTest.java322 inputStats.windowSizeMs = expectedStats.windowSizeMs = 12 * HOUR_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
332 inputStats.windowSizeMs = expectedStats.windowSizeMs = MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
339 inputStats.windowSizeMs = expectedStats.windowSizeMs = 3 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
345 inputStats.windowSizeMs = expectedStats.windowSizeMs = 4 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
351 inputStats.windowSizeMs = expectedStats.windowSizeMs = 49 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
359 inputStats.windowSizeMs = expectedStats.windowSizeMs = 50 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
365 inputStats.windowSizeMs = expectedStats.windowSizeMs = HOUR_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
376 inputStats.windowSizeMs = expectedStats.windowSizeMs = 2 * HOUR_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
383 inputStats.windowSizeMs = expectedStats.windowSizeMs = 5 * HOUR_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
390 inputStats.windowSizeMs = expectedStats.windowSizeMs = 6 * HOUR_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
[all …]
/frameworks/base/services/core/java/com/android/server/utils/quota/
DCountQuotaTracker.java79 public long windowSizeMs; field in CountQuotaTracker.ExecutionStats
95 + "windowSizeMs=" + windowSizeMs + ", " in toString()
106 && this.windowSizeMs == other.windowSizeMs in equals()
118 result = 31 * result + Long.hashCode(windowSizeMs); in hashCode()
195 nowElapsed + stats.windowSizeMs); in noteEvent()
197 final long windowEdgeElapsed = nowElapsed - stats.windowSizeMs; in noteEvent()
201 stats.inQuotaTimeElapsed = times.peekFirst() + stats.windowSizeMs; in noteEvent()
392 || stats.windowSizeMs != countWindowSizeMs in getExecutionStatsLocked()
395 stats.windowSizeMs = countWindowSizeMs; in getExecutionStatsLocked()
430 final long eventStartWindowElapsed = nowElapsed - stats.windowSizeMs; in updateExecutionStatsLocked()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DQuotaControllerTest.java559 expectedStats.windowSizeMs = 24 * HOUR_IN_MILLIS; in testOnAppRemovedLocked()
620 expectedStats.windowSizeMs = 24 * HOUR_IN_MILLIS; in testOnUserRemovedLocked()
663 inputStats.windowSizeMs = expectedStats.windowSizeMs = 12 * HOUR_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
674 inputStats.windowSizeMs = expectedStats.windowSizeMs = MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
688 inputStats.windowSizeMs = expectedStats.windowSizeMs = 3 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
701 inputStats.windowSizeMs = expectedStats.windowSizeMs = 5 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
715 inputStats.windowSizeMs = expectedStats.windowSizeMs = 49 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
729 inputStats.windowSizeMs = expectedStats.windowSizeMs = 50 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
742 inputStats.windowSizeMs = expectedStats.windowSizeMs = HOUR_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
758 inputStats.windowSizeMs = expectedStats.windowSizeMs = 2 * HOUR_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DQuotaController.java141 public long windowSizeMs; field in QuotaController.ExecutionStats
201 + "windowSizeMs=" + windowSizeMs + ", " in toString()
223 && this.windowSizeMs == other.windowSizeMs in equals()
249 result = 31 * result + hashLong(windowSizeMs); in hashCode()
1076 if (stats.windowSizeMs == mAllowedTimePerPeriodMs[standbyBucket]) { in getTimeUntilQuotaConsumedLocked()
1082 final long startWindowElapsed = nowElapsed - stats.windowSizeMs; in getTimeUntilQuotaConsumedLocked()
1091 if (stats.windowSizeMs == mAllowedTimePerPeriodMs[standbyBucket]) { in getTimeUntilQuotaConsumedLocked()
1263 || stats.windowSizeMs != bucketWindowSizeMs in getExecutionStatsLocked()
1268 stats.windowSizeMs = bucketWindowSizeMs; in getExecutionStatsLocked()
1308 nowElapsed - allowedTimeIntoQuotaMs + stats.windowSizeMs); in updateExecutionStatsLocked()
[all …]