Searched refs:remainingTimeMs (Results 1 – 1 of 1) sorted by relevance
1840 final long remainingTimeMs = mQcConstants.ALLOWED_TIME_PER_PERIOD_MS - contributionMs; in runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_AllowedTimeCheck() local1848 createTimingSession(now - HOUR_IN_MILLIS, remainingTimeMs, 2)); in runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_AllowedTimeCheck()1870 final long remainingTimeMs = mQcConstants.MAX_EXECUTION_TIME_MS - contributionMs; in runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_MaxTimeCheck() local1878 createTimingSession(now - 20 * HOUR_IN_MILLIS, remainingTimeMs, 300)); in runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_MaxTimeCheck()2453 final long remainingTimeMs = 20 * SECOND_IN_MILLIS; in testTracking_OutOfQuota_ForegroundAndBackground() local2457 10 * MINUTE_IN_MILLIS - remainingTimeMs, 1)); in testTracking_OutOfQuota_ForegroundAndBackground()2465 advanceElapsedClock(remainingTimeMs / 2); in testTracking_OutOfQuota_ForegroundAndBackground()2470 advanceElapsedClock(remainingTimeMs); in testTracking_OutOfQuota_ForegroundAndBackground()2474 timeout(remainingTimeMs + 2 * SECOND_IN_MILLIS).times(0)) in testTracking_OutOfQuota_ForegroundAndBackground()2476 assertEquals(remainingTimeMs / 2, mQuotaController.getRemainingExecutionTimeLocked(jobBg)); in testTracking_OutOfQuota_ForegroundAndBackground()[all …]