Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/widget/
DDatePickerSpinnerDelegate.java124 mTempDate.setTimeInMillis(mCurrentDate.getTimeInMillis()); in DatePickerSpinnerDelegate()
223 mCurrentDate.setTimeInMillis(System.currentTimeMillis()); in DatePickerSpinnerDelegate()
224 init(mCurrentDate.get(Calendar.YEAR), mCurrentDate.get(Calendar.MONTH), mCurrentDate in DatePickerSpinnerDelegate()
262 return mCurrentDate.get(Calendar.YEAR); in getYear()
267 return mCurrentDate.get(Calendar.MONTH); in getMonth()
272 return mCurrentDate.get(Calendar.DAY_OF_MONTH); in getDayOfMonth()
295 if (mCurrentDate.before(mMinDate)) { in setMinDate()
296 mCurrentDate.setTimeInMillis(mMinDate.getTimeInMillis()); in setMinDate()
319 if (mCurrentDate.after(mMaxDate)) { in setMaxDate()
320 mCurrentDate.setTimeInMillis(mMaxDate.getTimeInMillis()); in setMaxDate()
[all …]
DDatePickerCalendarDelegate.java96 mCurrentDate = Calendar.getInstance(locale); in DatePickerCalendarDelegate()
164 mDayPickerView.setDate(mCurrentDate.getTimeInMillis()); in DatePickerCalendarDelegate()
170 mYearPickerView.setYear(mCurrentDate.get(Calendar.YEAR)); in DatePickerCalendarDelegate()
238 mCurrentDate.setTimeInMillis(day.getTimeInMillis());
254 final int day = mCurrentDate.get(Calendar.DAY_OF_MONTH);
255 final int month = mCurrentDate.get(Calendar.MONTH);
258 mCurrentDate.set(Calendar.DAY_OF_MONTH, daysInMonth);
261 mCurrentDate.set(Calendar.YEAR, year);
313 final String year = mYearFormat.format(mCurrentDate.getTime()); in onCurrentDateChanged()
316 final String monthDay = mMonthDayFormat.format(mCurrentDate.getTime()); in onCurrentDateChanged()
[all …]
DDatePicker.java580 protected Calendar mCurrentDate; field in DatePicker.AbstractDatePickerDelegate
647 : mCurrentDate.getTimeInMillis(); in getAutofillValue()
675 return DateUtils.formatDateTime(mContext, mCurrentDate.getTimeInMillis(), in getFormattedCurrentDate()
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/picker/
DDatePicker.java68 Calendar mCurrentDate; field in DatePicker
287 mCurrentDate = PickerUtility.getCalendarForLocale(mCurrentDate, mConstant.locale); in updateCurrentLocale()
297 mTempDate.setTimeInMillis(mCurrentDate.getTimeInMillis()); in onColumnValueChanged()
329 if (mCurrentDate.before(mMinDate)) { in setMinDate()
330 mCurrentDate.setTimeInMillis(mMinDate.getTimeInMillis()); in setMinDate()
364 if (mCurrentDate.after(mMaxDate)) { in setMaxDate()
365 mCurrentDate.setTimeInMillis(mMaxDate.getTimeInMillis()); in setMaxDate()
391 return mCurrentDate.getTimeInMillis(); in getDate()
395 mCurrentDate.set(year, month, dayOfMonth); in setDate()
396 if (mCurrentDate.before(mMinDate)) { in setDate()
[all …]
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/wizard/
DGuidedDatePickerTest.java209 private void addDate(Calendar mCurrentDate, int field, int offset, in addDate() argument
218 actualMinFieldValue = mCurrentDate.getActualMinimum(field); in addDate()
219 actualMaxFieldValue = mCurrentDate.getActualMaximum(field); in addDate()
224 actualMaxFieldValue - mCurrentDate.get(field), offset); in addDate()
225 mCurrentDate.add(field, maxOffset); in addDate()
226 if (mCurrentDate.after(mMaxDate)) { in addDate()
227 mCurrentDate.setTimeInMillis(mMaxDate.getTimeInMillis()); in addDate()
231 actualMinFieldValue - mCurrentDate.get(field), offset); in addDate()
232 mCurrentDate.add(field, Math.max(offset, maxOffset)); in addDate()
233 if (mCurrentDate.before(mMinDate)) { in addDate()
[all …]