Home
last modified time | relevance | path

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

12

/packages/apps/Calendar/src/com/android/calendar/event/
DEventViewUtils.java45 public static String constructReminderLabel(Context context, int minutes, boolean abbrev) { in constructReminderLabel() argument
49 if (minutes % 60 != 0) { in constructReminderLabel()
50 value = minutes; in constructReminderLabel()
56 } else if (minutes % (24 * 60) != 0) { in constructReminderLabel()
57 value = minutes / 60; in constructReminderLabel()
60 value = minutes / (24 * 60); in constructReminderLabel()
75 public static int findMinutesInReminderList(ArrayList<Integer> values, int minutes) { in findMinutesInReminderList() argument
76 int index = values.indexOf(minutes); in findMinutesInReminderList()
79 Log.e(TAG, "Cannot find minutes (" + minutes + ") in list"); in findMinutesInReminderList()
124 int minutes = reminderMinuteValues.get(minuteSpinner.getSelectedItemPosition()); in reminderItemsToReminders() local
[all …]
/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/apps/DeskClock/src/com/android/deskclock/timer/
DCountingTimerView.java329 long hundreds, seconds, minutes, hours; in setTime() local
332 minutes = seconds / 60; in setTime()
333 seconds = seconds - minutes * 60; in setTime()
334 hours = minutes / 60; in setTime()
335 minutes = minutes - hours * 60; in setTime()
343 if (hours == 0 && minutes == 0 && seconds == 0) { in setTime()
353 minutes++; in setTime()
354 if (minutes == 60) { in setTime()
355 minutes = 0; in setTime()
377 if (minutes >= 10 || hours > 0) { in setTime()
[all …]
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
DInCallDateUtils.java19 int minutes = 0; in formatDuration() local
27 minutes = elapsedSeconds / 60; in formatDuration()
28 elapsedSeconds -= minutes * 60; in formatDuration()
38 if (minutes > 0) { in formatDuration()
42 … duration.append(res.getQuantityString(R.plurals.duration_minutes, minutes, minutes)); in formatDuration()
45 if (hours > 0 || minutes > 0) { in formatDuration()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/picker/
DTimePicker.java47 public int minutes = 1; field in TimePicker.ColumnOrder
60 minutes = 0; in ColumnOrder()
66 minutes++; in ColumnOrder()
146 updateSelection(mColumnOrder.minutes, minute); in setTime()
163 PickerColumn minutes = new PickerColumn(mConstant.minutes); in getColumns() local
165 ret.set(mColumnOrder.minutes, minutes); in getColumns()
DPickerConstants.java45 public final String[] minutes; field in PickerConstants.Time
52 minutes = createStringIntArrays(59, true, 2); in Time()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DLapsAdapter.java224 long hundredths, seconds, minutes, hours; in formatTime() local
227 minutes = seconds / 60; in formatTime()
228 seconds = seconds - minutes * 60; in formatTime()
229 hours = minutes / 60; in formatTime()
230 minutes = minutes - hours * 60; in formatTime()
236 minutes, separator, seconds, decimalSeparator, hundredths); in formatTime()
239 minutes, separator, seconds, decimalSeparator, hundredths); in formatTime()
242 hours, separator, minutes, separator, seconds, decimalSeparator, hundredths); in formatTime()
245 hours, separator, minutes, separator, seconds, decimalSeparator, hundredths); in formatTime()
249 hours, separator, minutes, separator, seconds, decimalSeparator, hundredths); in formatTime()
/packages/apps/DeskClock/src/com/android/deskclock/
DFetchMatchingAlarmsAction.java78 final int minutes = mIntent.getIntExtra(AlarmClock.EXTRA_MINUTES, 0); in run() local
82 badInput |= minutes < 0 || minutes > 59; in run()
87 final String reason = mContext.getString(R.string.invalid_time, hour, minutes, in run()
97 if (alarm.hour == hour24 && alarm.minutes == minutes) { in run()
102 final String reason = mContext.getString(R.string.no_alarm_at, hour24, minutes); in run()
164 private List<Alarm> getAlarmsByHourMinutes(int hour24, int minutes, ContentResolver cr) {
168 final String[] args = { String.valueOf(hour24), String.valueOf(minutes), "1" };
DHandleApiCalls.java269 final int minutes; in handleSetAlarm() local
271 minutes = intent.getIntExtra(AlarmClock.EXTRA_MINUTES, -1); in handleSetAlarm()
273 minutes = 0; in handleSetAlarm()
275 if (hour < 0 || hour > 23 || minutes < 0 || minutes > 59) { in handleSetAlarm()
282 Voice.notifyFailure(this, getString(R.string.invalid_time, hour, minutes, " ")); in handleSetAlarm()
292 setSelectionFromIntent(intent, hour, minutes, selection, args); in handleSetAlarm()
299 Alarm alarm = new Alarm(hour, minutes); in handleSetAlarm()
420 int minutes, in setSelectionFromIntent() argument
426 args.add(String.valueOf(minutes)); in setSelectionFromIntent()
DAlarmUtils.java71 final int minutes = (int) delta / (1000 * 60) % 60; in formatElapsedTimeUntilAlarm() local
76 String minSeq = Utils.getNumberFormattedQuantityString(context, R.plurals.minutes, minutes); in formatElapsedTimeUntilAlarm()
81 final boolean showMinutes = minutes > 0; in formatElapsedTimeUntilAlarm()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DTimePickerCompat.java61 final int minutes, final boolean use24hourFormat) { in newInstance() argument
69 }, hour, minutes, use24hourFormat); in newInstance()
107 minute = mAlarm.minutes; in onCreateDialog()
165 final int hour, minutes; in showTimeEditDialog() local
168 minutes = 0; in showTimeEditDialog()
171 minutes = alarm.minutes; in showTimeEditDialog()
174 minutes, use24hourFormat); in showTimeEditDialog()
DAlarmTimeClickHandler.java194 a.minutes = minute; in processTimeSet()
199 mSelectedAlarm.minutes = minute; in processTimeSet()
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DAlarm.java120 values.put(MINUTES, alarm.minutes); in createContentValues()
211 || (alarmHour == currHour && alarm.minutes <= now.get(Calendar.MINUTE))); in isTomorrow()
249 public int minutes; field in Alarm
263 public Alarm(int hour, int minutes) { in Alarm() argument
266 this.minutes = minutes; in Alarm()
278 minutes = c.getInt(MINUTES_INDEX); in Alarm()
302 minutes = p.readInt(); in Alarm()
329 p.writeInt(minutes); in writeToParcel()
361 previousInstanceTime.set(Calendar.MINUTE, minutes); in getPreviousAlarmTime()
380 nextInstanceTime.set(Calendar.MINUTE, minutes); in getNextAlarmTime()
[all …]
/packages/apps/Dialer/src/com/android/dialer/calllog/
DCallDetailHistoryAdapter.java132 long minutes = 0; in formatDuration() local
136 minutes = elapsedSeconds / 60; in formatDuration()
137 elapsedSeconds -= minutes * 60; in formatDuration()
139 return mContext.getString(R.string.callDetailsDurationFormat, minutes, seconds); in formatDuration()
DPhoneCallDetailsHelper.java348 long minutes = TimeUnit.SECONDS.toMinutes(details.duration); in getVoicemailDuration() local
349 long seconds = details.duration - TimeUnit.MINUTES.toSeconds(minutes); in getVoicemailDuration()
350 if (minutes > 99) { in getVoicemailDuration()
351 minutes = 99; in getVoicemailDuration()
353 return mResources.getString(R.string.voicemailDurationFormat, minutes, seconds); in getVoicemailDuration()
/packages/apps/TV/tests/unit/src/com/android/tv/util/
DUtilsTest_GetDurationString.java54 private static long getJanOfThisYearInMillis(int date, int hour, int minutes) { in getJanOfThisYearInMillis() argument
55 return new GregorianCalendar(getThisYear(), Calendar.JANUARY, date, hour, minutes) in getJanOfThisYearInMillis()
66 private static long getFebOfThisYearInMillis(int date, int hour, int minutes) { in getFebOfThisYearInMillis() argument
67 return new GregorianCalendar(getThisYear(), Calendar.FEBRUARY, date, hour, minutes) in getFebOfThisYearInMillis()
/packages/services/Telephony/src/com/android/phone/
DEmergencyCallbackModeExitDialog.java287 int minutes = (int)(millisUntilFinished / 60000); in getDialogText() local
288 String time = String.format("%d:%02d", minutes, in getDialogText()
294 R.plurals.alert_dialog_not_avaialble_in_ecm, minutes).toString(), time); in getDialogText()
297 minutes).toString(), time); in getDialogText()
DEmergencyCallbackModeService.java202 int minutes = (int)(millisUntilFinished / 60000); in showNotification() local
203 String time = String.format("%d:%02d", minutes, (millisUntilFinished % 60000) / 1000); in showNotification()
205 R.plurals.phone_in_ecm_notification_time, minutes).toString(), time); in showNotification()
/packages/apps/Settings/src/com/android/settings/
DUtils.java797 int days = 0, hours = 0, minutes = 0; in formatElapsedTime() local
807 minutes = seconds / SECONDS_PER_MINUTE; in formatElapsedTime()
808 seconds -= minutes * SECONDS_PER_MINUTE; in formatElapsedTime()
813 days, hours, minutes, seconds)); in formatElapsedTime()
816 hours, minutes, seconds)); in formatElapsedTime()
817 } else if (minutes > 0) { in formatElapsedTime()
818 sb.append(context.getString(R.string.battery_history_minutes, minutes, seconds)); in formatElapsedTime()
825 days, hours, minutes)); in formatElapsedTime()
828 hours, minutes)); in formatElapsedTime()
830 sb.append(context.getString(R.string.battery_history_minutes_no_seconds, minutes)); in formatElapsedTime()
/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/src/com/android/dialer/voicemail/
DVoicemailPlaybackLayout.java495 int minutes = seconds / 60; in formatAsMinutesAndSeconds() local
496 seconds -= minutes * 60; in formatAsMinutesAndSeconds()
497 if (minutes > 99) { in formatAsMinutesAndSeconds()
498 minutes = 99; in formatAsMinutesAndSeconds()
500 return String.format("%02d:%02d", minutes, seconds); in formatAsMinutesAndSeconds()
/packages/apps/Calendar/src/com/android/calendar/
DCalendarEventModel.java111 public static ReminderEntry valueOf(int minutes, int method) { in valueOf() argument
113 return new ReminderEntry(minutes, method); in valueOf()
121 public static ReminderEntry valueOf(int minutes) { in valueOf() argument
122 return valueOf(minutes, Reminders.METHOD_DEFAULT); in valueOf()
131 private ReminderEntry(int minutes, int method) { in ReminderEntry() argument
133 mMinutes = minutes; in ReminderEntry()
/packages/services/Telephony/src/org/apache/james/mime4j/field/datetime/
DDateTime.java75 int minutes = ((timeZone / 100) * 60) + timeZone % 100; in convertToDate() local
76 c.add(Calendar.MINUTE, -1 * minutes); in convertToDate()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/
DDateTime.java75 int minutes = ((timeZone / 100) * 60) + timeZone % 100; in convertToDate() local
76 c.add(Calendar.MINUTE, -1 * minutes); in convertToDate()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimerModel.java832 final int minutes = (int) remainingTime / ((int) MINUTE_IN_MILLIS) % 60; in formatElapsedTimeUntilExpiry() local
834 … String minSeq = Utils.getNumberFormattedQuantityString(mContext, R.plurals.minutes, minutes); in formatElapsedTimeUntilExpiry()
838 final String verb = mContext.getString((minutes > 1 || hours > 1) in formatElapsedTimeUntilExpiry()
843 final boolean showMinutes = minutes > 0; in formatElapsedTimeUntilExpiry()

12