Home
last modified time | relevance | path

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

12

/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/bip/
DBipDateTime.java129 Calendar cal = Calendar.getInstance(); in toString() local
130 cal.setTime(d); in toString()
136 cal.setTimeZone(utc); in toString()
140 cal.get(Calendar.YEAR), in toString()
141 cal.get(Calendar.MONTH) + 1, in toString()
142 cal.get(Calendar.DATE), in toString()
143 cal.get(Calendar.HOUR_OF_DAY), in toString()
144 cal.get(Calendar.MINUTE), in toString()
145 cal.get(Calendar.SECOND)); in toString()
147 cal.setTimeZone(TimeZone.getDefault()); in toString()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/obex/
DObexTime.java130 Calendar cal = in toString() local
137 cal.get(Calendar.YEAR), in toString()
138 cal.get(Calendar.MONTH) + 1, in toString()
139 cal.get(Calendar.DATE), in toString()
140 cal.get(Calendar.HOUR_OF_DAY), in toString()
141 cal.get(Calendar.MINUTE), in toString()
142 cal.get(Calendar.SECOND)); in toString()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
DBipDatetimeTest.java49 Calendar cal = Calendar.getInstance(); in makeTzAdjustedString() local
50 cal.setTime(makeDate(month, day, year, hours, min, sec)); in makeTzAdjustedString()
51 cal.setTimeZone(TimeZone.getDefault()); in makeTzAdjustedString()
55 cal.get(Calendar.YEAR), in makeTzAdjustedString()
56 cal.get(Calendar.MONTH) + 1, in makeTzAdjustedString()
57 cal.get(Calendar.DATE), in makeTzAdjustedString()
58 cal.get(Calendar.HOUR_OF_DAY), in makeTzAdjustedString()
59 cal.get(Calendar.MINUTE), in makeTzAdjustedString()
60 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/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/xfrm/
DStructXfrmLifetimeCurTest.java46 final Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("GMT"));
47 cal.set(2023, Calendar.NOVEMBER, 2, 1, 42, 36);
48 final long timestampSeconds = TimeUnit.MILLISECONDS.toSeconds(cal.getTimeInMillis());
DStructXfrmUsersaInfoTest.java80 final Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("GMT"));
81 cal.set(2023, Calendar.NOVEMBER, 9, 2, 42, 05);
82 final long timestampSeconds = TimeUnit.MILLISECONDS.toSeconds(cal.getTimeInMillis());
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/map/
DBluetoothMapUtils.java761 Calendar cal = Calendar.getInstance(); in getDateTimeString() local
762 cal.setTimeInMillis(timestamp); in getDateTimeString()
768 + format.format(cal.getTime())); in getDateTimeString()
769 return format.format(cal.getTime()); in getDateTimeString()
773 Calendar cal = Calendar.getInstance(); in isDateTimeOlderThanOneYear() local
774 cal.setTimeInMillis(timestamp); in isDateTimeOlderThanOneYear()
777 if (cal.before(oneYearAgo)) { in isDateTimeOlderThanOneYear()
781 + cal.getTimeInMillis() in isDateTimeOlderThanOneYear()
DBluetoothMapSmsPdu.java395 Calendar cal = Calendar.getInstance(); in gsmWriteDate() local
397 (cal.get(Calendar.ZONE_OFFSET) + cal.get(Calendar.DST_OFFSET)) in gsmWriteDate()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pbap/
DBluetoothPbapCallLogComposer.java226 Calendar cal = Calendar.getInstance(); in toRfc2455Format() local
227 cal.setTimeInMillis(millSecs); in toRfc2455Format()
229 return df.format(cal.getTime()); in toRfc2455Format()
/packages/apps/Launcher3/src/com/android/launcher3/logging/
DFileLog.java170 Calendar cal = Calendar.getInstance(); in handleMessage() local
172 String fileName = FILE_NAME_PREFIX + (cal.get(Calendar.DAY_OF_YEAR) % LOG_DAYS); in handleMessage()
191 append = cal.before(modifiedTime) in handleMessage()
/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/Calendar/src/com/android/calendar/month/
DSimpleWeeksAdapter.kt303 val cal: Calendar = Calendar.getInstance(Locale.getDefault()) constant
304 mFirstDayOfWeek = cal.getFirstDayOfWeek() - 1
DSimpleDayPickerFragment.kt277 val cal: Calendar = Calendar.getInstance(Locale.getDefault()) in doResumeUpdates() constant
278 mFirstDayOfWeek = cal.getFirstDayOfWeek() - 1 in doResumeUpdates()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/
DBluetoothMapContentObserverTest.java1464 Calendar cal = Calendar.getInstance(); in handleMsgListChangesMms_withNonExistingOldMessage_andVersion12() local
1465 cal.add(Calendar.YEAR, -1); in handleMsgListChangesMms_withNonExistingOldMessage_andVersion12()
1466 cal.add(Calendar.DATE, -1); in handleMsgListChangesMms_withNonExistingOldMessage_andVersion12()
1467 long timestampSec = TimeUnit.MILLISECONDS.toSeconds(cal.getTimeInMillis()); in handleMsgListChangesMms_withNonExistingOldMessage_andVersion12()
1866 Calendar cal = Calendar.getInstance(); in handleMsgListChangesSms_withNonExistingOldMessage_andVersion12() local
1867 cal.add(Calendar.YEAR, -1); in handleMsgListChangesSms_withNonExistingOldMessage_andVersion12()
1868 cal.add(Calendar.DATE, -1); in handleMsgListChangesSms_withNonExistingOldMessage_andVersion12()
1887 cal.getTimeInMillis(), in handleMsgListChangesSms_withNonExistingOldMessage_andVersion12()
/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()
1490 cal.set(Calendar.YEAR, 0); in dataItemToEntry()
1493 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.gz
Dfr_wordlist.combined.gz
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, ...
Dcs_wordlist.combined.gz
Den_GB_wordlist.combined.gz
/packages/modules/RuntimeI18n/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt5805 Landroid/icu/util/Calendar$FormatConfiguration;->cal:Landroid/icu/util/Calendar;

12