Home
last modified time | relevance | path

Searched refs:days (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/
DUtils.java42 int days = 0, hours = 0, minutes = 0; in formatElapsedTime() local
44 days = seconds / SECONDS_PER_DAY; in formatElapsedTime()
45 seconds -= days * SECONDS_PER_DAY; in formatElapsedTime()
55 if (days > 0) { in formatElapsedTime()
57 days, hours, minutes, seconds)); in formatElapsedTime()
/packages/apps/Calendar/src/com/android/calendar/
DEventRecurrenceFormatter.java38 StringBuilder days = new StringBuilder(); in getRepeatString() local
45 days.append(dayToString(recurrence.byday[i])); in getRepeatString()
46 days.append(","); in getRepeatString()
48 days.append(dayToString(recurrence.byday[count])); in getRepeatString()
50 return String.format(format, days.toString()); in getRepeatString()
DEvent.java217 public static void loadEvents(Context context, ArrayList<Event> events, int startDay, int days, in loadEvents() argument
229 int endDay = startDay + days - 1; in loadEvents()
DUtils.java1300 int days = startDay - currentDay; in isTodayOrTomorrow() local
1301 if (days == 1) { in isTodayOrTomorrow()
1303 } else if (days == 0) { in isTodayOrTomorrow()
/packages/apps/DeskClock/src/com/android/deskclock/
DAlarm.java268 DaysOfWeek(int days) { in DaysOfWeek() argument
269 mDays = days; in DaysOfWeek()
287 int dayCount = 0, days = mDays; in toString() local
288 while (days > 0) { in toString()
289 if ((days & 1) == 1) dayCount++; in toString()
290 days >>= 1; in toString()
DSetAlarm.java407 long days = hours / 24; in formatToast() local
410 String daySeq = (days == 0) ? "" : in formatToast()
411 (days == 1) ? context.getString(R.string.day) : in formatToast()
412 context.getString(R.string.days, Long.toString(days)); in formatToast()
422 boolean dispDays = days > 0; in formatToast()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarSyncTestingBase.java316 long days = 1; in init() local
318 days = (mDtend - mDtstart) / DateUtils.DAY_IN_MILLIS; in init()
320 mDuration = "P" + days + "D"; in init()
DCalendarProvider2Test.java567 long days = 1; in init() local
569 days = (mDtend - mDtstart) / DateUtils.DAY_IN_MILLIS; in init()
571 mDuration = "P" + days + "D"; in init()
/packages/apps/Calendar/src/com/android/calendar/event/
DEditEventHelper.java882 long days = (end - start + DateUtils.DAY_IN_MILLIS - 1) in addRecurrenceRule() local
884 duration = "P" + days + "D"; in addRecurrenceRule()
946 int[] days = new int[1]; in updateRecurrenceRule() local
952 days[0] = EventRecurrence.timeDay2Day(startTime.weekDay); in updateRecurrenceRule()
956 eventRecurrence.byday = days; in updateRecurrenceRule()
DEditEventView.java419 String[] days = new String[] { in populateRepeats() local
457 repeatArray.add(String.format(format, ordinals[dayNumber], days[time.weekDay])); in populateRepeats()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarInstancesHelper.java236 duration.days = 0; in performInstanceExpansion()
307 duration.days = 1; in performInstanceExpansion()
317 duration.days = 0; in performInstanceExpansion()
DCalendarDatabaseHelper.java2599 int days = (seconds + DAY_IN_SECONDS - 1) / DAY_IN_SECONDS; in upgradeToVersion69() local
2600 duration = "P" + days + "D"; in upgradeToVersion69()
DCalendarProvider2.java1555 int days = (seconds + DAY_IN_SECONDS - 1) / DAY_IN_SECONDS; in fixAllDayTime() local
1556 duration = "P" + days + "D"; in fixAllDayTime()