Home
last modified time | relevance | path

Searched refs:formatDuration (Results 1 – 16 of 16) 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/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/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/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/util/
DGalleryUtils.java339 public static String formatDuration(final Context context, int duration) { in formatDuration() method in GalleryUtils
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DMoviePlayer.java252 GalleryUtils.formatDuration(context, bookmark / 1000))); in showResumeDialog()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadNotifier.java319 DateUtils.formatDuration(remainingMillis)); in updateWithLocked()
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DCopyJob.java149 FormatUtils.formatDuration(remainingTime))); in getProgressNotification()