/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | DateIntervalFormatTest.java | 60 private static final long YEAR = 12 * MONTH; field in DateIntervalFormatTest 76 c.set(Calendar.YEAR, 2009); in test_formatDateInterval() 144 formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * YEAR, in test_formatDateInterval() 155 formatDateRange(de_DE, tz, fixedTime, fixedTime + 3 * YEAR, in test_formatDateInterval() 167 formatDateRange(es_US, tz, fixedTime, fixedTime + 3 * YEAR, in test_formatDateInterval() 179 formatDateRange(es_ES, tz, fixedTime, fixedTime + 3 * YEAR, in test_formatDateInterval() 206 formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * YEAR, in test_formatDateInterval() 209 formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * YEAR, in test_formatDateInterval() 212 formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * YEAR, 0)); in test_formatDateInterval() 214 formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * YEAR, FORMAT_SHOW_WEEKDAY)); in test_formatDateInterval() [all …]
|
D | DateFormatTest.java | 54 assertFalse(DateFormat.hasDesignator("hh:mm 'yyyy'", DateFormat.YEAR)); in testHasDesignatorEscaped()
|
D | DateUtilsTest.java | 125 int currentYear = Calendar.getInstance().get(Calendar.YEAR); in testFormatSameDayTime()
|
/frameworks/base/core/java/android/text/format/ |
D | DateUtilsBridge.java | 176 return c1.get(Calendar.YEAR) != c2.get(Calendar.YEAR) in fallOnDifferentDates() 186 return c1.get(Calendar.YEAR) == c2.get(Calendar.YEAR); in fallInSameYear() 192 return c.get(Calendar.YEAR) == now.get(Calendar.YEAR); in isThisYear()
|
D | RelativeDateTimeFormatter.java | 216 if (timeCalendar.get(Calendar.YEAR) != nowCalendar.get(Calendar.YEAR)) { in getRelativeTimeSpanString() 303 if (timeCalendar.get(Calendar.YEAR) != nowCalendar.get(Calendar.YEAR)) { in getRelativeDateTimeString()
|
D | DateUtils.java | 505 if (thenCal.get(Calendar.YEAR) == nowCal.get(Calendar.YEAR) in formatSameDayTime()
|
D | DateFormat.java | 154 public static final char YEAR = 'y'; field in DateFormat 545 replacement = getYearString(inDate.get(Calendar.YEAR), count); in format()
|
D | Time.java | 149 public static final int YEAR = 6; field in Time 278 case YEAR: in getActualMaximum()
|
/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() 253 Calendar.YEAR) == year) { in instantiateItem() 260 if (mMinDate.get(Calendar.MONTH) == month && mMinDate.get(Calendar.YEAR) == year) { in instantiateItem() 267 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 | 143 mTempDate.set(Calendar.YEAR, newVal); in DatePickerSpinnerDelegate() 148 setDate(mTempDate.get(Calendar.YEAR), mTempDate.get(Calendar.MONTH), in DatePickerSpinnerDelegate() 223 init(mCurrentDate.get(Calendar.YEAR), mCurrentDate.get(Calendar.MONTH), mCurrentDate in DatePickerSpinnerDelegate() 261 return mCurrentDate.get(Calendar.YEAR); in getYear() 287 if (mTempDate.get(Calendar.YEAR) == mMinDate.get(Calendar.YEAR) in setMinDate() 311 if (mTempDate.get(Calendar.YEAR) == mMaxDate.get(Calendar.YEAR) in setMaxDate() 499 return (mCurrentDate.get(Calendar.YEAR) != year in isNewDate() 551 mYearSpinner.setMinValue(mMinDate.get(Calendar.YEAR)); in updateSpinners() 552 mYearSpinner.setMaxValue(mMaxDate.get(Calendar.YEAR)); in updateSpinners() 556 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 | 687 && firstDate.get(Calendar.YEAR) == secondDate.get(Calendar.YEAR)); in isSameDate() 702 selectedDay.get(Calendar.YEAR), in setUpAdapter() 1051 && selectedDay.get(Calendar.YEAR) == mSelectedDate.get(Calendar.YEAR)) { in setSelectedDay() 1377 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 | 381 final int diffYears = end.get(Calendar.YEAR) - start.get(Calendar.YEAR);
|
/frameworks/base/core/java/android/app/ |
D | DatePickerDialog.java | 47 private static final String YEAR = "year"; field in DatePickerDialog 129 year = calendar.get(Calendar.YEAR); in DatePickerDialog() 208 state.putInt(YEAR, mDatePicker.getYear()); in onSaveInstanceState() 217 final int year = savedInstanceState.getInt(YEAR); in onRestoreInstanceState()
|
/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/java/android/content/ |
D | SyncStatusInfo.java | 461 return c1.get(Calendar.YEAR) == c2.get(Calendar.YEAR) in areSameDates()
|
/frameworks/ex/common/java/com/android/common/ |
D | LegacyHttpDateTime.java | 113 calendar.set(Calendar.YEAR, year); in parse()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | NitzData.java | 88 c.set(Calendar.YEAR, year); in parse()
|
/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()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
D | ResponseData.java | 244 data[1] = byteToBCD(mCalendar.get(java.util.Calendar.YEAR) % 100); in format()
|
/frameworks/base/media/java/android/mtp/ |
D | MtpPropertyGroup.java | 104 column = Audio.AudioColumns.YEAR; in createProperty()
|