Home
last modified time | relevance | path

Searched refs:mTempDate (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/android/widget/
DDatePickerSpinnerDelegate.java84 private Calendar mTempDate; field in DatePickerSpinnerDelegate
125 mTempDate.setTimeInMillis(mCurrentDate.getTimeInMillis()); in DatePickerSpinnerDelegate()
128 int maxDayOfMonth = mTempDate.getActualMaximum(Calendar.DAY_OF_MONTH); in DatePickerSpinnerDelegate()
130 mTempDate.add(Calendar.DAY_OF_MONTH, 1); in DatePickerSpinnerDelegate()
132 mTempDate.add(Calendar.DAY_OF_MONTH, -1); in DatePickerSpinnerDelegate()
134 mTempDate.add(Calendar.DAY_OF_MONTH, newVal - oldVal); in DatePickerSpinnerDelegate()
138 mTempDate.add(Calendar.MONTH, 1); in DatePickerSpinnerDelegate()
140 mTempDate.add(Calendar.MONTH, -1); in DatePickerSpinnerDelegate()
142 mTempDate.add(Calendar.MONTH, newVal - oldVal); in DatePickerSpinnerDelegate()
145 mTempDate.set(Calendar.YEAR, newVal); in DatePickerSpinnerDelegate()
[all …]
DCalendarViewLegacyDelegate.java241 private Calendar mTempDate; field in CalendarViewLegacyDelegate
328 mTempDate.setTimeInMillis(System.currentTimeMillis()); in CalendarViewLegacyDelegate()
329 if (mTempDate.before(mMinDate)) { in CalendarViewLegacyDelegate()
331 } else if (mMaxDate.before(mTempDate)) { in CalendarViewLegacyDelegate()
334 goTo(mTempDate, false, true, true); in CalendarViewLegacyDelegate()
492 mTempDate.setTimeInMillis(minDate); in setMinDate()
493 if (isSameDate(mTempDate, mMinDate)) { in setMinDate()
508 setDate(mTempDate.getTimeInMillis()); in setMinDate()
525 mTempDate.setTimeInMillis(maxDate); in setMaxDate()
526 if (isSameDate(mTempDate, mMaxDate)) { in setMaxDate()
[all …]
DDatePickerCalendarDelegate.java85 private final Calendar mTempDate; field in DatePickerCalendarDelegate
97 mTempDate = Calendar.getInstance(locale); in DatePickerCalendarDelegate()
426 mTempDate.setTimeInMillis(minDate); in setMinDate()
427 if (mTempDate.get(Calendar.YEAR) == mMinDate.get(Calendar.YEAR) in setMinDate()
428 && mTempDate.get(Calendar.DAY_OF_YEAR) == mMinDate.get(Calendar.DAY_OF_YEAR)) { in setMinDate()
432 if (mCurrentDate.before(mTempDate)) { in setMinDate()
448 mTempDate.setTimeInMillis(maxDate); in setMaxDate()
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()
454 if (mCurrentDate.after(mTempDate)) { in setMaxDate()