Home
last modified time | relevance | path

Searched refs:nowUptime (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/core/java/android/os/
DServiceManager.java443 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/
DProcessCachedOptimizerRecord.java340 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()
DProcessProfileRecord.java676 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()
DProcessProviderRecord.java154 void dump(PrintWriter pw, String prefix, long nowUptime) { in dump() argument
157 TimeUtils.formatDuration(mLastProviderTime, nowUptime, pw); in dump()
DProcessRecord.java463 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()
DServiceRecord.java728 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 …]
DProcessReceiverRecord.java120 void dump(PrintWriter pw, String prefix, long nowUptime) { in dump() argument
DProcessServiceRecord.java250 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
DProcessStateRecord.java1327 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()
DActiveServices.java2335 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 …]
DOomAdjuster.java1103 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()
DProcessErrorStateRecord.java802 void dump(PrintWriter pw, String prefix, long nowUptime) { in dump() argument
DBatteryStatsService.java2760 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/
DSyncJobService.java140 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/
DAssociationState.java333 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 …]
DProcessStats.java1539 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/
DMockingOomAdjusterTests.java682 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/
DProcessCpuTracker.java348 final long nowUptime = SystemClock.uptimeMillis(); in updateLocked() local
410 mCurrentSampleTime = nowUptime; in updateLocked()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobConcurrencyManager.java719 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()
DJobSchedulerService.java5823 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/
DActivityMetricsLogger.java1422 final long nowUptime = SystemClock.uptimeMillis(); in logAbortedBgActivityStart() local
1470 (nowUptime - callerApp.getWhenUnimportant())); in logAbortedBgActivityStart()
/frameworks/base/services/core/java/com/android/server/power/stats/
DBatteryStatsImpl.java16977 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/
DNetworkPolicyManagerService.java4258 final long nowUptime = SystemClock.uptimeMillis();
4266 nowUptime, fout);
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java6020 final long nowUptime = SystemClock.uptimeMillis(); in dump() local