Home
last modified time | relevance | path

Searched refs:YEAR (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/text/format/
DDateIntervalFormatTest.java60 private static final long YEAR = 12 * MONTH; field in DateIntervalFormatTest
76 c.set(Calendar.YEAR, 2009); in test_formatDateInterval()
145 formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * YEAR, in test_formatDateInterval()
156 formatDateRange(de_DE, tz, fixedTime, fixedTime + 3 * YEAR, in test_formatDateInterval()
168 formatDateRange(es_US, tz, fixedTime, fixedTime + 3 * YEAR, in test_formatDateInterval()
180 formatDateRange(es_ES, tz, fixedTime, fixedTime + 3 * YEAR, in test_formatDateInterval()
207 formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * YEAR, in test_formatDateInterval()
210 formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * YEAR, in test_formatDateInterval()
213 formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * YEAR, 0)); in test_formatDateInterval()
215 formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * YEAR, FORMAT_SHOW_WEEKDAY)); in test_formatDateInterval()
[all …]
DDateFormatTest.java63 assertFalse(DateFormat.hasDesignator("hh:mm 'yyyy'", DateFormat.YEAR)); in testHasDesignatorEscaped()
DDateUtilsTest.java125 int currentYear = Calendar.getInstance().get(Calendar.YEAR); in testFormatSameDayTime()
/frameworks/base/core/java/android/text/format/
DDateUtilsBridge.java176 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()
DRelativeDateTimeFormatter.java216 if (timeCalendar.get(Calendar.YEAR) != nowCalendar.get(Calendar.YEAR)) { in getRelativeTimeSpanString()
303 if (timeCalendar.get(Calendar.YEAR) != nowCalendar.get(Calendar.YEAR)) { in getRelativeDateTimeString()
DDateUtils.java509 if (thenCal.get(Calendar.YEAR) == nowCal.get(Calendar.YEAR) in formatSameDayTime()
DDateFormat.java159 public static final char YEAR = 'y'; field in DateFormat
566 replacement = getYearString(inDate.get(Calendar.YEAR), count); in format()
DTime.java150 public static final int YEAR = 6; field in Time
279 case YEAR: in getActualMaximum()
/frameworks/base/core/java/android/widget/
DDayPickerPagerAdapter.java82 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()
DDatePickerCalendarDelegate.java170 mYearPickerView.setYear(mCurrentDate.get(Calendar.YEAR)); in DatePickerCalendarDelegate()
262 mCurrentDate.set(Calendar.YEAR, year);
350 final int year = mCurrentDate.get(Calendar.YEAR); in setCurrentView()
388 mCurrentDate.set(Calendar.YEAR, year); in setDate()
395 final int year = mCurrentDate.get(Calendar.YEAR); in onDateChanged()
421 return mCurrentDate.get(Calendar.YEAR); in getYear()
437 if (mTempDate.get(Calendar.YEAR) == mMinDate.get(Calendar.YEAR) in setMinDate()
459 if (mTempDate.get(Calendar.YEAR) == mMaxDate.get(Calendar.YEAR) in setMaxDate()
539 final int year = mCurrentDate.get(Calendar.YEAR); in onSaveInstanceState()
DDatePickerSpinnerDelegate.java144 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()
552 mYearSpinner.setMinValue(mMinDate.get(Calendar.YEAR)); in updateSpinners()
553 mYearSpinner.setMaxValue(mMaxDate.get(Calendar.YEAR)); in updateSpinners()
557 mYearSpinner.setValue(mCurrentDate.get(Calendar.YEAR)); in updateSpinners()
DYearPickerView.java125 final int minYear = minDate.get(Calendar.YEAR); in setRange()
126 final int count = maxDate.get(Calendar.YEAR) - minYear + 1; in setRange()
DCalendarViewLegacyDelegate.java687 && 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()
DCalendarViewMaterialDelegate.java136 final int year = day.get(Calendar.YEAR);
DDayPickerView.java381 final int diffYears = end.get(Calendar.YEAR) - start.get(Calendar.YEAR);
/frameworks/base/core/java/android/app/
DDatePickerDialog.java47 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/opt/calendar/src/com/android/calendarcommon2/
DTime.java49 public static final int YEAR = 6; field in Time
116 year = mCalendar.get(Calendar.YEAR); in readFieldsFromCalendar()
197 case YEAR: return Calendar.YEAR; in getCalendarField()
298 return mCalendar.get(Calendar.YEAR); in getYear()
303 mCalendar.set(Calendar.YEAR, year); in setYear()
DRecurrenceProcessor.java799 freqField = Time.YEAR; in expand()
1077 case Time.YEAR: in expand()
1087 if (freqField != Time.YEAR && freqField != Time.MONTH) { in expand()
/frameworks/base/core/java/android/util/
DMonthDisplayHelper.java55 mCalendar.set(Calendar.YEAR, year); in MonthDisplayHelper()
73 return mCalendar.get(Calendar.YEAR); in getYear()
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DDatePicker.java187 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/
DMediaMetadataTest.java45 YEAR, enumConstant
128 assertEquals(TAG, metadataFile[fileIndex][meta.YEAR.ordinal()], value); in validateMetatData()
/frameworks/ex/common/java/com/android/common/
DLegacyHttpDateTime.java113 calendar.set(Calendar.YEAR, year); in parse()
/frameworks/base/core/java/android/content/
DSyncStatusInfo.java509 return c1.get(Calendar.YEAR) == c2.get(Calendar.YEAR) in areSameDates()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DResponseData.java245 data[1] = byteToBCD(mCalendar.get(java.util.Calendar.YEAR) % 100); in format()
/frameworks/base/media/java/android/mtp/
DMtpPropertyGroup.java104 column = Audio.AudioColumns.YEAR; in createProperty()

12