/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/ |
D | JobSchedulerServiceTest.java | 28 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/ |
D | QuotaControllerTest.java | 175 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 …]
|
D | TimeControllerTest.java | 109 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 …]
|
D | StateControllerTest.java | 121 JobSchedulerService.sElapsedRealtimeClock = in setUp()
|
D | ConnectivityControllerTest.java | 113 JobSchedulerService.sElapsedRealtimeClock = in setUp() 152 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testCongestion() 179 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testRelaxed()
|
D | JobStatusTest.java | 86 JobSchedulerService.sElapsedRealtimeClock = in setUp() 99 final long now = JobSchedulerService.sElapsedRealtimeClock.millis(); in testFraction()
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | TimeController.java | 19 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()
|
D | BatteryController.java | 19 import static com.android.server.job.JobSchedulerService.sElapsedRealtimeClock; 192 + sElapsedRealtimeClock.millis()); in onReceiveInternal() 202 + sElapsedRealtimeClock.millis()); in onReceiveInternal() 209 + sElapsedRealtimeClock.millis()); in onReceiveInternal()
|
D | StorageController.java | 19 import static com.android.server.job.JobSchedulerService.sElapsedRealtimeClock; 139 + sElapsedRealtimeClock.millis()); in onReceiveInternal() 146 + sElapsedRealtimeClock.millis()); in onReceiveInternal()
|
D | QuotaController.java | 28 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 …]
|
D | JobStatus.java | 19 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/ |
D | DeviceIdlenessTracker.java | 19 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/ |
D | JobServiceContext.java | 19 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()
|
D | JobPackageTracker.java | 19 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()
|
D | JobStore.java | 19 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()
|
D | JobSchedulerService.java | 155 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()
|
D | JobConcurrencyManager.java | 152 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/ |
D | JobStoreTest.java | 89 JobSchedulerService.sElapsedRealtimeClock = in setUp()
|