/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | TimeController.java | 346 final long nowElapsed = sElapsedRealtimeClock.millis(); in dumpControllerStateLocked() local 347 pw.println("Elapsed clock: " + nowElapsed); in dumpControllerStateLocked() 350 TimeUtils.formatDuration(mNextDelayExpiredElapsedMillis, nowElapsed, pw); in dumpControllerStateLocked() 353 TimeUtils.formatDuration(mNextJobExpiredElapsedMillis, nowElapsed, pw); in dumpControllerStateLocked() 367 TimeUtils.formatDuration(ts.getEarliestRunTime(), nowElapsed, pw); in dumpControllerStateLocked() local 373 TimeUtils.formatDuration(ts.getLatestRunTimeElapsed(), nowElapsed, pw); in dumpControllerStateLocked() local 387 final long nowElapsed = sElapsedRealtimeClock.millis(); in dumpControllerStateLocked() local 388 proto.write(StateControllerProto.TimeController.NOW_ELAPSED_REALTIME, nowElapsed); in dumpControllerStateLocked() 390 mNextDelayExpiredElapsedMillis - nowElapsed); in dumpControllerStateLocked() 392 mNextJobExpiredElapsedMillis - nowElapsed); in dumpControllerStateLocked() [all …]
|
D | IdleController.java | 193 final long nowElapsed = sElapsedRealtimeClock.millis(); in onReceive() local 194 final long when = nowElapsed + mInactivityIdleThreshold; in onReceive() 196 Slog.v(TAG, "Scheduling idle : " + action + " now:" + nowElapsed + " when=" in onReceive()
|
/frameworks/base/services/core/java/com/android/server/job/ |
D | JobPackageTracker.java | 315 void dump(PrintWriter pw, String header, String prefix, long now, long nowElapsed, in dump() argument 321 TimeUtils.formatDuration(mStartElapsedTime, nowElapsed, pw); in dump() 381 void dump(ProtoOutputStream proto, long fieldId, long now, long nowElapsed, int filterUid) { in dump() argument 386 proto.write(DataSetProto.ELAPSED_TIME_MS, nowElapsed - mStartElapsedTime); in dump() 524 final long nowElapsed = sElapsedRealtimeClock.millis(); in dump() local 535 mLastDataSets[i].dump(pw, "Historical stats", prefix, now, nowElapsed, filterUid); in dump() 539 total.dump(pw, "Current stats", prefix, now, nowElapsed, filterUid); in dump() 545 final long nowElapsed = sElapsedRealtimeClock.millis(); in dump() local 559 now, nowElapsed, filterUid); in dump() 563 now, nowElapsed, filterUid); in dump()
|
D | JobStore.java | 518 final long nowElapsed = sElapsedRealtimeClock.millis(); 522 ? nowRTC + (jobStatus.getLatestRunTimeElapsed() - nowElapsed) 528 ? nowRTC + (jobStatus.getEarliestRunTime() - nowElapsed) 557 long nowElapsed) { in convertRtcBoundsToElapsed() argument 560 ? nowElapsed + Math.max(rtcTimes.first - nowWallclock, 0) in convertRtcBoundsToElapsed() 563 ? nowElapsed + Math.max(rtcTimes.second - nowWallclock, 0) in convertRtcBoundsToElapsed() 990 final long nowElapsed = sElapsedRealtimeClock.millis(); in buildExecutionTimesFromXml() local 999 latestRunTimeElapsed = nowElapsed + maxDelayElapsed; in buildExecutionTimesFromXml() 1006 earliestRunTimeElapsed = nowElapsed + minDelayElapsed; in buildExecutionTimesFromXml()
|
D | JobSchedulerService.java | 3027 final long nowElapsed = sElapsedRealtimeClock.millis(); in dumpInternal() local 3045 TimeUtils.formatDuration(mLastHeartbeatTime, nowElapsed, pw); in dumpInternal() 3049 nowElapsed, pw); in dumpInternal() 3072 job.dump(pw, " ", true, nowElapsed); in dumpInternal() 3149 job.dump(pw, " ", false, nowElapsed); in dumpInternal() 3168 TimeUtils.formatDuration(jsc.mStoppedTime, nowElapsed, pw); in dumpInternal() 3178 TimeUtils.formatDuration(nowElapsed - jsc.getExecutionStartTimeElapsed(), pw); in dumpInternal() 3180 TimeUtils.formatDuration(jsc.getTimeoutElapsed() - nowElapsed, pw); in dumpInternal() 3182 job.dump(pw, " ", false, nowElapsed); in dumpInternal() 3210 final long nowElapsed = sElapsedRealtimeClock.millis(); in dumpInternalProto() local [all …]
|
/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
D | BatterySavingStats.java | 398 final long nowElapsed = injectCurrentTime(); in dump() local 408 pw.print(sdf.format(new Date(now - nowElapsed + mLastBatterySaverEnabledTime))); in dump() 410 TimeUtils.formatDuration(mLastBatterySaverEnabledTime, nowElapsed, pw); in dump() 418 pw.print(sdf.format(new Date(now - nowElapsed + mLastBatterySaverDisabledTime))); in dump() 420 TimeUtils.formatDuration(mLastBatterySaverDisabledTime, nowElapsed, pw); in dump()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | BurnInProtectionHelper.java | 161 final long nowElapsed = SystemClock.elapsedRealtime(); in updateBurnInProtection() local 167 final long nextElapsed = nowElapsed + (nextWall - nowWall); in updateBurnInProtection() 170 + ", next wall: " + nextWall + ", now elapsed: " + nowElapsed in updateBurnInProtection()
|
/frameworks/base/services/core/java/com/android/server/ |
D | AlarmManagerService.java | 635 public void writeToProto(ProtoOutputStream proto, long fieldId, long nowElapsed, in writeToProto() argument 643 a.writeToProto(proto, BatchProto.ALARMS, nowElapsed, nowRTC); in writeToProto() 856 final long nowElapsed = SystemClock.elapsedRealtime(); in rebatchAllAlarmsLocked() local 862 reAddAlarmLocked(batch.get(i), nowElapsed, doValidate); in rebatchAllAlarmsLocked() local 928 void reAddAlarmLocked(Alarm a, long nowElapsed, boolean doValidate) { in reAddAlarmLocked() argument 941 : maxTriggerTime(nowElapsed, whenElapsed, a.repeatInterval); in reAddAlarmLocked() 1098 final long nowElapsed = SystemClock.elapsedRealtime(); in restorePendingWhileIdleAlarmsLocked() local 1101 reAddAlarmLocked(a, nowElapsed, false); in restorePendingWhileIdleAlarmsLocked() 1488 final long nowElapsed = SystemClock.elapsedRealtime(); in setImpl() local 1491 final long minTrigger = nowElapsed + mConstants.MIN_FUTURITY; in setImpl() [all …]
|
D | AppOpsService.java | 3042 final long nowElapsed = SystemClock.elapsedRealtime(); in dump() local 3369 TimeUtils.formatDuration(nowElapsed-op.startRealtime, pw); in dump()
|
/frameworks/base/core/java/android/app/usage/ |
D | UsageStatsManagerInternal.java | 119 @UserIdInt int userId, long nowElapsed); in getAppStandbyBucket() argument
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActiveServices.java | 877 boolean foregroundAppShownEnoughLocked(ActiveForegroundApp aa, long nowElapsed) { in foregroundAppShownEnoughLocked() argument 892 if (nowElapsed >= minTime) { in foregroundAppShownEnoughLocked() 899 long reportTime = nowElapsed + mAm.mConstants.FGSERVICE_MIN_REPORT_TIME; in foregroundAppShownEnoughLocked() 901 if (DEBUG_FOREGROUND_SERVICE) Slog.d(TAG, "NO -- wait " + (aa.mHideTime-nowElapsed) in foregroundAppShownEnoughLocked() 907 if (nowElapsed >= minTime) { in foregroundAppShownEnoughLocked() 917 if (DEBUG_FOREGROUND_SERVICE) Slog.d(TAG, "NO -- wait " + (aa.mHideTime-nowElapsed) in foregroundAppShownEnoughLocked() 998 final long nowElapsed = SystemClock.elapsedRealtime(); in updateForegroundApps() local 999 long oldestStartTime = nowElapsed; in updateForegroundApps() 1032 .setShowWhen(oldestStartTime < nowElapsed) in updateForegroundApps() 1033 .setWhen(System.currentTimeMillis() - (nowElapsed - oldestStartTime)) in updateForegroundApps() [all …]
|
D | ActivityManagerService.java | 24378 long nowElapsed) { in applyOomAdjLocked() argument 24575 maybeUpdateUsageStatsLocked(app, nowElapsed); in applyOomAdjLocked() 24586 } else if (app.reportedInteraction && (nowElapsed-app.interactionEventTime) in applyOomAdjLocked() 24590 maybeUpdateUsageStatsLocked(app, nowElapsed); in applyOomAdjLocked() 24756 private void maybeUpdateUsageStatsLocked(ProcessRecord app, long nowElapsed) { in maybeUpdateUsageStatsLocked() argument 24774 app.fgInteractionTime = nowElapsed; in maybeUpdateUsageStatsLocked() 24777 isInteraction = nowElapsed > app.fgInteractionTime in maybeUpdateUsageStatsLocked() 24784 if (isInteraction && (!app.reportedInteraction || (nowElapsed-app.interactionEventTime) in maybeUpdateUsageStatsLocked() 24786 app.interactionEventTime = nowElapsed; in maybeUpdateUsageStatsLocked() 24920 final long nowElapsed = SystemClock.elapsedRealtime(); in updateOomAdjLocked() local [all …]
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | AppIdleHistory.java | 282 int usageReason, long nowElapsed, long timeout) { in reportUsage() argument 284 AppUsageHistory history = getPackageHistory(userHistory, packageName, nowElapsed, true); in reportUsage() 285 return reportUsage(history, packageName, newBucket, usageReason, nowElapsed, timeout); in reportUsage()
|
D | UsageStatsService.java | 1275 long nowElapsed) { in getAppStandbyBucket() argument 1276 return mAppStandby.getAppStandbyBucket(packageName, userId, nowElapsed, false); in getAppStandbyBucket()
|