Home
last modified time | relevance | path

Searched refs:minutes (Results 1 – 25 of 65) sorted by relevance

123

/packages/apps/Settings/src/com/android/settings/notification/
DZenModeVoiceActivity.java50 int minutes = intent.getIntExtra(EXTRA_DO_NOT_DISTURB_MODE_MINUTES, -1); in onVoiceSettingInteraction() local
55 if (minutes > 0) { in onVoiceSettingInteraction()
56 condition = ZenModeConfig.toTimeCondition(this, minutes, UserHandle.myUserId()); in onVoiceSettingInteraction()
69 notifySuccess(getChangeSummary(mode, minutes)); in onVoiceSettingInteraction()
88 private CharSequence getChangeSummary(int mode, int minutes) { in getChangeSummary() argument
106 if (minutes < 0 || mode == Global.ZEN_MODE_OFF) { in getChangeSummary()
110 long time = System.currentTimeMillis() + minutes * MINUTES_MS; in getChangeSummary()
116 if (minutes < 60) { in getChangeSummary()
117 return res.getQuantityString(byMinute, minutes, minutes, formattedTime); in getChangeSummary()
118 } else if (minutes % 60 != 0) { in getChangeSummary()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DZenModeVoiceActivity.java50 int minutes = intent.getIntExtra(EXTRA_DO_NOT_DISTURB_MODE_MINUTES, -1); in onVoiceSettingInteraction() local
55 if (minutes > 0) { in onVoiceSettingInteraction()
56 condition = ZenModeConfig.toTimeCondition(this, minutes, UserHandle.myUserId()); in onVoiceSettingInteraction()
69 notifySuccess(getChangeSummary(mode, minutes)); in onVoiceSettingInteraction()
88 private CharSequence getChangeSummary(int mode, int minutes) { in getChangeSummary() argument
106 if (minutes < 0 || mode == Global.ZEN_MODE_OFF) { in getChangeSummary()
110 long time = System.currentTimeMillis() + minutes * MINUTES_MS; in getChangeSummary()
116 if (minutes < 60) { in getChangeSummary()
117 return res.getQuantityString(byMinute, minutes, minutes, formattedTime); in getChangeSummary()
118 } else if (minutes % 60 != 0) { in getChangeSummary()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimerStringFormatter.java41 final int minutes; in formatTimeRemaining() local
51 minutes = 0; in formatTimeRemaining()
55 minutes = roundedMinutes; in formatTimeRemaining()
60 minutes = roundedMinutes; in formatTimeRemaining()
66 minutes = roundedMinutes; in formatTimeRemaining()
70 final String minSeq = Utils.getNumberFormattedQuantityString(context, R.plurals.minutes, in formatTimeRemaining()
71 minutes); in formatTimeRemaining()
78 final String remainingSuffix = context.getString((minutes > 1 || hours > 1 || seconds > 1) in formatTimeRemaining()
83 final boolean showMinutes = minutes > 0; in formatTimeRemaining()
DTimerStringFormatter.kt43 val minutes: Int in formatTimeRemaining() constant
53 minutes = 0 in formatTimeRemaining()
57 minutes = roundedMinutes in formatTimeRemaining()
62 minutes = roundedMinutes in formatTimeRemaining()
68 minutes = roundedMinutes in formatTimeRemaining()
72 val minSeq = Utils.getNumberFormattedQuantityString(context, R.plurals.minutes, minutes) in formatTimeRemaining()
78 context.getString(if (minutes > 1 || hours > 1 || seconds > 1) { in formatTimeRemaining()
85 val showMinutes = minutes > 0 in formatTimeRemaining()
/packages/apps/DeskClock/src/com/android/deskclock/
DFetchMatchingAlarmsAction.java76 final int minutes = mIntent.getIntExtra(AlarmClock.EXTRA_MINUTES, 0); in run() local
80 badInput |= minutes < 0 || minutes > 59; in run()
85 final String reason = mContext.getString(R.string.invalid_time, hour, minutes, in run()
95 if (alarm.hour == hour24 && alarm.minutes == minutes) { in run()
100 final String reason = mContext.getString(R.string.no_alarm_at, hour24, minutes); in run()
162 private List<Alarm> getAlarmsByHourMinutes(int hour24, int minutes, ContentResolver cr) {
166 final String[] args = { String.valueOf(hour24), String.valueOf(minutes), "1" };
DTimerTextController.java46 int minutes = (int) (remainder / MINUTE_IN_MILLIS); in setTimeString() local
57 minutes++; in setTimeString()
58 if (minutes == 60) { in setTimeString()
59 minutes = 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()
DHandleApiCalls.java316 final int minutes = intent.getIntExtra(AlarmClock.EXTRA_MINUTES, 0); in handleSetAlarm() local
317 if (minutes < 0 || minutes > 59) { in handleSetAlarm()
318 final String voiceMessage = getString(R.string.invalid_time, hour, minutes, " "); in handleSetAlarm()
320 LOGGER.i("Illegal minute: " + minutes); in handleSetAlarm()
340 final String voiceMessage = getString(R.string.invalid_time, hour, minutes, " "); in handleSetAlarm()
348 setSelectionFromIntent(intent, hour, minutes, selection, argsList); in handleSetAlarm()
535 alarm.minutes = intent.getIntExtra(AlarmClock.EXTRA_MINUTES, alarm.minutes); in updateAlarmFromIntent()
601 int minutes, in setSelectionFromIntent() argument
607 args.add(String.valueOf(minutes)); in setSelectionFromIntent()
DAlarmUtils.kt80 val minutes = variableDelta.toInt() / (1000 * 60) % 60 in formatElapsedTimeUntilAlarm() constant
85 val minSeq = Utils.getNumberFormattedQuantityString(context, R.plurals.minutes, minutes) in formatElapsedTimeUntilAlarm()
90 val showMinutes = minutes > 0 in formatElapsedTimeUntilAlarm()
DAlarmUtils.java77 final int minutes = (int) delta / (1000 * 60) % 60; in formatElapsedTimeUntilAlarm() local
82 String minSeq = Utils.getNumberFormattedQuantityString(context, R.plurals.minutes, minutes); in formatElapsedTimeUntilAlarm()
87 final boolean showMinutes = minutes > 0; in formatElapsedTimeUntilAlarm()
DUtils.java582 context, R.plurals.minutes, Math.abs(minutesDifferent)); in createHoursDifferentString()
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()
602 if (minutes != 0) { in getTimeString()
603 return context.getString(R.string.minutes_seconds, minutes, seconds); in getTimeString()
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DAlarm.kt56 var minutes: Int variable in com.android.deskclock.provider.Alarm
80 constructor(hour: Int = 0, minutes: Int = 0) {
83 this.minutes = minutes
95 minutes = c.getInt(MINUTES_INDEX)
119 minutes = p.readInt()
152 p.writeInt(minutes) in writeToParcel()
182 previousInstanceTime[Calendar.MINUTE] = minutes in getPreviousAlarmTime()
201 nextInstanceTime[Calendar.MINUTE] = minutes in getNextAlarmTime()
219 nextInstanceTime[Calendar.MINUTE] = minutes in getNextAlarmTime()
239 ", minutes=" + minutes + in toString()
[all …]
DAlarm.java121 values.put(MINUTES, alarm.minutes); in createContentValues()
241 final int totalAlarmMinutes = alarm.hour * 60 + alarm.minutes;
281 public int minutes;
295 public Alarm(int hour, int minutes) {
298 this.minutes = minutes;
310 minutes = c.getInt(MINUTES_INDEX);
334 minutes = p.readInt();
368 p.writeInt(minutes);
400 previousInstanceTime.set(Calendar.MINUTE, minutes);
419 nextInstanceTime.set(Calendar.MINUTE, minutes);
[all …]
/packages/apps/Dialer/java/com/android/dialer/calllogutils/
DCallLogDurations.java33 long minutes = TimeUnit.SECONDS.toMinutes(elapsedSeconds); in formatDuration() local
34 long seconds = elapsedSeconds - TimeUnit.MINUTES.toSeconds(minutes); in formatDuration()
44 Long.toString(minutes), in formatDuration()
64 int minutes = (int) (elapsedSeconds / 60); in formatDurationA11y() local
65 int seconds = (int) elapsedSeconds - minutes * 60; in formatDurationA11y()
66 String minutesString = res.getQuantityString(R.plurals.a11y_minutes, minutes); in formatDurationA11y()
70 R.string.a11y_call_duration_format, minutes, minutesString, seconds, secondsString); in formatDurationA11y()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DLapsAdapter.kt303 val minutes: Int in formatTime() constant
310 minutes = seconds in formatTime()
311 hours = minutes in formatTime()
315 minutes = (remainder / DateUtils.MINUTE_IN_MILLIS).toInt() in formatTime()
329 sTimeBuilder.append(UiDataModel.uiDataModel.getFormattedNumber(minutes, 1)) in formatTime()
332 sTimeBuilder.append(UiDataModel.uiDataModel.getFormattedNumber(minutes, 2)) in formatTime()
337 sTimeBuilder.append(UiDataModel.uiDataModel.getFormattedNumber(minutes, 2)) in formatTime()
342 sTimeBuilder.append(UiDataModel.uiDataModel.getFormattedNumber(minutes, 2)) in formatTime()
347 sTimeBuilder.append(UiDataModel.uiDataModel.getFormattedNumber(minutes, 2)) in formatTime()
DLapsAdapter.java242 final int hours, minutes, seconds, hundredths; in formatTime() local
245 hours = minutes = seconds = hundredths = 0; in formatTime()
250 minutes = (int) (remainder / DateUtils.MINUTE_IN_MILLIS); in formatTime()
265 sTimeBuilder.append(UiDataModel.getUiDataModel().getFormattedNumber(minutes, 1)); in formatTime()
267 sTimeBuilder.append(UiDataModel.getUiDataModel().getFormattedNumber(minutes, 2)); in formatTime()
271 sTimeBuilder.append(UiDataModel.getUiDataModel().getFormattedNumber(minutes, 2)); in formatTime()
275 sTimeBuilder.append(UiDataModel.getUiDataModel().getFormattedNumber(minutes, 2)); in formatTime()
279 sTimeBuilder.append(UiDataModel.getUiDataModel().getFormattedNumber(minutes, 2)); in formatTime()
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/
DVoicemailEntryText.java98 long minutes = TimeUnit.SECONDS.toMinutes(voicemailEntry.getDuration()); in getVoicemailDuration() local
99 long seconds = voicemailEntry.getDuration() - TimeUnit.MINUTES.toSeconds(minutes); in getVoicemailDuration()
104 if (minutes > 99) { in getVoicemailDuration()
109 minutes = 99; in getVoicemailDuration()
111 return context.getString(R.string.voicemailDurationFormat, minutes, seconds); in getVoicemailDuration()
/packages/apps/DeskClock/tests/src/com/android/deskclock/timer/
DTimerSetupViewTest.java266 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()
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/
DTimerSetupView.java206 final int minutes = mInput[3] * 10 + mInput[2]; in updateTime() local
212 uidm.getFormattedNumber(minutes, 2), in updateTime()
218 r.getQuantityString(R.plurals.minutes, minutes, minutes), in updateTime()
307 final int minutes = mInput[3] * 10 + mInput[2]; in getTimeInMillis() local
310 + minutes * DateUtils.MINUTE_IN_MILLIS in getTimeInMillis()
DTimerSetupView.kt181 val minutes = mInput[3] * 10 + mInput[2] in updateTime() constant
187 uidm.getFormattedNumber(minutes, 2), in updateTime()
193 r.getQuantityString(R.plurals.minutes, minutes, minutes), in updateTime()
281 val minutes = mInput[3] * 10 + mInput[2] constant
284 minutes * DateUtils.MINUTE_IN_MILLIS +
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/
DDigitalWellBeingToast.java146 int minutes = Math.toIntExact(duration.minusHours(hours).toMinutes()); in getReadableDuration() local
149 if (hours > 0 && minutes > 0) { in getReadableDuration()
153 new Measure(minutes, MeasureUnit.MINUTE)); in getReadableDuration()
165 if (minutes > 0) { in getReadableDuration()
169 .formatMeasures(new Measure(minutes, MeasureUnit.MINUTE)); in getReadableDuration()
/packages/services/Car/tests/DefaultStorageMonitoringCompanionApp/src/com/google/android/car/defaultstoragemonitoringcompanionapp/
DMainActivity.java65 final long minutes = duration.toMinutes();
75 final String hoursMinutes = durationPairToString(hours, "hours", minutes, "minutes");
79 if (minutes > 0) {
80 return minutes + " minutes";
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/playback/
DPlaybackProgress.java78 long minutes = TimeUnit.MILLISECONDS.toMinutes(millis) % TimeUnit.HOURS.toMinutes(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/Dialer/java/com/android/dialer/app/voicemail/
DVoicemailPlaybackLayout.java363 int minutes = seconds / 60; in formatAsMinutesAndSeconds() local
364 seconds -= minutes * 60; in formatAsMinutesAndSeconds()
365 if (minutes > 99) { in formatAsMinutesAndSeconds()
366 minutes = 99; in formatAsMinutesAndSeconds()
368 return String.format("%02d:%02d", minutes, seconds); in formatAsMinutesAndSeconds()
/packages/services/Telephony/src/com/android/phone/
DEmergencyCallbackModeExitDialog.java295 int minutes = (int)(millisUntilFinished / 60000); in getDialogText() local
296 String time = String.format("%d:%02d", minutes, in getDialogText()
302 R.plurals.alert_dialog_not_avaialble_in_ecm, minutes).toString(), time); in getDialogText()
311 minutes).toString(), time); in getDialogText()
/packages/apps/TV/tests/robotests/src/com/android/tv/util/
DUtilsTest.java69 private static long getJanOfThisYearInMillis(int date, int hour, int minutes) { in getJanOfThisYearInMillis() argument
70 return new GregorianCalendar(getThisYear(), Calendar.JANUARY, date, hour, minutes) in getJanOfThisYearInMillis()
79 private static long getFebOfThisYearInMillis(int date, int hour, int minutes) { in getFebOfThisYearInMillis() argument
80 return new GregorianCalendar(getThisYear(), Calendar.FEBRUARY, date, hour, minutes) in getFebOfThisYearInMillis()

123