Home
last modified time | relevance | path

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

12

/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DDateUtils.java109 calendar.set(Calendar.YEAR, 0); in getUtcDate()
117 calendar.set(Calendar.YEAR, year); in getUtcDate()
127 return cal.get(Calendar.YEAR) > 1; in isYearSet()
244 final int targetYear = target.get(Calendar.YEAR); in getNextAnnualDate()
251 anniversary.set(!isYearSet ? today.get(Calendar.YEAR) : targetYear, in getNextAnnualDate()
258 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
195 calendar.set(Calendar.YEAR, year); in updateTitle()
206 state.putInt(YEAR, mDatePicker.getYear()); in onSaveInstanceState()
216 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/DeskClock/src/com/android/deskclock/provider/
DAlarm.java77 ClockDatabaseHelper.INSTANCES_TABLE_NAME + "." + ClockContract.InstancesColumns.YEAR,
357 previousInstanceTime.set(Calendar.YEAR, currentTime.get(Calendar.YEAR)); in getPreviousAlarmTime()
376 nextInstanceTime.set(Calendar.YEAR, currentTime.get(Calendar.YEAR)); in getNextAlarmTime()
DAlarmInstance.java67 YEAR,
103 values.put(YEAR, instance.mYear); in createContentValues()
364 mYear = calendar.get(Calendar.YEAR); in setAlarmTime()
378 calendar.set(Calendar.YEAR, mYear); in getAlarmTime()
DClockContract.java224 String YEAR = "year"; field
DClockProvider.java80 sAlarmsWithInstancesProjection.put(INSTANCES_TABLE_NAME + "." + InstancesColumns.YEAR,
81 INSTANCES_TABLE_NAME + "." + InstancesColumns.YEAR);
DClockDatabaseHelper.java89 ClockContract.InstancesColumns.YEAR + " INTEGER NOT NULL, " + in createInstanceTable()
/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/apps/Contacts/src/com/android/contacts/interactions/
DContactInteractionUtil.java98 return c1.get(Calendar.YEAR) == c2.get(Calendar.YEAR) && in compareCalendarDayYear()
/packages/apps/UnifiedEmail/src/com/android/mail/
DFormattedDateBuilder.java120 return (nowCal.get(Calendar.YEAR) == whenCal.get(Calendar.YEAR)); in isCurrentYear()
/packages/apps/Contacts/src/com/android/contacts/editor/
DEventFieldEditorView.java169 final int defaultYear = calendar.get(Calendar.YEAR); in onLabelRebuilt()
200 final int defaultYear = calendar.get(Calendar.YEAR); in createDatePickerDialog()
217 oldYear = cal.get(Calendar.YEAR); in createDatePickerDialog()
/packages/apps/Music/src/com/android/music/
DMediaPickerActivity.java144 MediaStore.Audio.Media.YEAR in MakeCursor()
172 mWhereClause = MediaStore.Audio.Media.YEAR + ">=" + mFirstYear + " AND " + in MakeCursor()
173 MediaStore.Audio.Media.YEAR + "<=" + mLastYear; in MakeCursor()
/packages/apps/Settings/src/com/android/settings/
DDateTimeSettings.java160 mDummyDate.set(now.get(Calendar.YEAR), 11, 31, 13, 0, 0); in updateTimeAndDateDisplay()
215 calendar.get(Calendar.YEAR), in onCreateDialog()
321 c.set(Calendar.YEAR, year); in setDate()
DDateTimeSettingsSetupWizard.java241 mDatePicker.updateDate(now.get(Calendar.YEAR), now.get(Calendar.MONTH), in onItemClick()
314 mDatePicker.updateDate(now.get(Calendar.YEAR), now.get(Calendar.MONTH), in updateTimeAndDateDisplay()
/packages/apps/Dialer/src/com/android/dialer/calllog/
DPhoneCallDetailsHelper.java286 int currentYear = mCalendar.get(Calendar.YEAR); in shouldShowYear()
288 return currentYear != mCalendar.get(Calendar.YEAR); in shouldShowYear()
/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/pbapclient/utils/
DObexTime.java97 cal.get(Calendar.YEAR), cal.get(Calendar.MONTH) + 1, in toString()
/packages/apps/Contacts/tests/src/com/android/contacts/interactions/
DContactInteractionUtilTest.java93 calendar.set(Calendar.YEAR, 1999); in testFormatDateStringFromTimestamp_yesterdayLastYear()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DHelpFragment.java174 final int year = Calendar.getInstance().get(Calendar.YEAR); in onCreateDialog()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/picker/
DDatePicker.java133 mInitYear = cal.get(Calendar.YEAR); in onCreate()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DDateTimeFragment.java136 mDummyDate.set(now.get(Calendar.YEAR), 11, 31, 13, 0, 0); in updateTimeAndDateDisplay()
/packages/apps/Email/tests/src/com/android/emailcommon/utility/
DUtilityTest.java39 assertEquals(year, cal.get(Calendar.YEAR)); in testParseDateTimesHelper()
/packages/apps/Dialer/tests/src/com/android/dialer/tests/calllog/
DFillCallLogTestActivity.java182 mCallDateYear = c.get(Calendar.YEAR); in onCreate()
554 mCallDateYear = dateTime.get(Calendar.YEAR); in addManualEntry()
/packages/services/Car/bluetooth/bt-map-client-lib/src/com/google/android/auto/mapservice/
DBluetoothMapMessagesListing.java180 cal.get(Calendar.YEAR), cal.get(Calendar.MONTH) + 1, in dateToString()

12