Home
last modified time | relevance | path

Searched refs:minutes (Results 1 – 25 of 52) 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()
/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.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.java575 context, R.plurals.minutes, Math.abs(minutesDifferent)); in createHoursDifferentString()
591 static String getTimeString(Context context, int hours, int minutes, int seconds) { in getTimeString() argument
593 return context.getString(R.string.hours_minutes_seconds, hours, minutes, seconds); in getTimeString()
595 if (minutes != 0) { in getTimeString()
596 return context.getString(R.string.minutes_seconds, minutes, seconds); in getTimeString()
DStopwatchTextController.java53 final int minutes = (int) (remainder / MINUTE_IN_MILLIS); in setTimeString() local
66 final String time = Utils.getTimeString(context, hours, minutes, seconds); in setTimeString()
/packages/apps/DeskClock/src/com/android/deskclock/provider/
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.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()
DNewVoicemailMediaPlayerView.java670 int minutes = seconds / 60; in formatAsMinutesAndSeconds() local
671 seconds -= minutes * 60; in formatAsMinutesAndSeconds()
672 if (minutes > 99) { in formatAsMinutesAndSeconds()
673 minutes = 99; in formatAsMinutesAndSeconds()
675 return String.format(Locale.US, "%02d:%02d", minutes, seconds); in formatAsMinutesAndSeconds()
/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()
/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.java281 int minutes = (int)(millisUntilFinished / 60000); in getDialogText() local
282 String time = String.format("%d:%02d", minutes, in getDialogText()
288 R.plurals.alert_dialog_not_avaialble_in_ecm, minutes).toString(), time); in getDialogText()
291 minutes).toString(), time); in getDialogText()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DTimeBar.java253 int minutes = (totalSeconds / 60) % 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/Dialer/java/com/android/dialer/app/calllog/
DPhoneCallDetailsHelper.java607 long minutes = TimeUnit.SECONDS.toMinutes(details.duration); in getVoicemailDuration() local
608 long seconds = details.duration - TimeUnit.MINUTES.toSeconds(minutes); in getVoicemailDuration()
609 if (minutes > 99) { in getVoicemailDuration()
610 minutes = 99; in getVoicemailDuration()
612 return resources.getString(R.string.voicemailDurationFormat, minutes, seconds); in getVoicemailDuration()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmTimeClickHandler.java161 TimePickerDialogFragment.show(mFragment, alarm.hour, alarm.minutes); in onClockClicked()
193 a.minutes = minute; in onTimeSet()
198 mSelectedAlarm.minutes = minute; in onTimeSet()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/utils/
DUtils.java609 long minutes = seconds / 60; in getTimeDiffStr() local
610 if (minutes < 60) { in getTimeDiffStr()
611 return context.getResources().getQuantityString(R.plurals.minutes, (int) minutes, in getTimeDiffStr()
612 minutes); in getTimeDiffStr()
614 long hours = minutes / 60; in getTimeDiffStr()
/packages/apps/DocumentsUI/src/com/android/documentsui/util/
DFormatUtils.java51 final int minutes = in formatDuration() local
53 return formatter.format(new Measure(minutes, MeasureUnit.MINUTE)); in formatDuration()

123