Home
last modified time | relevance | path

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

/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DGuidedDatePickerAction.java40 private long mMaxDate = Long.MAX_VALUE; field in GuidedDatePickerAction.BuilderBase
87 mMaxDate = maxDate; in maxDate()
99 if (mMinDate > mMaxDate) { in applyDatePickerValues()
103 action.mMaxDate = mMaxDate; in applyDatePickerValues()
130 long mMaxDate = Long.MAX_VALUE; field in GuidedDatePickerAction
176 return mMaxDate; in getMaxDate()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/picker/
DDatePicker.java65 Calendar mMaxDate; field in DatePicker
101 mMaxDate.setTimeInMillis(mTempDate.getTimeInMillis()); in DatePicker()
187 mMaxDate = PickerUtility.getCalendarForLocale(mMaxDate, mConstant.locale); in updateCurrentLocale()
260 if (mTempDate.get(Calendar.YEAR) == mMaxDate.get(Calendar.YEAR) in setMaxDate()
261 && mTempDate.get(Calendar.DAY_OF_YEAR) != mMaxDate.get(Calendar.DAY_OF_YEAR)) { in setMaxDate()
264 mMaxDate.setTimeInMillis(maxDate); in setMaxDate()
265 if (mCurrentDate.after(mMaxDate)) { in setMaxDate()
266 mCurrentDate.setTimeInMillis(mMaxDate.getTimeInMillis()); in setMaxDate()
282 return mMaxDate.getTimeInMillis(); in getMaxDate()
299 } else if (mCurrentDate.after(mMaxDate)) { in setDate()
[all …]
/frameworks/base/core/java/android/widget/
DDatePickerCalendarDelegate.java88 private final Calendar mMaxDate; field in DatePickerCalendarDelegate
100 mMaxDate = Calendar.getInstance(locale); in DatePickerCalendarDelegate()
103 mMaxDate.set(DEFAULT_END_YEAR, Calendar.DECEMBER, 31); in DatePickerCalendarDelegate()
164 mDayPickerView.setMaxDate(mMaxDate.getTimeInMillis()); in DatePickerCalendarDelegate()
170 mYearPickerView.setRange(mMinDate, mMaxDate); in DatePickerCalendarDelegate()
445 mYearPickerView.setRange(mMinDate, mMaxDate); in setMinDate()
456 if (mTempDate.get(Calendar.YEAR) == mMaxDate.get(Calendar.YEAR) in setMaxDate()
457 && mTempDate.get(Calendar.DAY_OF_YEAR) == mMaxDate.get(Calendar.DAY_OF_YEAR)) { in setMaxDate()
465 mMaxDate.setTimeInMillis(maxDate); in setMaxDate()
467 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()
266 if (mMaxDate.get(Calendar.MONTH) == month && mMaxDate.get(Calendar.YEAR) == year) { in instantiateItem()
267 enabledDayRangeEnd = mMaxDate.get(Calendar.DAY_OF_MONTH); in instantiateItem()
DDatePickerSpinnerDelegate.java87 private Calendar mMaxDate; field in DatePickerSpinnerDelegate
312 if (mTempDate.get(Calendar.YEAR) == mMaxDate.get(Calendar.YEAR) in setMaxDate()
313 && mTempDate.get(Calendar.DAY_OF_YEAR) == mMaxDate.get(Calendar.DAY_OF_YEAR)) { in setMaxDate()
317 mMaxDate.setTimeInMillis(maxDate); in setMaxDate()
319 if (mCurrentDate.after(mMaxDate)) { in setMaxDate()
320 mCurrentDate.setTimeInMillis(mMaxDate.getTimeInMillis()); in setMaxDate()
410 mMaxDate = getCalendarForLocale(mMaxDate, locale); in setCurrentLocale()
509 } else if (mCurrentDate.after(mMaxDate)) { in setDate()
510 mCurrentDate.setTimeInMillis(mMaxDate.getTimeInMillis()); in setDate()
524 } 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
301 } else if (timeInMillis > mMaxDate.getTimeInMillis()) {
302 timeInMillis = mMaxDate.getTimeInMillis();
352 mMaxDate.setTimeInMillis(timeInMillis);
357 return mMaxDate.getTimeInMillis();
364 mAdapter.setRange(mMinDate, mMaxDate);
388 final int diffMonthMax = getDiffMonths(mMinDate, mMaxDate);
DDatePicker.java656 private final long mMaxDate; field in DatePicker.AbstractDatePickerDelegate.SavedState
676 mMaxDate = maxDate; in SavedState()
691 mMaxDate = in.readLong(); in SavedState()
704 dest.writeLong(mMaxDate); in writeToParcel()
727 return mMaxDate; in getMaxDate()
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
DDatePickerDialog.java101 private Calendar mMaxDate; field in DatePickerDialog
408 mMaxDate = calendar; in setMaxDate()
420 return mMaxDate; in getMaxDate()
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/wizard/
DGuidedDatePickerTest.java209 Calendar mMinDate, Calendar mMaxDate) { in addDate() argument
215 actualMaxFieldValue = mMaxDate.get(Calendar.YEAR); in addDate()
225 if (mCurrentDate.after(mMaxDate)) { in addDate()
226 mCurrentDate.setTimeInMillis(mMaxDate.getTimeInMillis()); in addDate()