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

12

/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
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 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...]
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 DDatePickerController.java31 void onDayOfMonthSelected(int year, int month, int day); argument
/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/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
H A DDatePickerBindingAdapter.java29 @InverseBindingMethod(type = DatePicker.class, attribute = "android:day", method = "getDayOfMonth"),
32 @BindingAdapter(value = {"android:year", "android:month", "android:day",
35 public static void setListeners(DatePicker view, int year, int month, int day, argument
41 if (day == 0) {
42 day = view.getDayOfMonth();
45 view.init(year, month, day, listener);
53 view.init(year, month, day, oldListener);
/frameworks/base/core/java/android/widget/
H A DSimpleMonthView.java57 * A calendar-like view displaying a specified month and the appropriate selectable day numbers
110 /** The day of month for the selected day, or -1 if no day is selected. */
114 * The day of month for today, or -1 if the today is not in the current
119 /** The first day of the week (ex. Calendar.SUNDAY) indexed from one. */
126 * The day of week (ex. Calendar.SUNDAY) for the first day of the current
131 /** The day of month for the first (inclusive) enabled day
594 isFirstDayOfWeek(int day) argument
599 isLastDayOfWeek(int day) argument
724 isDayEnabled(int day) argument
728 isValidDayOfMonth(int day) argument
732 isValidDayOfWeek(int day) argument
854 sameDay(int day, Calendar today) argument
1012 onDayClicked(int day) argument
1139 onDayClick(SimpleMonthView view, Calendar day) argument
[all...]
H A DCalendarViewMaterialDelegate.java114 public void onDaySelected(DayPickerView view, Calendar day) {
116 final int year = day.get(Calendar.YEAR);
117 final int month = day.get(Calendar.MONTH);
118 final int dayOfMonth = day.get(Calendar.DAY_OF_MONTH);
H A DDayPickerPagerAdapter.java90 * Sets the first day of the week.
92 * @param weekStart which day the week should start on, valid values are
111 * Sets the selected day.
113 * @param day the selected day
115 public void setSelectedDay(@Nullable Calendar day) { argument
117 final int newPosition = getPositionForDay(day);
131 final int dayOfMonth = day.get(Calendar.DAY_OF_MONTH);
136 mSelectedDay = day;
140 * Sets the listener to call when the user selects a day
201 getPositionForDay(@ullable Calendar day) argument
328 onDaySelected(DayPickerPagerAdapter view, Calendar day) argument
[all...]
H A DDatePicker.java45 * set to {@code spinner}, the date can be selected using year, month, and day
52 * set to {@code calendar}, the month and day can be selected using a
124 * @param dayOfMonth The day of the month that was set.
203 * @param dayOfMonth The initial day of the month.
217 * @param dayOfMonth The day of the month.
238 * @return The selected day of month.
343 * Sets the first day of week.
345 * @param firstDayOfWeek The first day of the week conforming to the
365 * Gets the first day of week.
367 * @return The first day o
590 SavedState(Parcelable superState, int year, int month, int day, long minDate, long maxDate) argument
598 SavedState(Parcelable superState, int year, int month, int day, long minDate, long maxDate, int currentView, int listPosition, int listPositionOffset) argument
[all...]
H A DDatePickerCalendarDelegate.java47 * A delegate for picking up a date (day / month / year).
165 // Set up day picker view.
239 * Listener called when the user selects a day in the day picker view.
243 public void onDaySelected(DayPickerView view, Calendar day) {
244 mCurrentDate.setTimeInMillis(day.getTimeInMillis());
256 // currently selected day number, change the selected day number
257 // to the last day of the selected month or year.
260 final int day
[all...]
H A DDayPickerView.java173 public void onDaySelected(DayPickerPagerAdapter adapter, Calendar day) {
175 mOnDaySelectedListener.onDaySelected(DayPickerView.this, day);
233 // header, horizontally center within the day cell.
269 * @param timeInMillis the target day in milliseconds
279 * @param timeInMillis the target day in milliseconds
287 * Moves to the month containing the specified day, optionally setting the
288 * day as selected.
290 * @param timeInMillis the target day in milliseconds
292 * @param setSelected whether to set the specified day as selected
352 * Sets the listener to call when the user selects a day
431 onDaySelected(DayPickerView view, Calendar day) argument
[all...]
/frameworks/av/media/mtp/
H A DMtpUtils.cpp30 DD replaced by the day (01-31), T is a constant character 'T' delimiting time from date,
37 int year, month, day, hour, minute, second; local
39 &year, &month, &day, &hour, &minute, &second) != 6)
62 tm.tm_mday = day;
/frameworks/opt/calendar/src/com/android/calendarcommon2/
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...]
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...]
/frameworks/opt/telephony/src/java/android/telephony/
H A DSmsCbEtwsInfo.java152 int day = IccUtils.gsmBcdByteToInt(mWarningSecurityInformation[2]);
174 time.monthDay = day;
/frameworks/base/core/java/android/text/format/
H A DDateFormat.java315 * array containing the day ({@code 'd'}), month ({@code 'M'}), and year ({@code 'y'}))
319 * not just the day, month, and year, and not necessarily in the same
484 case 'H': // hour in day (0-23)
485 case 'k': // hour in day (1-24) [but see note below]
533 private static String getDayOfWeekString(LocaleData ld, int day, int count, int kind) { argument
536 return standalone ? ld.tinyStandAloneWeekdayNames[day] : ld.tinyWeekdayNames[day];
538 return standalone ? ld.longStandAloneWeekdayNames[day] : ld.longWeekdayNames[day];
540 return standalone ? ld.shortStandAloneWeekdayNames[day]
[all...]
/frameworks/base/services/core/java/com/android/server/notification/
H A DScheduleCalendar.java96 final int day = ((getDayOfWeek(time) - 1) + (daysOffset % n) + n) % n + 1;
99 return mDays.contains(day) && time >= start && time < end;
/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";
1157 Integer day,
1164 if (day != null) {
1165 setDay(day);
1188 * @param day The value to be set for day. See {@link #ARG_DAY}.
1192 public DateBuilder setDay(int day) { argument
1193 return setIntArgument(TtsSpan.ARG_DAY, day);
1156 DateBuilder(Integer weekday, Integer day, Integer month, Integer year) argument
/frameworks/base/core/tests/coretests/src/android/text/format/
H A DTimeTest.java99 // Use normalize(true) with these tests to change the date by 1 day.
103 // Nov 4, 12am + 0 day = Nov 4, 12am
104 // Nov 5, 12am + 0 day = Nov 5, 12am
108 // Nov 3, 12am + 1 day = Nov 4, 12am
109 // Nov 4, 12am + 1 day = Nov 5, 12am
110 // Nov 5, 12am + 1 day = Nov 6, 12am
115 // Nov 3, 1am + 1 day = Nov 4, 1am
116 // Nov 4, 1am + 1 day = Nov 5, 1am
117 // Nov 5, 1am + 1 day = Nov 6, 1am
122 // Nov 3, 2am + 1 day
[all...]
/frameworks/base/core/java/android/app/
H A DDatePickerDialog.java48 private static final String DAY = "day";
85 * @param dayOfMonth the initially selected day of month (1-31, depending
104 * @param dayOfMonth the initially selected day of month (1-31, depending
197 * @param dayOfMonth the day of month (1-31, depending on month)
217 final int day = savedInstanceState.getInt(DAY);
218 mDatePicker.init(year, month, day, this);
240 * @param dayOfMonth th selected day of the month (1-31, depending on
/frameworks/base/core/tests/coretests/src/android/widget/
H A DDatePickerFocusTest.java187 // tab back into the day-selection pager
194 // Move up out again, then down back into the day-selection pager.
229 private void assertDateIs(int month, final int day, final int year) throws Throwable { argument
234 assertEquals(day, mDatePicker.getDayOfMonth());
/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/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.

Completed in 2316 milliseconds

12