/frameworks/base/core/tests/coretests/src/android/text/format/ |
DateUtilsTest.java | 24 // This test is not in CTS because formatDuration is @hidden. 27 assertEquals("0 seconds", DateUtils.formatDuration(0)); 28 assertEquals("0 seconds", DateUtils.formatDuration(1)); 29 assertEquals("0 seconds", DateUtils.formatDuration(499)); 30 assertEquals("1 second", DateUtils.formatDuration(500)); 31 assertEquals("1 second", DateUtils.formatDuration(1000)); 32 assertEquals("2 seconds", DateUtils.formatDuration(1500)); 35 // This test is not in CTS because formatDuration is @hidden. 38 assertEquals("59 seconds", DateUtils.formatDuration(59000)); 39 assertEquals("60 seconds", DateUtils.formatDuration(59500)) [all...] |
/frameworks/base/services/core/java/com/android/server/notification/ |
SystemConditionProviderService.java | 44 protected static String formatDuration(long millis) { 46 TimeUtils.formatDuration(millis, sb); 53 pw.printf("%s, in %s, now=%s", ts(time), formatDuration(time - now), ts(now));
|
/frameworks/base/core/java/com/android/internal/os/ |
KernelUidCpuTimeReader.java | 103 TimeUtils.formatDuration(timeDiffUs / 1000, sb); 106 TimeUtils.formatDuration(mLastUserTimeUs.valueAt(index) / 1000, sb); 108 TimeUtils.formatDuration(mLastSystemTimeUs.valueAt(index) / 1000, sb); 113 TimeUtils.formatDuration(userTimeUs / 1000, sb); 115 TimeUtils.formatDuration(systemTimeUs / 1000, sb); 119 TimeUtils.formatDuration(userTimeDeltaUs / 1000, sb); 121 TimeUtils.formatDuration(systemTimeDeltaUs / 1000, sb);
|
/frameworks/support/compat/java/android/support/v4/util/ |
TimeUtils.java | 147 public static void formatDuration(long duration, StringBuilder builder) { 155 public static void formatDuration(long duration, PrintWriter pw, int fieldLen) { 163 public static void formatDuration(long duration, PrintWriter pw) { 164 formatDuration(duration, pw, 0); 168 public static void formatDuration(long time, long now, PrintWriter pw) { 173 formatDuration(time-now, pw, 0);
|
/frameworks/base/services/core/java/com/android/server/am/ |
AppTimeTracker.java | 107 TimeUtils.formatDuration(mTotalTime, pw); 112 TimeUtils.formatDuration(mPackageTimes.valueAt(i).value, pw); 117 TimeUtils.formatDuration(SystemClock.elapsedRealtime(), mStartedTime, pw);
|
ContentProviderConnection.java | 92 TimeUtils.formatDuration(nowReal-createTime, sb);
|
UidRecord.java | 69 TimeUtils.formatDuration(SystemClock.elapsedRealtime()-lastBackgroundTime, sb);
|
BroadcastRecord.java | 130 TimeUtils.formatDuration(dispatchTime, now, pw); 132 TimeUtils.formatDuration(dispatchClockTime-enqueueClockTime, pw); 135 pw.print(" finishTime="); TimeUtils.formatDuration(finishTime, now, pw); 137 TimeUtils.formatDuration(finishTime-dispatchTime, pw); 140 pw.print(" receiverTime="); TimeUtils.formatDuration(receiverTime, now, pw);
|
ProcessRecord.java | 269 TimeUtils.formatDuration(lastActivityTime, now, pw); 271 TimeUtils.formatDuration(lastPssTime, now, pw); 273 TimeUtils.formatDuration(nextPssTime, now, pw); 307 TimeUtils.formatDuration(lastStateTime, now, pw); 325 TimeUtils.formatDuration(interactionEventTime, SystemClock.elapsedRealtime(), pw); 329 TimeUtils.formatDuration(fgInteractionTime, SystemClock.elapsedRealtime(), pw); 344 TimeUtils.formatDuration(lastProviderTime, now, pw); 358 TimeUtils.formatDuration(wtime-lastWakeTime, pw); pw.println(""); 361 TimeUtils.formatDuration(curCpuTime-lastCpuTime, pw); pw.println(""); 364 TimeUtils.formatDuration(lastRequestedGc, now, pw) [all...] |
ServiceRecord.java | 185 TimeUtils.formatDuration(si.deliveredTime, now, pw); 241 TimeUtils.formatDuration(createTime, nowReal, pw); 243 TimeUtils.formatDuration(startingBgTimeout, now, pw); 246 TimeUtils.formatDuration(lastActivity, now, pw); 248 TimeUtils.formatDuration(restartTime, now, pw); 261 TimeUtils.formatDuration(executingStart, now, pw); 267 TimeUtils.formatDuration(destroyTime, now, pw); 274 TimeUtils.formatDuration(restartDelay, now, pw); 276 TimeUtils.formatDuration(nextRestartTime, now, pw);
|
/frameworks/base/core/java/android/util/ |
TimeUtils.java | 389 public static void formatDuration(long duration, StringBuilder builder) { 397 public static void formatDuration(long duration, PrintWriter pw, int fieldLen) { 405 public static void formatDuration(long duration, PrintWriter pw) { 406 formatDuration(duration, pw, 0); 410 public static void formatDuration(long time, long now, PrintWriter pw) { 415 formatDuration(time-now, pw, 0);
|
/frameworks/base/location/java/com/android/internal/location/ |
ProviderRequest.java | 87 TimeUtils.formatDuration(interval, s);
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
TimeController.java | 295 TimeUtils.formatDuration(mNextDelayExpiredElapsedMillis, nowElapsed, pw); 298 TimeUtils.formatDuration(mNextJobExpiredElapsedMillis, nowElapsed, pw); 313 TimeUtils.formatDuration(ts.getEarliestRunTime(), nowElapsed, pw); 319 TimeUtils.formatDuration(ts.getLatestRunTimeElapsed(), nowElapsed, pw);
|
JobStatus.java | 590 TimeUtils.formatDuration(job.getIntervalMillis(), pw); 591 pw.print(" flex="); TimeUtils.formatDuration(job.getFlexMillis(), pw); 617 TimeUtils.formatDuration(job.getTriggerContentUpdateDelay(), pw); 622 TimeUtils.formatDuration(job.getTriggerContentMaxDelay(), pw); 631 TimeUtils.formatDuration(job.getMinLatencyMillis(), pw); 636 TimeUtils.formatDuration(job.getMaxExecutionDelayMillis(), pw); 640 pw.print(" initial="); TimeUtils.formatDuration(job.getInitialBackoffMillis(), pw);
|
/packages/apps/Dialer/InCallUI/src/com/android/incallui/ |
InCallDateUtils.java | 17 public static String formatDuration(Context context, long millis) {
|
/frameworks/base/services/core/java/com/android/server/ |
DeviceIdleController.java | [all...] |
NetworkTimeUpdateService.java | 336 TimeUtils.formatDuration(mPollingIntervalMs, pw); 338 TimeUtils.formatDuration(mPollingIntervalShorterMs, pw); 341 TimeUtils.formatDuration(mTimeErrorThresholdMs, pw); 344 TimeUtils.formatDuration(mLastNtpFetchTime, pw);
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/ |
BasicDurationFormat.java | 43 String res = formatDuration(object); 92 public String formatDuration(Object obj) {
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/ |
BasicDurationFormat.java | 41 String res = formatDuration(object); 90 public String formatDuration(Object obj) {
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
CallDetailHistoryAdapter.java | 131 private CharSequence formatDuration(long elapsedSeconds) { 154 CharSequence duration = formatDuration(elapsedSeconds);
|
/frameworks/support/v7/mediarouter/src/android/support/v7/media/ |
MediaSessionStatus.java | 132 TimeUtils.formatDuration(SystemClock.elapsedRealtime() - getTimestamp(), result);
|
/frameworks/base/location/java/android/location/ |
LocationRequest.java | 657 TimeUtils.formatDuration(mInterval, s); 660 TimeUtils.formatDuration(mFastestInterval, s); 664 TimeUtils.formatDuration(expireIn, s);
|
/frameworks/base/services/core/java/com/android/server/trust/ |
TrustArchive.java | 142 ev.message, formatDuration(ev.duration), dumpGrantFlags(ev.flags)); 154 public static String formatDuration(long duration) { 156 TimeUtils.formatDuration(duration, sb);
|
/frameworks/base/core/java/android/app/job/ |
JobInfo.java | 19 import static android.util.TimeUtils.formatDuration; 831 formatDuration(mIntervalMillis, builder); 833 formatDuration(job.getIntervalMillis(), builder); 841 formatDuration(mFlexMillis, builder); [all...] |
/frameworks/base/services/usage/java/com/android/server/usage/ |
AppIdleHistory.java | 386 TimeUtils.formatDuration(totalElapsedTime - packageHistory.lastUsedElapsedTime, idpw); 388 TimeUtils.formatDuration(screenOnTime - packageHistory.lastUsedScreenTime, idpw); 394 TimeUtils.formatDuration(getElapsedTimeLocked(elapsedRealtime), idpw); 397 TimeUtils.formatDuration(getScreenOnTimeLocked(elapsedRealtime), idpw);
|