/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/support/v4/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/trust/ |
TrustArchive.java | 133 ev.message, formatDuration(ev.duration), ev.userInitiated ? 1 : 0); 145 public static String formatDuration(long duration) { 147 TimeUtils.formatDuration(duration, sb);
|
/frameworks/base/core/java/android/util/ |
TimeUtils.java | 366 public static void formatDuration(long duration, StringBuilder builder) { 374 public static void formatDuration(long duration, PrintWriter pw, int fieldLen) { 382 public static void formatDuration(long duration, PrintWriter pw) { 383 formatDuration(duration, pw, 0); 387 public static void formatDuration(long time, long now, PrintWriter pw) { 392 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/am/ |
ContentProviderConnection.java | 92 TimeUtils.formatDuration(nowReal-createTime, sb);
|
ServiceRecord.java | 177 TimeUtils.formatDuration(si.deliveredTime, now, pw); 230 TimeUtils.formatDuration(createTime, nowReal, pw); 232 TimeUtils.formatDuration(startingBgTimeout, now, pw); 235 TimeUtils.formatDuration(lastActivity, now, pw); 237 TimeUtils.formatDuration(restartTime, now, pw); 250 TimeUtils.formatDuration(executingStart, now, pw); 257 TimeUtils.formatDuration(restartDelay, now, pw); 259 TimeUtils.formatDuration(nextRestartTime, now, pw);
|
BroadcastRecord.java | 108 TimeUtils.formatDuration(dispatchTime, now, pw); 110 pw.print(" finishTime="); TimeUtils.formatDuration(finishTime, now, pw); 112 pw.print(" receiverTime="); TimeUtils.formatDuration(receiverTime, now, pw);
|
ProcessRecord.java | 230 TimeUtils.formatDuration(lastActivityTime, now, pw); 232 TimeUtils.formatDuration(lastPssTime, now, pw); 234 TimeUtils.formatDuration(nextPssTime, now, pw); 264 TimeUtils.formatDuration(lastStateTime, now, pw); 297 TimeUtils.formatDuration(wtime-lastWakeTime, pw); pw.println(""); 300 TimeUtils.formatDuration(curCpuTime-lastCpuTime, pw); pw.println(""); 303 TimeUtils.formatDuration(lastRequestedGc, now, pw); 305 TimeUtils.formatDuration(lastLowMemory, now, pw);
|
ActivityRecord.java | 261 else TimeUtils.formatDuration(lastLaunchTime, now, pw); 285 else TimeUtils.formatDuration(displayStartTime, now, pw); 288 else TimeUtils.formatDuration(startTime, now, pw); 296 else TimeUtils.formatDuration(lastVisibleTime, now, pw); [all...] |
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
CallDetailHistoryAdapter.java | 149 private CharSequence formatDuration(long elapsedSeconds) { 170 CharSequence duration = formatDuration(elapsedSeconds);
|
/frameworks/support/v7/mediarouter/src/android/support/v7/media/ |
MediaSessionStatus.java | 132 TimeUtils.formatDuration(SystemClock.elapsedRealtime() - getTimestamp(), result);
|
MediaItemStatus.java | 259 TimeUtils.formatDuration(SystemClock.elapsedRealtime() - getTimestamp(), result);
|
/frameworks/base/location/java/android/location/ |
LocationRequest.java | 656 TimeUtils.formatDuration(mInterval, s); 659 TimeUtils.formatDuration(mFastestInterval, s); 663 TimeUtils.formatDuration(expireIn, s);
|
/frameworks/base/core/java/android/content/ |
AsyncTaskLoader.java | 370 TimeUtils.formatDuration(mUpdateThrottle, writer); 372 TimeUtils.formatDuration(mLastLoadCompleteTime,
|
/frameworks/support/v4/java/android/support/v4/content/ |
AsyncTaskLoader.java | 279 TimeUtils.formatDuration(mUpdateThrottle, writer); 281 TimeUtils.formatDuration(mLastLoadCompleteTime,
|
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/views/ |
FrameSummaryViewPage.java | 367 cell.setText(formatDuration(stats.wallDuration)); 370 cell.setText(formatDuration(stats.threadDuration)); 379 private String formatDuration(long time) {
|
/frameworks/base/core/tests/coretests/src/android/util/ |
TimeUtilsTest.java | 445 // TODO: improve formatDuration() API 452 TimeUtils.formatDuration(duration, sb); 453 assertEquals("formatDuration(" + duration + ")", expected, sb.toString());
|
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/ |
UsageStatsActivity.java | 136 holder.usageTime.setText(DateUtils.formatDuration(
|
/frameworks/base/services/core/java/com/android/server/ |
AlarmManagerService.java | 861 pw.print(" nowELAPSED="); TimeUtils.formatDuration(nowELAPSED, pw); 865 TimeUtils.formatDuration(nowELAPSED - mNonInteractiveStartTime, pw); 868 TimeUtils.formatDuration(currentNonWakeupFuzzLocked(nowELAPSED), pw); 871 TimeUtils.formatDuration(nowELAPSED - mLastAlarmDeliveryTime, pw); 874 TimeUtils.formatDuration(nowELAPSED - mNextNonWakeupDeliveryTime, pw); [all...] |
/frameworks/base/core/java/android/os/ |
Message.java | 482 TimeUtils.formatDuration(when - now, b);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
DozeLog.java | 159 TimeUtils.formatDuration(System.currentTimeMillis() - sSince, pw);
|
/packages/apps/Camera2/src/com/android/camera/data/ |
MediaDetails.java | 176 public static String formatDuration(final Context context, long seconds) {
|
/packages/apps/Gallery/src/com/android/camera/ |
MovieViewControl.java | 115 MenuHelper.formatDuration(context, bookmark)));
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
LocalVideo.java | 222 details.addDetail(MediaDetails.INDEX_DURATION, GalleryUtils.formatDuration(
|