Home
last modified time | relevance | path

Searched refs:calId (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/calendarsync/
DCalendarImporter.java87 int calId = findOrCreateCalendar(calendar); in importCalendars() local
88 logd(TAG, "Importing into calendar with id: " + calId); in importCalendars()
90 insertEvent(event, calId); in importCalendars()
126 final int calId = Integer.valueOf(cursor.getString(0)); in findCalendar() local
133 return calId; in findCalendar()
158 private void insertEvent(@NonNull Event event, int calId) { in insertEvent() argument
159 logd(TAG, "insert(calId=" + calId + ", event=" + event.getTitle() + ")"); in insertEvent()
162 values.put(CalendarContract.Events.CALENDAR_ID, calId); in insertEvent()
DCalendarCleaner.java70 void eraseCalendar(String calId) { in eraseCalendar() argument
72 buildCalendarDeletionOps(calId, deleteOps); in eraseCalendar()
77 String calId, ArrayList<ContentProviderOperation> operations) { in buildCalendarDeletionOps() argument
84 String[] calendarIdArgs = new String[]{calId}; in buildCalendarDeletionOps()
DCalendarSyncFeature.java134 int calId = mCalendarImporter.findCalendar(calendar.getUuid()); in maybeEraseSynchronizedCalendars() local
135 if (calId == CalendarImporter.INVALID_CALENDAR_ID) { in maybeEraseSynchronizedCalendars()
139 mCalendarCleaner.eraseCalendar(String.valueOf(calId)); in maybeEraseSynchronizedCalendars()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProvider2Test.java1260 private Uri insertEvent(int calId, EventInfo event) { in insertEvent() argument
1261 return insertEvent(calId, event, null); in insertEvent()
1264 private Uri insertEvent(int calId, EventInfo event, ContentValues cv) { in insertEvent() argument
1271 cv = eventInfoToContentValues(calId, event); in insertEvent()
1287 private ContentValues eventInfoToContentValues(int calId, EventInfo event) { in eventInfoToContentValues() argument
1289 m.put(Events.CALENDAR_ID, calId); in eventInfoToContentValues()
1591 final int calId = insertCal("Calendar0", DEFAULT_TIMEZONE); in testInsertNormalEvents() local
1624 cvs[ii] = eventInfoToContentValues(calId, event); in testInsertNormalEvents()
1625 uris[ii] = insertEvent(calId, event, cvs[ii]); in testInsertNormalEvents()
1655 int calId = insertCal("Calendar0", "America/Los_Angeles"); in testInsertRepeatingEvents() local
[all …]
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java1920 Long calId = cursor.getLong(calIdCol); in handleInsertException() local
1923 if (calId != null) { in handleInsertException()
1924 Account account = getAccount(calId); in handleInsertException()
2929 private String getOwner(long calId) { in getOwner() argument
2930 if (calId < 0) { in getOwner()
2932 Log.e(TAG, "Calendar Id is not valid: " + calId); in getOwner()
2940 cursor = query(ContentUris.withAppendedId(Calendars.CONTENT_URI, calId), in getOwner()
2947 Log.d(TAG, "Couldn't find " + calId + " in Calendars table"); in getOwner()
2960 private Account getAccount(long calId) { in getAccount() argument
2964 cursor = query(ContentUris.withAppendedId(Calendars.CONTENT_URI, calId), in getAccount()
[all …]