Home
last modified time | relevance | path

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

12345

/packages/apps/DeskClock/src/com/android/deskclock/provider/
DAlarmInstance.java299 public AlarmInstance(Calendar calendar, Long alarmId) { in AlarmInstance() argument
300 this(calendar); in AlarmInstance()
304 public AlarmInstance(Calendar calendar) { in AlarmInstance() argument
306 setAlarmTime(calendar); in AlarmInstance()
372 public void setAlarmTime(Calendar calendar) { in setAlarmTime() argument
373 mYear = calendar.get(Calendar.YEAR); in setAlarmTime()
374 mMonth = calendar.get(Calendar.MONTH); in setAlarmTime()
375 mDay = calendar.get(Calendar.DAY_OF_MONTH); in setAlarmTime()
376 mHour = calendar.get(Calendar.HOUR_OF_DAY); in setAlarmTime()
377 mMinute = calendar.get(Calendar.MINUTE); in setAlarmTime()
[all …]
/packages/apps/Settings/src/com/android/settings/datetime/
DDatePreferenceController.java95 final Calendar calendar = Calendar.getInstance(); in buildDatePicker() local
99 calendar.get(Calendar.YEAR), in buildDatePicker()
100 calendar.get(Calendar.MONTH), in buildDatePicker()
101 calendar.get(Calendar.DAY_OF_MONTH)); in buildDatePicker()
103 calendar.clear(); in buildDatePicker()
104 calendar.set(2007, Calendar.JANUARY, 1); in buildDatePicker()
105 d.getDatePicker().setMinDate(calendar.getTimeInMillis()); in buildDatePicker()
106 calendar.clear(); in buildDatePicker()
107 calendar.set(2037, Calendar.DECEMBER, 31); in buildDatePicker()
108 d.getDatePicker().setMaxDate(calendar.getTimeInMillis()); in buildDatePicker()
DTimePreferenceController.java101 final Calendar calendar = Calendar.getInstance(); in buildTimePicker() local
105 calendar.get(Calendar.HOUR_OF_DAY), in buildTimePicker()
106 calendar.get(Calendar.MINUTE), in buildTimePicker()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datetime/
DDatePreferenceController.java95 final Calendar calendar = Calendar.getInstance(); in buildDatePicker() local
99 calendar.get(Calendar.YEAR), in buildDatePicker()
100 calendar.get(Calendar.MONTH), in buildDatePicker()
101 calendar.get(Calendar.DAY_OF_MONTH)); in buildDatePicker()
103 calendar.clear(); in buildDatePicker()
104 calendar.set(2007, Calendar.JANUARY, 1); in buildDatePicker()
105 d.getDatePicker().setMinDate(calendar.getTimeInMillis()); in buildDatePicker()
106 calendar.clear(); in buildDatePicker()
107 calendar.set(2037, Calendar.DECEMBER, 31); in buildDatePicker()
108 d.getDatePicker().setMaxDate(calendar.getTimeInMillis()); in buildDatePicker()
DTimePreferenceController.java101 final Calendar calendar = Calendar.getInstance(); in buildTimePicker() local
105 calendar.get(Calendar.HOUR_OF_DAY), in buildTimePicker()
106 calendar.get(Calendar.MINUTE), in buildTimePicker()
/packages/apps/Contacts/src/com/android/contacts/util/
DDateUtils.java104 final Calendar calendar = Calendar.getInstance(UTC_TIMEZONE, Locale.US); in getUtcDate() local
105 calendar.setTime(date); in getUtcDate()
107 calendar.set(Calendar.YEAR, 0); in getUtcDate()
109 return calendar; in getUtcDate()
113 final Calendar calendar = Calendar.getInstance(UTC_TIMEZONE, Locale.US); in getUtcDate() local
114 calendar.clear(); in getUtcDate()
115 calendar.set(Calendar.YEAR, year); in getUtcDate()
116 calendar.set(Calendar.MONTH, month); in getUtcDate()
117 calendar.set(Calendar.DAY_OF_MONTH, dayOfMonth); in getUtcDate()
118 return calendar; in getUtcDate()
/packages/apps/Calendar/
Dproguard.flags1 -keep class com.android.calendar.OtherPreferences
2 -keep class com.android.calendar.GeneralPreferences
3 -keepclassmembers class com.android.calendar.AllInOneActivity {
6 -keepclassmembers class com.android.calendar.AllInOneActivity {
9 -keepclassmembers class com.android.calendar.AsyncQueryServiceHelper$OperationInfo {
12 -keepclassmembers class com.android.calendar.DayView {
22 -keepclassmembers class com.android.calendar.month.MonthWeekEventsView {
/packages/apps/Contacts/src/com/android/contacts/editor/
DEventFieldEditorView.java166 final Calendar calendar = Calendar.getInstance(DateUtils.UTC_TIMEZONE, Locale.US); in onLabelRebuilt() local
167 final int defaultYear = calendar.get(Calendar.YEAR); in onLabelRebuilt()
181 calendar.setTime(date2); in onLabelRebuilt()
182 calendar.set(defaultYear, calendar.get(Calendar.MONTH), in onLabelRebuilt()
183 calendar.get(Calendar.DAY_OF_MONTH), CommonDateUtils.DEFAULT_HOUR, 0, 0); in onLabelRebuilt()
186 ? null : kind.dateFormatWithYear.format(calendar.getTime()); in onLabelRebuilt()
202 final Calendar calendar = Calendar.getInstance(DateUtils.UTC_TIMEZONE, Locale.US); in createDatePickerDialog() local
203 final int defaultYear = calendar.get(Calendar.YEAR); in createDatePickerDialog()
213 oldMonth = calendar.get(Calendar.MONTH); in createDatePickerDialog()
214 oldDay = calendar.get(Calendar.DAY_OF_MONTH); in createDatePickerDialog()
/packages/apps/Settings/src/com/android/settings/notification/
DZenModeEventRuleSettings.java105 for (CalendarInfo calendar : calendars) { in reloadCalendar()
106 entries.add(calendar.name); in reloadCalendar()
107 values.add(key(calendar)); in reloadCalendar()
109 && eventCalendar.equals(calendar.name))) { in reloadCalendar()
110 mEvent.calendarId = calendar.calendarId; in reloadCalendar()
241 private static String key(CalendarInfo calendar) { in key() argument
242 return key(calendar.userId, calendar.calendarId, calendar.name); in key()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DZenModeEventRuleSettings.java105 for (CalendarInfo calendar : calendars) { in reloadCalendar()
106 entries.add(calendar.name); in reloadCalendar()
107 values.add(key(calendar)); in reloadCalendar()
109 && eventCalendar.equals(calendar.name))) { in reloadCalendar()
110 mEvent.calendarId = calendar.calendarId; in reloadCalendar()
241 private static String key(CalendarInfo calendar) { in key() argument
242 return key(calendar.userId, calendar.calendarId, calendar.name); in key()
/packages/apps/DeskClock/src/com/android/deskclock/widget/
DTextTime.java167 final Calendar calendar = DataModel.getDataModel().getCalendar(); in updateTime() local
168 calendar.setTimeZone(UTC); in updateTime()
169 calendar.set(HOUR_OF_DAY, mHour); in updateTime()
170 calendar.set(MINUTE, mMinute); in updateTime()
171 final CharSequence text = DateFormat.format(mFormat, calendar); in updateTime()
/packages/apps/DeskClock/src/com/android/deskclock/uidata/
DFormattedStringModel.java148 final Calendar calendar = new GregorianCalendar(2014, JULY, 20 + i - 1); in getShortWeekday() local
149 final String weekday = format.format(calendar.getTime()); in getShortWeekday()
174 final Calendar calendar = new GregorianCalendar(2014, JULY, 20); in getLongWeekday() local
177 final String weekday = format.format(calendar.getTime()); in getLongWeekday()
179 calendar.add(Calendar.DAY_OF_YEAR, 1); in getLongWeekday()
/packages/apps/Contacts/src/com/android/contacts/datepicker/
DDatePickerDialog.java154 final Calendar calendar = Calendar.getInstance(); in updateTitle() local
155 calendar.set(Calendar.YEAR, year); in updateTitle()
156 calendar.set(Calendar.MONTH, month); in updateTitle()
157 calendar.set(Calendar.DAY_OF_MONTH, day); in updateTitle()
160 setTitle(dateFormat.format(calendar.getTime())); in updateTitle()
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthByWeekAdapter.java17 package com.android.calendar.month;
33 import com.android.calendar.CalendarController;
34 import com.android.calendar.CalendarController.EventType;
35 import com.android.calendar.CalendarController.ViewType;
36 import com.android.calendar.Event;
37 import com.android.calendar.R;
38 import com.android.calendar.Utils;
DMonthByWeekFragment.java17 package com.android.calendar.month;
47 import com.android.calendar.CalendarController;
48 import com.android.calendar.CalendarController.EventInfo;
49 import com.android.calendar.CalendarController.EventType;
50 import com.android.calendar.CalendarController.ViewType;
51 import com.android.calendar.Event;
52 import com.android.calendar.R;
53 import com.android.calendar.Utils;
/packages/apps/TV/src/com/android/tv/util/
DUtils.java500 Calendar calendar = Calendar.getInstance(); in getLastMillisecondOfDay() local
501 calendar.setTime(new Date(millis)); in getLastMillisecondOfDay()
502 calendar.set(Calendar.HOUR_OF_DAY, 23); in getLastMillisecondOfDay()
503 calendar.set(Calendar.MINUTE, 59); in getLastMillisecondOfDay()
504 calendar.set(Calendar.SECOND, 59); in getLastMillisecondOfDay()
505 calendar.set(Calendar.MILLISECOND, 999); in getLastMillisecondOfDay()
506 return calendar.getTimeInMillis(); in getLastMillisecondOfDay()
511 Calendar calendar = Calendar.getInstance(); in getFirstMillisecondOfDay() local
512 calendar.setTime(new Date(millis)); in getFirstMillisecondOfDay()
513 resetCalendar(calendar); in getFirstMillisecondOfDay()
[all …]
/packages/apps/Calendar/src/com/android/calendar/alerts/
DAlertUtils.java17 package com.android.calendar.alerts;
35 import com.android.calendar.EventInfoActivity;
36 import com.android.calendar.R;
37 import com.android.calendar.Utils;
DAlertReceiver.java17 package com.android.calendar.alerts;
46 import com.android.calendar.R;
47 import com.android.calendar.Utils;
48 import com.android.calendar.alerts.AlertService.NotificationWrapper;
DQuickResponseActivity.java17 package com.android.calendar.alerts;
29 import com.android.calendar.R;
30 import com.android.calendar.Utils;
/packages/apps/Calendar/src/com/android/calendar/widget/
DCalendarAppWidgetProvider.java17 package com.android.calendar.widget;
37 import com.android.calendar.AllInOneActivity;
38 import com.android.calendar.EventInfoActivity;
39 import com.android.calendar.R;
40 import com.android.calendar.Utils;
DCalendarAppWidgetService.java17 package com.android.calendar.widget;
42 import com.android.calendar.R;
43 import com.android.calendar.Utils;
44 import com.android.calendar.widget.CalendarAppWidgetModel.DayInfo;
45 import com.android.calendar.widget.CalendarAppWidgetModel.EventInfo;
46 import com.android.calendar.widget.CalendarAppWidgetModel.RowInfo;
/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimeModel.java62 final Calendar calendar = Calendar.getInstance(); in getCalendar() local
63 calendar.setTimeInMillis(currentTimeMillis()); in getCalendar()
64 return calendar; in getCalendar()
/packages/apps/Calendar/tests/src/com/android/calendar/widget/
DCalendarAppWidgetServiceTest.java18 package com.android.calendar.widget;
20 import com.android.calendar.widget.CalendarAppWidgetModel.EventInfo;
21 import com.android.calendar.widget.CalendarAppWidgetService.CalendarFactory;
22 import com.android.calendar.Utils;
/packages/providers/CalendarProvider/
DAndroid.bp22 "calendar-common",
26 "src/com/android/providers/calendar/EventLogTags.logtags",
37 include_filter: ["com.android.providers.calendar.*"],
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DPhoneCallDetailsHelper.java80 private final Calendar calendar; field in PhoneCallDetailsHelper
101 calendar = Calendar.getInstance(); in PhoneCallDetailsHelper()
564 calendar.setTimeInMillis(getCurrentTimeMillis()); in shouldShowYear()
565 int currentYear = calendar.get(Calendar.YEAR); in shouldShowYear()
566 calendar.setTimeInMillis(date); in shouldShowYear()
567 return currentYear != calendar.get(Calendar.YEAR); in shouldShowYear()

12345