/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/wizard/ |
D | GuidedDatePickerTest.java | 103 case Calendar.YEAR: in getColumnIndexForDateField() 195 == currentActionCal.get(Calendar.YEAR) in verticalScrollToFieldValue() 214 if ( field == Calendar.YEAR ) { in addDate() 215 actualMinFieldValue = mMinDate.get(Calendar.YEAR); in addDate() 216 actualMaxFieldValue = mMaxDate.get(Calendar.YEAR); in addDate() 254 cal.set(Calendar.YEAR, 2016); // 2016 is a leap year in testJanuaryToFebruaryTransitionForLeapYear() 300 cal.set(Calendar.YEAR, 2016); in testFebruaryToMarchTransitionForLeapYear() 346 cal.set(Calendar.YEAR, 2017); // 2017 is a leap year in testJanuaryToFebruaryTransitionForNonLeapYear() 392 cal.set(Calendar.YEAR, 2017); in testFebruaryToMarchTransitionForNonLeapYear() 438 cal.set(Calendar.YEAR, 2016); in testDecemberToNovemberTransition() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | DayPickerPagerAdapter.java | 82 final int diffYear = mMaxDate.get(Calendar.YEAR) - mMinDate.get(Calendar.YEAR); in setRange() 210 return yearOffset + mMinDate.get(Calendar.YEAR); in getYearForPosition() 218 final int yearOffset = day.get(Calendar.YEAR) - mMinDate.get(Calendar.YEAR); in getPositionForDay() 259 if (mMinDate.get(Calendar.MONTH) == month && mMinDate.get(Calendar.YEAR) == year) { in instantiateItem() 266 if (mMaxDate.get(Calendar.MONTH) == month && mMaxDate.get(Calendar.YEAR) == year) { in instantiateItem()
|
D | DatePickerCalendarDelegate.java | 170 mYearPickerView.setYear(mCurrentDate.get(Calendar.YEAR)); in DatePickerCalendarDelegate() 261 mCurrentDate.set(Calendar.YEAR, year); 340 final int year = mCurrentDate.get(Calendar.YEAR); in setCurrentView() 378 mCurrentDate.set(Calendar.YEAR, year); in setDate() 385 final int year = mCurrentDate.get(Calendar.YEAR); in onDateChanged() 411 return mCurrentDate.get(Calendar.YEAR); in getYear() 427 if (mTempDate.get(Calendar.YEAR) == mMinDate.get(Calendar.YEAR) in setMinDate() 449 if (mTempDate.get(Calendar.YEAR) == mMaxDate.get(Calendar.YEAR) in setMaxDate() 529 final int year = mCurrentDate.get(Calendar.YEAR); in onSaveInstanceState()
|
D | DatePickerSpinnerDelegate.java | 144 mTempDate.set(Calendar.YEAR, newVal); in DatePickerSpinnerDelegate() 149 setDate(mTempDate.get(Calendar.YEAR), mTempDate.get(Calendar.MONTH), in DatePickerSpinnerDelegate() 224 init(mCurrentDate.get(Calendar.YEAR), mCurrentDate.get(Calendar.MONTH), mCurrentDate in DatePickerSpinnerDelegate() 262 return mCurrentDate.get(Calendar.YEAR); in getYear() 288 if (mTempDate.get(Calendar.YEAR) == mMinDate.get(Calendar.YEAR) in setMinDate() 312 if (mTempDate.get(Calendar.YEAR) == mMaxDate.get(Calendar.YEAR) in setMaxDate() 500 return (mCurrentDate.get(Calendar.YEAR) != year in isNewDate() 550 mYearSpinner.setMinValue(mMinDate.get(Calendar.YEAR)); in updateSpinners() 551 mYearSpinner.setMaxValue(mMaxDate.get(Calendar.YEAR)); in updateSpinners() 555 mYearSpinner.setValue(mCurrentDate.get(Calendar.YEAR)); in updateSpinners()
|
D | YearPickerView.java | 125 final int minYear = minDate.get(Calendar.YEAR); in setRange() 126 final int count = maxDate.get(Calendar.YEAR) - minYear + 1; in setRange()
|
D | CalendarViewLegacyDelegate.java | 689 && firstDate.get(Calendar.YEAR) == secondDate.get(Calendar.YEAR)); in isSameDate() 704 selectedDay.get(Calendar.YEAR), in setUpAdapter() 1053 && selectedDay.get(Calendar.YEAR) == mSelectedDate.get(Calendar.YEAR)) { in setSelectedDay() 1379 if ((date.get(Calendar.YEAR) == currDay.get(Calendar.YEAR)) in getBoundsForDate()
|
D | CalendarViewMaterialDelegate.java | 136 final int year = day.get(Calendar.YEAR);
|
D | DayPickerView.java | 383 final int diffYears = end.get(Calendar.YEAR) - start.get(Calendar.YEAR);
|
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/picker/ |
D | DatePicker.java | 305 mTempDate.add(Calendar.YEAR, newVal - oldVal); in onColumnValueChanged() 309 setDate(mTempDate.get(Calendar.YEAR), mTempDate.get(Calendar.MONTH), in onColumnValueChanged() 324 if (mTempDate.get(Calendar.YEAR) == mMinDate.get(Calendar.YEAR) in setMinDate() 359 if (mTempDate.get(Calendar.YEAR) == mMaxDate.get(Calendar.YEAR) in setMaxDate() 420 return (mCurrentDate.get(Calendar.YEAR) != year in isNewDate() 441 private static final int[] DATE_FIELDS = {Calendar.DAY_OF_MONTH, Calendar.MONTH, Calendar.YEAR};
|
/frameworks/base/core/java/android/app/ |
D | DatePickerDialog.java | 46 private static final String YEAR = "year"; field in DatePickerDialog 127 year = calendar.get(Calendar.YEAR); in DatePickerDialog() 206 state.putInt(YEAR, mDatePicker.getYear()); in onSaveInstanceState() 215 final int year = savedInstanceState.getInt(YEAR); in onRestoreInstanceState()
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/ |
D | DatePickerDialog.java | 160 mCalendar.set(Calendar.YEAR, year); in initialize() 172 mCalendar.set(Calendar.YEAR, savedInstanceState.getInt(KEY_SELECTED_YEAR)); in onCreate() 181 outState.putInt(KEY_SELECTED_YEAR, mCalendar.get(Calendar.YEAR)); in onSaveInstanceState() 256 mCallBack.onDateSet(DatePickerDialog.this, mCalendar.get(Calendar.YEAR), in onCreateView() 455 mCalendar.set(Calendar.YEAR, year); in onYearSelected() 463 mCalendar.set(Calendar.YEAR, year); in onDayOfMonthSelected()
|
D | MonthView.java | 368 mCalendar.set(Calendar.YEAR, mYear); in setMonthParams() 609 if (year < minDate.get(Calendar.YEAR)) { in isBeforeMin() 611 } else if (year > minDate.get(Calendar.YEAR)) { in isBeforeMin() 637 if (year > maxDate.get(Calendar.YEAR)) { in isAfterMax() 639 } else if (year < maxDate.get(Calendar.YEAR)) { in isAfterMax()
|
D | MonthAdapter.java | 66 year = calendar.get(Calendar.YEAR); in CalendarDay() 101 year = calendar.get(Calendar.YEAR); in setTime()
|
/frameworks/base/core/java/android/util/ |
D | MonthDisplayHelper.java | 54 mCalendar.set(Calendar.YEAR, year); in MonthDisplayHelper() 72 return mCalendar.get(Calendar.YEAR); in getYear()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | DatePicker.java | 187 init(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH), null); in DatePicker() 252 } else if (c == DateFormat.YEAR && !didYear) { in reorderPickers() 283 return Calendar.getInstance().get(Calendar.YEAR); in getCurrentYear() 460 cal.set(Calendar.YEAR, mHasYear ? mYear : 2000); in adjustMaxDay()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | MediaMetadataTest.java | 40 YEAR, DURATION, NUM_TRACKS, WRITER enumConstant 116 assertEquals(TAG, meta_data_file[fileIndex][meta.YEAR.ordinal()], value); in validateMetatData()
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | DateFormatTest.java | 49 assertFalse(DateFormat.hasDesignator("hh:mm 'yyyy'", DateFormat.YEAR)); in testHasDesignatorEscaped()
|
D | DateUtilsTest.java | 124 int currentYear = Calendar.getInstance().get(Calendar.YEAR); in testFormatSameDayTime()
|
/frameworks/base/core/java/android/text/format/ |
D | DateFormat.java | 155 public static final char YEAR = 'y'; field in DateFormat 493 replacement = getYearString(inDate.get(Calendar.YEAR), count); in format()
|
D | DateUtils.java | 488 if (thenCal.get(Calendar.YEAR) == nowCal.get(Calendar.YEAR) in formatSameDayTime()
|
D | Time.java | 150 public static final int YEAR = 6; field in Time 279 case YEAR: in getActualMaximum()
|
/frameworks/base/core/java/android/content/ |
D | SyncStatusInfo.java | 442 return c1.get(Calendar.YEAR) == c2.get(Calendar.YEAR) in areSameDates()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | NitzData.java | 88 c.set(Calendar.YEAR, year); in parse()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
D | ResponseData.java | 237 data[1] = byteToBCD(mCalendar.get(java.util.Calendar.YEAR) % 100); in format()
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
D | RecurrenceProcessor.java | 801 freqField = Time.YEAR; in expand() 1089 case Time.YEAR: in expand() 1103 if (freqField != Time.YEAR && freqField != Time.MONTH) { in expand()
|