Home
last modified time | relevance | path

Searched refs:formatDuration (Results 1 – 19 of 19) sorted by relevance

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/util/
DFormatUtilsTest.java26 assertEquals("0 seconds", FormatUtils.formatDuration(0)); in testFormatDuration_seconds()
27 assertEquals("0 seconds", FormatUtils.formatDuration(1)); in testFormatDuration_seconds()
28 assertEquals("0 seconds", FormatUtils.formatDuration(499)); in testFormatDuration_seconds()
29 assertEquals("1 second", FormatUtils.formatDuration(500)); in testFormatDuration_seconds()
30 assertEquals("1 second", FormatUtils.formatDuration(1000)); in testFormatDuration_seconds()
31 assertEquals("2 seconds", FormatUtils.formatDuration(1500)); in testFormatDuration_seconds()
36 assertEquals("59 seconds", FormatUtils.formatDuration(59000)); in testFormatDuration_Minutes()
37 assertEquals("60 seconds", FormatUtils.formatDuration(59500)); in testFormatDuration_Minutes()
38 assertEquals("1 minute", FormatUtils.formatDuration(60000)); in testFormatDuration_Minutes()
39 assertEquals("1 minute", FormatUtils.formatDuration(65000)); in testFormatDuration_Minutes()
[all …]
/packages/services/Car/service/src/com/android/car/user/
DUserMetrics.java260 TimeUtils.formatDuration(mFirstUserUnlockDuration.valueAt(0), pw); in dump()
280 TimeUtils.formatDuration(mHalResponseTime, pw); in dump()
360 TimeUtils.formatDuration(delta, pw); in dump()
366 TimeUtils.formatDuration(delta, pw); in dump()
371 TimeUtils.formatDuration(delta, pw); in dump()
394 TimeUtils.formatDuration(delta, pw); in dump()
/packages/apps/Dialer/java/com/android/dialer/calllogutils/
DCallLogDurations.java30 private static CharSequence formatDuration(Context context, long elapsedSeconds) { in formatDuration() method in CallLogDurations
89 context, formatDuration(context, elapsedSeconds), dataUsage); in formatDurationAndDataUsage()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/services/
DAbstractCopyJobTest.java185 DateUtils.formatDuration((Long) time))); in runCopyProgressForFileCountTest()
219 DateUtils.formatDuration((Long) time))); in runCopyProgressForByteCountTest()
/packages/apps/DocumentsUI/src/com/android/documentsui/util/
DFormatUtils.java44 public static String formatDuration(long millis) { in formatDuration() method in FormatUtils
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DMigrateEstimateTask.java108 final String time = DateUtils.formatDuration(timeMillis).toString(); in onPostExecute()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/
DMigrateEstimateTask.java108 final String time = DateUtils.formatDuration(timeMillis).toString(); in onPostExecute()
/packages/apps/DocumentsUI/src/com/android/documentsui/ui/
DOperationProgressDialog.java74 FormatUtils.formatDuration(message.arg2))); in OperationProgressDialog()
/packages/apps/Camera2/src/com/android/camera/data/
DMediaDetails.java176 public static String formatDuration(final Context context, long seconds) { in formatDuration() method in MediaDetails
DVideoItem.java134 String duration = MediaDetails.formatDuration(mContext, in getMediaDetails()
/packages/apps/Settings/src/com/android/settings/applications/
DProcessStatsUi.java147 TimeUtils.formatDuration(time, sb); in makeDuration()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DProcessStatsUi.java147 TimeUtils.formatDuration(time, sb); in makeDuration()
/packages/apps/Gallery/src/com/android/camera/
DMovieViewControl.java115 MenuHelper.formatDuration(context, bookmark))); in MovieViewControl()
DMenuHelper.java870 public static String formatDuration(final Context context,
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocalVideo.java222 details.addDetail(MediaDetails.INDEX_DURATION, GalleryUtils.formatDuration( in getDetails()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DMoviePlayer.java252 GalleryUtils.formatDuration(context, bookmark / 1000))); in showResumeDialog()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DGalleryUtils.java339 public static String formatDuration(final Context context, int duration) { in formatDuration() method in GalleryUtils
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadNotifier.java315 DateUtils.formatDuration(remainingMillis)); in updateWithLocked()
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DCopyJob.java149 FormatUtils.formatDuration(remainingTime))); in getProgressNotification()