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.java84 int calId = findOrCreateCalendar(calendar); in importCalendars() local
85 logd(TAG, "Importing into calendar with id: " + calId); in importCalendars()
87 insertEvent(event, calId); in importCalendars()
125 final int calId = Integer.valueOf(cursor.getString(0)); in findCalendar() local
132 return calId; in findCalendar()
156 private void insertEvent(@NonNull Event event, int calId) { in insertEvent() argument
157 logd(TAG, "insert(calId=" + calId + ", event=" + event.getTitle() + ")"); in insertEvent()
160 values.put(CalendarContract.Events.CALENDAR_ID, calId); in insertEvent()
DCalendarCleaner.java76 void eraseCalendar(String calId) { in eraseCalendar() argument
78 buildCalendarDeletionOps(calId, deleteOps); in eraseCalendar()
83 String calId, ArrayList<ContentProviderOperation> operations) { in buildCalendarDeletionOps() argument
90 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.java1279 private Uri insertEvent(int calId, EventInfo event) { in insertEvent() argument
1280 return insertEvent(calId, event, null); in insertEvent()
1283 private Uri insertEvent(int calId, EventInfo event, ContentValues cv) { in insertEvent() argument
1290 cv = eventInfoToContentValues(calId, event); in insertEvent()
1306 private ContentValues eventInfoToContentValues(int calId, EventInfo event) { in eventInfoToContentValues() argument
1308 m.put(Events.CALENDAR_ID, calId); in eventInfoToContentValues()
1610 final int calId = insertCal("Calendar0", DEFAULT_TIMEZONE); in testInsertNormalEvents() local
1643 cvs[ii] = eventInfoToContentValues(calId, event); in testInsertNormalEvents()
1644 uris[ii] = insertEvent(calId, event, cvs[ii]); in testInsertNormalEvents()
1674 int calId = insertCal("Calendar0", "America/Los_Angeles"); in testInsertRepeatingEvents() local
[all …]
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java1922 Long calId = cursor.getLong(calIdCol); in handleInsertException() local
1925 if (calId != null) { in handleInsertException()
1926 Account account = getAccount(calId); in handleInsertException()
2931 private String getOwner(long calId) { in getOwner() argument
2932 if (calId < 0) { in getOwner()
2934 Log.e(TAG, "Calendar Id is not valid: " + calId); in getOwner()
2942 cursor = query(ContentUris.withAppendedId(Calendars.CONTENT_URI, calId), in getOwner()
2949 Log.d(TAG, "Couldn't find " + calId + " in Calendars table"); in getOwner()
2962 private Account getAccount(long calId) { in getAccount() argument
2966 cursor = query(ContentUris.withAppendedId(Calendars.CONTENT_URI, calId), in getAccount()
[all …]