Home
last modified time | relevance | path

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

12

/packages/apps/Contacts/src/com/android/contacts/util/
DDateUtils.java107 calendar.set(Calendar.YEAR, 0); in getUtcDate()
115 calendar.set(Calendar.YEAR, year); in getUtcDate()
125 return cal.get(Calendar.YEAR) > 1; in isYearSet()
242 final int targetYear = target.get(Calendar.YEAR); in getNextAnnualDate()
249 anniversary.set(!isYearSet ? today.get(Calendar.YEAR) : targetYear, in getNextAnnualDate()
256 int anniversaryYear = today.get(Calendar.YEAR); in getNextAnnualDate()
/packages/apps/Contacts/src/com/android/contacts/datepicker/
DDatePickerDialog.java49 private static final String YEAR = "year"; field in DatePickerDialog
155 calendar.set(Calendar.YEAR, year); in updateTitle()
166 state.putInt(YEAR, mDatePicker.getYear()); in onSaveInstanceState()
176 int year = savedInstanceState.getInt(YEAR); in onRestoreInstanceState()
DDatePicker.java185 init(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH), null); in DatePicker()
241 return Calendar.getInstance().get(Calendar.YEAR); in getCurrentYear()
424 cal.set(Calendar.YEAR, mHasYear ? mYear : 2000); in adjustMaxDay()
/packages/apps/Car/Settings/src/com/android/car/settings/units/
DUnitsMap.java65 protected static final Unit YEAR = new Unit(VehicleUnit.YEAR, field in UnitsMap
115 map.put(VehicleUnit.YEAR, YEAR); in createMap()
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DAlarm.java78 ClockDatabaseHelper.INSTANCES_TABLE_NAME + "." + ClockContract.InstancesColumns.YEAR,
396 previousInstanceTime.set(Calendar.YEAR, currentTime.get(Calendar.YEAR));
415 nextInstanceTime.set(Calendar.YEAR, currentTime.get(Calendar.YEAR));
DAlarmInstance.java60 YEAR,
96 values.put(YEAR, instance.mYear); in createContentValues()
373 mYear = calendar.get(Calendar.YEAR); in setAlarmTime()
387 calendar.set(Calendar.YEAR, mYear); in getAlarmTime()
DClockProvider.java83 sAlarmsWithInstancesProjection.put(INSTANCES_TABLE_NAME + "." + InstancesColumns.YEAR,
84 INSTANCES_TABLE_NAME + "." + InstancesColumns.YEAR);
111 InstancesColumns.YEAR + ", " + InstancesColumns.MONTH + ", " +
DClockContract.java224 String YEAR = "year"; field
/packages/apps/Calendar/tests/src/com/android/calendar/
DFormatDateRangeTest.java165 Calendar.getInstance().get(Calendar.YEAR), 0, 3, 13, 0,
170 Calendar.getInstance().get(Calendar.YEAR) - 1, 0, 3, 13, 0,
172 "January 3, " + (Calendar.getInstance().get(Calendar.YEAR) - 1)),
/packages/services/Car/car-lib/src/android/car/
DVehicleUnit.java59 public static final int YEAR = 0x59; field in VehicleUnit
101 YEAR,
/packages/apps/Contacts/src/com/android/contacts/editor/
DEventFieldEditorView.java167 final int defaultYear = calendar.get(Calendar.YEAR); in onLabelRebuilt()
203 final int defaultYear = calendar.get(Calendar.YEAR); in createDatePickerDialog()
220 oldYear = cal.get(Calendar.YEAR); in createDatePickerDialog()
/packages/apps/UnifiedEmail/src/com/android/mail/
DFormattedDateBuilder.java120 return (nowCal.get(Calendar.YEAR) == whenCal.get(Calendar.YEAR)); in isCurrentYear()
/packages/apps/Settings/src/com/android/settings/datetime/
DDatePreferenceController.java99 calendar.get(Calendar.YEAR), in buildDatePicker()
116 c.set(Calendar.YEAR, year); in setDate()
DTimeFormatPreferenceController.java74 mDummyDate.set(now.get(Calendar.YEAR), 11, 31, 13, 0, 0); in updateState()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datetime/
DDatePreferenceController.java99 calendar.get(Calendar.YEAR), in buildDatePicker()
116 c.set(Calendar.YEAR, year); in setDate()
DTimeFormatPreferenceController.java74 mDummyDate.set(now.get(Calendar.YEAR), 11, 31, 13, 0, 0); in updateState()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/units/
DUnitsBasePreferenceControllerTest.java53 {UnitsMap.YEAR, UnitsMap.SECS, UnitsMap.NANO_SECS};
54 private static final Unit DEFAULT_UNIT = UnitsMap.YEAR;
/packages/apps/Car/Settings/src/com/android/car/settings/datetime/
DDatePickerFragment.java70 c.set(Calendar.YEAR, mDatePicker.getYear()); in onActivityCreated()
DTimeFormatTogglePreferenceController.java85 mTimeFormatDemoDate.set(now.get(Calendar.YEAR), DEMO_MONTH, DEMO_DAY_OF_MONTH, in updateState()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DSimpleDate.java51 this.year = sCalendarInstance.get(Calendar.YEAR); in setTimestamp()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/
DObexTime.java96 return String.format(Locale.US, "%04d%02d%02dT%02d%02d%02d", cal.get(Calendar.YEAR), in toString()
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DPhoneCallDetailsHelper.java565 int currentYear = calendar.get(Calendar.YEAR); in shouldShowYear()
567 return currentYear != calendar.get(Calendar.YEAR); in shouldShowYear()
/packages/apps/Dialer/java/com/android/dialer/calllogutils/
DCallLogDates.java247 reference.add(Calendar.YEAR, -1); in isWithinOneYear()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DHelpFragment.java174 final int year = Calendar.getInstance().get(Calendar.YEAR); in onCreateDialog()
/packages/apps/Email/tests/src/com/android/emailcommon/utility/
DUtilityTest.java39 assertEquals(year, cal.get(Calendar.YEAR)); in testParseDateTimesHelper()

12