/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | TimerStringFormatter.java | 40 final int seconds; in formatTimeRemaining() local 48 seconds = 0; in formatTimeRemaining() 59 seconds = roundedSeconds; in formatTimeRemaining() 65 seconds = roundedSeconds; in formatTimeRemaining() 74 final String secSeq = Utils.getNumberFormattedQuantityString(context, R.plurals.seconds, in formatTimeRemaining() 75 seconds); in formatTimeRemaining() 78 final String remainingSuffix = context.getString((minutes > 1 || hours > 1 || seconds > 1) in formatTimeRemaining() 84 final boolean showSeconds = (seconds > 0) && shouldShowSeconds; in formatTimeRemaining()
|
D | TimerStringFormatter.kt | 42 val seconds: Int in formatTimeRemaining() constant 50 seconds = 0 in formatTimeRemaining() 61 seconds = roundedSeconds in formatTimeRemaining() 67 seconds = roundedSeconds in formatTimeRemaining() 74 val secSeq = Utils.getNumberFormattedQuantityString(context, R.plurals.seconds, seconds) in formatTimeRemaining() 78 context.getString(if (minutes > 1 || hours > 1 || seconds > 1) { in formatTimeRemaining() 86 val showSeconds = seconds > 0 && shouldShowSeconds in formatTimeRemaining()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | TimerTextController.java | 49 int seconds = (int) (remainder / SECOND_IN_MILLIS); in setTimeString() local 54 seconds++; in setTimeString() 55 if (seconds == 60) { in setTimeString() 56 seconds = 0; in setTimeString() 65 String time = Utils.getTimeString(mTextView.getContext(), hours, minutes, seconds); in setTimeString() 66 if (isNegative && !(hours == 0 && minutes == 0 && seconds == 0)) { in setTimeString()
|
D | Utils.java | 598 static String getTimeString(Context context, int hours, int minutes, int seconds) { in getTimeString() argument 600 return context.getString(R.string.hours_minutes_seconds, hours, minutes, seconds); in getTimeString() 603 return context.getString(R.string.minutes_seconds, minutes, seconds); in getTimeString() 605 return context.getString(R.string.seconds, seconds); in getTimeString()
|
D | StopwatchTextController.java | 56 final int seconds = (int) (remainder / SECOND_IN_MILLIS); in setTimeString() local 66 final String time = Utils.getTimeString(context, hours, minutes, seconds); in setTimeString()
|
/packages/apps/Dialer/java/com/android/dialer/calllogutils/ |
D | CallLogDurations.java | 34 long seconds = elapsedSeconds - TimeUnit.MINUTES.toSeconds(minutes); in formatDuration() local 46 Long.toString(seconds), in formatDuration() 53 R.string.call_duration_short_format_pattern, Long.toString(seconds), secondsString); in formatDuration() 65 int seconds = (int) elapsedSeconds - minutes * 60; in formatDurationA11y() local 67 String secondsString = res.getQuantityString(R.plurals.a11y_seconds, seconds); in formatDurationA11y() 70 R.string.a11y_call_duration_format, minutes, minutesString, seconds, secondsString); in formatDurationA11y()
|
/packages/apps/DeskClock/tests/src/com/android/deskclock/timer/ |
D | TimerSetupViewTest.java | 266 private void assertHasValue(int hours, int minutes, int seconds) { in assertHasValue() argument 268 hours * HOUR_IN_MILLIS + minutes * MINUTE_IN_MILLIS + seconds * SECOND_IN_MILLIS; in assertHasValue() 269 assertStateEquals(hours, minutes, seconds); in assertHasValue() 274 String.format(Locale.US, "%02dh %02dm %02ds", hours, minutes, seconds); in assertHasValue() 278 assertTrue(TextUtils.equals("Delete " + seconds % 10, deleteView.getContentDescription())); in assertHasValue() 296 private void assertStateEquals(int hours, int minutes, int seconds) { in assertStateEquals() argument 298 seconds % 10, seconds / 10, minutes % 10, minutes / 10, hours % 10, hours / 10 in assertStateEquals()
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerSetupView.java | 205 final int seconds = mInput[1] * 10 + mInput[0]; in updateTime() local 213 uidm.getFormattedNumber(seconds, 2))); in updateTime() 219 r.getQuantityString(R.plurals.seconds, seconds, seconds))); in updateTime() 306 final int seconds = mInput[1] * 10 + mInput[0]; in getTimeInMillis() local 309 return seconds * DateUtils.SECOND_IN_MILLIS in getTimeInMillis()
|
D | TimerSetupView.kt | 180 val seconds = mInput[1] * 10 + mInput[0] in updateTime() constant 188 uidm.getFormattedNumber(seconds, 2)) in updateTime() 194 r.getQuantityString(R.plurals.seconds, seconds, seconds)) in updateTime() 280 val seconds = mInput[1] * 10 + mInput[0] constant 283 return seconds * DateUtils.SECOND_IN_MILLIS +
|
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
D | LapsAdapter.kt | 304 val seconds: Int in formatTime() constant 309 seconds = hundredths in formatTime() 310 minutes = seconds in formatTime() 317 seconds = (remainder / DateUtils.SECOND_IN_MILLIS).toInt() in formatTime() 353 sTimeBuilder.append(UiDataModel.uiDataModel.getFormattedNumber(seconds, 2)) in formatTime()
|
D | LapsAdapter.java | 242 final int hours, minutes, seconds, hundredths; in formatTime() local 245 hours = minutes = seconds = hundredths = 0; in formatTime() 253 seconds = (int) (remainder / DateUtils.SECOND_IN_MILLIS); in formatTime() 284 sTimeBuilder.append(UiDataModel.getUiDataModel().getFormattedNumber(seconds, 2)); in formatTime()
|
/packages/apps/Car/Cluster/src/android/car/cluster/ |
D | NavStateController.java | 158 long seconds = eta.getSeconds() - Instant.now().getEpochSecond(); in formatEta() local 161 seconds = (long) Math.ceil(seconds / 60d) * 60; in formatEta() 163 long minutes = (seconds / 60) % 60; in formatEta() 164 long hours = (seconds / 3600) % 24; in formatEta() 165 long days = seconds / (3600 * 24); in formatEta()
|
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/playback/ |
D | PlaybackProgress.java | 79 long seconds = TimeUnit.MILLISECONDS.toSeconds(millis) % TimeUnit.MINUTES.toSeconds(1); in formatTime() local 81 return String.format("%d:%02d:%02d", hours, minutes, seconds); in formatTime() 83 return String.format("%d:%02d", minutes, seconds); in formatTime()
|
/packages/apps/Camera2/src/com/android/camera/data/ |
D | MediaDetails.java | 176 public static String formatDuration(final Context context, long seconds) { in formatDuration() argument 177 long h = seconds / 3600; in formatDuration() 178 long m = (seconds - h * 3600) / 60; in formatDuration() 179 long s = seconds - (h * 3600 + m * 60); in formatDuration()
|
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/ |
D | VoicemailPlaybackLayout.java | 362 int seconds = millis / 1000; in formatAsMinutesAndSeconds() local 363 int minutes = seconds / 60; in formatAsMinutesAndSeconds() 364 seconds -= minutes * 60; in formatAsMinutesAndSeconds() 368 return String.format("%02d:%02d", minutes, seconds); in formatAsMinutesAndSeconds()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | TimeBar.java | 252 int seconds = totalSeconds % 60; in stringForTime() local 256 return String.format("%d:%02d:%02d", hours, minutes, seconds).toString(); in stringForTime() 258 return String.format("%02d:%02d", minutes, seconds).toString(); in stringForTime()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/util/ |
D | FormatUtils.java | 55 final int seconds = in formatDuration() local 57 return formatter.format(new Measure(seconds, MeasureUnit.SECOND)); in formatDuration()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/utils/ |
D | Utils.java | 598 long seconds = Math.max(1, duration / 1000); in getTimeDiffStr() local 599 if (seconds < 60) { in getTimeDiffStr() 600 return context.getResources().getQuantityString(R.plurals.seconds, (int) seconds, in getTimeDiffStr() 601 seconds); in getTimeDiffStr() 603 long minutes = seconds / 60; in getTimeDiffStr()
|
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/calendarsync/proto/ |
D | calendar.proto | 153 // Represents seconds of UTC time since Unix epoch 156 int64 seconds = 1; field 164 // The difference in seconds between the time zone and Greenwich Mean Time.
|
/packages/modules/DnsResolver/ |
D | DnsTlsSocket.h | 128 static constexpr std::chrono::seconds kIdleTimeout = std::chrono::seconds(20);
|
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/ |
D | VoicemailEntryText.java | 99 long seconds = voicemailEntry.getDuration() - TimeUnit.MINUTES.toSeconds(minutes); in getVoicemailDuration() local 111 return context.getString(R.string.voicemailDurationFormat, minutes, seconds); in getVoicemailDuration()
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarInstancesHelper.java | 237 duration.seconds = 0; in performInstanceExpansion() 308 duration.seconds = 0; in performInstanceExpansion() 320 duration.seconds = (int) ((dtendMillis - dtstartMillis) / 1000); in performInstanceExpansion() 321 durationStr = "+P" + duration.seconds + "S"; in performInstanceExpansion() 323 duration.seconds = 0; in performInstanceExpansion()
|
/packages/services/Car/service/src/com/android/car/garagemode/ |
D | Controller.java | 171 int seconds = mWakeupPolicy.getNextWakeUpInterval(); in scheduleNextWakeup() local 172 mCarPowerManager.scheduleNextWakeupTime(seconds); in scheduleNextWakeup()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/ |
D | MetadataUtils.java | 106 double seconds = Double.parseDouble(pair[0].trim()) in convertRationalLatLonToFloat() local 109 double result = degrees + (minutes / 60.0) + (seconds / 3600.0); in convertRationalLatLonToFloat()
|
/packages/services/Car/car-lib/src/android/car/hardware/power/ |
D | CarPowerManager.java | 156 public void scheduleNextWakeupTime(int seconds) { in scheduleNextWakeupTime() argument 158 mService.scheduleNextWakeupTime(seconds); in scheduleNextWakeupTime()
|