Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/utils/quota/
DCountQuotaTracker.java90 public long inQuotaTimeElapsed; field in CountQuotaTracker.ExecutionStats
98 + "inQuotaTime=" + inQuotaTimeElapsed; in toString()
109 && this.inQuotaTimeElapsed == other.inQuotaTimeElapsed; in equals()
121 result = 31 * result + Long.hashCode(inQuotaTimeElapsed); in hashCode()
201 stats.inQuotaTimeElapsed = times.peekFirst() + stats.windowSizeMs; in noteEvent()
291 return getExecutionStatsLocked(userId, packageName, tag).inQuotaTimeElapsed; in getInQuotaTimeElapsedLocked()
411 stats.inQuotaTimeElapsed = Long.MAX_VALUE; in updateExecutionStatsLocked()
413 stats.inQuotaTimeElapsed = 0; in updateExecutionStatsLocked()
441 stats.inQuotaTimeElapsed = Math.max(stats.inQuotaTimeElapsed, in updateExecutionStatsLocked()
796 stats.inQuotaTimeElapsed); in dump()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DQuotaController.java168 public long inQuotaTimeElapsed; field in QuotaController.ExecutionStats
209 + "inQuotaTime=" + inQuotaTimeElapsed + ", " in toString()
231 && this.inQuotaTimeElapsed == other.inQuotaTimeElapsed in equals()
257 result = 31 * result + hashLong(inQuotaTimeElapsed); in hashCode()
1288 stats.inQuotaTimeElapsed = Long.MAX_VALUE; in updateExecutionStatsLocked()
1290 stats.inQuotaTimeElapsed = 0; in updateExecutionStatsLocked()
1307 stats.inQuotaTimeElapsed = Math.max(stats.inQuotaTimeElapsed, in updateExecutionStatsLocked()
1312 stats.inQuotaTimeElapsed = Math.max(stats.inQuotaTimeElapsed, inQuotaTime); in updateExecutionStatsLocked()
1316 stats.inQuotaTimeElapsed = Math.max(stats.inQuotaTimeElapsed, inQuotaTime); in updateExecutionStatsLocked()
1381 stats.inQuotaTimeElapsed = Math.max(stats.inQuotaTimeElapsed, in updateExecutionStatsLocked()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/utils/quota/
DCountQuotaTrackerTest.java372 expectedStats.inQuotaTimeElapsed = now; in testUpdateExecutionStatsLocked_NoTimer()
379 expectedStats.inQuotaTimeElapsed = now + HOUR_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
386 expectedStats.inQuotaTimeElapsed = now + 4 * HOUR_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
393 expectedStats.inQuotaTimeElapsed = now + 5 * HOUR_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
447 expectedStats.inQuotaTimeElapsed = now + HOUR_IN_MILLIS; in testGetExecutionStatsLocked_Values()
457 expectedStats.inQuotaTimeElapsed = now + 19 * HOUR_IN_MILLIS; in testGetExecutionStatsLocked_Values()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DQuotaControllerTest.java752 expectedStats.inQuotaTimeElapsed = now + 11 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
768 expectedStats.inQuotaTimeElapsed = now + 5 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
785 expectedStats.inQuotaTimeElapsed = now + 65 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
800 expectedStats.inQuotaTimeElapsed = now + 4 * HOUR_IN_MILLIS + 5 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
820 expectedStats.inQuotaTimeElapsed = now + 6 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS in testUpdateExecutionStatsLocked_NoTimer()
839 expectedStats.inQuotaTimeElapsed = now + 6 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS in testUpdateExecutionStatsLocked_NoTimer()
897 expectedStats.inQuotaTimeElapsed = in testUpdateExecutionStatsLocked_WithTimer()
922 expectedStats.inQuotaTimeElapsed = in testUpdateExecutionStatsLocked_WithTimer()
977 expectedStats.inQuotaTimeElapsed = now + 3 * MINUTE_IN_MILLIS in testGetExecutionStatsLocked_Values()
994 expectedStats.inQuotaTimeElapsed = now + 6 * HOUR_IN_MILLIS + 3 * MINUTE_IN_MILLIS in testGetExecutionStatsLocked_Values()
[all …]