Home | History | Annotate | Download | only in event

Lines Matching refs:minutes

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) {
49 if (minutes % 60 != 0) {
50 value = minutes;
56 } else if (minutes % (24 * 60) != 0) {
57 value = minutes / 60;
60 value = minutes / (24 * 60);
69 * Finds the index of the given "minutes" in the "values" list.
71 * @param values the list of minutes corresponding to the spinner choices
72 * @param minutes the minutes to search for in the values list
73 * @return the index of "minutes" in the "values" list
75 public static int findMinutesInReminderList(ArrayList<Integer> values, int minutes) {
76 int index = values.indexOf(minutes);
79 Log.e(TAG, "Cannot find minutes (" + minutes + ") in list");
93 * @param values the list of minutes corresponding to the spinner choices
108 * Extracts reminder minutes info from UI elements.
111 * @param reminderMinuteValues Maps array index to time in minutes.
124 int minutes = reminderMinuteValues.get(minuteSpinner.getSelectedItemPosition());
126 reminders.add(ReminderEntry.valueOf(minutes, method));
132 * If "minutes" is not currently present in "values", we add an appropriate new entry
136 ArrayList<String> labels, int minutes) {
137 int index = values.indexOf(minutes);
142 // The requested "minutes" does not exist in the list, so insert it
145 String label = constructReminderLabel(context, minutes, false);
148 if (minutes < values.get(i)) {
149 values.add(i, minutes);
155 values.add(minutes);