/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | DateUtilsTest.java | 65 assertEquals("0 seconds", DateUtils.formatDuration(0)); in test_formatDuration_seconds() 66 assertEquals("0 seconds", DateUtils.formatDuration(1)); in test_formatDuration_seconds() 67 assertEquals("0 seconds", DateUtils.formatDuration(499)); in test_formatDuration_seconds() 68 assertEquals("1 second", DateUtils.formatDuration(500)); in test_formatDuration_seconds() 69 assertEquals("1 second", DateUtils.formatDuration(1000)); in test_formatDuration_seconds() 70 assertEquals("2 seconds", DateUtils.formatDuration(1500)); in test_formatDuration_seconds() 72 assertEquals("0 seconds", DateUtils.formatDuration(0, DateUtils.LENGTH_LONG)); in test_formatDuration_seconds() 73 assertEquals("1 second", DateUtils.formatDuration(1000, DateUtils.LENGTH_LONG)); in test_formatDuration_seconds() 74 assertEquals("2 seconds", DateUtils.formatDuration(1500, DateUtils.LENGTH_LONG)); in test_formatDuration_seconds() 76 assertEquals("0 sec", DateUtils.formatDuration(0, DateUtils.LENGTH_SHORT)); in test_formatDuration_seconds() [all …]
|
/frameworks/base/core/tests/utiltests/src/android/util/ |
D | TimeUtilsTest.java | 61 assertEquals("0", TimeUtils.formatDuration(0)); in testFormatDuration_Zero() 66 assertEquals("-10ms", TimeUtils.formatDuration(-10)); in testFormatDuration_Negative() 72 assertEquals("+900ms", TimeUtils.formatDuration(accum)); in testFormatDuration() 75 assertEquals("+59s900ms", TimeUtils.formatDuration(accum)); in testFormatDuration() 78 assertEquals("+59m59s900ms", TimeUtils.formatDuration(accum)); in testFormatDuration() 81 assertEquals("+23h59m59s900ms", TimeUtils.formatDuration(accum)); in testFormatDuration() 84 assertEquals("+6d23h59m59s900ms", TimeUtils.formatDuration(accum)); in testFormatDuration()
|
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/ |
D | BlobStoreConfig.java | 245 TimeUtils.formatDuration(IDLE_JOB_PERIOD_MS), in dump() 246 TimeUtils.formatDuration(DEFAULT_IDLE_JOB_PERIOD_MS))); in dump() 248 TimeUtils.formatDuration(SESSION_EXPIRY_TIMEOUT_MS), in dump() 249 TimeUtils.formatDuration(DEFAULT_SESSION_EXPIRY_TIMEOUT_MS))); in dump() 258 TimeUtils.formatDuration(LEASE_ACQUISITION_WAIT_DURATION_MS), in dump() 259 TimeUtils.formatDuration(DEFAULT_LEASE_ACQUISITION_WAIT_DURATION_MS))); in dump() 261 TimeUtils.formatDuration(COMMIT_COOL_OFF_DURATION_MS), in dump() 262 TimeUtils.formatDuration(DEFAULT_COMMIT_COOL_OFF_DURATION_MS))); in dump() 266 TimeUtils.formatDuration(DELETE_ON_LAST_LEASE_DELAY_MS), in dump() 267 TimeUtils.formatDuration(DEFAULT_DELETE_ON_LAST_LEASE_DELAY_MS))); in dump()
|
/frameworks/base/core/java/android/util/ |
D | TimeUtils.java | 323 public static void formatDuration(long duration, StringBuilder builder) { in formatDuration() method in TimeUtils 332 public static void formatDuration(long duration, StringBuilder builder, int fieldLen) { in formatDuration() method in TimeUtils 342 public static void formatDuration(long duration, PrintWriter pw, int fieldLen) { in formatDuration() method in TimeUtils 352 public static String formatDuration(long duration) { in formatDuration() method in TimeUtils 362 public static void formatDuration(long duration, PrintWriter pw) { in formatDuration() method in TimeUtils 363 formatDuration(duration, pw, 0); in formatDuration() 368 public static void formatDuration(long time, long now, StringBuilder sb) { in formatDuration() method in TimeUtils 373 formatDuration(time-now, sb, 0); in formatDuration() 378 public static void formatDuration(long time, long now, PrintWriter pw) { in formatDuration() method in TimeUtils 383 formatDuration(time-now, pw, 0); in formatDuration() [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | SystemConditionProviderService.java | 44 protected static String formatDuration(long millis) { in formatDuration() method in SystemConditionProviderService 46 TimeUtils.formatDuration(millis, sb); in formatDuration() 53 pw.printf("%s, in %s, now=%s", ts(time), formatDuration(time - now), ts(now)); in dumpUpcomingTime()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BroadcastConstants.java | 455 pw.print(KEY_TIMEOUT, TimeUtils.formatDuration(TIMEOUT)).println(); in dump() 457 TimeUtils.formatDuration(ALLOW_BG_ACTIVITY_START_TIMEOUT)).println(); in dump() 473 TimeUtils.formatDuration(DELAY_NORMAL_MILLIS)).println(); in dump() 475 TimeUtils.formatDuration(DELAY_CACHED_MILLIS)).println(); in dump() 477 TimeUtils.formatDuration(DELAY_URGENT_MILLIS)).println(); in dump() 479 TimeUtils.formatDuration(DELAY_FOREGROUND_PROC_MILLIS)).println(); in dump() 481 TimeUtils.formatDuration(DELAY_PERSISTENT_PROC_MILLIS)).println(); in dump()
|
D | ProcessProfileRecord.java | 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() 746 TimeUtils.formatDuration(mCurCpuTime.get() - lastCpuTime, pw); in dumpCputime()
|
D | AppTimeTracker.java | 109 TimeUtils.formatDuration(mTotalTime, pw); in dump() 114 TimeUtils.formatDuration(mPackageTimes.valueAt(i).value, pw); in dump() 119 TimeUtils.formatDuration(SystemClock.elapsedRealtime(), mStartedTime, pw); in dump()
|
D | ServiceRecord.java | 765 TimeUtils.formatDuration(si.deliveredTime, now, pw); in dumpStartList() 1017 TimeUtils.formatDuration(mShortFgsInfo.getStartTime(), now, pw); in dump() 1019 TimeUtils.formatDuration(mShortFgsInfo.getTimeoutTime(), now, pw); in dump() 1021 TimeUtils.formatDuration(mShortFgsInfo.getProcStateDemoteTime(), now, pw); in dump() 1023 TimeUtils.formatDuration(mShortFgsInfo.getAnrTime(), now, pw); in dump() 1031 TimeUtils.formatDuration(createRealTime, nowReal, pw); in dump() 1033 TimeUtils.formatDuration(startingBgTimeout, now, pw); in dump() 1036 TimeUtils.formatDuration(lastActivity, now, pw); in dump() 1038 TimeUtils.formatDuration(restartTime, now, pw); in dump() 1057 TimeUtils.formatDuration(executingStart, now, pw); in dump() [all …]
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/ |
D | Alarm.java | 327 TimeUtils.formatDuration(origWhen, nowELAPSED, ipw); in dump() 330 TimeUtils.formatDuration(windowLength, ipw); in dump() 345 TimeUtils.formatDuration(mPolicyWhenElapsed[i], nowELAPSED, ipw); in dump() 350 TimeUtils.formatDuration(getWhenElapsed(), nowELAPSED, ipw); in dump() 352 TimeUtils.formatDuration(mMaxWhenElapsed, nowELAPSED, ipw); in dump() 426 TimeUtils.formatDuration(mPolicyWhenElapsed[i], nowElapsed, pw); in dump()
|
D | AlarmManagerService.java | 506 TimeUtils.formatDuration(quotaInfo.expirationTime, nowElapsed, pw); in dump() 508 TimeUtils.formatDuration(quotaInfo.lastUsage, nowElapsed, pw); in dump() 592 TimeUtils.formatDuration(timestamps.get(j), nowElapsed, pw); in dump() 652 TimeUtils.formatDuration(mWhenRemovedElapsed, nowElapsed, pw); in dump() 1112 TimeUtils.formatDuration(MIN_FUTURITY, pw); in dump() 1117 TimeUtils.formatDuration(MIN_INTERVAL, pw); in dump() 1122 TimeUtils.formatDuration(MAX_INTERVAL, pw); in dump() 1127 TimeUtils.formatDuration(MIN_WINDOW, pw); in dump() 1132 TimeUtils.formatDuration(LISTENER_TIMEOUT, pw); in dump() 1140 TimeUtils.formatDuration(ALLOW_WHILE_IDLE_WINDOW, pw); in dump() [all …]
|
/frameworks/base/core/java/android/service/autofill/augmented/ |
D | AugmentedAutofillService.java | 19 import static android.util.TimeUtils.formatDuration; 608 Log.d(TAG, "Service responded nothing in " + formatDuration(duration)); in logEvent() 620 Log.d(TAG, "Inline response in " + formatDuration(duration)); in logEvent() 630 if (sDebug) Log.d(TAG, "UI shown in " + formatDuration(duration)); in logEvent() 639 if (sDebug) Log.d(TAG, "UI destroyed in " + formatDuration(duration)); in logEvent() 674 formatDuration(responseTime, pw); pw.println(); in dump() 680 formatDuration(uiRenderingTime, pw); pw.println(); in dump() 686 formatDuration(uiTotalTime, pw); pw.println(); in dump()
|
/frameworks/base/services/core/java/com/android/server/trust/ |
D | TrustArchive.java | 142 ev.message, formatDuration(ev.duration), dumpGrantFlags(ev.flags)); in dump() 154 public static String formatDuration(long duration) { in formatDuration() method in TrustArchive 156 TimeUtils.formatDuration(duration, sb); in formatDuration()
|
/frameworks/opt/car/services/updatableServices/src/com/android/internal/car/updatable/ |
D | UserMetrics.java | 318 TimeUtils.formatDuration(delta, pw); in dump() 324 TimeUtils.formatDuration(delta, pw); in dump() 329 TimeUtils.formatDuration(delta, pw); in dump() 352 TimeUtils.formatDuration(delta, pw); in dump()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/ |
D | TimeController.java | 426 TimeUtils.formatDuration(mNextDelayExpiredElapsedMillis, nowElapsed, pw); in dumpControllerStateLocked() 429 TimeUtils.formatDuration(nowElapsed, mLastFiredDelayExpiredElapsedMillis, pw); in dumpControllerStateLocked() 432 TimeUtils.formatDuration(mNextJobExpiredElapsedMillis, nowElapsed, pw); in dumpControllerStateLocked() 446 TimeUtils.formatDuration(ts.getEarliestRunTime(), nowElapsed, pw); in dumpControllerStateLocked() 452 TimeUtils.formatDuration(ts.getLatestRunTimeElapsed(), nowElapsed, pw); in dumpControllerStateLocked()
|
/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
D | BatterySavingStats.java | 421 TimeUtils.formatDuration(mLastBatterySaverEnabledTime, nowElapsed, pw); 429 TimeUtils.formatDuration(mLastBatterySaverDisabledTime, nowElapsed, pw); 441 TimeUtils.formatDuration(mLastAdaptiveBatterySaverEnabledTime, nowElapsed, pw); 449 TimeUtils.formatDuration(mLastAdaptiveBatterySaverDisabledTime, nowElapsed, pw);
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/ |
D | DeviceIdleController.java | 1761 TimeUtils.formatDuration(FLEX_TIME_SHORT, pw); in dump() 1767 TimeUtils.formatDuration(LIGHT_IDLE_AFTER_INACTIVE_TIMEOUT, pw); in dump() 1771 TimeUtils.formatDuration(LIGHT_IDLE_TIMEOUT, pw); in dump() 1775 TimeUtils.formatDuration(LIGHT_IDLE_TIMEOUT_INITIAL_FLEX, pw); in dump() 1779 TimeUtils.formatDuration(LIGHT_IDLE_TIMEOUT_MAX_FLEX, pw); in dump() 1801 TimeUtils.formatDuration(LIGHT_MAX_IDLE_TIMEOUT, pw); in dump() 1805 TimeUtils.formatDuration(LIGHT_IDLE_MAINTENANCE_MIN_BUDGET, pw); in dump() 1809 TimeUtils.formatDuration(LIGHT_IDLE_MAINTENANCE_MAX_BUDGET, pw); in dump() 1813 TimeUtils.formatDuration(MIN_LIGHT_MAINTENANCE_TIME, pw); in dump() 1817 TimeUtils.formatDuration(MIN_DEEP_MAINTENANCE_TIME, pw); in dump() [all …]
|
/frameworks/base/services/core/java/com/android/server/location/eventlog/ |
D | LocationEventLog.java | 24 import static android.util.TimeUtils.formatDuration; 757 + ", total/active/foreground duration = " + formatDuration(mAddedTimeTotalMs) in toString() 758 + "/" + formatDuration(mActiveTimeTotalMs) + "/" in toString() 759 + formatDuration(mForegroundTimeTotalMs) + ", locations = " in toString() 832 + ", total duration = " + formatDuration(mAddedTimeTotalMs) in toString()
|
/frameworks/base/core/java/android/content/ |
D | AsyncTaskLoader.java | 380 TimeUtils.formatDuration(mUpdateThrottle, writer); in dump() 382 TimeUtils.formatDuration(mLastLoadCompleteTime, in dump()
|
/frameworks/base/location/java/android/location/provider/ |
D | ProviderRequest.java | 250 TimeUtils.formatDuration(mIntervalMillis, s); in toString() 260 TimeUtils.formatDuration(mMaxUpdateDelayMillis, s); in toString()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | BroadcastResponseStatsLogger.java | 157 TimeUtils.formatDuration(timestampMs), sourceUid, targetPackage, targetUserId, in getBroadcastDispatchEventLog() 166 TimeUtils.formatDuration(timestampMs), notificationEventToString(event), in getNotificationEventLog()
|
/frameworks/base/services/core/java/com/android/server/ |
D | PreloadsFileCacheExpirationJobService.java | 60 TimeUtils.formatDuration(keepPreloadsMinTimeoutMs, sb); in schedule()
|
/frameworks/base/services/core/java/com/android/server/power/stats/wakeups/ |
D | CpuWakeupStats.java | 338 TimeUtils.formatDuration(mWakeupEvents.keyAt(i), nowElapsed, pw); in dump() 483 TimeUtils.formatDuration(wakingActivity.keyAt(j), nowElapsed, pw); in dump() 721 TimeUtils.formatDuration(WAKEUP_STATS_RETENTION_MS, pw); in dump() 726 TimeUtils.formatDuration(WAKEUP_MATCHING_WINDOW_MS, pw); in dump() 731 TimeUtils.formatDuration(WAKING_ACTIVITY_RETENTION_MS, pw); in dump()
|
/frameworks/base/core/java/android/text/format/ |
D | DateUtils.java | 384 public static CharSequence formatDuration(long millis) { in formatDuration() method in DateUtils 385 return formatDuration(millis, LENGTH_LONG); in formatDuration() 400 public static CharSequence formatDuration(long millis, int abbrev) { in formatDuration() method in DateUtils
|
/frameworks/base/core/java/com/android/internal/app/procstats/ |
D | UidState.java | 296 TimeUtils.formatDuration(time, pw); pw.println(running); in dumpState() 312 TimeUtils.formatDuration(totalTime, pw); in dumpState()
|