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.java464 ExecutionStats inputStats = new ExecutionStats(); in testUpdateExecutionStatsLocked_NoTimer() local
466 inputStats.windowSizeMs = expectedStats.windowSizeMs = 12 * HOUR_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
467 inputStats.jobCountLimit = expectedStats.jobCountLimit = 100; in testUpdateExecutionStatsLocked_NoTimer()
468 inputStats.sessionCountLimit = expectedStats.sessionCountLimit = 100; in testUpdateExecutionStatsLocked_NoTimer()
471 mQuotaController.updateExecutionStatsLocked(0, "com.android.test.not.run", inputStats); in testUpdateExecutionStatsLocked_NoTimer()
472 assertEquals(expectedStats, inputStats); in testUpdateExecutionStatsLocked_NoTimer()
474 inputStats.windowSizeMs = expectedStats.windowSizeMs = MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
483 mQuotaController.updateExecutionStatsLocked(0, "com.android.test", inputStats); in testUpdateExecutionStatsLocked_NoTimer()
484 assertEquals(expectedStats, inputStats); in testUpdateExecutionStatsLocked_NoTimer()
486 inputStats.windowSizeMs = expectedStats.windowSizeMs = 3 * MINUTE_IN_MILLIS; in testUpdateExecutionStatsLocked_NoTimer()
[all …]