Home
last modified time | relevance | path

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

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/utils/quota/
DCountQuotaTrackerTest.java320 ExecutionStats inputStats = new ExecutionStats(); in testUpdateExecutionStatsLocked_NoTimer() local
322 inputStats.windowSizeMs = expectedStats.windowSizeMs = 12 * HOUR_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
323 inputStats.countLimit = expectedStats.countLimit = 3; in testUpdateExecutionStatsLocked_NoTimer()
327 inputStats); in testUpdateExecutionStatsLocked_NoTimer()
328 assertEquals(expectedStats, inputStats); in testUpdateExecutionStatsLocked_NoTimer()
332 inputStats.windowSizeMs = expectedStats.windowSizeMs = MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
336 mQuotaTracker.updateExecutionStatsLocked(TEST_USER_ID, TEST_PACKAGE, TEST_TAG, inputStats); in testUpdateExecutionStatsLocked_NoTimer()
337 assertEquals(expectedStats, inputStats); in testUpdateExecutionStatsLocked_NoTimer()
339 inputStats.windowSizeMs = expectedStats.windowSizeMs = 3 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
342 mQuotaTracker.updateExecutionStatsLocked(TEST_USER_ID, TEST_PACKAGE, TEST_TAG, inputStats); in testUpdateExecutionStatsLocked_NoTimer()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DQuotaControllerTest.java660 ExecutionStats inputStats = new ExecutionStats(); in testUpdateExecutionStatsLocked_NoTimer() local
662 inputStats.allowedTimePerPeriodMs = 10 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
663 inputStats.windowSizeMs = expectedStats.windowSizeMs = 12 * HOUR_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
664 inputStats.jobCountLimit = expectedStats.jobCountLimit = 100; in testUpdateExecutionStatsLocked_NoTimer()
665 inputStats.sessionCountLimit = expectedStats.sessionCountLimit = 100; in testUpdateExecutionStatsLocked_NoTimer()
670 mQuotaController.updateExecutionStatsLocked(0, "com.android.test.not.run", inputStats); in testUpdateExecutionStatsLocked_NoTimer()
672 assertEquals(expectedStats, inputStats); in testUpdateExecutionStatsLocked_NoTimer()
674 inputStats.windowSizeMs = expectedStats.windowSizeMs = MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
684 mQuotaController.updateExecutionStatsLocked(0, "com.android.test", inputStats); in testUpdateExecutionStatsLocked_NoTimer()
686 assertEquals(expectedStats, inputStats); in testUpdateExecutionStatsLocked_NoTimer()
[all …]