/packages/apps/Settings/src/com/android/settings/notification/ |
H A D | ZenModeVoiceActivity.java | 50 int minutes = intent.getIntExtra(EXTRA_DO_NOT_DISTURB_MODE_MINUTES, -1); 55 if (minutes > 0) { 56 condition = ZenModeConfig.toTimeCondition(this, minutes, UserHandle.myUserId()); 69 notifySuccess(getChangeSummary(mode, minutes)); 88 private CharSequence getChangeSummary(int mode, int minutes) { argument 106 if (minutes < 0 || mode == Global.ZEN_MODE_OFF) { 110 long time = System.currentTimeMillis() + minutes * MINUTES_MS; 116 if (minutes < 60) { 117 return res.getQuantityString(byMinute, minutes, minutes, formattedTim [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | FetchMatchingAlarmsAction.java | 77 // if minutes weren't specified default to 0 78 final int minutes = mIntent.getIntExtra(AlarmClock.EXTRA_MINUTES, 0); 82 badInput |= minutes < 0 || minutes > 59; 87 final String reason = mContext.getString(R.string.invalid_time, hour, minutes, 97 if (alarm.hour == hour24 && alarm.minutes == minutes) { 102 final String reason = mContext.getString(R.string.no_alarm_at, hour24, minutes); 150 private List<Alarm> getAlarmsByHourMinutes(int hour24, int minutes, ContentResolver cr) { argument 154 final String[] args = { String.valueOf(hour24), String.valueOf(minutes), " [all...] |
H A D | HandleApiCalls.java | 267 final int minutes; 269 minutes = intent.getIntExtra(AlarmClock.EXTRA_MINUTES, -1); 271 minutes = 0; 273 if (hour < 0 || hour > 23 || minutes < 0 || minutes > 59) { 280 Voice.notifyFailure(this, getString(R.string.invalid_time, hour, minutes, " ")); 290 setSelectionFromIntent(intent, hour, minutes, selection, args); 297 Alarm alarm = new Alarm(hour, minutes); 432 int minutes, 438 args.add(String.valueOf(minutes)); 429 setSelectionFromIntent( Intent intent, int hour, int minutes, StringBuilder selection, List<String> args) argument [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/picker/ |
H A D | PickerConstants.java | 45 public final String[] minutes; field in class:PickerConstants.Time 52 minutes = createStringIntArrays(59, true, 2);
|
H A D | TimePicker.java | 47 public int minutes = 1; field in class:TimePicker.ColumnOrder 58 // Hours and minutes are always shown with hours on the left 60 minutes = 0; 66 minutes++; 146 updateSelection(mColumnOrder.minutes, minute); 163 PickerColumn minutes = new PickerColumn(mConstant.minutes); 165 ret.set(mColumnOrder.minutes, minutes);
|
/packages/apps/Calendar/src/com/android/calendar/event/ |
H A D | EventViewUtils.java | 41 // Constructs a label given an arbitrary number of minutes. For example, 42 // if the given minutes is 63, then this returns the string "63 minutes". 43 // As another example, if the given minutes is 120, then this returns 45 public static String constructReminderLabel(Context context, int minutes, boolean abbrev) { argument 49 if (minutes % 60 != 0) { 50 value = minutes; 56 } else if (minutes % (24 * 60) != 0) { 57 value = minutes / 60; 60 value = minutes / (2 75 findMinutesInReminderList(ArrayList<Integer> values, int minutes) argument 135 addMinutesToList(Context context, ArrayList<Integer> values, ArrayList<String> labels, int minutes) argument [all...] |
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
H A D | AlertUtils.java | 203 long alarmTime, int minutes) { 214 values.put(CalendarAlerts.MINUTES, minutes); 202 makeContentValues(long eventId, long begin, long end, long alarmTime, int minutes) argument
|
/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
H A D | Alarm.java | 87 values.put(MINUTES, alarm.minutes); 193 (alarmHour == currHour && alarm.minutes <= now.get(Calendar.MINUTE)); 231 public int minutes; field in class:Alarm 243 public Alarm(int hour, int minutes) { argument 246 this.minutes = minutes; 258 minutes = c.getInt(MINUTES_INDEX); 277 minutes = p.readInt(); 296 p.writeInt(minutes); 328 previousInstanceTime.set(Calendar.MINUTE, minutes); [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
H A D | CalendarEventModel.java | 106 * Returns a new ReminderEntry, with the specified minutes and method. 108 * @param minutes Number of minutes before the start of the event that the alert will fire. 111 public static ReminderEntry valueOf(int minutes, int method) { argument 113 return new ReminderEntry(minutes, method); 117 * Returns a ReminderEntry, with the specified number of minutes and a default alert method. 119 * @param minutes Number of minutes before the start of the event that the alert will fire. 121 public static ReminderEntry valueOf(int minutes) { argument 122 return valueOf(minutes, Reminder 131 ReminderEntry(int minutes, int method) argument [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
H A D | CountingTimerView.java | 64 // Hours and minutes are signed for when a timer goes past the set time and thus negative 66 // Seconds are always shown with minutes, so are never signed 95 * Class to measure and draw the digit pairs of hours, minutes, seconds or hundredths. Digits 96 * may have an optional label. for hours, minutes and seconds, this label trails the digits 314 * Update the time to display. Separates that time into the hours, minutes, seconds and 331 long hundreds, seconds, minutes, hours; 334 minutes = seconds / 60; 335 seconds = seconds - minutes * 60; 336 hours = minutes / 60; 337 minutes 505 getTimeStringForAccessibility(int hours, int minutes, int seconds, boolean showNeg, Resources r) argument [all...] |
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
H A D | Account.java | 357 * @return the minutes per check (for polling) 365 * Set the minutes per check (for polling). Be sure to call save() to commit to database. 367 * @param minutes the number of minutes between polling checks 369 public void setSyncInterval(int minutes) { argument 370 mSyncInterval = minutes;
|