/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | TimeController.java | 561 final long nowElapsed = sElapsedRealtimeClock.millis(); in dumpControllerStateLocked() local 562 pw.println("Elapsed clock: " + nowElapsed); in dumpControllerStateLocked() 565 TimeUtils.formatDuration(mNextDelayExpiredElapsedMillis, nowElapsed, pw); in dumpControllerStateLocked() 568 TimeUtils.formatDuration(mNextJobExpiredElapsedMillis, nowElapsed, pw); in dumpControllerStateLocked() 582 TimeUtils.formatDuration(ts.getEarliestRunTime(), nowElapsed, pw); in dumpControllerStateLocked() local 588 TimeUtils.formatDuration(ts.getLatestRunTimeElapsed(), nowElapsed, pw); in dumpControllerStateLocked() local 602 final long nowElapsed = sElapsedRealtimeClock.millis(); in dumpControllerStateLocked() local 603 proto.write(StateControllerProto.TimeController.NOW_ELAPSED_REALTIME, nowElapsed); in dumpControllerStateLocked() 605 mNextDelayExpiredElapsedMillis - nowElapsed); in dumpControllerStateLocked() 607 mNextJobExpiredElapsedMillis - nowElapsed); in dumpControllerStateLocked() [all …]
|
D | QuotaController.java | 844 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/ |
D | DeviceIdlenessTracker.java | 147 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/ |
D | BatterySavingStats.java | 375 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/ |
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 | JobSchedulerService.java | 3245 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 …]
|
D | JobStore.java | 572 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/am/ |
D | OomAdjuster.java | 255 final long nowElapsed = SystemClock.elapsedRealtime(); in updateOomAdjLocked() local 451 applyOomAdjLocked(app, true, now, nowElapsed); in updateOomAdjLocked() 564 uidRec.lastBackgroundTime = nowElapsed; in updateOomAdjLocked() 1680 long nowElapsed) { in applyOomAdjLocked() argument 1912 maybeUpdateUsageStatsLocked(app, nowElapsed); in applyOomAdjLocked() 1926 } else if (app.reportedInteraction && (nowElapsed - app.getInteractionEventTime()) in applyOomAdjLocked() 1930 maybeUpdateUsageStatsLocked(app, nowElapsed); in applyOomAdjLocked() 1931 } else if (!app.reportedInteraction && (nowElapsed - app.getFgInteractionTime()) in applyOomAdjLocked() 1934 maybeUpdateUsageStatsLocked(app, nowElapsed); in applyOomAdjLocked() 1989 void maybeUpdateUsageStats(ProcessRecord app, long nowElapsed) { in maybeUpdateUsageStats() argument [all …]
|
D | ActiveServices.java | 964 boolean foregroundAppShownEnoughLocked(ActiveForegroundApp aa, long nowElapsed) { in foregroundAppShownEnoughLocked() argument 979 if (nowElapsed >= minTime) { in foregroundAppShownEnoughLocked() 986 long reportTime = nowElapsed + mAm.mConstants.FGSERVICE_MIN_REPORT_TIME; in foregroundAppShownEnoughLocked() 988 if (DEBUG_FOREGROUND_SERVICE) Slog.d(TAG, "NO -- wait " + (aa.mHideTime-nowElapsed) in foregroundAppShownEnoughLocked() 994 if (nowElapsed >= minTime) { in foregroundAppShownEnoughLocked() 1004 if (DEBUG_FOREGROUND_SERVICE) Slog.d(TAG, "NO -- wait " + (aa.mHideTime-nowElapsed) in foregroundAppShownEnoughLocked() 1096 final long nowElapsed = SystemClock.elapsedRealtime(); in updateForegroundApps() local 1097 long oldestStartTime = nowElapsed; in updateForegroundApps() 1130 .setShowWhen(oldestStartTime < nowElapsed) in updateForegroundApps() 1131 .setWhen(System.currentTimeMillis() - (nowElapsed - oldestStartTime)) in updateForegroundApps() [all …]
|
/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 | 302 void recordAlarmForPackage(String packageName, int userId, long nowElapsed) { in recordAlarmForPackage() argument 309 if (history.size() == 0 || history.peekLast() < nowElapsed) { in recordAlarmForPackage() 310 history.addLast(nowElapsed); in recordAlarmForPackage() 349 void dump(PrintWriter pw, String prefix, long nowElapsed) { in dump() argument 350 dump(new IndentingPrintWriter(pw, " ").setIndent(prefix), nowElapsed); in dump() 353 void dump(IndentingPrintWriter pw, long nowElapsed) { in dump() argument 366 TimeUtils.formatDuration(timestamps.get(j), nowElapsed, pw); in dump() local 831 public void writeToProto(ProtoOutputStream proto, long fieldId, long nowElapsed, in writeToProto() argument 839 a.writeToProto(proto, BatchProto.ALARMS, nowElapsed, nowRTC); in writeToProto() 1054 final long nowElapsed = mInjector.getElapsedRealtime(); in rebatchAllAlarmsLocked() local [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | DeviceIdleControllerTest.java | 144 long nowElapsed; field in DeviceIdleControllerTest.InjectorForTest 173 return nowElapsed; in getElapsedRealtime() 1667 mInjector.nowElapsed += mConstants.IDLE_AFTER_INACTIVE_TIMEOUT + mConstants.SENSING_TIMEOUT in testStationaryDetection_QuickDozeOff() 1699 mInjector.nowElapsed += mConstants.QUICK_DOZE_DELAY_TIMEOUT; in testStationaryDetection_QuickDozeOn_NoMotion() 1723 mInjector.nowElapsed += mConstants.MOTION_INACTIVE_TIMEOUT / 2; in testStationaryDetection_QuickDozeOn_NoMotion() 1729 mInjector.nowElapsed += mConstants.MOTION_INACTIVE_TIMEOUT; in testStationaryDetection_QuickDozeOn_NoMotion() 1749 mInjector.nowElapsed += mConstants.MOTION_INACTIVE_TIMEOUT / 2; in testStationaryDetection_QuickDozeOn_NoMotion() 1759 mInjector.nowElapsed += mConstants.MOTION_INACTIVE_TIMEOUT; in testStationaryDetection_QuickDozeOn_NoMotion() 1777 mInjector.nowElapsed += mConstants.QUICK_DOZE_DELAY_TIMEOUT; in testStationaryDetection_QuickDozeOn_OneShot() 1821 mInjector.nowElapsed += mConstants.QUICK_DOZE_DELAY_TIMEOUT; in testStationaryDetection_QuickDozeOn_MultiShot()
|
/frameworks/base/core/java/android/app/usage/ |
D | UsageStatsManagerInternal.java | 131 @UserIdInt int userId, long nowElapsed); in getAppStandbyBucket() argument
|
/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 | 1708 long nowElapsed) { in getAppStandbyBucket() argument 1709 return mAppStandby.getAppStandbyBucket(packageName, userId, nowElapsed, false); in getAppStandbyBucket()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityMetricsLogger.java | 864 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/ |
D | AppOpsService.java | 3875 final long nowElapsed = SystemClock.elapsedRealtime(); in dump() local 4166 TimeUtils.formatDuration(uidState.pendingStateCommitTime, nowElapsed, pw); in dump() 4244 TimeUtils.formatDuration(nowElapsed-op.startRealtime, pw); in dump()
|