/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
H A D | SimpleDate.java | 26 * Represents a date (year, month, day) 31 public int day; // DD field in class:SimpleDate 49 this.day = sCalendarInstance.get(Calendar.DATE); 62 result = prime * result + day; 86 if (day != other.day) { 102 return this.day - other.getDay(); 108 return day;
|
/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/services/Telephony/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/Settings/src/com/android/settings/notification/ |
H A D | ZenModeScheduleDaysSelection.java | 57 final int day = daysOfWeek[i]; 60 c.set(Calendar.DAY_OF_WEEK, day); 62 checkBox.setChecked(mDays.get(day)); 66 mDays.put(day, isChecked); 77 final int day = mDays.keyAt(i); 79 rt.put(day, 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 | MonthListView.java | 160 // Get the day at the top right corner 161 int day = getUpperRightJulianDay(); 162 // Get the day of the first day of the next/previous month 164 mTempTime.setJulianDay(day); 168 // Since each view is 7 days, round the target day up to make sure the 181 int viewsToFling = (scrollToDay - day) / 7 - ((monthsToJump <= 0) ? 1 : 0); 189 // Returns the julian day of the day in the upper right corner
|
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...] |
H A D | SimpleWeekView.java | 44 * display the week number, start the week on a given day, or show a reduced 72 * Which day the week should start on. {@link Time#SUNDAY} through 124 // The Julian day of the first day displayed by this item 126 // The month of the first day in this week 128 // The month of the last day in this week 139 // If this view contains the selected day 143 // Which day is selected [0-6] or -1 if no day is selected 145 // Which day i [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
H A D | DaysOfWeek.java | 29 * 0x00: no day 52 static int convertDayToBitIndex(int day) { argument 53 return (day + 5) % DAYS_IN_A_WEEK; 87 // every day 110 // selected days, starting from user-selected start day of week 111 // iterate starting from user-selected start of day 128 for (int day : daysOfWeek) { 129 setBit(convertDayToBitIndex(day), value); 184 // We only use this on preemptively dismissed alarms, and alarms can only fire once a day, 185 // so there is no chance that the previous fire time is on the same day [all...] |
/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 | 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/Contacts/src/com/android/contacts/datepicker/ |
H A D | DatePickerDialog.java | 51 private static final String DAY = "day"; 73 * @param dayOfMonth The day of the month that was set. 83 * @param dayOfMonth The initial day of the dialog. 99 * @param dayOfMonth The initial day of the dialog. 120 * @param dayOfMonth The initial day of the dialog. 138 * @param dayOfMonth The initial day of the dialog. 182 public void onDateChanged(DatePicker view, int year, int month, int day) { argument 183 updateTitle(year, month, day); 193 private void updateTitle(int year, int month, int day) { argument 197 calendar.set(Calendar.DAY_OF_MONTH, day); [all...] |
H A D | DatePicker.java | 46 * A view for selecting a month / year / day based on a calendar like layout. 89 * @param dayOfMonth The day of the month that was set. 110 mDayPicker = (NumberPicker) findViewById(R.id.day); 151 // Adjust max day of the month 163 // Adjust max day for leap years if needed 205 // We use numeric spinners for year and day, but textual months. Ask icu4c what 255 private SavedState(Parcelable superState, int year, int month, int day, boolean hasYear, argument 260 mDay = day; 355 * @param dayOfMonth The initial day of the month. 367 * @param dayOfMonth The initial day o [all...] |
/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/widget/ |
H A D | CalendarAppWidgetModel.java | 46 * day header or an event. 53 * mType is either a day header (TYPE_DAY) or an event (TYPE_MEETING) 58 * If mType is TYPE_DAY, then mData is the index into day infos. 191 * {@link DayInfo} is a class that represents a day header in the widget. It 192 * contains all of the data necessary to display that day header, including 197 /** The Julian day */ 200 /** The string representation of this day header, to be displayed */ 289 // wrong endDay for all day events 296 // Adjust all-day times into local timezone 308 // deal with all-day event [all...] |
/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
H A D | UtilityTest.java | 37 int day, int hour, int minute, int second) throws Exception { 41 assertEquals(day, cal.get(Calendar.DAY_OF_MONTH)); 60 int day, int hour, int minute, int second, int millis) throws Exception { 61 GregorianCalendar cal = new GregorianCalendar(year, month - 1, day, 36 testParseDateTimesHelper(String date, int year, int month, int day, int hour, int minute, int second) argument 59 testParseEmailDateTimeHelper(String date, int year, int month, int day, int hour, int minute, int second, int millis) argument
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/ |
H A D | SetDateTimeActivity.java | 62 int day = Integer.parseInt(result.get(dIndex)); 73 setDate(SetDateTimeActivity.this, year, monthInt, day); 153 public static void setDate(Context context, int year, int month, int day) { argument 158 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/services/Telephony/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/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);
|
H A D | EditEventHelper.java | 166 * creating all-day events that is part of the extra data of the intent. 168 * default for the new event should be an all-day event. 751 // to display it properly. For all-day events, the "until" time string 768 // format for an all-day event. 919 // if it's all day compute the duration in days 948 * @param weekStart the week start day, specified as java.util.Calendar 975 for (int day = 0; day < dayCount; day++) { 976 bydayNum[day] [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/picker/ |
H A D | DatePicker.java | 173 protected boolean setDate(int year, int month, int day) { argument 180 GregorianCalendar cal = new GregorianCalendar(year, month, day); 193 updateSelection(mColDayIndex, day - 1);
|
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/ |
H A D | AlertServiceTest.java | 416 int id = at.addAlertRow(100, SCHEDULED, ACCEPTED, 0 /* all day */, 1300000, 2300000, 0); 621 int day = now.monthDay; 628 long allDayStart = Utils.createTimeInMillis(0, 0, 0, day, month, year, Time.TIMEZONE_UTC); 632 Utils.createTimeInMillis(0, 0, 10, day, month, year, Time.getCurrentTimezone()), 633 Utils.createTimeInMillis(0, 30, 10, day, month, year, Time.getCurrentTimezone()), 637 Utils.createTimeInMillis(0, 0, 6, day, month, year, Time.getCurrentTimezone()), 638 Utils.createTimeInMillis(0, 0, 6, day, month, year, Time.getCurrentTimezone()), 0); 646 Utils.createTimeInMillis(0, 0, 7, day, month, year, Time.getCurrentTimezone()), 0); 649 // day event). 650 long currentTime = Utils.createTimeInMillis(0, 0, 0, day, mont [all...] |