Home
last modified time | relevance | path

Searched refs:cal (Results 1 – 25 of 33) sorted by relevance

12

/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/bip/
DBipDateTime.java132 Calendar cal = Calendar.getInstance(); in toString() local
133 cal.setTime(d); in toString()
139 cal.setTimeZone(utc); in toString()
140 return String.format(Locale.US, "%04d%02d%02dT%02d%02d%02dZ", cal.get(Calendar.YEAR), in toString()
141 cal.get(Calendar.MONTH) + 1, cal.get(Calendar.DATE), in toString()
142 cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE), in toString()
143 cal.get(Calendar.SECOND)); in toString()
145 cal.setTimeZone(TimeZone.getDefault()); in toString()
146 return String.format(Locale.US, "%04d%02d%02dT%02d%02d%02d", cal.get(Calendar.YEAR), in toString()
147 cal.get(Calendar.MONTH) + 1, cal.get(Calendar.DATE), in toString()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/
DObexTime.java107 Calendar cal = Calendar.getInstance(); in toString() local
108 cal.setTime(mDate); in toString()
111 return String.format(Locale.US, "%04d%02d%02dT%02d%02d%02d", cal.get(Calendar.YEAR), in toString()
112 cal.get(Calendar.MONTH) + 1, cal.get(Calendar.DATE), cal.get(Calendar.HOUR_OF_DAY), in toString()
113 cal.get(Calendar.MINUTE), cal.get(Calendar.SECOND)); in toString()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
DBipDatetimeTest.java52 Calendar cal = Calendar.getInstance(); in makeTzAdjustedString() local
53 cal.setTime(makeDate(month, day, year, hours, min, sec)); in makeTzAdjustedString()
54 cal.setTimeZone(TimeZone.getDefault()); in makeTzAdjustedString()
55 return String.format(Locale.US, "%04d%02d%02dT%02d%02d%02d", cal.get(Calendar.YEAR), in makeTzAdjustedString()
56 cal.get(Calendar.MONTH) + 1, cal.get(Calendar.DATE), in makeTzAdjustedString()
57 cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE), in makeTzAdjustedString()
58 cal.get(Calendar.SECOND)); in makeTzAdjustedString()
/packages/apps/Contacts/src/com/android/contacts/datepicker/
DDatePicker.java184 Calendar cal = Calendar.getInstance(); in DatePicker() local
185 init(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH), null); in DatePicker()
396 Calendar cal = Calendar.getInstance(); in updateDaySpinner() local
398 cal.set(mHasYear ? mYear : 2000, mMonth, 1); in updateDaySpinner()
399 int max = cal.getActualMaximum(Calendar.DAY_OF_MONTH); in updateDaySpinner()
422 Calendar cal = Calendar.getInstance(); in adjustMaxDay() local
424 cal.set(Calendar.YEAR, mHasYear ? mYear : 2000); in adjustMaxDay()
425 cal.set(Calendar.MONTH, mMonth); in adjustMaxDay()
426 int max = cal.getActualMaximum(Calendar.DAY_OF_MONTH); in adjustMaxDay()
/packages/apps/Contacts/src/com/android/contacts/util/
DDateUtils.java121 public static boolean isYearSet(Calendar cal) { in isYearSet() argument
125 return cal.get(Calendar.YEAR) > 1; in isYearSet()
161 final Calendar cal = parseDate(string, false); in formatDate() local
164 if (cal == null) { in formatDate()
168 final boolean isYearSet = isYearSet(cal); in formatDate()
179 return outFormat.format(cal.getTime()); in formatDate()
/packages/apps/Contacts/src/com/android/contacts/editor/
DEventFieldEditorView.java217 Calendar cal = DateUtils.parseDate(oldValue, false); in createDatePickerDialog() local
218 if (cal != null) { in createDatePickerDialog()
219 if (DateUtils.isYearSet(cal)) { in createDatePickerDialog()
220 oldYear = cal.get(Calendar.YEAR); in createDatePickerDialog()
225 oldMonth = cal.get(Calendar.MONTH); in createDatePickerDialog()
226 oldDay = cal.get(Calendar.DAY_OF_MONTH); in createDatePickerDialog()
/packages/apps/Launcher3/src/com/android/launcher3/logging/
DFileLog.java144 Calendar cal = Calendar.getInstance(); in handleMessage() local
146 String fileName = FILE_NAME_PREFIX + (cal.get(Calendar.DAY_OF_YEAR) & 1); in handleMessage()
165 append = cal.before(modifiedTime) in handleMessage()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapCallLogComposer.java204 Calendar cal = Calendar.getInstance(); in toRfc2455Format() local
205 cal.setTimeInMillis(millSecs); in toRfc2455Format()
207 return df.format(cal.getTime()); in toRfc2455Format()
/packages/apps/Settings/src/com/android/settings/
DUsageStatsActivity.java110 Calendar cal = Calendar.getInstance(); in UsageStatsAdapter() local
111 cal.add(Calendar.DAY_OF_YEAR, -5); in UsageStatsAdapter()
115 cal.getTimeInMillis(), System.currentTimeMillis()); in UsageStatsAdapter()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DUsageStatsActivity.java110 Calendar cal = Calendar.getInstance(); in UsageStatsAdapter() local
111 cal.add(Calendar.DAY_OF_YEAR, -5); in UsageStatsAdapter()
115 cal.getTimeInMillis(), System.currentTimeMillis()); in UsageStatsAdapter()
/packages/apps/TV/src/com/android/tv/util/
DUtils.java493 private static void resetCalendar(Calendar cal) { in resetCalendar() argument
494 cal.set(Calendar.HOUR_OF_DAY, 0); in resetCalendar()
495 cal.set(Calendar.MINUTE, 0); in resetCalendar()
496 cal.set(Calendar.SECOND, 0); in resetCalendar()
497 cal.set(Calendar.MILLISECOND, 0); in resetCalendar()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapUtils.java673 Calendar cal = Calendar.getInstance(); in getDateTimeString() local
674 cal.setTimeInMillis(timestamp); in getDateTimeString()
676 + format.format(cal.getTime())); in getDateTimeString()
677 return format.format(cal.getTime()); in getDateTimeString()
DBluetoothMapSmsPdu.java397 Calendar cal = Calendar.getInstance(); in gsmWriteDate() local
398 int offset = (cal.get(Calendar.ZONE_OFFSET) + cal.get(Calendar.DST_OFFSET)) / (15 * 60 in gsmWriteDate()
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/calendarsync/
DCalendarSyncFeature.java120 calendars.stream().map(cal -> cal.getUuid()).collect(Collectors.toSet())); in storeSynchronizedCalendars()
/packages/apps/Calendar/src/com/android/calendar/month/
DSimpleWeeksAdapter.java104 Calendar cal = Calendar.getInstance(Locale.getDefault()); in SimpleWeeksAdapter() local
105 mFirstDayOfWeek = cal.getFirstDayOfWeek() - 1; in SimpleWeeksAdapter()
DSimpleDayPickerFragment.java299 Calendar cal = Calendar.getInstance(Locale.getDefault()); in doResumeUpdates() local
300 mFirstDayOfWeek = cal.getFirstDayOfWeek() - 1; in doResumeUpdates()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DQuickContactActivity.java1485 final Calendar cal = DateUtils.parseDate(dataString, false); in dataItemToEntry() local
1486 if (cal != null) { in dataItemToEntry()
1488 DateUtils.getNextAnnualDate(cal); in dataItemToEntry()
/packages/inputmethods/LatinIME/dictionaries/
Dpt_BR_wordlist.combined.gz1dictionary=main:pt_br,locale=pt_BR,description=Português (Brasil),date ...
Dpt_PT_wordlist.combined.gz1dictionary=main:pt_pt,locale=pt_PT,description=Português (Portugal),date ...
Dfr_wordlist.combined.gz1dictionary=main:fr,locale=fr,description=Français,date=1414726264, ...
Dtr_wordlist.combined.gz1dictionary=main:tr,locale=tr,description=Türkçe,date=1414726261, ...
Des_wordlist.combined.gz1dictionary=main:es,locale=es,description=Español,date=1414726268, ...
Dro_wordlist.combined.gz1dictionary=main:ro,locale=ro,description=Română,date=1412325511, ...
Dcs_wordlist.combined.gz1dictionary=main:cs,locale=cs,description=Čeština,date=1393228134, ...
Den_GB_wordlist.combined.gz1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...

12