Home
last modified time | relevance | path

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

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/utils/quota/
DCountQuotaTrackerTest.java335 expectedStats.countInWindow = 1; in testUpdateExecutionStatsLocked_NoTimer()
341 expectedStats.countInWindow = 1; in testUpdateExecutionStatsLocked_NoTimer()
347 expectedStats.countInWindow = 1; in testUpdateExecutionStatsLocked_NoTimer()
355 expectedStats.countInWindow = 2; in testUpdateExecutionStatsLocked_NoTimer()
361 expectedStats.countInWindow = 2; in testUpdateExecutionStatsLocked_NoTimer()
369 expectedStats.countInWindow = 3; in testUpdateExecutionStatsLocked_NoTimer()
378 expectedStats.countInWindow = 3; in testUpdateExecutionStatsLocked_NoTimer()
385 expectedStats.countInWindow = 4; in testUpdateExecutionStatsLocked_NoTimer()
392 expectedStats.countInWindow = 4; in testUpdateExecutionStatsLocked_NoTimer()
428 expectedStats.countInWindow = 1; in testGetExecutionStatsLocked_Values()
[all …]
/frameworks/base/services/core/java/com/android/server/utils/quota/
DCountQuotaTracker.java84 public int countInWindow; field in CountQuotaTracker.ExecutionStats
97 + "countInWindow=" + countInWindow + ", " in toString()
108 && this.countInWindow == other.countInWindow in equals()
120 result = 31 * result + countInWindow; in hashCode()
193 stats.countInWindow++; in noteEvent()
196 if (stats.countInWindow == stats.countLimit) { in noteEvent()
204 && stats.countInWindow == stats.countLimit * 4 / 5) { in noteEvent()
367 return stats.countInWindow < stats.countLimit; in isUnderCountQuotaLocked()
408 stats.countInWindow = 0; in updateExecutionStatsLocked()
437 stats.countInWindow++; in updateExecutionStatsLocked()
[all …]