Searched refs:windowSizeMs (Results 1 – 4 of 4) sorted by relevance
322 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 …]
80 public long windowSizeMs; field in CountQuotaTracker.ExecutionStats96 + "windowSizeMs=" + windowSizeMs + ", " in toString()107 && this.windowSizeMs == other.windowSizeMs in equals()119 result = 31 * result + Long.hashCode(windowSizeMs); in hashCode()196 nowElapsed + stats.windowSizeMs); in noteEvent()198 final long windowEdgeElapsed = nowElapsed - stats.windowSizeMs; in noteEvent()202 stats.inQuotaTimeElapsed = times.peekFirst() + stats.windowSizeMs; in noteEvent()394 || stats.windowSizeMs != countWindowSizeMs in getExecutionStatsLocked()397 stats.windowSizeMs = countWindowSizeMs; in getExecutionStatsLocked()432 final long eventStartWindowElapsed = nowElapsed - stats.windowSizeMs; in updateExecutionStatsLocked()[all …]
392 expectedStats.windowSizeMs = 24 * HOUR_IN_MILLIS; in testOnAppRemovedLocked()432 expectedStats.windowSizeMs = 24 * HOUR_IN_MILLIS; in testOnUserRemovedLocked()466 inputStats.windowSizeMs = expectedStats.windowSizeMs = 12 * HOUR_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()474 inputStats.windowSizeMs = expectedStats.windowSizeMs = MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()486 inputStats.windowSizeMs = expectedStats.windowSizeMs = 3 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()497 inputStats.windowSizeMs = expectedStats.windowSizeMs = 5 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()509 inputStats.windowSizeMs = expectedStats.windowSizeMs = 49 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()521 inputStats.windowSizeMs = expectedStats.windowSizeMs = 50 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()532 inputStats.windowSizeMs = expectedStats.windowSizeMs = HOUR_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()546 inputStats.windowSizeMs = expectedStats.windowSizeMs = 2 * HOUR_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()[all …]
177 public long windowSizeMs; field in QuotaController.ExecutionStats235 + "windowSizeMs=" + windowSizeMs + ", " in toString()256 && this.windowSizeMs == other.windowSizeMs in equals()281 result = 31 * result + hashLong(windowSizeMs); in hashCode()747 final long startWindowElapsed = nowElapsed - stats.windowSizeMs; in getTimeUntilQuotaConsumedLocked()755 if (stats.windowSizeMs == mAllowedTimePerPeriodMs) { in getTimeUntilQuotaConsumedLocked()845 || stats.windowSizeMs != bucketWindowSizeMs in getExecutionStatsLocked()849 stats.windowSizeMs = bucketWindowSizeMs; in getExecutionStatsLocked()888 nowElapsed - mAllowedTimeIntoQuotaMs + stats.windowSizeMs); in updateExecutionStatsLocked()896 nowElapsed + stats.windowSizeMs); in updateExecutionStatsLocked()[all …]