Searched refs:month (Results 1 - 25 of 44) sorted by relevance

12

/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
H A DMonthAdapter.java54 int month; field in class:MonthAdapter.CalendarDay
67 month = calendar.get(Calendar.MONTH);
71 public CalendarDay(int year, int month, int day) { argument
72 setDay(year, month, day);
77 month = date.month;
81 public void setDay(int year, int month, int day) { argument
83 this.month = month;
100 month
214 isSelectedDayInMonth(int year, int month) argument
[all...]
H A DSimpleMonthView.java31 public void drawMonthDay(Canvas canvas, int year, int month, int day, argument
39 if (isOutOfRange(year, month, day)) {
H A DDatePickerController.java31 void onDayOfMonthSelected(int year, int month, int day); argument
H A DDayPickerView.java50 // Affects when the month selection will change while scrolling up
83 // which month should be displayed/highlighted [0-11]
165 * in range it will move the list so that the first of the month containing
187 * MonthAdapter.MONTHS_IN_YEAR + day.month;
220 // and if so scroll to the month that contains it
250 * Updates the title and selected month if the view has moved to a new
251 * month.
268 * Sets the month displayed at the top of this view based on time. Override
272 mCurrentMonthDisplayed = date.month;
442 cal.set(day.year, day.month, da
[all...]
H A DMonthView.java52 * A calendar-like view displaying a specified month and the appropriate selectable day numbers
53 * within the specified month.
71 public static final String VIEW_PARAMS_MONTH = "month";
93 * Which month is currently in focus, as defined by {@link Time#month}
98 * If this month should display week numbers. false if 0, true otherwise.
143 // The month of the first day in this week
145 // The month of the last day in this week
334 * will only update if a new value is included, except for focus month,
335 * which will always default to no focus month i
517 drawMonthDay(Canvas canvas, int year, int month, int day, int x, int y, int startX, int stopX, int startY, int stopY) 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
[all...]
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
H A DCalendarViewBindingAdapter.java45 public void onSelectedDayChange(CalendarView view, int year, int month,
48 onDayChange.onSelectedDayChange(view, year, month, dayOfMonth);
H A DDatePickerBindingAdapter.java28 @InverseBindingMethod(type = DatePicker.class, attribute = "android:month"),
32 @BindingAdapter(value = {"android:year", "android:month", "android:day",
35 public static void setListeners(DatePicker view, int year, int month, int day, argument
45 view.init(year, month, day, listener);
53 view.init(year, month, day, oldListener);
/frameworks/av/media/mtp/
H A DMtpUtils.cpp29 representation, YYYY shall be replaced by the year, MM replaced by the month (01-12),
37 int year, month, day, hour, minute, second; local
39 &year, &month, &day, &hour, &minute, &second) != 6)
63 tm.tm_mon = month - 1; // mktime uses months in 0 - 11 range
/frameworks/opt/calendar/src/com/android/calendarcommon2/
H A DRecurrenceProcessor.java204 iterator.month + 1);
321 * Compute the day of the week for the first day of the month. "instance" has a
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
349 // For each month day, see if it's part of the set. (This makes some assumptions
433 int realMonth = iterator.month;
439 + " " + iterator.month
444 // if might be past the end of the month, we need to normalize it
449 realMonth = t.month;
452 Log.i(TAG, "normalized t=" + t + " " + t.month
1247 monthLength(int year, int month) argument
1264 weekDay(int year, int month, int day) argument
1280 yearDay(int year, int month, int day) argument
[all...]
/frameworks/base/core/java/android/app/
H A DDatePickerDialog.java47 private static final String MONTH = "month";
83 * @param month the initially selected month (0-11 for compatibility with
85 * @param dayOfMonth the initially selected day of month (1-31, depending
86 * on month)
89 int year, int month, int dayOfMonth) {
90 this(context, 0, listener, null, year, month, dayOfMonth);
102 * @param monthOfYear the initially selected month of the year (0-11 for
104 * @param dayOfMonth the initially selected day of month (1-31, depending
105 * on month)
88 DatePickerDialog(@onNull Context context, @Nullable OnDateSetListener listener, int year, int month, int dayOfMonth) argument
150 onDateChanged(@onNull DatePicker view, int year, int month, int dayOfMonth) argument
199 updateDate(int year, int month, int dayOfMonth) argument
243 onDateSet(DatePicker view, int year, int month, int dayOfMonth) argument
[all...]
/frameworks/base/core/java/android/util/
H A DMonthDisplayHelper.java22 * Helps answer common questions that come up when displaying a month in a
32 // holds current month, year, helps compute display
43 * @param month The month.
46 public MonthDisplayHelper(int year, int month, int weekStartDay) { argument
55 mCalendar.set(Calendar.MONTH, month);
66 public MonthDisplayHelper(int year, int month) { argument
67 this(year, month, Calendar.SUNDAY);
85 * @return The first day of the month using a constants such as
93 * @return The number of days in the month
[all...]
H A DDayOfMonthCursor.java20 * Helps control and display a month view of a calendar that has a current
23 * <li>Keeps track of current month, day, year</li>
29 * This should be used by anyone who presents a month view to users and wishes
31 * mind about when to flip the month, we can change it here only.
42 * @param month The initial month.
48 public DayOfMonthCursor(int year, int month, int dayOfMonth, int weekStartDay) { argument
49 super(year, month, weekStartDay);
73 * @return 0 if the selection is in the current month, otherwise -1 or +1
96 * Move up one box, potentially flipping to the previous month
[all...]
/frameworks/base/core/java/com/android/internal/http/
H A DHttpDateTime.java55 * Mon can be the full name of the month.
89 int month = Calendar.JANUARY;
96 month = getMonth(rfcMatcher.group(2));
102 month = getMonth(ansicMatcher.group(1));
114 month = Calendar.JANUARY;
120 month, year);
/frameworks/ex/common/java/com/android/common/
H A DLegacyHttpDateTime.java55 * Mon can be the full name of the month.
89 int month = Calendar.JANUARY;
96 month = getMonth(rfcMatcher.group(2));
102 month = getMonth(ansicMatcher.group(1));
114 month = Calendar.JANUARY;
120 month, year);
/frameworks/opt/telephony/src/java/android/telephony/
H A DSmsCbEtwsInfo.java151 int month = IccUtils.gsmBcdByteToInt(mWarningSecurityInformation[1]);
173 time.month = month - 1;
/frameworks/base/core/tests/coretests/src/android/text/format/
H A DTimeTest.java35 // + t.month + '-' + t.monthDay
101 // The month numbers are 0-relative, so Jan=0, Feb=1,...Dec=11
133 // The month numbers are 0-relative, so Jan=0, Feb=1,...Dec=11
190 if (local.year != test.year2 || local.month != test.month2
196 local.year, local.month, local.monthDay, local.hour, local.minute);
208 if (local.year != test.year2 || local.month != test.month2
214 local.year, local.month, local.monthDay, local.hour, local.minute);
231 if (local.year != test.year2 || local.month != test.month2
238 local.year, local.month, local.monthDay, local.hour, local.minute,
253 if (local.year != test.year2 || local.month !
[all...]
/frameworks/base/core/java/android/widget/
H A DCalendarViewMaterialDelegate.java117 final int month = day.get(Calendar.MONTH);
119 mOnDateChangeListener.onSelectedDayChange(mDelegator, year, month, dayOfMonth);
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
122 * @param monthOfYear The month that was set (0-11) for compatibility
124 * @param dayOfMonth The day of the month that was set.
202 * @param monthOfYear The initial month <strong>starting from zero</strong>.
203 * @param dayOfMonth The initial day of the month.
216 * @param month The month which is <strong>starting from zero</strong>.
217 * @param dayOfMonth The day of the month.
219 public void updateDate(int year, int month, in argument
494 updateDate(int year, int month, int dayOfMonth) argument
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 DDatePickerSpinnerDelegate.java164 public void onSelectedDayChange(CalendarView view, int year, int month, int monthDay) {
165 setDate(year, month, monthDay);
178 // month
179 mMonthSpinner = (NumberPicker) mDelegator.findViewById(com.android.internal.R.id.month);
252 public void updateDate(int year, int month, int dayOfMonth) { argument
253 if (!isNewDate(year, month, dayOfMonth)) {
256 setDate(year, month, dayOfMonth);
437 * Tests whether the current locale is one where there are no real month names,
509 private boolean isNewDate(int year, int month, int dayOfMonth) { argument
511 || mCurrentDate.get(Calendar.MONTH) != month
515 setDate(int year, int month, int dayOfMonth) argument
[all...]
H A DDayPickerPagerAdapter.java236 final int month = getMonthForPosition(position);
240 if (mSelectedDay != null && mSelectedDay.get(Calendar.MONTH) == month) {
247 if (mMinDate.get(Calendar.MONTH) == month && mMinDate.get(Calendar.YEAR) == year) {
254 if (mMaxDate.get(Calendar.MONTH) == month && mMaxDate.get(Calendar.YEAR) == year) {
260 v.setMonthParams(selectedDay, month, year, mFirstDayOfWeek,
H A DDatePickerCalendarDelegate.java47 * A delegate for picking up a date (day / month / year).
131 // color from the header month text appearance. If it's set, we'll let
255 // If the newly selected month / year does not contain the
257 // to the last day of the selected month or year.
261 final int month = mCurrentDate.get(Calendar.MONTH);
262 final int daysInMonth = getDaysInMonth(month, year);
394 public void updateDate(int year, int month, int dayOfMonth) { argument
396 mCurrentDate.set(Calendar.MONTH, month);
542 final int month = mCurrentDate.get(Calendar.MONTH);
555 return new SavedState(superState, year, month, da
606 getDaysInMonth(int month, int year) argument
[all...]
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/
H A DUtils.java61 public static int getDaysInMonth(int month, int year) { argument
62 switch (month) {
/frameworks/base/core/java/android/text/format/
H A DTime.java97 * Day of month [1-31]
104 public int month; field in class:Time
269 int n = DAYS_PER_MONTH[this.month];
310 this.month = 0;
438 // month
442 month = n;
444 // day of month
569 // month
573 month = n;
791 this.month
803 set(int second, int minute, int hour, int monthDay, int month, int year) argument
826 set(int monthDay, int month, int year) argument
[all...]
H A DDateFormat.java236 * {@code ja_JP} where there is only one length of month.
315 * 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
544 private static String getMonthString(LocaleData ld, int month, int count, int kind) { argument
547 return standalone ? ld.tinyStandAloneMonthNames[month] : ld.tinyMonthNames[month];
549 return standalone ? ld.longStandAloneMonthNames[month] : ld.longMonthNames[month];
551 return standalone ? ld.shortStandAloneMonthNames[month] : ld.shortMonthNames[month];
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/picker/
H A DDatePicker.java38 * year, month, and day Columns. The "minDate" and "maxDate" from which dates to be selected
305 private void setDate(int year, int month, int dayOfMonth) { argument
306 mCurrentDate.set(year, month, dayOfMonth);
318 * @param month The month which is <strong>starting from zero</strong>.
319 * @param dayOfMonth The day of the month.
322 public void updateDate(int year, int month, int dayOfMonth, boolean animation) { argument
323 if (!isNewDate(year, month, dayOfMonth)) {
326 setDate(year, month, dayOfMonth);
330 private boolean isNewDate(int year, int month, in argument
[all...]

Completed in 575 milliseconds

12