/frameworks/base/core/java/android/os/ |
D | ServiceManager.java | 443 final long nowUptime = SystemClock.uptimeMillis(); in rawGetService() local 450 if ((nowUptime > (sLastSlowLogUptime + SLOW_LOG_INTERVAL_MS)) in rawGetService() 454 sLastSlowLogUptime = nowUptime; in rawGetService() 466 && (nowUptime >= (sLastStatsLogUptime + STATS_LOG_INTERVAL_MS))) { in rawGetService() 471 (int) (nowUptime - sLastStatsLogUptime)); // Uptime duration since last log. in rawGetService() 474 sLastStatsLogUptime = nowUptime; in rawGetService()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ProcessCachedOptimizerRecord.java | 340 void init(long nowUptime) { in init() argument 341 mFreezeUnfreezeTime = nowUptime; in init() 346 void dump(PrintWriter pw, String prefix, long nowUptime) { in dump() argument 357 TimeUtils.formatDuration(mEarliestFreezableTimeMillis, nowUptime, pw); in dump()
|
D | ProcessProfileRecord.java | 676 void dumpPss(PrintWriter pw, String prefix, long nowUptime) { in dumpPss() argument 682 TimeUtils.formatDuration(mLastPssTime, nowUptime, pw); in dumpPss() 688 TimeUtils.formatDuration(mNextPssTime, nowUptime, pw); in dumpPss() 704 TimeUtils.formatDuration(mLastPssTime, nowUptime, pw); in dumpPss() 710 TimeUtils.formatDuration(mNextPssTime, nowUptime, pw); in dumpPss() 726 TimeUtils.formatDuration(mLastRequestedGc, nowUptime, pw); in dumpPss() 728 TimeUtils.formatDuration(mLastLowMemory, nowUptime, pw); in dumpPss()
|
D | ProcessProviderRecord.java | 154 void dump(PrintWriter pw, String prefix, long nowUptime) { in dump() argument 157 TimeUtils.formatDuration(mLastProviderTime, nowUptime, pw); in dump()
|
D | ProcessRecord.java | 463 final long nowUptime = SystemClock.uptimeMillis(); in dump() local 524 TimeUtils.formatDuration(mLastActivityTime, nowUptime, pw); in dump() 526 TimeUtils.formatDuration(mStartUptime, nowUptime, pw); in dump() 556 mProfile.dumpPss(pw, prefix, nowUptime); in dump() 557 mState.dump(pw, prefix, nowUptime); in dump() 558 mErrorState.dump(pw, prefix, nowUptime); in dump() 559 mServices.dump(pw, prefix, nowUptime); in dump() 560 mProviders.dump(pw, prefix, nowUptime); in dump() 561 mReceivers.dump(pw, prefix, nowUptime); in dump() 562 mOptRecord.dump(pw, prefix, nowUptime); in dump()
|
D | ServiceRecord.java | 728 public void updateTotalRuntime(@UptimeMillisLong long nowUptime) { in updateTotalRuntime() argument 729 mTotalRuntime += nowUptime - mLastFgsStartTime; in updateTotalRuntime() 730 mLastFgsStartTime = nowUptime; in updateTotalRuntime() 1831 private boolean shouldTriggerShortFgsTimedEvent(long targetTime, long nowUptime) { in shouldTriggerShortFgsTimedEvent() argument 1839 return targetTime <= nowUptime; in shouldTriggerShortFgsTimedEvent() 1845 public boolean shouldTriggerShortFgsTimeout(long nowUptime) { in shouldTriggerShortFgsTimeout() argument 1848 nowUptime); in shouldTriggerShortFgsTimeout() 1854 public boolean shouldDemoteShortFgsProcState(long nowUptime) { in shouldDemoteShortFgsProcState() argument 1857 nowUptime); in shouldDemoteShortFgsProcState() 1864 public boolean shouldTriggerShortFgsAnr(long nowUptime) { in shouldTriggerShortFgsAnr() argument [all …]
|
D | ProcessReceiverRecord.java | 120 void dump(PrintWriter pw, String prefix, long nowUptime) { in dump() argument
|
D | ProcessServiceRecord.java | 250 boolean areAllShortForegroundServicesProcstateTimedOut(long nowUptime) { in areAllShortForegroundServicesProcstateTimedOut() argument 264 if (sr.getShortFgsInfo().getProcStateDemoteTime() >= nowUptime) { in areAllShortForegroundServicesProcstateTimedOut() 704 void dump(PrintWriter pw, String prefix, long nowUptime) { in dump() argument
|
D | ProcessStateRecord.java | 1327 void dump(PrintWriter pw, String prefix, long nowUptime) { in dump() argument 1355 TimeUtils.formatDuration(getLastStateTime(), nowUptime, pw); in dump() local 1401 TimeUtils.formatDuration(mWhenUnimportant - nowUptime, pw); in dump() 1406 TimeUtils.formatDuration(mLastTopTime, nowUptime, pw); in dump()
|
D | ActiveServices.java | 2335 final long nowUptime = SystemClock.uptimeMillis(); in setServiceForegroundInnerLocked() local 2337 r.shouldTriggerShortFgsTimeout(nowUptime); in setServiceForegroundInnerLocked() 3620 final long nowUptime = SystemClock.uptimeMillis(); in onShortFgsTimeout() local 3621 if (!sr.shouldTriggerShortFgsTimeout(nowUptime)) { in onShortFgsTimeout() 3624 + " " + sr.getShortFgsTimedEventDescription(nowUptime)); in onShortFgsTimeout() 3633 nowUptime > sr.mFgsEnterTime ? (int) (nowUptime - sr.mFgsEnterTime) : 0, in onShortFgsTimeout() 3667 final long nowUptime = SystemClock.uptimeMillis(); in shouldServiceTimeOutLocked() local 3668 return sr.shouldTriggerShortFgsTimeout(nowUptime); in shouldServiceTimeOutLocked() 3676 final long nowUptime = SystemClock.uptimeMillis(); in onShortFgsProcstateTimeout() local 3677 if (!sr.shouldDemoteShortFgsProcState(nowUptime)) { in onShortFgsProcstateTimeout() [all …]
|
D | OomAdjuster.java | 1103 final long nowUptime = mInjector.getUptimeMillis(); in postUpdateOomAdjInnerLSP() local 1104 if (mService.mProcessStats.shouldWriteNowLocked(nowUptime)) { in postUpdateOomAdjInnerLSP() 1110 mService.mProcessStats.updateTrackingAssociationsLocked(mAdjSeq, nowUptime); in postUpdateOomAdjInnerLSP() 1636 private boolean shouldKillExcessiveProcesses(long nowUptime) { in shouldKillExcessiveProcesses() argument 1646 > nowUptime) { in shouldKillExcessiveProcesses() 3748 private void maybeUpdateLastTopTime(ProcessStateRecord state, long nowUptime) { in maybeUpdateLastTopTime() argument 3751 state.setLastTopTime(nowUptime); in maybeUpdateLastTopTime()
|
D | ProcessErrorStateRecord.java | 802 void dump(PrintWriter pw, String prefix, long nowUptime) { in dump() argument
|
D | BatteryStatsService.java | 2760 final long nowUptime = SystemClock.uptimeMillis(); in run() local 2767 mCpuWakeupStats.noteWakeupTimeAndReason(nowElapsed, nowUptime, reason); in run() 2769 mStats.noteWakeupReasonLocked(reason, nowElapsed, nowUptime); in run()
|
/frameworks/base/services/core/java/com/android/server/content/ |
D | SyncJobService.java | 140 final long nowUptime = SystemClock.uptimeMillis(); in onStopJob() local 141 final long runtime = nowUptime - startUptime; in onStopJob() 151 + " nowUptime=" + nowUptime in onStopJob()
|
/frameworks/base/core/java/com/android/internal/app/procstats/ |
D | AssociationState.java | 333 void commitStateTime(long nowUptime) { in commitStateTime() argument 335 mDuration += nowUptime - mStartUptime; in commitStateTime() 336 mStartUptime = nowUptime; in commitStateTime() 339 final long addedDuration = nowUptime - mActiveStartUptime; in commitStateTime() 340 mActiveStartUptime = nowUptime; in commitStateTime() 711 public void writeToParcel(ProcessStats stats, Parcel out, long nowUptime) { in writeToParcel() argument 767 public void commitStateTime(long nowUptime) { in commitStateTime() argument 771 src.commitStateTime(nowUptime); in commitStateTime() 774 mTotalDuration += nowUptime - mTotalStartUptime; in commitStateTime() 775 mTotalStartUptime = nowUptime; in commitStateTime() [all …]
|
D | ProcessStats.java | 1539 final long nowUptime = SystemClock.uptimeMillis(); in updateTrackingAssociationsLocked() local 1540 if (mNextInverseProcStateWarningUptime > nowUptime) { in updateTrackingAssociationsLocked() 1552 nowUptime + INVERSE_PROC_STATE_WARNING_MIN_INTERVAL_MS; in updateTrackingAssociationsLocked()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | MockingOomAdjusterTests.java | 682 long nowUptime = SystemClock.uptimeMillis(); in testUpdateOomAdj_DoOne_PerceptibleRecent_AlmostPerceptibleService() local 683 app.mState.setLastTopTime(nowUptime); in testUpdateOomAdj_DoOne_PerceptibleRecent_AlmostPerceptibleService() 687 s.lastTopAlmostPerceptibleBindRequestUptimeMs = nowUptime; in testUpdateOomAdj_DoOne_PerceptibleRecent_AlmostPerceptibleService() 716 long nowUptime = SystemClock.uptimeMillis(); in testUpdateOomAdj_DoOne_PerceptibleRecent_AlmostPerceptibleService() local 717 app.mState.setLastTopTime(nowUptime); in testUpdateOomAdj_DoOne_PerceptibleRecent_AlmostPerceptibleService() 722 nowUptime - 2 * mService.mConstants.mServiceBindAlmostPerceptibleTimeoutMs; in testUpdateOomAdj_DoOne_PerceptibleRecent_AlmostPerceptibleService() 738 long nowUptime = SystemClock.uptimeMillis(); in testUpdateOomAdj_DoOne_PerceptibleRecent_AlmostPerceptibleService() local 739 app.mState.setLastTopTime(nowUptime); in testUpdateOomAdj_DoOne_PerceptibleRecent_AlmostPerceptibleService() 744 nowUptime - 2 * mService.mConstants.mServiceBindAlmostPerceptibleTimeoutMs; in testUpdateOomAdj_DoOne_PerceptibleRecent_AlmostPerceptibleService()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | ProcessCpuTracker.java | 348 final long nowUptime = SystemClock.uptimeMillis(); in updateLocked() local 410 mCurrentSampleTime = nowUptime; in updateLocked()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/ |
D | JobConcurrencyManager.java | 719 final long nowUptime = JobSchedulerService.sUptimeMillisClock.millis(); in refreshSystemStateLocked() local 722 if (nowUptime < mNextSystemStateRefreshTime) { in refreshSystemStateLocked() 727 mNextSystemStateRefreshTime = nowUptime + SYSTEM_STATE_REFRESH_MIN_INTERVAL; in refreshSystemStateLocked() 2155 long nowElapsed, long nowUptime) { in dumpContextInfoLocked() argument 2184 TimeUtils.formatDuration(job.madeActive - nowUptime, pw); in dumpContextInfoLocked()
|
D | JobSchedulerService.java | 5823 final long nowUptime = sUptimeMillisClock.millis(); 6086 TimeUtils.formatDuration(job.madePending - nowUptime, pw); 6096 mConcurrencyManager.dumpContextInfoLocked(pw, predicate, nowElapsed, nowUptime); 6182 final long nowUptime = sUptimeMillisClock.millis(); 6287 proto.write(PendingJob.PENDING_DURATION_MS, nowUptime - job.madePending);
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityMetricsLogger.java | 1422 final long nowUptime = SystemClock.uptimeMillis(); in logAbortedBgActivityStart() local 1470 (nowUptime - callerApp.getWhenUnimportant())); in logAbortedBgActivityStart()
|
/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | BatteryStatsImpl.java | 16977 final long nowUptime = mClock.uptimeMillis() * 1000; 16985 out.writeLong(computeUptime(nowUptime, STATS_SINCE_CHARGED)); 16992 mOnBatteryTimeBase.writeSummaryToParcel(out, nowUptime, nowRealtime); 16993 mOnBatteryScreenOffTimeBase.writeSummaryToParcel(out, nowUptime, nowRealtime); 17176 u.mOnBatteryBackgroundTimeBase.writeSummaryToParcel(out, nowUptime, nowRealtime); 17177 u.mOnBatteryScreenOffBackgroundTimeBase.writeSummaryToParcel(out, nowUptime, 17495 mOnBatteryTimeBase.getUptime(nowUptime) / 1000);
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 4258 final long nowUptime = SystemClock.uptimeMillis(); 4266 nowUptime, fout);
|
/frameworks/base/services/core/java/com/android/server/appop/ |
D | AppOpsService.java | 6020 final long nowUptime = SystemClock.uptimeMillis(); in dump() local
|