/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/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/java/com/android/server/am/ |
ContentProviderConnection.java | 92 TimeUtils.formatDuration(nowReal-createTime, sb);
|
ServiceRecord.java | 178 TimeUtils.formatDuration(si.deliveredTime, now, pw); 236 TimeUtils.formatDuration(createTime, nowReal, pw); 238 TimeUtils.formatDuration(startingBgTimeout, now, pw); 241 TimeUtils.formatDuration(lastActivity, now, pw); 243 TimeUtils.formatDuration(restartTime, now, pw); 256 TimeUtils.formatDuration(executingStart, now, pw); 263 TimeUtils.formatDuration(restartDelay, now, pw); 265 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 | 216 TimeUtils.formatDuration(lastActivityTime, now, pw); 218 TimeUtils.formatDuration(lastPssTime, now, pw); 220 TimeUtils.formatDuration(nextPssTime, now, pw); 251 TimeUtils.formatDuration(lastStateTime, now, pw); 283 TimeUtils.formatDuration(timeUsed, pw); pw.println(""); 286 TimeUtils.formatDuration(curCpuTime-lastCpuTime, pw); pw.println(""); 289 TimeUtils.formatDuration(lastRequestedGc, now, pw); 291 TimeUtils.formatDuration(lastLowMemory, now, pw);
|
ActivityRecord.java | 224 else TimeUtils.formatDuration(lastLaunchTime, now, pw); 256 else TimeUtils.formatDuration(displayStartTime, now, pw); 259 else TimeUtils.formatDuration(startTime, now, pw); 267 else TimeUtils.formatDuration(lastVisibleTime, now, pw); [all...] |
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
CallDetailHistoryAdapter.java | 157 durationView.setText(formatDuration(details.duration)); 163 private String formatDuration(long 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 | 644 TimeUtils.formatDuration(mInterval, s); 647 TimeUtils.formatDuration(mFastestInterval, s); 651 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/core/java/android/os/ |
Message.java | 439 TimeUtils.formatDuration(when - now, b);
|
/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(
|
/frameworks/base/services/java/com/android/server/wm/ |
AppWindowAnimator.java | 297 TimeUtils.formatDuration(lastFreezeDuration, pw); pw.println();
|
/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/ |
AppOpsService.java | [all...] |
AlarmManagerService.java | [all...] |