/packages/apps/Calendar/src/com/android/calendar/ |
H A D | EventRecurrenceFormatter.java | 53 // There is no "BYDAY" specifier, so use the day of the 61 int day = EventRecurrence.timeDay2Day(recurrence.startDate.weekDay); 62 return String.format(format, dayToString(day)); 76 * Converts day of week to a String. 77 * @param day a EventRecurrence constant 78 * @return day of week as a string 80 private static String dayToString(int day) { argument 81 return DateUtils.getDayOfWeekString(dayToUtilDay(day), DateUtils.LENGTH_LONG); 85 * Converts EventRecurrence's day of week to DateUtil's day o 89 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. 176 private int[] mEarliestStartHour; // indexed by the week day offset 177 private boolean[] mHasAllDayEvent; // indexed by the week day offset 276 private int mSelectionDay; // Julian day 285 /** Width of a day or non-conflicting event */ 300 private int mFirstDayOfWeek; // First day of the week 467 * The height of the day names/numbers 471 * The height of the day names/numbers for multi-day view 2204 computeDayLeftPosition(int day) argument 2341 drawCurrentTimeLine(Rect r, final int day, final int top, Canvas canvas, Paint p) argument 2455 drawDayHeader(String dayStr, int day, int cell, Canvas canvas, Paint p) argument 2907 drawMoreAlldayEvents(Canvas canvas, int remainingEvents, int day, Paint p) argument [all...] |
H A D | Utils.java | 90 // The work day is being counted as 6am to 8pm 120 // This is the "detail" view which is either agenda or day view 252 * Save default agenda/day/week/month view for next time 390 * adjusted for first day of week. 392 * This takes a julian day and the week start day and calculates which 393 * week since {@link Time#EPOCH_JULIAN_DAY} that day occurs in, starting 396 * @param julianDay The julian day to calculate the week number for 397 * @param firstDayOfWeek Which week day is the first day o 628 int day; // quick reference to the day this segment is on field in class:Utils.DNASegment [all...] |
/packages/apps/Email/emailcommon/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/month/ |
H A D | SimpleWeeksAdapter.java | 43 * given day, show a reduced number of days, or display an arbitrary number of 64 * Which day the week should start on. {@link Time#SUNDAY} through 69 * The Julian day to highlight as selected. 87 // The day to highlight as selected 89 // The week since 1970 that the selected day is in 160 * Updates the selected day and related parameters. 173 * Returns the currently highlighted day 260 Time day = ((SimpleWeekView)v).getDayFromLocation(event.getX()); 262 Log.d(TAG, "Touched day at Row=" + view.mWeek + " day 277 onDayTapped(Time day) argument [all...] |
H A D | MonthByWeekAdapter.java | 259 protected void onDayTapped(Time day) { argument 260 day.timezone = mHomeTimeZone; 263 day.hour = currTime.hour; 264 day.minute = currTime.minute; 265 day.allDay = false; 266 day.normalize(true); 269 // with the selected day's info 270 mController.sendEvent(mContext, EventType.GO_TO, day, day, -1, 274 mController.sendEvent(mContext, EventType.GO_TO, day, da [all...] |
H A D | MonthWeekEventsView.java | 113 // events being drawn on each day. The code will expand this if necessary. 243 // divided up by day for generating the large month version and the full 278 for (int day = 0; day < numDays; day++) { 279 mDayXs[day] = computeDayLeftPosition(day) + DNA_WIDTH / 2 + DNA_SIDE_PADDING; 538 // Computes the x position for the left side of the given day 539 private int computeDayLeftPosition(int day) { argument 547 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 122 // The Julian day of the first day displayed by this item 124 // The month of the first day in this week 126 // The month of the last day in this week 137 // If this view contains the selected day 141 // Which day is selected [0-6] or -1 if no day is selected 143 // Which day i [all...] |
H A D | SimpleDayPickerFragment.java | 50 * configured to display the week number, start the week on a given day, show a 106 // The first day of the focus month 108 // The first day that is visible in the view 146 // This allows us to update our position when a day is tapped 150 Time day = mAdapter.getSelectedDay(); 151 if (day.year != mSelectedDay.year || day.yearDay != mSelectedDay.yearDay) { 152 goTo(day.toMillis(true), true, true, false); 316 * Fixes the day names header to provide correct spacing and updates the 386 // Set the selected day [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | Alarm.java | 244 * 0x00: no day 281 // every day 311 private boolean isSet(int day) { argument 312 return ((mDays & (1 << day)) > 0); 315 public void set(int day, boolean set) { argument 317 mDays |= (1 << day); 319 mDays &= ~(1 << day); 355 int day = 0; 358 day = (today + dayCount) % 7; 359 if (isSet(day)) { [all...] |
H A D | SetAlarm.java | 347 (days == 1) ? context.getString(R.string.day) :
|
/packages/apps/Contacts/src/com/android/contacts/datepicker/ |
H A D | DatePickerDialog.java | 50 private static final String DAY = "day"; 72 * @param dayOfMonth The day of the month that was set. 82 * @param dayOfMonth The initial day of the dialog. 97 * @param dayOfMonth The initial day of the dialog. 118 * @param dayOfMonth The initial day of the dialog. 135 * @param dayOfMonth The initial day of the dialog. 194 int month, int day) { 195 updateTitle(year, month, day); 205 private void updateTitle(int year, int month, int day) { argument 208 mCalendar.set(Calendar.DAY_OF_MONTH, day); 193 onDateChanged(DatePicker view, int year, int month, int day) argument [all...] |
H A D | DatePicker.java | 47 * A view for selecting a month / year / day based on a calendar like layout. 87 * @param dayOfMonth The day of the month that was set. 107 mDayPicker = (NumberPicker) findViewById(R.id.day); 146 // Adjust max day of the month 157 // Adjust max day for leap years if needed 300 private SavedState(Parcelable superState, int year, int month, int day, boolean hasYear, argument 305 mDay = day; 398 * @param dayOfMonth The initial day of the month. 410 * @param dayOfMonth The initial day of the month.
|
/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/emailcommon/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/Settings/src/com/android/settings/ |
H A D | DateTimeSettings.java | 183 public void onDateSet(DatePicker view, int year, int month, int day) { argument 184 setDate(year, month, day); 339 /* package */ static void setDate(int year, int month, int day) { argument 344 c.set(Calendar.DAY_OF_MONTH, day);
|
/packages/inputmethods/PinyinIME/jni/include/ |
H A D | userdict.h | 165 #define COARSE_UTC(year, month, day, hour, minute, second) \ 169 (day - 1) * 24 * 60 * 60 + \
|
/packages/apps/Calendar/src/com/android/calendar/event/ |
H A D | EditEventHelper.java | 153 * creating all-day events that is part of the extra data of the intent. 155 * default for the new event should be an all-day event. 719 // to display it properly. For all-day events, the "until" time string 736 // format for an all-day event. 887 // if it's all day compute the duration in days 916 * @param weekStart the week start day, specified as java.util.Calendar 943 for (int day = 0; day < dayCount; day++) { 944 bydayNum[day] [all...] |
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
H A D | AgendaWindowAdapter.java | 115 Instances.START_DAY, // 10 Julian start day 116 Instances.END_DAY, // 11 Julian end day 287 int start; // start day of the cursor's coverage 288 int end; // end day of the cursor's coverage 447 // Turn on the past/present separator if the view is a day header 448 // and it is the first day with events after yesterday. 531 int day = Time.getJulianDay(timeInMillis, tmpTime.gmtoff); 534 if (info.start <= day && day <= info.end) { 551 * The two will differ for multi-day event [all...] |
H A D | AgendaByDayAdapter.java | 192 holder.dayView = (TextView) agendaDayView.findViewById(R.id.day); 209 // Build the text for the day of the week. 210 // Should be yesterday/today/tomorrow (if applicable) + day of the week 221 // Format should be month day 235 // Set the background of the view, it is grayed for day that are in the past and today 308 // Make sure event's start time is not before the start of the day 318 // If there are any multiple-day events that span the empty 319 // range of days, then create day headers and events for 320 // those multiple-day events. 334 // If this is the first event for the day, the [all...] |
/packages/apps/Exchange/src/com/android/exchange/utility/ |
H A D | CalendarUtilities.java | 224 int day; field in class:CalendarUtilities.TimeZoneDate 239 // MSFT day of week starts w/ Sunday = 0; RRule starts w/ Sunday = 1 256 // MSFT day of week starts w/ Sunday = 0; TimeZone starts w/ Sunday = 1 259 // Get the "day" in TimeZone format 286 // MSFT day of week starts w/ Sunday = 0; TimeZone starts w/ Sunday = 1 289 // Get the "day" in TimeZone format 293 tzd.day = -1; 295 tzd.day = num; 319 testCalendar.set(GregorianCalendar.DAY_OF_WEEK_IN_MONTH, tzd.day); 410 * Create an RRULE based on month, day o [all...] |
/packages/apps/Contacts/src/com/android/contacts/model/ |
H A D | EntityModifier.java | 1262 final int day = calendar.get(Calendar.DAY_OF_MONTH); 1264 calendar.set(defaultYear, month, day,
|