Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/utils/quota/
DCountQuotaTracker.java81 public int countLimit; field in CountQuotaTracker.ExecutionStats
96 + "countLimit=" + countLimit + ", " in toString()
107 && this.countLimit == other.countLimit in equals()
119 result = 31 * result + countLimit; in hashCode()
196 if (stats.countInWindow == stats.countLimit) { in noteEvent()
203 } else if (stats.countLimit > 9 in noteEvent()
204 && stats.countInWindow == stats.countLimit * 4 / 5) { in noteEvent()
207 + " has reached 80% of it's count limit of " + stats.countLimit); in noteEvent()
367 return stats.countInWindow < stats.countLimit; in isUnderCountQuotaLocked()
390 final int countLimit = mMaxCategoryCounts.getOrDefault(category, Integer.MAX_VALUE); in getExecutionStatsLocked() local
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/utils/quota/
DCountQuotaTrackerTest.java323 inputStats.countLimit = expectedStats.countLimit = 3; in testUpdateExecutionStatsLocked_NoTimer()
427 expectedStats.countLimit = 10; in testGetExecutionStatsLocked_Values()
436 expectedStats.countLimit = 9; in testGetExecutionStatsLocked_Values()
445 expectedStats.countLimit = 4; in testGetExecutionStatsLocked_Values()
455 expectedStats.countLimit = 3; in testGetExecutionStatsLocked_Values()
480 expectedStats.countLimit = 10; in testGetExecutionStatsLocked_Values_BeginningOfTime()