Home
last modified time | relevance | path

Searched refs:calendarId (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenModeEventRuleSettings.java109 if (eventCalendar != null && (mEvent.calendarId == null in reloadCalendar()
111 mEvent.calendarId = calendar.calendarId; in reloadCalendar()
139 mEvent.calendarId = key[1].equals("") ? null : Long.parseLong(key[1]); in onCreateInternal()
231 void addCalendar(long calendarId, String calName, int userId, List<CalendarInfo> in addCalendar() argument
234 ci.calendarId = calendarId; in addCalendar()
243 return key(calendar.userId, calendar.calendarId, calendar.name); in key()
247 return key(event.userId, event.calendarId, event.calName); in key()
250 private static String key(int userId, Long calendarId, String displayName) { in key() argument
251 return EventInfo.resolveUserId(userId) + ":" + (calendarId == null ? "" : calendarId) in key()
265 public Long calendarId; field in ZenModeEventRuleSettings.CalendarInfo
[all …]
DZenRuleSelectionDialog.java197 event.calendarId = null; in defaultNewEvent()
/packages/apps/Settings/src/com/android/settings/notification/modes/
DZenModeSetCalendarPreferenceController.java105 if (eventCalendar != null && (mEvent.calendarId == null in reloadCalendar()
107 mEvent.calendarId = calendar.calendarId; in reloadCalendar()
142 mEvent.calendarId = key[1].equals("") ? null : Long.parseLong(key[1]);
215 protected static void addCalendar(long calendarId, String calName, int userId, in addCalendar() argument
218 ci.calendarId = calendarId; in addCalendar()
227 return key(calendar.userId, calendar.calendarId, calendar.name); in key()
231 return key(event.userId, event.calendarId, event.calName); in key()
235 protected static String key(int userId, Long calendarId, String displayName) { in key() argument
237 + (calendarId == null ? "" : calendarId) in key()
248 public Long calendarId; field in CalendarInfo
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/modes/
DZenModeSetCalendarPreferenceControllerTest.java96 eventInfo.calendarId = 1L; in updateEventMode_updatesConditionAndTriggerDescription()
110 eventInfo.calendarId = 1L; in updateState_setsPreferenceValues()
122 ZenModeSetCalendarPreferenceController.key(eventInfo.userId, eventInfo.calendarId, in updateState_setsPreferenceValues()
DZenModeSetTriggerLinkPreferenceControllerTest.java153 eventInfo.calendarId = 1L; in testRuleLink_calendar()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProvider2Test.java3314 final long calendarId = insertWorkCalendar(WORK_CALENDAR_TITLE); in testEnterpriseInstancesGetCorrectValue() local
3315 insertWorkEvent(WORK_EVENT_TITLE, calendarId, in testEnterpriseInstancesGetCorrectValue()
3317 insertWorkEvent(WORK_EVENT_TITLE_STANDBY, calendarId, in testEnterpriseInstancesGetCorrectValue()
3340 assertEquals(calendarId, cursor.getLong(1)); in testEnterpriseInstancesGetCorrectValue()
3345 cleanupEnterpriseTestForEvents(calendarId, 2); in testEnterpriseInstancesGetCorrectValue()
3350 final long calendarId = insertWorkCalendar(WORK_CALENDAR_TITLE); in testEnterpriseInstancesContentSearch() local
3351 insertWorkEvent(WORK_EVENT_TITLE, calendarId, in testEnterpriseInstancesContentSearch()
3353 insertWorkEvent(WORK_EVENT_TITLE_STANDBY, calendarId, in testEnterpriseInstancesContentSearch()
3381 cleanupEnterpriseTestForEvents(calendarId, 2); in testEnterpriseInstancesContentSearch()
3386 final long calendarId = insertWorkCalendar(WORK_CALENDAR_TITLE); in testEnterpriseEventsGetCorrectValue() local
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DCalendarController.kt128 @JvmField var calendarId: Long = 0 variable in com.android.calendar.EventInfo
298 calendarId: Long in sendEventRelatedEventWithExtraWithTitleWithCalendarId()
320 info.calendarId = calendarId in sendEventRelatedEventWithExtraWithTitleWithCalendarId()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarInstancesHelper.java256 long calendarId = entries.getLong(calendarIdColumn); in performInstanceExpansion() local
258 String syncIdKey = CalendarInstancesHelper.getSyncIdKey(syncId, calendarId); in performInstanceExpansion()
366 CalendarInstancesHelper.getSyncIdKey(originalEvent, calendarId)); in performInstanceExpansion()
876 static String getSyncIdKey(String syncId, long calendarId) { in getSyncIdKey() argument
877 return calendarId + ":" + syncId; in getSyncIdKey()
DCalendarProvider2.java2190 long calendarId = values.getAsLong(Events.CALENDAR_ID); in handleInsertException() local
2191 String accountName = getOwner(calendarId); in handleInsertException()
2265 String calendarId = values.getAsString(Events.CALENDAR_ID); in backfillExceptionOriginalIds() local
2267 if (TextUtils.isEmpty(syncId) || TextUtils.isEmpty(calendarId) || in backfillExceptionOriginalIds()
2277 new String[] { syncId, calendarId }); in backfillExceptionOriginalIds()
2896 private long getOriginalId(String originalSyncId, String calendarId) { in getOriginalId() argument
2897 if (TextUtils.isEmpty(originalSyncId) || TextUtils.isEmpty(calendarId)) { in getOriginalId()
2906 new String[] {originalSyncId, calendarId}, null); in getOriginalId()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/
DZenModeEventRuleSettingsTest.java117 eventInfo.calendarId = 1L; in updateEventRule_updatesConditionAndTriggerDescription()