Home
last modified time | relevance | path

Searched refs:elapsedSeconds (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Dialer/java/com/android/dialer/calllogutils/
DCallLogDurations.java30 private static CharSequence formatDuration(Context context, long elapsedSeconds) { in formatDuration() argument
33 long minutes = TimeUnit.SECONDS.toMinutes(elapsedSeconds); in formatDuration()
34 long seconds = elapsedSeconds - TimeUnit.MINUTES.toSeconds(minutes); in formatDuration()
37 if (elapsedSeconds >= 60) { in formatDuration()
61 private static CharSequence formatDurationA11y(Context context, long elapsedSeconds) { in formatDurationA11y() argument
63 if (elapsedSeconds >= 60) { in formatDurationA11y()
64 int minutes = (int) (elapsedSeconds / 60); in formatDurationA11y()
65 int seconds = (int) elapsedSeconds - minutes * 60; in formatDurationA11y()
72 String secondsString = res.getQuantityString(R.plurals.a11y_seconds, (int) elapsedSeconds); in formatDurationA11y()
75 R.string.a11y_call_duration_short_format, elapsedSeconds, secondsString); in formatDurationA11y()
[all …]
/packages/apps/Camera2/src/com/android/camera/one/v2/stats/
DPreviewFpsListener.java56 double elapsedSeconds = (double)elapsedNanos / NANO_TO_SECOND_DENOMINATOR; in onStarted() local
60 if(elapsedSeconds > WARNING_THRESHOLD_SECONDS) { in onStarted()
65 elapsedSeconds * 1000, in onStarted()
70 (1.0f-EXISTING_VALUE_WEIGHT) * elapsedSeconds; in onStarted()