Home
last modified time | relevance | path

Searched refs:mCurrentDate (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/android/widget/
DDatePickerCalendarDelegate.java91 private final Calendar mCurrentDate; field in DatePickerCalendarDelegate
103 mCurrentDate = Calendar.getInstance(locale); in DatePickerCalendarDelegate()
170 mDayPickerView.setDate(mCurrentDate.getTimeInMillis()); in DatePickerCalendarDelegate()
176 mYearPickerView.setYear(mCurrentDate.get(Calendar.YEAR)); in DatePickerCalendarDelegate()
244 mCurrentDate.setTimeInMillis(day.getTimeInMillis());
260 final int day = mCurrentDate.get(Calendar.DAY_OF_MONTH);
261 final int month = mCurrentDate.get(Calendar.MONTH);
264 mCurrentDate.set(Calendar.DAY_OF_MONTH, daysInMonth);
267 mCurrentDate.set(Calendar.YEAR, year);
326 final String year = mYearFormat.format(mCurrentDate.getTime()); in onCurrentDateChanged()
[all …]
DDatePickerSpinnerDelegate.java90 private Calendar mCurrentDate; field in DatePickerSpinnerDelegate
126 mTempDate.setTimeInMillis(mCurrentDate.getTimeInMillis()); in DatePickerSpinnerDelegate()
225 mCurrentDate.setTimeInMillis(System.currentTimeMillis()); in DatePickerSpinnerDelegate()
226 init(mCurrentDate.get(Calendar.YEAR), mCurrentDate.get(Calendar.MONTH), mCurrentDate in DatePickerSpinnerDelegate()
264 return mCurrentDate.get(Calendar.YEAR); in getYear()
269 return mCurrentDate.get(Calendar.MONTH); in getMonth()
274 return mCurrentDate.get(Calendar.DAY_OF_MONTH); in getDayOfMonth()
297 if (mCurrentDate.before(mMinDate)) { in setMinDate()
298 mCurrentDate.setTimeInMillis(mMinDate.getTimeInMillis()); in setMinDate()
321 if (mCurrentDate.after(mMaxDate)) { in setMaxDate()
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/picker/
DDatePicker.java62 Calendar mCurrentDate; field in DatePicker
194 mCurrentDate = getCalendarForLocale(mCurrentDate, mConstant.locale); in updateCurrentLocale()
204 mTempDate.setTimeInMillis(mCurrentDate.getTimeInMillis()); in onColumnValueChanged()
236 if (mCurrentDate.before(mMinDate)) { in setMinDate()
237 mCurrentDate.setTimeInMillis(mMinDate.getTimeInMillis()); in setMinDate()
271 if (mCurrentDate.after(mMaxDate)) { in setMaxDate()
272 mCurrentDate.setTimeInMillis(mMaxDate.getTimeInMillis()); in setMaxDate()
298 return mCurrentDate.getTimeInMillis(); in getDate()
302 mCurrentDate.set(year, month, dayOfMonth); in setDate()
303 if (mCurrentDate.before(mMinDate)) { in setDate()
[all …]
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/wizard/
DGuidedDatePickerTest.java169 private void addDate(Calendar mCurrentDate, int field, int offset, in addDate() argument
178 actualMinFieldValue = mCurrentDate.getActualMinimum(field); in addDate()
179 actualMaxFieldValue = mCurrentDate.getActualMaximum(field); in addDate()
184 actualMaxFieldValue - mCurrentDate.get(field), offset); in addDate()
185 mCurrentDate.add(field, maxOffset); in addDate()
186 if (mCurrentDate.after(mMaxDate)) { in addDate()
187 mCurrentDate.setTimeInMillis(mMaxDate.getTimeInMillis()); in addDate()
191 actualMinFieldValue - mCurrentDate.get(field), offset); in addDate()
192 mCurrentDate.add(field, Math.max(offset, maxOffset)); in addDate()
193 if (mCurrentDate.before(mMinDate)) { in addDate()
[all …]