Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/widget/
DDatePickerSpinnerDelegate.java83 private Calendar mTempDate; field in DatePickerSpinnerDelegate
124 mTempDate.setTimeInMillis(mCurrentDate.getTimeInMillis()); in DatePickerSpinnerDelegate()
127 int maxDayOfMonth = mTempDate.getActualMaximum(Calendar.DAY_OF_MONTH); in DatePickerSpinnerDelegate()
129 mTempDate.add(Calendar.DAY_OF_MONTH, 1); in DatePickerSpinnerDelegate()
131 mTempDate.add(Calendar.DAY_OF_MONTH, -1); in DatePickerSpinnerDelegate()
133 mTempDate.add(Calendar.DAY_OF_MONTH, newVal - oldVal); in DatePickerSpinnerDelegate()
137 mTempDate.add(Calendar.MONTH, 1); in DatePickerSpinnerDelegate()
139 mTempDate.add(Calendar.MONTH, -1); in DatePickerSpinnerDelegate()
141 mTempDate.add(Calendar.MONTH, newVal - oldVal); in DatePickerSpinnerDelegate()
144 mTempDate.set(Calendar.YEAR, newVal); in DatePickerSpinnerDelegate()
[all …]
DCalendarViewLegacyDelegate.java239 private Calendar mTempDate; field in CalendarViewLegacyDelegate
326 mTempDate.setTimeInMillis(System.currentTimeMillis()); in CalendarViewLegacyDelegate()
327 if (mTempDate.before(mMinDate)) { in CalendarViewLegacyDelegate()
329 } else if (mMaxDate.before(mTempDate)) { in CalendarViewLegacyDelegate()
332 goTo(mTempDate, false, true, true); in CalendarViewLegacyDelegate()
490 mTempDate.setTimeInMillis(minDate); in setMinDate()
491 if (isSameDate(mTempDate, mMinDate)) { in setMinDate()
506 setDate(mTempDate.getTimeInMillis()); in setMinDate()
523 mTempDate.setTimeInMillis(maxDate); in setMaxDate()
524 if (isSameDate(mTempDate, mMaxDate)) { in setMaxDate()
[all …]
DDatePickerCalendarDelegate.java85 private final Calendar mTempDate; field in DatePickerCalendarDelegate
97 mTempDate = Calendar.getInstance(locale); in DatePickerCalendarDelegate()
436 mTempDate.setTimeInMillis(minDate); in setMinDate()
437 if (mTempDate.get(Calendar.YEAR) == mMinDate.get(Calendar.YEAR) in setMinDate()
438 && mTempDate.get(Calendar.DAY_OF_YEAR) == mMinDate.get(Calendar.DAY_OF_YEAR)) { in setMinDate()
442 if (mCurrentDate.before(mTempDate)) { in setMinDate()
458 mTempDate.setTimeInMillis(maxDate); in setMaxDate()
459 if (mTempDate.get(Calendar.YEAR) == mMaxDate.get(Calendar.YEAR) in setMaxDate()
460 && mTempDate.get(Calendar.DAY_OF_YEAR) == mMaxDate.get(Calendar.DAY_OF_YEAR)) { in setMaxDate()
464 if (mCurrentDate.after(mTempDate)) { in setMaxDate()