Home
last modified time | relevance | path

Searched refs:sElapsedRealtimeClock (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobSchedulerServiceTest.java28 import static com.android.server.job.JobSchedulerService.sElapsedRealtimeClock;
133 JobSchedulerService.sElapsedRealtimeClock = in setUp()
151 JobSchedulerService.sElapsedRealtimeClock = getAdvancedClock( in advanceElapsedClock()
152 JobSchedulerService.sElapsedRealtimeClock, incrementMs); in advanceElapsedClock()
171 final long now = sElapsedRealtimeClock.millis(); in testGetRescheduleJobForPeriodic_minPeriod()
200 final long now = sElapsedRealtimeClock.millis(); in testGetRescheduleJobForPeriodic_largePeriod()
221 final long now = sElapsedRealtimeClock.millis(); in testGetRescheduleJobForPeriodic_insideWindow()
270 long now = sElapsedRealtimeClock.millis(); in testGetRescheduleJobForPeriodic_closeToEndOfWindow()
294 now = sElapsedRealtimeClock.millis(); in testGetRescheduleJobForPeriodic_closeToEndOfWindow()
324 now = sElapsedRealtimeClock.millis(); in testGetRescheduleJobForPeriodic_closeToEndOfWindow()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DQuotaControllerTest.java175 JobSchedulerService.sElapsedRealtimeClock = getAdvancedClock( in setUp()
215 JobSchedulerService.sElapsedRealtimeClock = getAdvancedClock( in advanceElapsedClock()
216 JobSchedulerService.sElapsedRealtimeClock, incrementMs); in advanceElapsedClock()
334 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testDeleteObsoleteSessionsLocked()
366 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testOnAppRemovedLocked()
406 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testOnUserRemovedLocked()
443 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testUpdateExecutionStatsLocked_NoTimer()
626 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testGetExecutionStatsLocked_Values()
703 advanceElapsedClock(-JobSchedulerService.sElapsedRealtimeClock.millis()); in testGetExecutionStatsLocked_Values_BeginningOfTime()
757 JobSchedulerService.sElapsedRealtimeClock.millis(), in testGetExecutionStatsLocked_CoalescingSessions()
[all …]
DTimeControllerTest.java109 JobSchedulerService.sElapsedRealtimeClock = in setUp()
130 JobSchedulerService.sElapsedRealtimeClock = getAdvancedClock( in advanceElapsedClock()
131 JobSchedulerService.sElapsedRealtimeClock, incrementMs); in advanceElapsedClock()
180 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in runTestMaybeStartTrackingJobLocked_DelayInOrder()
207 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testMaybeStartTrackingJobLocked_DelayInOrder_WithSkipping_SomeNotReady()
256 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in runTestMaybeStartTrackingJobLocked_DelayReverseOrder()
285 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testMaybeStartTrackingJobLocked_DelayReverseOrder_WithSkipping_SomeNotReady()
336 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in runTestMaybeStartTrackingJobLocked_DeadlineInOrder()
363 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testMaybeStartTrackingJobLocked_DeadlineInOrder_WithSkipping_SomeNotReady()
412 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in runTestMaybeStartTrackingJobLocked_DeadlineReverseOrder()
[all …]
DStateControllerTest.java121 JobSchedulerService.sElapsedRealtimeClock = in setUp()
DConnectivityControllerTest.java113 JobSchedulerService.sElapsedRealtimeClock = in setUp()
152 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testCongestion()
179 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testRelaxed()
DJobStatusTest.java86 JobSchedulerService.sElapsedRealtimeClock = in setUp()
99 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testFraction()
/frameworks/base/services/core/java/com/android/server/job/controllers/
DTimeController.java19 import static com.android.server.job.JobSchedulerService.sElapsedRealtimeClock;
108 final long nowElapsedMillis = sElapsedRealtimeClock.millis(); in maybeStartTrackingJobLocked()
175 final long nowElapsedMillis = sElapsedRealtimeClock.millis(); in evaluateStateLocked()
247 final long nowElapsedMillis = sElapsedRealtimeClock.millis(); in checkExpiredDeadlinesAndResetAlarm()
305 final long nowElapsedMillis = sElapsedRealtimeClock.millis(); in checkExpiredDelaysAndResetAlarm()
416 return Math.max(proposedAlarmTimeElapsedMillis, sElapsedRealtimeClock.millis()); in maybeAdjustAlarmTime()
539 final long nowElapsed = sElapsedRealtimeClock.millis(); in dumpControllerStateLocked()
580 final long nowElapsed = sElapsedRealtimeClock.millis(); in dumpControllerStateLocked()
DBatteryController.java19 import static com.android.server.job.JobSchedulerService.sElapsedRealtimeClock;
192 + sElapsedRealtimeClock.millis()); in onReceiveInternal()
202 + sElapsedRealtimeClock.millis()); in onReceiveInternal()
209 + sElapsedRealtimeClock.millis()); in onReceiveInternal()
DStorageController.java19 import static com.android.server.job.JobSchedulerService.sElapsedRealtimeClock;
139 + sElapsedRealtimeClock.millis()); in onReceiveInternal()
146 + sElapsedRealtimeClock.millis()); in onReceiveInternal()
DQuotaController.java28 import static com.android.server.job.JobSchedulerService.sElapsedRealtimeClock;
786 final long now = sElapsedRealtimeClock.millis(); in isUnderJobCountQuotaLocked()
796 final long now = sElapsedRealtimeClock.millis(); in isUnderSessionCountQuotaLocked()
813 userId, sElapsedRealtimeClock.millis()); in getRemainingExecutionTimeLocked()
844 final long nowElapsed = sElapsedRealtimeClock.millis(); in getTimeUntilQuotaConsumedLocked()
953 || stats.expirationTimeElapsed <= sElapsedRealtimeClock.millis() in getExecutionStatsLocked()
979 final long nowElapsed = sElapsedRealtimeClock.millis(); in updateExecutionStatsLocked()
1087 final long nowElapsed = sElapsedRealtimeClock.millis(); in invalidateAllExecutionStatsLocked()
1105 final long nowElapsed = sElapsedRealtimeClock.millis(); in invalidateAllExecutionStatsLocked()
1117 final long now = sElapsedRealtimeClock.millis(); in incrementJobCount()
[all …]
DJobStatus.java19 import static com.android.server.job.JobSchedulerService.sElapsedRealtimeClock;
511 final long elapsedNow = sElapsedRealtimeClock.millis(); in createFromJobInfo()
906 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in getFractionRunTime()
1180 long now = sElapsedRealtimeClock.millis(); in toString()
/frameworks/base/services/core/java/com/android/server/job/controllers/idle/
DDeviceIdlenessTracker.java19 import static com.android.server.job.JobSchedulerService.sElapsedRealtimeClock;
147 final long nowElapsed = sElapsedRealtimeClock.millis(); in onReceive()
164 Slog.v(TAG, "Idle trigger fired @ " + sElapsedRealtimeClock.millis()); in handleIdleTrigger()
/frameworks/base/services/core/java/com/android/server/job/
DJobServiceContext.java19 import static com.android.server.job.JobSchedulerService.sElapsedRealtimeClock;
212 (job.getLatestRunTimeElapsed() < sElapsedRealtimeClock.millis()); in executeRunnableJob()
227 mExecutionStartTimeElapsed = sElapsedRealtimeClock.millis(); in executeRunnableJob()
489 TimeUtils.formatDuration(sElapsedRealtimeClock.millis() - cb.mStoppedTime, sb); in assertCallerLocked()
518 TimeUtils.formatDuration(sElapsedRealtimeClock.millis() in handleMessage()
812 mStoppedTime = sElapsedRealtimeClock.millis(); in applyStoppedReasonLocked()
849 mTimeoutElapsed = sElapsedRealtimeClock.millis() + timeoutMillis; in scheduleOpTimeOutLocked()
DJobPackageTracker.java19 import static com.android.server.job.JobSchedulerService.sElapsedRealtimeClock;
67 mEventTimes[index] = sElapsedRealtimeClock.millis(); in addEvent()
137 mStartElapsedTime = sElapsedRealtimeClock.millis(); in DataSet()
524 final long nowElapsed = sElapsedRealtimeClock.millis(); in dump()
545 final long nowElapsed = sElapsedRealtimeClock.millis(); in dump()
574 final long now = sElapsedRealtimeClock.millis(); in dumpHistory()
625 final long now = sElapsedRealtimeClock.millis(); in dumpHistory()
DJobStore.java19 import static com.android.server.job.JobSchedulerService.sElapsedRealtimeClock;
182 final long elapsedNow = sElapsedRealtimeClock.millis(); in getRtcCorrectedJobsLocked()
382 final long startElapsed = sElapsedRealtimeClock.millis();
404 Slog.v(TAG, "Finished writing, took " + (sElapsedRealtimeClock.millis()
572 final long nowElapsed = sElapsedRealtimeClock.millis();
655 long now = sElapsedRealtimeClock.millis(); in run()
832 final long elapsedNow = sElapsedRealtimeClock.millis(); in restoreJobFromXml()
DJobSchedulerService.java155 public static Clock sElapsedRealtimeClock = SystemClock.elapsedRealtimeClock(); field in JobSchedulerService
248 long mLastHeartbeatTime = sElapsedRealtimeClock.millis();
1483 jobStatus.enqueueTime = sElapsedRealtimeClock.millis(); in startTrackingJobLocked()
1572 final long elapsedNowMillis = sElapsedRealtimeClock.millis(); in getRescheduleJobForFailureLocked()
1656 final long elapsedNow = sElapsedRealtimeClock.millis(); in getRescheduleJobForPeriodic()
2139 final long sinceLast = sElapsedRealtimeClock.millis() - mLastHeartbeatTime; in onAlarm()
2195 final long now = sElapsedRealtimeClock.millis(); in setNextHeartbeatAlarm()
2312 job.setWhenStandbyDeferred(sElapsedRealtimeClock.millis()); in isReadyToBeExecutedLocked()
3245 final long nowElapsed = sElapsedRealtimeClock.millis(); in dumpInternal()
3441 final long nowElapsed = sElapsedRealtimeClock.millis(); in dumpInternalProto()
DJobConcurrencyManager.java152 final long nowRealtime = JobSchedulerService.sElapsedRealtimeClock.millis(); in onInteractiveStateChanged()
190 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in rampUpForScreenOff()
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DJobStoreTest.java89 JobSchedulerService.sElapsedRealtimeClock = in setUp()