/packages/apps/Settings/src/com/android/settings/notification/ |
D | ZenModeVoiceActivity.java | 50 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/ |
D | ZenModeVoiceActivity.java | 50 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/ |
D | TimerStringFormatter.java | 41 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/ |
D | FetchMatchingAlarmsAction.java | 76 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" };
|
D | TimerTextController.java | 46 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()
|
D | HandleApiCalls.java | 316 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()
|
D | AlarmUtils.java | 77 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()
|
D | Utils.java | 575 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()
|
D | StopwatchTextController.java | 53 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/ |
D | Alarm.java | 121 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/ |
D | CallLogDurations.java | 33 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/ |
D | LapsAdapter.java | 242 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/ |
D | VoicemailEntryText.java | 98 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()
|
D | NewVoicemailMediaPlayerView.java | 670 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/ |
D | TimerSetupView.java | 206 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/ |
D | DigitalWellBeingToast.java | 146 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/ |
D | MainActivity.java | 65 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/ |
D | PlaybackProgress.java | 78 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/ |
D | VoicemailPlaybackLayout.java | 363 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/ |
D | EmergencyCallbackModeExitDialog.java | 281 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/ |
D | TimeBar.java | 253 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/ |
D | PhoneCallDetailsHelper.java | 607 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/ |
D | AlarmTimeClickHandler.java | 161 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/ |
D | Utils.java | 609 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/ |
D | FormatUtils.java | 51 final int minutes = in formatDuration() local 53 return formatter.format(new Measure(minutes, MeasureUnit.MINUTE)); in formatDuration()
|