/packages/apps/Calendar/tests/src/com/android/calendar/ |
H A D | WeekNumberTest.java | 37 public DateAndWeekNumber(int year, int month, int day, int expectedWeekNumber) { argument 41 date.set(0, 0, 0, day, month, year); 44 allDayDate.set(day, month, year); 226 Log.i("WeekNumberTest", "(all-day) index " + index
|
/packages/apps/Calendar/src/com/android/calendar/ |
H A D | DayOfMonthDrawable.java | 29 * A custom view to draw the day of the month in the today button in the options menu 73 public void setDayOfMonth(int day) { argument 74 mDayOfMonth = Integer.toString(day);
|
H A D | EventRecurrenceFormatter.java | 89 // There is no "BYDAY" specifier, so use the day of the 97 int day = EventRecurrence.timeDay2Day(recurrence.startDate.weekDay); 98 string = dayToString(day, DateUtils.LENGTH_LONG); 148 * Converts day of week to a String. 149 * @param day a EventRecurrence constant 150 * @return day of week as a string 152 private static String dayToString(int day, int dayOfWeekLength) { argument 153 return DateUtils.getDayOfWeekString(dayToUtilDay(day), dayOfWeekLength); 157 * Converts EventRecurrence's day of week to DateUtil's day o 161 dayToUtilDay(int day) argument [all...] |
H A D | Utils.java | 115 // The work day is being counted as 6am to 8pm 228 // This is the "detail" view which is either agenda or day view 440 * Save default agenda/day/week/month view for next time 586 * adjusted for first day of week. 588 * This takes a julian day and the week start day and calculates which 589 * week since {@link Time#EPOCH_JULIAN_DAY} that day occurs in, starting 592 * @param julianDay The julian day to calculate the week number for 593 * @param firstDayOfWeek Which week day is the first day o 892 int day; // quick reference to the day this segment is on field in class:Utils.DNASegment [all...] |
H A D | DayView.java | 92 * View for multi-day view. So far only 1 and 7 day have been tested. 181 private int[] mEarliestStartHour; // indexed by the week day offset 182 private boolean[] mHasAllDayEvent; // indexed by the week day offset 314 private int mSelectionDay; // Julian day 320 private int mSelectionDayForAccessibility; // Julian day 329 /** Width of a day or non-conflicting event */ 344 private int mFirstDayOfWeek; // First day of the week 513 * The height of the day names/numbers 517 * The height of the day name 2297 computeDayLeftPosition(int day) argument 2434 drawCurrentTimeLine(Rect r, final int day, final int top, Canvas canvas, Paint p) argument 2551 drawDayHeader(String dayStr, int day, int cell, Canvas canvas, Paint p) argument 3011 drawMoreAlldayEvents(Canvas canvas, int remainingEvents, int day, Paint p) argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ |
H A D | SimpleDate.java | 23 * Represents a date (year, month, day) 27 public int day; // DD field in class:SimpleDate 45 this.day = sCalendarInstance.get(Calendar.DATE); 57 result = prime * result + day; 76 if (day != other.day) 91 return this.day - other.getDay(); 96 return day;
|
/packages/apps/Contacts/src/com/android/contacts/datepicker/ |
H A D | DatePickerDialog.java | 54 private static final String DAY = "day"; 76 * @param dayOfMonth The day of the month that was set. 86 * @param dayOfMonth The initial day of the dialog. 102 * @param dayOfMonth The initial day of the dialog. 124 * @param dayOfMonth The initial day of the dialog. 142 * @param dayOfMonth The initial day of the dialog. 199 public void onDateChanged(DatePicker view, int year, int month, int day) { argument 200 updateTitle(year, month, day); 210 private void updateTitle(int year, int month, int day) { argument 214 calendar.set(Calendar.DAY_OF_MONTH, day); [all...] |
H A D | DatePicker.java | 51 * A view for selecting a month / year / day based on a calendar like layout. 94 * @param dayOfMonth The day of the month that was set. 115 mDayPicker = (NumberPicker) findViewById(R.id.day); 156 // Adjust max day of the month 168 // Adjust max day for leap years if needed 221 // We use numeric spinners for year and day, but textual months. Ask icu4c what 271 private SavedState(Parcelable superState, int year, int month, int day, boolean hasYear, argument 276 mDay = day; 371 * @param dayOfMonth The initial day of the month. 383 * @param dayOfMonth The initial day o [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
H A D | DaysOfWeek.java | 29 * 0x00: no day 52 private static int convertDayToBitIndex(int day) { argument 53 return (day + 5) % DAYS_IN_A_WEEK; 87 // every day 123 for (int day : daysOfWeek) { 124 setBit(convertDayToBitIndex(day), value);
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/ |
H A D | DateTime.java | 36 private final int day;
field in class:DateTime 42 public DateTime(String yearString, int month, int day, int hour, int minute, int second, int timeZone) {
argument 44 this.date = convertToDate(year, month, day, hour, minute, second, timeZone);
46 this.day = day;
69 public static Date convertToDate(int year, int month, int day, int hour, int minute, int second, int timeZone) {
argument 71 c.set(year, month - 1, day, hour, minute, second);
95 return day;
|
/packages/apps/Calendar/src/com/android/calendar/event/ |
H A D | CreateEventDialogFragment.java | 52 * Allows the user to quickly create a new all-day event from the calendar's month view. 108 public CreateEventDialogFragment(Time day) { argument 109 setDay(day); 112 public void setDay(Time day) { argument 113 mDateString = day.format(EVENT_DATE_FORMAT); 114 mDateInMillis = day.toMillis(true);
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
H A D | MonthByWeekAdapter.java | 72 float mClickedXLocation; // Used to find which day was clicked 288 protected void onDayTapped(Time day) { argument 289 setDayParameters(day); 292 // with the selected day's info 293 mController.sendEvent(mContext, EventType.GO_TO, day, day, -1, 297 mController.sendEvent(mContext, EventType.GO_TO, day, day, -1, 304 private void setDayParameters(Time day) { argument 305 day [all...] |
H A D | SimpleWeeksAdapter.java | 44 * given day, show a reduced number of days, or display an arbitrary number of 65 * Which day the week should start on. {@link Time#SUNDAY} through 70 * The Julian day to highlight as selected. 88 // The day to highlight as selected 90 // The week since 1970 that the selected day is in 161 * Updates the selected day and related parameters. 174 * Returns the currently highlighted day 261 Time day = ((SimpleWeekView)v).getDayFromLocation(event.getX()); 263 Log.d(TAG, "Touched day at Row=" + view.mWeek + " day 278 onDayTapped(Time day) argument [all...] |
H A D | MonthWeekEventsView.java | 116 // events being drawn on each day. The code will expand this if necessary. 255 // divided up by day for generating the large month version and the full 290 for (int day = 0; day < numDays; day++) { 291 mDayXs[day] = computeDayLeftPosition(day) + DNA_WIDTH / 2 + DNA_SIDE_PADDING; 574 // Computes the x position for the left side of the given day 575 private int computeDayLeftPosition(int day) { argument 583 x = day * effectiveWidt [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | AlarmTimelineView.java | 148 for (int day : alarm.daysOfWeek.getSetDays()) { 149 mCalendar.add(Calendar.DATE, getDaysFromNow(day, hour, minutes)); 184 // Returns the days from now of the next instance of this alarm, given the repeated day. 185 private int getDaysFromNow(int day, int hour, int minute) { argument 187 if (day != currentDay) { 188 if (day < currentDay) { 189 day += DAYS_IN_WEEK; 191 return day - currentDay;
|
/packages/apps/Settings/src/com/android/settings/ |
H A D | DateTimeSettings.java | 192 public void onDateSet(DatePicker view, int year, int month, int day) { argument 195 setDate(activity, year, month, day); 349 /* package */ static void setDate(Context context, int year, int month, int day) { argument 354 c.set(Calendar.DAY_OF_MONTH, day);
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/parser/ |
H A D | DateTimeParser.java | 102 private int day; field in class:DateTimeParser.Date 104 public Date(String year, int month, int day) { argument 107 this.day = day; 112 public int getDay() { return day; } 204 d = day(); 211 final public int day() throws ParseException { method in class:DateTimeParser
|
/packages/apps/Exchange/src/com/android/exchange/utility/ |
H A D | CalendarUtilities.java | 237 int day; field in class:CalendarUtilities.TimeZoneDate 252 // MSFT day of week starts w/ Sunday = 0; RRule starts w/ Sunday = 1 269 // MSFT day of week starts w/ Sunday = 0; TimeZone starts w/ Sunday = 1 272 // Get the "day" in TimeZone format 299 // MSFT day of week starts w/ Sunday = 0; TimeZone starts w/ Sunday = 1 302 // Get the "day" in TimeZone format 306 tzd.day = -1; 308 tzd.day = num; 332 testCalendar.set(GregorianCalendar.DAY_OF_WEEK_IN_MONTH, tzd.day); 423 * Create an RRULE based on month, day o [all...] |