/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/java/com/android/server/am/ |
ServiceRecord.java | 172 TimeUtils.formatDuration(si.deliveredTime, now, pw); 227 TimeUtils.formatDuration(createTime, nowReal, pw); 229 TimeUtils.formatDuration(lastActivity, now, pw); 232 TimeUtils.formatDuration(executingStart, now, pw); 234 TimeUtils.formatDuration(restartTime, now, pw); 247 TimeUtils.formatDuration(restartDelay, now, pw); 249 TimeUtils.formatDuration(nextRestartTime, now, pw);
|
BroadcastRecord.java | 106 TimeUtils.formatDuration(dispatchTime, now, pw); 108 pw.print(" finishTime="); TimeUtils.formatDuration(finishTime, now, pw); 110 pw.print(" receiverTime="); TimeUtils.formatDuration(receiverTime, now, pw);
|
ContentProviderConnection.java | 92 TimeUtils.formatDuration(nowReal-createTime, sb);
|
ProcessRecord.java | 200 TimeUtils.formatDuration(lastActivityTime, now, pw); 249 TimeUtils.formatDuration(timeUsed, pw); pw.println(""); 252 TimeUtils.formatDuration(curCpuTime-lastCpuTime, pw); pw.println(""); 255 TimeUtils.formatDuration(lastRequestedGc, now, pw); 257 TimeUtils.formatDuration(lastLowMemory, now, pw);
|
ActivityRecord.java | 211 else TimeUtils.formatDuration(lastLaunchTime, now, pw); 241 else TimeUtils.formatDuration(launchTime, now, pw); 244 else TimeUtils.formatDuration(startTime, now, pw); 252 else TimeUtils.formatDuration(lastVisibleTime, now, pw); [all...] |
/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);
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
CallDetailHistoryAdapter.java | 157 durationView.setText(formatDuration(details.duration)); 163 private String formatDuration(long elapsedSeconds) {
|
/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/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/java/android/content/ |
AsyncTaskLoader.java | 361 TimeUtils.formatDuration(mUpdateThrottle, writer); 363 TimeUtils.formatDuration(mLastLoadCompleteTime,
|
/packages/apps/Gallery/src/com/android/camera/ |
MovieViewControl.java | 115 MenuHelper.formatDuration(context, bookmark)));
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
LocalVideo.java | 220 details.addDetail(MediaDetails.INDEX_DURATION, GalleryUtils.formatDuration(
|
/frameworks/base/services/java/com/android/server/ |
AlarmManagerService.java | 538 TimeUtils.formatDuration(now, pw); pw.println("):"); 596 TimeUtils.formatDuration(fs.aggregateTime, pw); 620 pw.print(" "); TimeUtils.formatDuration(bs.aggregateTime, pw); 633 TimeUtils.formatDuration(fs.aggregateTime, pw); 772 pw.print(" when="); TimeUtils.formatDuration(when, now, pw); [all...] |
AppOpsService.java | [all...] |
DeviceStorageMonitorService.java | 476 TimeUtils.formatDuration(mLastReportedFreeMemTime, SystemClock.elapsedRealtime(), pw);
|
/frameworks/base/location/java/android/location/ |
LocationRequest.java | 592 TimeUtils.formatDuration(mInterval, s); 595 TimeUtils.formatDuration(mFastestInterval, s); 599 TimeUtils.formatDuration(expireIn, s);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/editors/ |
GLFunctionTraceViewer.java | 715 return formatDuration(c.getWallDuration()); 717 return formatDuration(c.getThreadDuration()); 723 private String formatDuration(int time) { [all...] |
/frameworks/base/services/java/com/android/server/wm/ |
AppWindowAnimator.java | 298 TimeUtils.formatDuration(lastFreezeDuration, pw); pw.println();
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
DownloadNotifier.java | 226 DateUtils.formatDuration(remainingMillis));
|
/frameworks/base/core/java/android/os/ |
BatteryStats.java | [all...] |
Message.java | 442 TimeUtils.formatDuration(when-now, b);
|