Searched refs:nowElapsed (Results 1 - 14 of 14) sorted by relevance

/frameworks/base/services/core/java/com/android/server/job/controllers/
H A DTimeController.java346 final long nowElapsed = sElapsedRealtimeClock.millis();
347 pw.println("Elapsed clock: " + nowElapsed);
350 TimeUtils.formatDuration(mNextDelayExpiredElapsedMillis, nowElapsed, pw);
353 TimeUtils.formatDuration(mNextJobExpiredElapsedMillis, nowElapsed, pw);
367 TimeUtils.formatDuration(ts.getEarliestRunTime(), nowElapsed, pw);
373 TimeUtils.formatDuration(ts.getLatestRunTimeElapsed(), nowElapsed, pw);
387 final long nowElapsed = sElapsedRealtimeClock.millis();
388 proto.write(StateControllerProto.TimeController.NOW_ELAPSED_REALTIME, nowElapsed);
390 mNextDelayExpiredElapsedMillis - nowElapsed);
392 mNextJobExpiredElapsedMillis - nowElapsed);
[all...]
H A DIdleController.java193 final long nowElapsed = sElapsedRealtimeClock.millis();
194 final long when = nowElapsed + mInactivityIdleThreshold;
196 Slog.v(TAG, "Scheduling idle : " + action + " now:" + nowElapsed + " when="
/frameworks/base/core/java/android/app/usage/
H A DUsageStatsManagerInternal.java114 * @param nowElapsed The current time, in the elapsedRealtime time base
119 @UserIdInt int userId, long nowElapsed);
118 getAppStandbyBucket(String packageName, @UserIdInt int userId, long nowElapsed) argument
/frameworks/base/services/core/java/com/android/server/policy/
H A DBurnInProtectionHelper.java161 final long nowElapsed = SystemClock.elapsedRealtime();
167 final long nextElapsed = nowElapsed + (nextWall - nowWall);
170 + ", next wall: " + nextWall + ", now elapsed: " + nowElapsed
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
H A DBatterySavingStats.java398 final long nowElapsed = injectCurrentTime();
408 pw.print(sdf.format(new Date(now - nowElapsed + mLastBatterySaverEnabledTime)));
410 TimeUtils.formatDuration(mLastBatterySaverEnabledTime, nowElapsed, pw);
418 pw.print(sdf.format(new Date(now - nowElapsed + mLastBatterySaverDisabledTime)));
420 TimeUtils.formatDuration(mLastBatterySaverDisabledTime, nowElapsed, pw);
/frameworks/base/services/core/java/com/android/server/job/
H A DJobPackageTracker.java315 void dump(PrintWriter pw, String header, String prefix, long now, long nowElapsed, argument
321 TimeUtils.formatDuration(mStartElapsedTime, nowElapsed, pw);
381 void dump(ProtoOutputStream proto, long fieldId, long now, long nowElapsed, int filterUid) { argument
386 proto.write(DataSetProto.ELAPSED_TIME_MS, nowElapsed - mStartElapsedTime);
524 final long nowElapsed = sElapsedRealtimeClock.millis();
535 mLastDataSets[i].dump(pw, "Historical stats", prefix, now, nowElapsed, filterUid);
539 total.dump(pw, "Current stats", prefix, now, nowElapsed, filterUid);
545 final long nowElapsed = sElapsedRealtimeClock.millis();
559 now, nowElapsed, filterUid);
563 now, nowElapsed, filterUi
[all...]
H A DJobStore.java518 final long nowElapsed = sElapsedRealtimeClock.millis();
522 ? nowRTC + (jobStatus.getLatestRunTimeElapsed() - nowElapsed)
528 ? nowRTC + (jobStatus.getEarliestRunTime() - nowElapsed)
557 long nowElapsed) {
560 ? nowElapsed + Math.max(rtcTimes.first - nowWallclock, 0)
563 ? nowElapsed + Math.max(rtcTimes.second - nowWallclock, 0)
990 final long nowElapsed = sElapsedRealtimeClock.millis();
999 latestRunTimeElapsed = nowElapsed + maxDelayElapsed;
1006 earliestRunTimeElapsed = nowElapsed + minDelayElapsed;
556 convertRtcBoundsToElapsed(Pair<Long, Long> rtcTimes, long nowElapsed) argument
H A DJobSchedulerService.java3027 final long nowElapsed = sElapsedRealtimeClock.millis();
3045 TimeUtils.formatDuration(mLastHeartbeatTime, nowElapsed, pw);
3049 nowElapsed, pw);
3072 job.dump(pw, " ", true, nowElapsed);
3149 job.dump(pw, " ", false, nowElapsed);
3168 TimeUtils.formatDuration(jsc.mStoppedTime, nowElapsed, pw);
3178 TimeUtils.formatDuration(nowElapsed - jsc.getExecutionStartTimeElapsed(), pw);
3180 TimeUtils.formatDuration(jsc.getTimeoutElapsed() - nowElapsed, pw);
3182 job.dump(pw, " ", false, nowElapsed);
3210 final long nowElapsed
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DAlarmManagerService.java635 public void writeToProto(ProtoOutputStream proto, long fieldId, long nowElapsed, argument
643 a.writeToProto(proto, BatchProto.ALARMS, nowElapsed, nowRTC);
856 final long nowElapsed = SystemClock.elapsedRealtime();
862 reAddAlarmLocked(batch.get(i), nowElapsed, doValidate);
928 void reAddAlarmLocked(Alarm a, long nowElapsed, boolean doValidate) { argument
941 : maxTriggerTime(nowElapsed, whenElapsed, a.repeatInterval);
1098 final long nowElapsed = SystemClock.elapsedRealtime();
1101 reAddAlarmLocked(a, nowElapsed, false);
1488 final long nowElapsed = SystemClock.elapsedRealtime();
1491 final long minTrigger = nowElapsed
3340 writeToProto(ProtoOutputStream proto, long fieldId, long nowElapsed, long nowRTC) argument
[all...]
H A DAppOpsService.java3042 final long nowElapsed = SystemClock.elapsedRealtime();
3369 TimeUtils.formatDuration(nowElapsed-op.startRealtime, pw);
/frameworks/base/services/core/java/com/android/server/am/
H A DActiveServices.java877 boolean foregroundAppShownEnoughLocked(ActiveForegroundApp aa, long nowElapsed) { argument
892 if (nowElapsed >= minTime) {
899 long reportTime = nowElapsed + mAm.mConstants.FGSERVICE_MIN_REPORT_TIME;
901 if (DEBUG_FOREGROUND_SERVICE) Slog.d(TAG, "NO -- wait " + (aa.mHideTime-nowElapsed)
907 if (nowElapsed >= minTime) {
917 if (DEBUG_FOREGROUND_SERVICE) Slog.d(TAG, "NO -- wait " + (aa.mHideTime-nowElapsed)
998 final long nowElapsed = SystemClock.elapsedRealtime();
999 long oldestStartTime = nowElapsed;
1032 .setShowWhen(oldestStartTime < nowElapsed)
1033 .setWhen(System.currentTimeMillis() - (nowElapsed
[all...]
H A DActivityManagerService.java24377 applyOomAdjLocked(ProcessRecord app, boolean doingAll, long now, long nowElapsed) argument
24756 maybeUpdateUsageStatsLocked(ProcessRecord app, long nowElapsed) argument
[all...]
/frameworks/base/services/usage/java/com/android/server/usage/
H A DAppIdleHistory.java276 * @param nowElapsed mark as used time if non-zero
282 int usageReason, long nowElapsed, long timeout) {
284 AppUsageHistory history = getPackageHistory(userHistory, packageName, nowElapsed, true);
285 return reportUsage(history, packageName, newBucket, usageReason, nowElapsed, timeout);
281 reportUsage(String packageName, int userId, int newBucket, int usageReason, long nowElapsed, long timeout) argument
H A DUsageStatsService.java1275 long nowElapsed) {
1276 return mAppStandby.getAppStandbyBucket(packageName, userId, nowElapsed, false);
1274 getAppStandbyBucket(String packageName, int userId, long nowElapsed) argument

Completed in 130 milliseconds