Home
last modified time | relevance | path

Searched refs:mMaxDate (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/java/android/widget/
DDatePickerCalendarDelegate.java87 private final Calendar mMaxDate; field in DatePickerCalendarDelegate
99 mMaxDate = Calendar.getInstance(locale); in DatePickerCalendarDelegate()
102 mMaxDate.set(DEFAULT_END_YEAR, Calendar.DECEMBER, 31); in DatePickerCalendarDelegate()
163 mDayPickerView.setMaxDate(mMaxDate.getTimeInMillis()); in DatePickerCalendarDelegate()
169 mYearPickerView.setRange(mMinDate, mMaxDate); in DatePickerCalendarDelegate()
438 mYearPickerView.setRange(mMinDate, mMaxDate); in setMinDate()
449 if (mTempDate.get(Calendar.YEAR) == mMaxDate.get(Calendar.YEAR) in setMaxDate()
450 && mTempDate.get(Calendar.DAY_OF_YEAR) == mMaxDate.get(Calendar.DAY_OF_YEAR)) { in setMaxDate()
458 mMaxDate.setTimeInMillis(maxDate); in setMaxDate()
460 mYearPickerView.setRange(mMinDate, mMaxDate); in setMaxDate()
[all …]
DDayPickerPagerAdapter.java43 private final Calendar mMaxDate = Calendar.getInstance(); field in DayPickerPagerAdapter
80 mMaxDate.setTimeInMillis(max.getTimeInMillis()); in setRange()
82 final int diffYear = mMaxDate.get(Calendar.YEAR) - mMinDate.get(Calendar.YEAR); in setRange()
83 final int diffMonth = mMaxDate.get(Calendar.MONTH) - mMinDate.get(Calendar.MONTH); in setRange()
267 if (mMaxDate.get(Calendar.MONTH) == month && mMaxDate.get(Calendar.YEAR) == year) { in instantiateItem()
268 enabledDayRangeEnd = mMaxDate.get(Calendar.DAY_OF_MONTH); in instantiateItem()
DDatePickerSpinnerDelegate.java88 private Calendar mMaxDate; field in DatePickerSpinnerDelegate
313 if (mTempDate.get(Calendar.YEAR) == mMaxDate.get(Calendar.YEAR) in setMaxDate()
314 && mTempDate.get(Calendar.DAY_OF_YEAR) == mMaxDate.get(Calendar.DAY_OF_YEAR)) { in setMaxDate()
318 mMaxDate.setTimeInMillis(maxDate); in setMaxDate()
320 if (mCurrentDate.after(mMaxDate)) { in setMaxDate()
321 mCurrentDate.setTimeInMillis(mMaxDate.getTimeInMillis()); in setMaxDate()
411 mMaxDate = getCalendarForLocale(mMaxDate, locale); in setCurrentLocale()
512 } else if (mCurrentDate.after(mMaxDate)) { in setDate()
513 mCurrentDate.setTimeInMillis(mMaxDate.getTimeInMillis()); in setDate()
528 } else if (mCurrentDate.equals(mMaxDate)) { in updateSpinners()
[all …]
DCalendarViewLegacyDelegate.java256 private Calendar mMaxDate; field in CalendarViewLegacyDelegate
273 if (!CalendarView.parseDate(maxDate, mMaxDate)) { in CalendarViewLegacyDelegate()
274 CalendarView.parseDate(DEFAULT_MAX_DATE, mMaxDate); in CalendarViewLegacyDelegate()
276 if (mMaxDate.before(mMinDate)) { in CalendarViewLegacyDelegate()
331 } else if (mMaxDate.before(mTempDate)) { in CalendarViewLegacyDelegate()
332 goTo(mMaxDate, false, true, true); in CalendarViewLegacyDelegate()
526 if (isSameDate(mTempDate, mMaxDate)) { in setMaxDate()
529 mMaxDate.setTimeInMillis(maxDate); in setMaxDate()
533 if (date.after(mMaxDate)) { in setMaxDate()
534 setDate(mMaxDate.getTimeInMillis()); in setMaxDate()
[all …]
DDayPickerView.java49 private final Calendar mMaxDate = Calendar.getInstance(); field in DayPickerView
303 } else if (timeInMillis > mMaxDate.getTimeInMillis()) {
304 timeInMillis = mMaxDate.getTimeInMillis();
354 mMaxDate.setTimeInMillis(timeInMillis);
359 return mMaxDate.getTimeInMillis();
366 mAdapter.setRange(mMinDate, mMaxDate);
390 final int diffMonthMax = getDiffMonths(mMinDate, mMaxDate);
DDatePicker.java706 private final long mMaxDate; field in DatePicker.AbstractDatePickerDelegate.SavedState
726 mMaxDate = maxDate; in SavedState()
741 mMaxDate = in.readLong(); in SavedState()
754 dest.writeLong(mMaxDate); in writeToParcel()
777 return mMaxDate; in getMaxDate()