/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
H A D | Utils.java | 42 int days = 0, hours = 0, minutes = 0; 52 minutes = seconds / SECONDS_PER_MINUTE; 53 seconds -= minutes * SECONDS_PER_MINUTE; 57 days, hours, minutes, seconds)); 59 sb.append(context.getString(R.string.battery_history_hours, hours, minutes, seconds)); 60 } else if (minutes > 0) { 61 sb.append(context.getString(R.string.battery_history_minutes, minutes, seconds));
|
/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/ |
H A D | Duration.java | 39 public int minutes; field in class:Duration 57 minutes = 0; 105 minutes = n; 134 cal.add(Calendar.MINUTE, sign*minutes); 147 + (60*minutes)
|
H A D | CalendarEventModel.java | 102 * Returns a new ReminderEntry, with the specified minutes and method. 104 * @param minutes Number of minutes before the start of the event that the alert will fire. 107 public static ReminderEntry valueOf(int minutes, int method) { argument 109 return new ReminderEntry(minutes, method); 113 * Returns a ReminderEntry, with the specified number of minutes and a default alert method. 115 * @param minutes Number of minutes before the start of the event that the alert will fire. 117 public static ReminderEntry valueOf(int minutes) { argument 118 return valueOf(minutes, Reminder 127 ReminderEntry(int minutes, int method) argument [all...] |
/packages/apps/Exchange/src/com/android/exchange/utility/ |
H A D | Duration.java | 30 public int minutes; field in class:Duration 46 minutes = 0; 90 minutes = n; 114 cal.add(Calendar.MINUTE, sign*minutes); 124 return factor * ((7*24*60*60*weeks) + (24*60*60*days) + (60*60*hours) + (60*minutes) +
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
H A D | Duration.java | 37 public int minutes; field in class:Duration 55 minutes = 0; 103 minutes = n; 132 cal.add(Calendar.MINUTE, sign*minutes); 145 + (60*minutes)
|
H A D | CalendarAlarmManager.java | 87 * least a few minutes to allow for an event that was recently created on 290 // are milliseconds) and Reminders.minutes (whose units are 291 // minutes). 296 // Note 1: we can add support for the case where Reminders.minutes 297 // equals -1 to mean use Calendars.minutes by adding a UNION for 299 // Reminders.minutes != -1 and Reminders.minutes = 1, respectively. 392 final int minutes = cursor.getInt(minutesIndex); 433 resolver, eventId, startTime, endTime, alarmTime, minutes);
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
H A D | DurationTest.java | 28 int minutes, int seconds) throws DateException { 37 assertEquals("Duration minutes is not equal for " + str, minutes, duration.minutes); 26 verifyDuration(String str, int sign, int weeks, int days, int hours, int minutes, int seconds) argument
|
/packages/apps/Mms/src/com/android/mms/dom/smil/ |
H A D | TimeImpl.java | 169 int minutes = (int)parseFloat(timeValues[indexOfMinutes], 0, false); 170 if ((minutes >= 00) && (minutes <= 59)) { 171 result += 60000*minutes;
|
/packages/apps/Contacts/src/com/android/contacts/calllog/ |
H A D | CallDetailHistoryAdapter.java | 158 long minutes = 0; 162 minutes = elapsedSeconds / 60; 163 elapsedSeconds -= minutes * 60; 167 return mContext.getString(R.string.callDetailsDurationFormat, minutes, seconds);
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | HandleSetAlarm.java | 54 final int minutes = intent.getIntExtra(EXTRA_MINUTES, 63 long timeInMillis = Alarms.calculateAlarm(hour, minutes, 70 Alarm.Columns.MINUTES + "=" + minutes + " AND " + 86 values.put(Alarm.Columns.MINUTES, minutes);
|
H A D | SetAlarm.java | 201 mMinute = alarm.minutes; 284 alarm.minutes = mMinute; 336 * format "Alarm set for 2 days 7 hours and 53 minutes from 342 long minutes = delta / (1000 * 60) % 60; 350 String minSeq = (minutes == 0) ? "" : 351 (minutes == 1) ? context.getString(R.string.minute) : 352 context.getString(R.string.minutes, Long.toString(minutes)); 360 boolean dispMinute = minutes > 0;
|
H A D | Alarm.java | 54 p.writeInt(minutes); 86 public static final String MINUTES = "minutes"; 160 public int minutes; field in class:Alarm 172 minutes = c.getInt(Columns.ALARM_MINUTES_INDEX); 201 minutes = p.readInt(); 216 minutes = c.get(Calendar.MINUTE);
|
H A D | AlarmClock.java | 66 SetAlarm.popAlarmSetToast(this, alarm.hour, alarm.minutes, 111 c.set(Calendar.MINUTE, alarm.minutes); 171 SetAlarm.popAlarmSetToast(this, alarm.hour, alarm.minutes, 263 cal.set(Calendar.MINUTE, alarm.minutes);
|
H A D | AlarmKlaxon.java | 43 // Default of 10 minutes until alarm is silenced. 143 int minutes = (int) Math.round(millis / 60000.0); 146 alarmKilled.putExtra(Alarms.ALARM_KILLED_TIMEOUT, minutes);
|
H A D | Alarms.java | 159 values.put(Alarm.Columns.MINUTES, alarm.minutes); 561 return calculateAlarm(alarm.hour, alarm.minutes, alarm.daysOfWeek) 566 * Given an alarm in hours and minutes, return a time suitable for
|
/packages/apps/Phone/src/com/android/phone/ |
H A D | EmergencyCallbackModeService.java | 180 int minutes = (int)(millisUntilFinished / 60000); 181 String time = String.format("%d:%02d", minutes, (millisUntilFinished % 60000) / 1000); 183 R.plurals.phone_in_ecm_notification_time, minutes).toString(), time);
|
H A D | EmergencyCallbackModeExitDialog.java | 268 int minutes = (int)(millisUntilFinished / 60000); 269 String time = String.format("%d:%02d", minutes, 275 R.plurals.alert_dialog_not_avaialble_in_ecm, minutes).toString(), time); 278 minutes).toString(), time);
|
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/field/datetime/ |
H A D | DateTime.java | 75 int minutes = ((timeZone / 100) * 60) + timeZone % 100;
76 c.add(Calendar.MINUTE, -1 * minutes);
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | TimeBar.java | 273 int minutes = (totalSeconds / 60) % 60; 276 return String.format("%d:%02d:%02d", hours, minutes, seconds).toString(); 278 return String.format("%02d:%02d", minutes, seconds).toString();
|
/packages/apps/Contacts/src/com/android/contacts/voicemail/ |
H A D | VoicemailPlaybackFragment.java | 143 * We always use four digits, two for minutes two for seconds. In the very unlikely event 144 * that the voicemail duration exceeds 99 minutes, the display is capped at 99 minutes. 148 int minutes = seconds / 60; 149 seconds -= minutes * 60; 150 if (minutes > 99) { 151 minutes = 99; 153 return String.format("%02d:%02d", minutes, seconds);
|
/packages/apps/VideoEditor/src/com/android/videoeditor/util/ |
H A D | StringUtils.java | 161 return String.format(context.getString(R.string.minutes), mins);
|
/packages/apps/Settings/src/com/android/settings/ |
H A D | DateTimeSettings.java | 394 int minutes = off % 60; 401 buf[7] = (char) ('0' + minutes / 10); 402 buf[8] = (char) ('0' + minutes % 10);
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
H A D | AlertActivity.java | 53 // The default snooze delay: 5 minutes 186 long alarmTime, int minutes) { 197 values.put(CalendarAlerts.MINUTES, minutes); 305 // Set the "minutes" to zero to indicate this is a snoozed 309 makeContentValues(eventId, begin, end, alarmTime, 0 /* minutes */); 185 makeContentValues(long eventId, long begin, long end, long alarmTime, int minutes) argument
|
H A D | AlertService.java | 193 final int minutes = alertCursor.getInt(ALERT_INDEX_MINUTES); 208 + " eventId:" + eventId + " state: " + state + " minutes:" + minutes
|