Home
last modified time | relevance | path

Searched refs:calendar (Results 1 – 25 of 119) 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 …]
DAlarmInstance.kt65 constructor(calendar: Calendar, alarmId: Long?) : this(calendar) {
69 constructor(calendar: Calendar) {
71 alarmTime = calendar
143 val calendar = Calendar.getInstance() constant
144 calendar[Calendar.YEAR] = mYear
145 calendar[Calendar.MONTH] = mMonth
146 calendar[Calendar.DAY_OF_MONTH] = mDay
147 calendar[Calendar.HOUR_OF_DAY] = mHour
148 calendar[Calendar.MINUTE] = mMinute
149 calendar[Calendar.SECOND] = 0
[all …]
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/calendarsync/proto/
Dcalendar.proto24 // Information about the calendar.
28 // The title for the calendar.
31 // A unique identifier of the calendar.
34 // The color of the calendar.
37 // The events associated with the calendar.
40 // The account used to sync the calendar to the device.
47 repeated Calendar calendar = 1; field
51 // Information about the calendar event.
55 // The title for the calendar event.
58 // A unique identifier of the calendar event.
[all …]
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/calendarsync/
DCalendarImporter.java77 for (Calendar calendar : calendars.getCalendarList()) { in importCalendars()
82 calendar.getTitle(), calendar.getUuid(), calendar.getEventCount())); in importCalendars()
83 if (calendar.getEventCount() == 0) { in importCalendars()
87 int calId = findOrCreateCalendar(calendar); in importCalendars()
89 for (Event event : calendar.getEventList()) { in importCalendars()
95 private int findOrCreateCalendar(@NonNull Calendar calendar) { in findOrCreateCalendar() argument
96 int calendarId = findCalendar(calendar.getUuid()); in findOrCreateCalendar()
100 return createCalendar(calendar); in findOrCreateCalendar()
136 private int createCalendar(@NonNull Calendar calendar) { in createCalendar() argument
140 values.put(CalendarContract.Calendars.OWNER_ACCOUNT, calendar.getAccountName()); in createCalendar()
[all …]
DCalendarSyncFeature.java129 for (Calendar calendar : calendars) { in maybeEraseSynchronizedCalendars()
130 if (!mSyncedCalendars.contains(calendar.getUuid())) { in maybeEraseSynchronizedCalendars()
133 logw(TAG, String.format("remove calendar: %s", calendar.getUuid())); in maybeEraseSynchronizedCalendars()
134 int calId = mCalendarImporter.findCalendar(calendar.getUuid()); in maybeEraseSynchronizedCalendars()
136 loge(TAG, "Cannot find calendar to erase: " + calendar.getUuid(), null); in maybeEraseSynchronizedCalendars()
140 mSyncedCalendars.remove(calendar.getUuid()); in maybeEraseSynchronizedCalendars()
/packages/apps/Settings/src/com/android/settings/datetime/
DDatePreferenceController.java96 final Calendar calendar = Calendar.getInstance(); in buildDatePicker() local
100 calendar.get(Calendar.YEAR), in buildDatePicker()
101 calendar.get(Calendar.MONTH), in buildDatePicker()
102 calendar.get(Calendar.DAY_OF_MONTH)); in buildDatePicker()
104 calendar.clear(); in buildDatePicker()
105 calendar.set(2007, Calendar.JANUARY, 1); in buildDatePicker()
106 d.getDatePicker().setMinDate(calendar.getTimeInMillis()); in buildDatePicker()
107 calendar.clear(); in buildDatePicker()
108 calendar.set(2037, Calendar.DECEMBER, 31); in buildDatePicker()
109 d.getDatePicker().setMaxDate(calendar.getTimeInMillis()); in buildDatePicker()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datetime/
DDatePreferenceController.java96 final Calendar calendar = Calendar.getInstance(); in buildDatePicker() local
100 calendar.get(Calendar.YEAR), in buildDatePicker()
101 calendar.get(Calendar.MONTH), in buildDatePicker()
102 calendar.get(Calendar.DAY_OF_MONTH)); in buildDatePicker()
104 calendar.clear(); in buildDatePicker()
105 calendar.set(2007, Calendar.JANUARY, 1); in buildDatePicker()
106 d.getDatePicker().setMinDate(calendar.getTimeInMillis()); in buildDatePicker()
107 calendar.clear(); in buildDatePicker()
108 calendar.set(2037, Calendar.DECEMBER, 31); in buildDatePicker()
109 d.getDatePicker().setMaxDate(calendar.getTimeInMillis()); in buildDatePicker()
/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.kt129 val calendar: Calendar = DataModel.dataModel.calendar in updateTime() constant
130 calendar.timeZone = UTC in updateTime()
131 calendar[Calendar.HOUR_OF_DAY] = mHour in updateTime()
132 calendar[Calendar.MINUTE] = mMinute in updateTime()
133 val text = DateFormat.format(mFormat, calendar) in updateTime()
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.kt141 val calendar: Calendar = GregorianCalendar(2014, Calendar.JULY, 20 + i - 1) in getShortWeekday() constant
142 val weekday = format.format(calendar.time) in getShortWeekday()
167 val calendar: Calendar = GregorianCalendar(2014, Calendar.JULY, 20) in getLongWeekday() constant
170 val weekday = format.format(calendar.time) in getLongWeekday()
172 calendar.add(Calendar.DAY_OF_YEAR, 1) in getLongWeekday()
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/DeskClock/src/com/android/deskclock/data/
DTimeModel.kt48 val calendar: Calendar in currentTimeMillis() constant in com.android.deskclock.data.TimeModel
50 val calendar = Calendar.getInstance() in currentTimeMillis() constant
51 calendar.timeInMillis = currentTimeMillis() in currentTimeMillis()
52 return calendar in currentTimeMillis()
DTimeModel.java62 final Calendar calendar = Calendar.getInstance(); in getCalendar() local
63 calendar.setTimeInMillis(currentTimeMillis()); in getCalendar()
64 return calendar; in getCalendar()
/packages/apps/TV/src/com/android/tv/util/
DUtils.java502 Calendar calendar = Calendar.getInstance(); in getLastMillisecondOfDay() local
503 calendar.setTime(new Date(millis)); in getLastMillisecondOfDay()
504 calendar.set(Calendar.HOUR_OF_DAY, 23); in getLastMillisecondOfDay()
505 calendar.set(Calendar.MINUTE, 59); in getLastMillisecondOfDay()
506 calendar.set(Calendar.SECOND, 59); in getLastMillisecondOfDay()
507 calendar.set(Calendar.MILLISECOND, 999); in getLastMillisecondOfDay()
508 return calendar.getTimeInMillis(); in getLastMillisecondOfDay()
513 Calendar calendar = Calendar.getInstance(); in getFirstMillisecondOfDay() local
514 calendar.setTime(new Date(millis)); in getFirstMillisecondOfDay()
515 resetCalendar(calendar); in getFirstMillisecondOfDay()
[all …]
/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/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;
/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;

12345