Home
last modified time | relevance | path

Searched refs:nowElapsed (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/services/core/java/com/android/server/job/controllers/
DTimeController.java539 final long nowElapsed = sElapsedRealtimeClock.millis(); in dumpControllerStateLocked() local
540 pw.println("Elapsed clock: " + nowElapsed); in dumpControllerStateLocked()
543 TimeUtils.formatDuration(mNextDelayExpiredElapsedMillis, nowElapsed, pw); in dumpControllerStateLocked()
546 TimeUtils.formatDuration(mNextJobExpiredElapsedMillis, nowElapsed, pw); in dumpControllerStateLocked()
560 TimeUtils.formatDuration(ts.getEarliestRunTime(), nowElapsed, pw); in dumpControllerStateLocked() local
566 TimeUtils.formatDuration(ts.getLatestRunTimeElapsed(), nowElapsed, pw); in dumpControllerStateLocked() local
580 final long nowElapsed = sElapsedRealtimeClock.millis(); in dumpControllerStateLocked() local
581 proto.write(StateControllerProto.TimeController.NOW_ELAPSED_REALTIME, nowElapsed); in dumpControllerStateLocked()
583 mNextDelayExpiredElapsedMillis - nowElapsed); in dumpControllerStateLocked()
585 mNextJobExpiredElapsedMillis - nowElapsed); in dumpControllerStateLocked()
[all …]
DQuotaController.java844 final long nowElapsed = sElapsedRealtimeClock.millis(); in getTimeUntilQuotaConsumedLocked() local
846 packageName, userId, nowElapsed); in getTimeUntilQuotaConsumedLocked()
856 final long startWindowElapsed = nowElapsed - stats.windowSizeMs; in getTimeUntilQuotaConsumedLocked()
857 final long startMaxElapsed = nowElapsed - MAX_PERIOD_MS; in getTimeUntilQuotaConsumedLocked()
979 final long nowElapsed = sElapsedRealtimeClock.millis(); in updateExecutionStatsLocked() local
980 stats.expirationTimeElapsed = nowElapsed + MAX_PERIOD_MS; in updateExecutionStatsLocked()
983 stats.executionTimeInMaxPeriodMs = timer.getCurrentDuration(nowElapsed); in updateExecutionStatsLocked()
987 stats.expirationTimeElapsed = nowElapsed; in updateExecutionStatsLocked()
990 nowElapsed - mAllowedTimeIntoQuotaMs + stats.windowSizeMs); in updateExecutionStatsLocked()
994 nowElapsed - mMaxExecutionTimeIntoQuotaMs + MAX_PERIOD_MS); in updateExecutionStatsLocked()
[all …]
/frameworks/base/services/core/java/com/android/server/job/controllers/idle/
DDeviceIdlenessTracker.java147 final long nowElapsed = sElapsedRealtimeClock.millis(); in onReceive() local
148 final long when = nowElapsed + mInactivityIdleThreshold; in onReceive()
150 Slog.v(TAG, "Scheduling idle : " + action + " now:" + nowElapsed + " when=" in onReceive()
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySavingStats.java375 final long nowElapsed = injectCurrentTime(); in dump() local
385 pw.print(sdf.format(new Date(now - nowElapsed + mLastBatterySaverEnabledTime))); in dump()
387 TimeUtils.formatDuration(mLastBatterySaverEnabledTime, nowElapsed, pw); in dump()
395 pw.print(sdf.format(new Date(now - nowElapsed + mLastBatterySaverDisabledTime))); in dump()
397 TimeUtils.formatDuration(mLastBatterySaverDisabledTime, nowElapsed, pw); in dump()
/frameworks/base/services/core/java/com/android/server/job/
DJobPackageTracker.java315 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()
DJobSchedulerService.java3245 final long nowElapsed = sElapsedRealtimeClock.millis(); in dumpInternal() local
3269 TimeUtils.formatDuration(mLastHeartbeatTime, nowElapsed, pw); in dumpInternal()
3273 nowElapsed, pw); in dumpInternal()
3299 job.dump(pw, " ", true, nowElapsed); in dumpInternal()
3376 job.dump(pw, " ", false, nowElapsed); in dumpInternal()
3395 TimeUtils.formatDuration(jsc.mStoppedTime, nowElapsed, pw); in dumpInternal()
3405 TimeUtils.formatDuration(nowElapsed - jsc.getExecutionStartTimeElapsed(), pw); in dumpInternal()
3407 TimeUtils.formatDuration(jsc.getTimeoutElapsed() - nowElapsed, pw); in dumpInternal()
3409 job.dump(pw, " ", false, nowElapsed); in dumpInternal()
3428 mConcurrencyManager.dumpLocked(pw, now, nowElapsed); in dumpInternal()
[all …]
DJobStore.java572 final long nowElapsed = sElapsedRealtimeClock.millis();
576 ? nowRTC + (jobStatus.getLatestRunTimeElapsed() - nowElapsed)
582 ? nowRTC + (jobStatus.getEarliestRunTime() - nowElapsed)
611 long nowElapsed) { in convertRtcBoundsToElapsed() argument
614 ? nowElapsed + Math.max(rtcTimes.first - nowWallclock, 0) in convertRtcBoundsToElapsed()
617 ? nowElapsed + Math.max(rtcTimes.second - nowWallclock, 0) in convertRtcBoundsToElapsed()
/frameworks/base/services/core/java/com/android/server/policy/
DBurnInProtectionHelper.java161 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/am/
DOomAdjuster.java251 final long nowElapsed = SystemClock.elapsedRealtime(); in updateOomAdjLocked() local
447 applyOomAdjLocked(app, true, now, nowElapsed); in updateOomAdjLocked()
560 uidRec.lastBackgroundTime = nowElapsed; in updateOomAdjLocked()
1676 long nowElapsed) { in applyOomAdjLocked() argument
1908 maybeUpdateUsageStatsLocked(app, nowElapsed); in applyOomAdjLocked()
1922 } else if (app.reportedInteraction && (nowElapsed - app.getInteractionEventTime()) in applyOomAdjLocked()
1926 maybeUpdateUsageStatsLocked(app, nowElapsed); in applyOomAdjLocked()
1927 } else if (!app.reportedInteraction && (nowElapsed - app.getFgInteractionTime()) in applyOomAdjLocked()
1930 maybeUpdateUsageStatsLocked(app, nowElapsed); in applyOomAdjLocked()
1953 void maybeUpdateUsageStats(ProcessRecord app, long nowElapsed) { in maybeUpdateUsageStats() argument
[all …]
DActiveServices.java942 boolean foregroundAppShownEnoughLocked(ActiveForegroundApp aa, long nowElapsed) { in foregroundAppShownEnoughLocked() argument
957 if (nowElapsed >= minTime) { in foregroundAppShownEnoughLocked()
964 long reportTime = nowElapsed + mAm.mConstants.FGSERVICE_MIN_REPORT_TIME; in foregroundAppShownEnoughLocked()
966 if (DEBUG_FOREGROUND_SERVICE) Slog.d(TAG, "NO -- wait " + (aa.mHideTime-nowElapsed) in foregroundAppShownEnoughLocked()
972 if (nowElapsed >= minTime) { in foregroundAppShownEnoughLocked()
982 if (DEBUG_FOREGROUND_SERVICE) Slog.d(TAG, "NO -- wait " + (aa.mHideTime-nowElapsed) in foregroundAppShownEnoughLocked()
1063 final long nowElapsed = SystemClock.elapsedRealtime(); in updateForegroundApps() local
1064 long oldestStartTime = nowElapsed; in updateForegroundApps()
1097 .setShowWhen(oldestStartTime < nowElapsed) in updateForegroundApps()
1098 .setWhen(System.currentTimeMillis() - (nowElapsed - oldestStartTime)) in updateForegroundApps()
[all …]
/frameworks/base/services/core/java/com/android/server/
DAlarmManagerService.java303 void recordAlarmForPackage(String packageName, int userId, long nowElapsed) { in recordAlarmForPackage() argument
310 if (history.size() == 0 || history.peekLast() < nowElapsed) { in recordAlarmForPackage()
311 history.addLast(nowElapsed); in recordAlarmForPackage()
350 void dump(PrintWriter pw, String prefix, long nowElapsed) { in dump() argument
351 dump(new IndentingPrintWriter(pw, " ").setIndent(prefix), nowElapsed); in dump()
354 void dump(IndentingPrintWriter pw, long nowElapsed) { in dump() argument
367 TimeUtils.formatDuration(timestamps.get(j), nowElapsed, pw); in dump() local
832 public void writeToProto(ProtoOutputStream proto, long fieldId, long nowElapsed, in writeToProto() argument
840 a.writeToProto(proto, BatchProto.ALARMS, nowElapsed, nowRTC); in writeToProto()
1055 final long nowElapsed = mInjector.getElapsedRealtime(); in rebatchAllAlarmsLocked() local
[all …]
/frameworks/base/core/java/android/app/usage/
DUsageStatsManagerInternal.java131 @UserIdInt int userId, long nowElapsed); in getAppStandbyBucket() argument
/frameworks/base/services/usage/java/com/android/server/usage/
DAppIdleHistory.java282 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()
DUsageStatsService.java1708 long nowElapsed) { in getAppStandbyBucket() argument
1709 return mAppStandby.getAppStandbyBucket(packageName, userId, nowElapsed, false); in getAppStandbyBucket()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityMetricsLogger.java864 final long nowElapsed = SystemClock.elapsedRealtime(); in logAbortedBgActivityStart() local
905 (nowElapsed - callerApp.getInteractionEventTime())); in logAbortedBgActivityStart()
909 (nowElapsed - callerApp.getFgInteractionTime())); in logAbortedBgActivityStart()
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java3729 final long nowElapsed = SystemClock.elapsedRealtime(); in dump() local
4019 TimeUtils.formatDuration(uidState.pendingStateCommitTime, nowElapsed, pw); in dump()
4097 TimeUtils.formatDuration(nowElapsed-op.startRealtime, pw); in dump()