Searched refs:day (Results 1 - 25 of 29) sorted by relevance

12

/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
H A DSimpleDate.java26 * 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 DDateTime.java36 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 DZenModeScheduleDaysSelection.java57 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);
H A DZenModeScheduleRuleSettings.java155 // Compute an ordered, delimited list of day names based on the persisted user config.
162 final int day = daysOfWeek[i];
164 if (day == days[j]) {
165 c.set(Calendar.DAY_OF_WEEK, day);
/packages/apps/Contacts/src/com/android/contacts/datepicker/
H A DDatePickerDialog.java51 private static final String DAY = "day";
73 * @param dayOfMonth The day of the month that was set.
84 * @param dayOfMonth The initial day of the dialog.
105 * @param dayOfMonth The initial day of the dialog.
149 public void onDateChanged(DatePicker view, int year, int month, int day) { argument
150 updateTitle(year, month, day);
153 private void updateTitle(int year, int month, int day) { argument
157 calendar.set(Calendar.DAY_OF_MONTH, day);
178 int day = savedInstanceState.getInt(DAY);
180 mDatePicker.init(year, month, day, yearOptiona
[all...]
H A DDatePicker.java46 * 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/src/com/android/calendar/month/
H A DMonthByWeekAdapter.java72 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 DSimpleWeeksAdapter.java44 * 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 DMonthListView.java160 // 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 DMonthWeekEventsView.java116 // 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 DSimpleWeekView.java44 * 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...]
H A DSimpleDayPickerFragment.java50 * configured to display the week number, start the week on a given day, show a
105 // The first day of the focus month
107 // The first day that is visible in the view
145 // This allows us to update our position when a day is tapped
149 Time day = mAdapter.getSelectedDay();
150 if (day.year != mSelectedDay.year || day.yearDay != mSelectedDay.yearDay) {
151 goTo(day.toMillis(true), true, true, false);
314 * Fixes the day names header to provide correct spacing and updates the
384 // Set the selected day
[all...]
/packages/apps/Settings/src/com/android/settings/datetime/
H A DDatePreferenceController.java82 public void onDateSet(DatePicker view, int year, int month, int day) { argument
83 setDate(year, month, day);
106 void setDate(int year, int month, int day) { argument
111 c.set(Calendar.DAY_OF_MONTH, day);
/packages/apps/Calendar/src/com/android/calendar/
H A DDayOfMonthDrawable.java29 * 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 DEventRecurrenceFormatter.java89 // 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 DDayView.java92 * 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...]
H A DUtils.java115 // 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...]
/packages/apps/Calendar/tests/src/com/android/calendar/
H A DWeekNumberTest.java37 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 DCalendarAppWidgetModel.java46 * 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 DUtilityTest.java37 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/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/parser/
H A DDateTimeParser.java102 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 DCreateEventDialogFragment.java52 * 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 DEditEventHelper.java166 * 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/Calendar/tests/src/com/android/calendar/alerts/
H A DAlertServiceTest.java416 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...]
/packages/apps/ExactCalculator/src/com/android/calculator2/
H A DHistoryAdapter.java165 final int day = mCalendar.get(Calendar.DAY_OF_YEAR);
169 return year != prevYear || day != prevDay;

Completed in 362 milliseconds

12