Searched defs:day (Results 1 - 23 of 23) sorted by relevance

/frameworks/av/media/mtp/
H A DMtpUtils.cpp32 DD replaced by the day (01-31), T is a constant character 'T' delimiting time from date,
38 int year, month, day, hour, minute, second; local
42 &year, &month, &day, &hour, &minute, &second) != 6)
58 tm.tm_mday = day;
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
H A DDatePickerController.java31 void onDayOfMonthSelected(int year, int month, int day); argument
H A DSimpleMonthView.java31 public void drawMonthDay(Canvas canvas, int year, int month, int day, argument
33 if (mSelectedDay == day) {
38 // If we have a mindate or maxdate, gray out the day number if it's outside the range.
39 if (isOutOfRange(year, month, day)) {
41 } else if (mHasToday && mToday == day) {
46 canvas.drawText(String.format("%d", day), x, y, mMonthNumPaint);
H A DMonthAdapter.java55 int day; field in class:MonthAdapter.CalendarDay
68 day = calendar.get(Calendar.DAY_OF_MONTH);
71 public CalendarDay(int year, int month, int day) { argument
72 setDay(year, month, day);
78 day = date.day;
81 public void setDay(int year, int month, int day) { argument
84 this.day = day;
102 day
131 setSelectedDay(CalendarDay day) argument
220 onDayClick(MonthView view, CalendarDay day) argument
231 onDayTapped(CalendarDay day) argument
[all...]
H A DDayPickerView.java178 public boolean goTo(CalendarDay day, boolean animate, boolean setSelected, boolean forceScroll) { argument
180 // Set the selected day
182 mSelectedDay.set(day);
185 mTempDay.set(day);
186 final int position = (day.year - mController.getMinYear())
187 * MonthAdapter.MONTHS_IN_YEAR + day.month;
219 // Check if the selected day is now outside of our visible range
400 * {@code day} is {@code null}.
402 * @param day The date that should receive accessibility focus
405 private boolean restoreAccessibilityFocus(CalendarDay day) { argument
440 getMonthAndYearString(CalendarDay day) argument
[all...]
H A DDatePickerDialog.java63 private static final String KEY_SELECTED_DAY = "day";
123 * @param dayOfMonth The day of the month that was set.
145 * @param dayOfMonth The initial day of the dialog.
384 * @param calendar a Calendar object set to the year, month, day desired as the mindate.
405 * @param calendar a Calendar object set to the year, month, day desired as the maxdate.
427 // If the newly selected month / year does not contain the currently selected day number,
428 // change the selected day number to the last day of the selected month or year.
432 int day = mCalendar.get(Calendar.DAY_OF_MONTH);
434 if (day > daysInMont
459 onDayOfMonthSelected(int year, int month, int day) argument
[all...]
H A DMonthView.java52 * A calendar-like view displaying a specified month and the appropriate selectable day numbers
83 * Which day the week should start on. {@link Time#SUNDAY} through
141 // The Julian day of the first day displayed by this item
143 // The month of the first day in this week
145 // The month of the last day in this week
157 // Which day is selected [0-6] or -1 if no day is selected
159 // Which day is today [0-6] or -1 if no day i
392 setSelectedDay(int day) argument
408 sameDay(int day, Time today) argument
517 drawMonthDay(Canvas canvas, int year, int month, int day, int x, int y, int startX, int stopX, int startY, int stopY) argument
570 onDayClick(int day) argument
590 isOutOfRange(int year, int month, int day) argument
600 isBeforeMin(int year, int month, int day) argument
628 isAfterMax(int year, int month, int day) argument
683 restoreAccessibilityFocus(CalendarDay day) argument
774 getItemBounds(int day, Rect rect) argument
796 getItemDescription(int day) argument
813 onDayClick(MonthView view, CalendarDay day) argument
[all...]
/frameworks/base/core/java/android/util/
H A DMonthDisplayHelper.java44 * @param weekStartDay What day of the week the week should start.
85 * @return The first day of the month using a constants such as
102 * box. For example, if the calendar is set to display the first day of
132 * @return The day at a particular row, column
140 int day = 7 * row + column - mOffset + 1;
142 return (day > mNumDaysInMonth) ?
143 day - mNumDaysInMonth : day;
147 * @return Which row day is in.
149 public int getRowOf(int day) { argument
156 getColumnOf(int day) argument
[all...]
/frameworks/base/core/java/android/app/
H A DDatePickerDialog.java47 private static final String DAY = "day";
65 * @param dayOfMonth The day of the month that was set.
75 * @param dayOfMonth The initial day of the dialog.
101 * @param dayOfMonth The initial day of the dialog.
124 public void onDateChanged(DatePicker view, int year, int month, int day) { argument
125 mDatePicker.init(year, month, day, this);
126 updateTitle(year, month, day);
158 * @param dayOfMonth The date day of month.
164 private void updateTitle(int year, int month, int day) { argument
168 mCalendar.set(Calendar.DAY_OF_MONTH, day);
[all...]
/frameworks/base/core/java/android/text/format/
H A DDateFormat.java316 int day = value.indexOf('d');
319 if (month >= 0 && day >= 0 && year >= 0) {
321 if (year < month && year < day) {
322 if (month < day) {
327 } else if (month < day) {
328 if (day < year) {
333 } else { // day < month
372 * array containing the day ({@code 'd'}), month ({@code 'M'}), and year ({@code 'y'}))
376 * not just the day, month, and year, and not necessarily in the same
539 case 'H': // hour in day (
588 getDayOfWeekString(LocaleData ld, int day, int count, int kind) argument
[all...]
H A DDateUtils.java178 * Return a string for the day of the week.
388 // above a week or exact dates below a day, so clamp
411 * Returns a string describing a day relative to the current day. For example if the day is
412 * today this function returns "Today", if the day was a week ago it returns "7 days ago", and
413 * if the day is in 2 weeks it returns "in 14 days".
416 * @param day the relative day to describe in UTC milliseconds
419 private static final String getRelativeDayString(Resources r, long day, lon argument
[all...]
/frameworks/base/core/java/android/widget/
H A DSimpleMonthAdapter.java68 * Updates the selected day and related parameters.
70 * @param day The day to highlight
72 public void setSelectedDay(Calendar day) { argument
73 mSelectedDay = day;
79 * Sets the listener to call when the user selects a day.
199 public void onDayClick(SimpleMonthView view, Calendar day) {
200 if (day != null && isCalendarInRange(day)) {
201 setSelectedDay(day);
211 onDaySelected(SimpleMonthAdapter view, Calendar day) argument
[all...]
H A DDayPickerView.java144 * Sets the listener to call when the user selects a day.
199 * @param day The day to move to
207 private boolean goTo(long day, boolean animate, boolean setSelected, boolean forceScroll) { argument
209 // Set the selected day
211 mSelectedDay.setTimeInMillis(day);
214 mTempDay.setTimeInMillis(day);
215 final int position = getPositionFromDay(day);
241 // Check if the selected day is now outside of our visible range
423 * {@code day} i
428 restoreAccessibilityFocus(Calendar day) argument
468 getMonthAndYearString(Calendar day) argument
534 onDaySelected(DayPickerView view, Calendar day) argument
[all...]
H A DDatePicker.java57 * set to {@code spinner}, the date can be selected using year, month, and day
64 * set to {@code calendar}, the month and day can be selected using a
113 * @param dayOfMonth The day of the month that was set.
171 * @param dayOfMonth The initial day of the month.
185 * @param dayOfMonth The day of the month.
206 * @return The selected day of month.
316 * Sets the first day of week.
318 * @param firstDayOfWeek The first day of the week conforming to the
338 * Gets the first day of week.
340 * @return The first day o
1163 SavedState(Parcelable superState, int year, int month, int day) argument
[all...]
H A DDatePickerCalendarDelegate.java46 * A delegate for picking up a date (day / month / year).
70 /** Layout that contains the current month, day, and year. */
73 /** Clickable layout that contains the current day and year. */
130 // Layout that contains the current date and day name header.
532 final int day = mCurrentDate.get(Calendar.DAY_OF_MONTH);
544 return new SavedState(superState, year, month, day, mMinDate.getTimeInMillis(),
597 // Auto-advance to month and day view.
601 // If the newly selected month / year does not contain the currently selected day number,
602 // change the selected day number to the last day o
689 SavedState(Parcelable superState, int year, int month, int day, long minDate, long maxDate, int currentView, int listPosition, int listPositionOffset) argument
[all...]
H A DSimpleMonthView.java51 * A calendar-like view displaying a specified month and the appropriate selectable day numbers
77 /** Single-letter (when available) formatter for the day of week label. */
105 // Which day is selected [0-6] or -1 if no day is selected
108 // Which day is today [0-6] or -1 if no day is today
111 // Which day of the week to start on [0-6]
122 // First enabled day
125 // Last enabled day
135 // Optional listener for handling day clic
302 isValidDayOfWeek(int day) argument
409 sameDay(int day, Time today) argument
524 onDayClick(int day) argument
564 restoreAccessibilityFocus(Calendar day) argument
655 getItemBounds(int day, Rect rect) argument
677 getItemDescription(int day) argument
694 onDayClick(SimpleMonthView view, Calendar day) argument
[all...]
H A DCalendarViewLegacyDelegate.java56 * The number of milliseconds in a day.e
61 * The number of day in a week.
155 * The number of day per week to be shown.
185 * The header with week day names.
190 * Cached abbreviations for day of week names.
195 * Cached full-length day of week names.
200 * The first day of the week.
230 * Listener for changes in the selected day.
245 * The first day of the focused month.
794 // Check if the selected day i
1120 onDateTapped(Calendar day) argument
[all...]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DDatePicker.java41 * A view for selecting a month / year / day based on a calendar like layout.
81 * @param dayOfMonth The day of the month that was set.
104 mDayPicker = (NumberPicker) findViewById(R.id.day);
143 // Adjust max day of the month
154 // Adjust max day for leap years if needed
297 private SavedState(Parcelable superState, int year, int month, int day, boolean hasYear, argument
302 mDay = day;
395 * @param dayOfMonth The initial day of the month.
407 * @param dayOfMonth The initial day of the month.
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DTimeStatsAggregator.java107 private static String getDayOfWeek(int day) { argument
108 switch (day) {
183 // get all possible day values
188 // set the fake time of day
194 // set the fake day of week
195 // set to "" to disable the fake day
/frameworks/opt/calendar/src/com/android/calendarcommon2/
H A DRecurrenceProcessor.java321 * Compute the day of the week for the first day of the month. "instance" has a
322 * day number and a DotW, so we compute the DotW of the 1st from that. Note DotW
325 * The basic calculation is to take the instance's "day of the week" number, subtract
326 * (day of the month - 1) mod 7, and then make sure it's positive. We can simplify
341 * Generate a set according to the BYDAY rules. For each day of the month, determine
342 * if its day of the week is included. If so, append it to the day set.
349 // For each month day, see if it's part of the set. (This makes some assumptions
430 boolean get(Time iterator, int day) argument
1264 weekDay(int year, int month, int day) argument
1280 yearDay(int year, int month, int day) argument
[all...]
H A DEventRecurrence.java168 public static int calendarDay2Day(int day) argument
170 switch (day)
187 throw new RuntimeException("bad day of week: " + day);
191 public static int timeDay2Day(int day) argument
193 switch (day)
210 throw new RuntimeException("bad day of week: " + day);
213 public static int day2TimeDay(int day) argument
215 switch (day)
241 day2CalendarDay(int day) argument
274 day2String(int day) argument
[all...]
/frameworks/base/core/java/android/text/style/
H A DTtsSpan.java330 * Argument used to specify the day of the month of a date. The value should
334 public static final String ARG_DAY = "android.arg.day";
1147 Integer day,
1154 if (day != null) {
1155 setDay(day);
1178 * @param day The value to be set for day. See {@link #ARG_DAY}.
1182 public DateBuilder setDay(int day) { argument
1183 return setIntArgument(TtsSpan.ARG_DAY, day);
1146 DateBuilder(Integer weekday, Integer day, Integer month, Integer year) argument
/frameworks/base/services/core/java/com/android/server/content/
H A DSyncStorageEngine.java87 private static final long DEFAULT_POLL_FREQUENCY_SECONDS = 60 * 60 * 24; // One day
354 // Old version is one sync a day. Empty bundle gets replaced by any addPeriodicSync()
389 public final int day; field in class:SyncStorageEngine.DayStats
395 public DayStats(int day) { argument
396 this.day = day;
1360 int day = getCurrentDayLocked();
1362 mDayStats[0] = new DayStats(day);
1363 } else if (day != mDayStats[0].day) {
[all...]

Completed in 3412 milliseconds