Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/benchmarks/src/android/text/format/
DAndroidTimeVsOthersBenchmark.java63 java.util.Calendar calendar = new java.util.GregorianCalendar(timeZone); in toMillis_javaUtil() local
64 calendar.set(2010, 5, 4, 3, 2, 1); in toMillis_javaUtil()
65 calendar.set(java.util.Calendar.MILLISECOND, 0); in toMillis_javaUtil()
66 answer = calendar.getTimeInMillis(); in toMillis_javaUtil()
78 android.icu.util.Calendar calendar = new android.icu.util.GregorianCalendar(timeZone); in toMillis_androidIucUtil() local
79 calendar.set(2010, 5, 4, 3, 2, 1); in toMillis_androidIucUtil()
80 calendar.set(android.icu.util.Calendar.MILLISECOND, 0); in toMillis_androidIucUtil()
81 answer = calendar.getTimeInMillis(); in toMillis_androidIucUtil()
/frameworks/base/services/core/java/com/android/server/
DMountServiceIdler.java121 Calendar calendar = Calendar.getInstance(); in offsetFromTodayMidnight() local
122 calendar.setTimeInMillis(System.currentTimeMillis()); in offsetFromTodayMidnight()
123 calendar.set(Calendar.HOUR_OF_DAY, nHours); in offsetFromTodayMidnight()
124 calendar.set(Calendar.MINUTE, 0); in offsetFromTodayMidnight()
125 calendar.set(Calendar.SECOND, 0); in offsetFromTodayMidnight()
126 calendar.set(Calendar.MILLISECOND, 0); in offsetFromTodayMidnight()
127 calendar.add(Calendar.DAY_OF_MONTH, nDays); in offsetFromTodayMidnight()
128 return calendar; in offsetFromTodayMidnight()
DGraphicsStatsService.java136 Calendar calendar = normalizeDate(System.currentTimeMillis()); in scheduleRotateLocked() local
137 calendar.add(Calendar.DATE, 1); in scheduleRotateLocked()
138 mAlarmManager.setExact(AlarmManager.RTC, calendar.getTimeInMillis(), TAG, this::onAlarm, in scheduleRotateLocked()
208 Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("UTC")); in normalizeDate() local
209 calendar.setTimeInMillis(timestamp); in normalizeDate()
210 calendar.set(Calendar.HOUR_OF_DAY, 0); in normalizeDate()
211 calendar.set(Calendar.MINUTE, 0); in normalizeDate()
212 calendar.set(Calendar.SECOND, 0); in normalizeDate()
213 calendar.set(Calendar.MILLISECOND, 0); in normalizeDate()
214 return calendar; in normalizeDate()
DAlarmManagerService.java4289 Calendar calendar = Calendar.getInstance(); in scheduleDateChangedEvent() local
4290 calendar.setTimeInMillis(mInjector.getCurrentTimeMillis()); in scheduleDateChangedEvent()
4291 calendar.set(Calendar.HOUR_OF_DAY, 0); in scheduleDateChangedEvent()
4292 calendar.set(Calendar.MINUTE, 0); in scheduleDateChangedEvent()
4293 calendar.set(Calendar.SECOND, 0); in scheduleDateChangedEvent()
4294 calendar.set(Calendar.MILLISECOND, 0); in scheduleDateChangedEvent()
4295 calendar.add(Calendar.DAY_OF_MONTH, 1); in scheduleDateChangedEvent()
4298 setImpl(RTC, calendar.getTimeInMillis(), 0, 0, mDateChangeSender, null, null, in scheduleDateChangedEvent()
/frameworks/ex/common/java/com/android/common/
DLegacyHttpDateTime.java112 GregorianCalendar calendar = new GregorianCalendar(utc); in parse() local
113 calendar.set(Calendar.YEAR, year); in parse()
114 calendar.set(Calendar.MONTH, month); in parse()
115 calendar.set(Calendar.DAY_OF_MONTH, date); in parse()
116 calendar.set(Calendar.HOUR_OF_DAY, timeOfDay.hour); in parse()
117 calendar.set(Calendar.MINUTE, timeOfDay.minute); in parse()
118 calendar.set(Calendar.SECOND, timeOfDay.second); in parse()
119 calendar.set(Calendar.MILLISECOND, 0); in parse()
120 return calendar.getTimeInMillis(); in parse()
/frameworks/base/core/java/android/widget/
DDayPickerPagerAdapter.java102 final SimpleMonthView monthView = mItems.valueAt(i).calendar; in setFirstDayOfWeek()
118 return monthView.calendar.getBoundsForDay(dayOfMonth, outBounds); in getBoundsForDate()
135 oldMonthView.calendar.setSelectedDay(-1); in setSelectedDay()
144 newMonthView.calendar.setSelectedDay(dayOfMonth); in setSelectedDay()
300 final SimpleMonthView v = mItems.get(position).calendar; in getPageTitle()
312 return holder.calendar; in getView()
331 public final SimpleMonthView calendar; field in DayPickerPagerAdapter.ViewHolder
333 public ViewHolder(int position, View container, SimpleMonthView calendar) { in ViewHolder() argument
336 this.calendar = calendar; in ViewHolder()
DRadialTimePickerView.java393 final Calendar calendar = Calendar.getInstance(Locale.getDefault()); in RadialTimePickerView() local
394 final int currentHour = calendar.get(Calendar.HOUR_OF_DAY); in RadialTimePickerView()
395 final int currentMinute = calendar.get(Calendar.MINUTE); in RadialTimePickerView()
DCalendarViewLegacyDelegate.java930 private void setMonthDisplayed(Calendar calendar) { in setMonthDisplayed() argument
931 mCurrentMonthDisplayed = calendar.get(Calendar.MONTH); in setMonthDisplayed()
935 final long millis = calendar.getTimeInMillis(); in setMonthDisplayed()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeUi.java202 Calendar calendar = Calendar.getInstance(); in roundToNextMinute() local
203 calendar.setTimeInMillis(timeInMillis); in roundToNextMinute()
204 calendar.set(Calendar.MILLISECOND, 0); in roundToNextMinute()
205 calendar.set(Calendar.SECOND, 0); in roundToNextMinute()
206 calendar.add(Calendar.MINUTE, 1); in roundToNextMinute()
208 return calendar.getTimeInMillis(); in roundToNextMinute()
/frameworks/base/core/java/android/text/format/
DDateUtilsBridge.java67 Calendar calendar = new GregorianCalendar(icuTimeZone, icuLocale); in createIcuCalendar() local
68 calendar.setTimeInMillis(timeInMillis); in createIcuCalendar()
69 return calendar; in createIcuCalendar()
72 public static String toSkeleton(Calendar calendar, int flags) { in toSkeleton() argument
73 return toSkeleton(calendar, calendar, flags); in toSkeleton()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DNitzDataTest.java108 GregorianCalendar calendar = new GregorianCalendar(TimeZone.getTimeZone("UTC")); in createUtcTime() local
109 calendar.clear(); // Clear millis, etc. in createUtcTime()
110 calendar.set(year, monthOfYear - 1, dayOfMonth, hourOfDay, minute, second); in createUtcTime()
111 return calendar.getTimeInMillis(); in createUtcTime()
/frameworks/base/core/java/android/app/
DDatePickerDialog.java115 @Nullable OnDateSetListener listener, @Nullable Calendar calendar, int year, in DatePickerDialog() argument
128 if (calendar != null) { in DatePickerDialog()
129 year = calendar.get(Calendar.YEAR); in DatePickerDialog()
130 monthOfYear = calendar.get(Calendar.MONTH); in DatePickerDialog()
131 dayOfMonth = calendar.get(Calendar.DAY_OF_MONTH); in DatePickerDialog()
/frameworks/opt/calendar/
DCleanSpec.mk41 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/calendar-common_intermedi…
42 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/calendar-common_intermedi…
DREADME3 mmm -j20 frameworks/opt/calendar
DAndroid.bp16 name: "calendar-common",
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/
DTimeZoneLookupHelperTest.java457 GregorianCalendar calendar = new GregorianCalendar(timeZone); in assertOffsetResultZoneOffsets() local
458 calendar.setTimeInMillis(time); in assertOffsetResultZoneOffsets()
460 calendar.get(Calendar.ZONE_OFFSET) + calendar.get(Calendar.DST_OFFSET); in assertOffsetResultZoneOffsets()
469 assertEquals(expectedDstAtTime.intValue(), calendar.get(Calendar.DST_OFFSET)); in assertOffsetResultZoneOffsets()
479 GregorianCalendar calendar = new GregorianCalendar(zone("UTC")); in createUtcTime() local
480 calendar.clear(); // Clear millis, etc. in createUtcTime()
481 calendar.set(year, monthOfYear - 1, dayOfMonth, hourOfDay, minute, second); in createUtcTime()
482 return calendar.getTimeInMillis(); in createUtcTime()
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DICalendar.java612 Component calendar = parseComponent(null, text); in parseCalendar() local
613 if (calendar == null || !Component.VCALENDAR.equals(calendar.getName())) { in parseCalendar()
616 return calendar; in parseCalendar()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/
DEnableZenModeDialog.java289 private static void setToMidnight(Calendar calendar) { in setToMidnight() argument
290 calendar.set(Calendar.HOUR_OF_DAY, 0); in setToMidnight()
291 calendar.set(Calendar.MINUTE, 0); in setToMidnight()
292 calendar.set(Calendar.SECOND, 0); in setToMidnight()
293 calendar.set(Calendar.MILLISECOND, 0); in setToMidnight()
/frameworks/base/core/tests/coretests/src/android/text/format/
DDateIntervalFormatTest.java551 Calendar calendar = Calendar.getInstance(utc, l); in test8467515() local
552 calendar.clear(); in test8467515()
554 calendar.set(2038, Calendar.JANUARY, 19, 12, 0, 0); in test8467515()
555 t = calendar.getTimeInMillis(); in test8467515()
558 calendar.set(1900, Calendar.JANUARY, 1, 0, 0, 0); in test8467515()
559 t = calendar.getTimeInMillis(); in test8467515()
/frameworks/opt/calendar/tests/
DAndroid.bp24 "calendar-common",
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DZenModePanel.java602 private void setToMidnight(Calendar calendar) { in setToMidnight() argument
603 calendar.set(Calendar.HOUR_OF_DAY, 0); in setToMidnight()
604 calendar.set(Calendar.MINUTE, 0); in setToMidnight()
605 calendar.set(Calendar.SECOND, 0); in setToMidnight()
606 calendar.set(Calendar.MILLISECOND, 0); in setToMidnight()
/frameworks/rs/script_api/include/
Drs_time.rsh97 * timer: Location to also store the returned calendar time.
/frameworks/base/config/
Dpreloaded-classes7595 sun.util.calendar.AbstractCalendar
7596 sun.util.calendar.BaseCalendar$Date
7597 sun.util.calendar.BaseCalendar
7598 sun.util.calendar.CalendarDate
7599 sun.util.calendar.CalendarSystem
7600 sun.util.calendar.CalendarUtils
7601 sun.util.calendar.Era
7602 sun.util.calendar.Gregorian$Date
7603 sun.util.calendar.Gregorian
7604 sun.util.calendar.ImmutableGregorianDate
[all …]
Dboot-image-profile.txt28734 HSPLjava/util/Date;->getCalendarSystem(J)Lsun/util/calendar/BaseCalendar;
28736 HSPLjava/util/Date;->normalize()Lsun/util/calendar/BaseCalendar$Date;
28848 HSPLjava/util/GregorianCalendar;->getFixedDate(Lsun/util/calendar/BaseCalendar;II)J
31920 HSPLsun/util/calendar/AbstractCalendar;->getCalendarDate(JLsun/util/calendar/CalendarDate;)Lsun/uti…
31921 HSPLsun/util/calendar/AbstractCalendar;->getDayOfWeekDateOnOrBefore(JI)J
31922 HSPLsun/util/calendar/AbstractCalendar;->getTime(Lsun/util/calendar/CalendarDate;)J
31923 HSPLsun/util/calendar/AbstractCalendar;->getTimeOfDay(Lsun/util/calendar/CalendarDate;)J
31924 HSPLsun/util/calendar/AbstractCalendar;->getTimeOfDayValue(Lsun/util/calendar/CalendarDate;)J
31925 HSPLsun/util/calendar/AbstractCalendar;->setTimeOfDay(Lsun/util/calendar/CalendarDate;I)Lsun/util/c…
31926 HSPLsun/util/calendar/BaseCalendar$Date;->getCachedJan1()J
[all …]
Dhiddenapi-greylist-max-o.txt31622 Landroid/icu/util/GlobalizationPreferences;->calendar:Landroid/icu/util/Calendar;
32057 Landroid/icu/util/SimpleDateRule;->calendar:Landroid/icu/util/Calendar;
63785 Landroid/service/notification/ZenModeConfig$EventInfo;->calendar:Ljava/lang/String;
106725 Ljava/time/chrono/JapaneseChronology;->JCAL:Lsun/util/calendar/LocalGregorianCalendar;
106746 Ljava/time/chrono/JapaneseDate;->toPrivateJapaneseDate(Ljava/time/LocalDate;)Lsun/util/calendar/Loc…
106754 Ljava/time/chrono/JapaneseEra;->ERA_CONFIG:[Lsun/util/calendar/Era;
106759 Ljava/time/chrono/JapaneseEra;->getPrivateEra()Lsun/util/calendar/Era;
106763 Ljava/time/chrono/JapaneseEra;->privateEraFrom(Ljava/time/LocalDate;)Lsun/util/calendar/Era;
106766 Ljava/time/chrono/JapaneseEra;->toJapaneseEra(Lsun/util/calendar/Era;)Ljava/time/chrono/JapaneseEra;
109695 Ljava/util/Date;->cdate:Lsun/util/calendar/BaseCalendar$Date;
[all …]

12