/packages/apps/Calendar/src/com/android/calendar/selectcalendars/ |
SelectCalendarsSyncFragment.java | 36 import android.provider.CalendarContract.Calendars; 57 private static final String SELECTION = Calendars.ACCOUNT_NAME + "=? AND " 58 + Calendars.ACCOUNT_TYPE + "=?"; 61 private static final String SORT_ORDER = IS_PRIMARY + " DESC," + Calendars.CALENDAR_DISPLAY_NAME 65 Calendars._ID, 66 Calendars.CALENDAR_DISPLAY_NAME, 67 Calendars.CALENDAR_COLOR, 68 Calendars.SYNC_EVENTS, 69 Calendars.ACCOUNT_NAME, 70 Calendars.ACCOUNT_TYPE [all...] |
SelectVisibleCalendarsFragment.java | 26 import android.provider.CalendarContract.Calendars; 47 private static final String SELECTION = Calendars.SYNC_EVENTS + "=?"; 51 Calendars._ID, 52 Calendars.ACCOUNT_NAME, 53 Calendars.ACCOUNT_TYPE, 54 Calendars.OWNER_ACCOUNT, 55 Calendars.CALENDAR_DISPLAY_NAME, 56 Calendars.CALENDAR_COLOR, 57 Calendars.VISIBLE, 58 Calendars.SYNC_EVENTS [all...] |
SelectSyncedCalendarsMultiAccountActivity.java | 25 import android.provider.CalendarContract.Calendars; 44 Calendars._ID, 45 Calendars.ACCOUNT_TYPE, 46 Calendars.ACCOUNT_NAME, 47 Calendars.ACCOUNT_TYPE + " || " + Calendars.ACCOUNT_NAME + " AS " + 57 // Start a background sync to get the list of calendars from the server. 88 findViewById(R.id.calendars).getContext(), mAccountsCursor, 98 }.startQuery(0, null, Calendars.CONTENT_URI, PROJECTION, 101 Calendars.ACCOUNT_NAME /*sort order*/) [all...] |
SelectSyncedCalendarsMultiAccountAdapter.java | 32 import android.provider.CalendarContract.Calendars; 61 + Calendars.CALENDAR_DISPLAY_NAME + " COLLATE NOCASE"; 62 private static final String ACCOUNT_SELECTION = Calendars.ACCOUNT_NAME + "=?" 63 + " AND " + Calendars.ACCOUNT_TYPE + "=?"; 82 // These track changes to the synced state of calendars 100 // How long to wait between requeries of the calendars to see if anything has changed. 109 // This is to keep track of whether or not multiple calendars have the same display name 115 Calendars._ID, 116 Calendars.ACCOUNT_NAME, 117 Calendars.OWNER_ACCOUNT [all...] |
SelectCalendarsSyncAdapter.java | 25 import android.provider.CalendarContract.Calendars; 112 mIdColumn = c.getColumnIndexOrThrow(Calendars._ID); 113 mNameColumn = c.getColumnIndexOrThrow(Calendars.CALENDAR_DISPLAY_NAME); 114 mColorColumn = c.getColumnIndexOrThrow(Calendars.CALENDAR_COLOR); 115 mSyncedColumn = c.getColumnIndexOrThrow(Calendars.SYNC_EVENTS); 116 mAccountNameColumn = c.getColumnIndexOrThrow(Calendars.ACCOUNT_NAME); 117 mAccountTypeColumn = c.getColumnIndexOrThrow(Calendars.ACCOUNT_TYPE);
|
SelectCalendarsSimpleAdapter.java | 26 import android.provider.CalendarContract.Calendars; 128 * Sets up the background drawables for the calendars list 186 mIdColumn = c.getColumnIndexOrThrow(Calendars._ID); 187 mNameColumn = c.getColumnIndexOrThrow(Calendars.CALENDAR_DISPLAY_NAME); 188 mColorColumn = c.getColumnIndexOrThrow(Calendars.CALENDAR_COLOR); 189 mVisibleColumn = c.getColumnIndexOrThrow(Calendars.VISIBLE); 190 mOwnerAccountColumn = c.getColumnIndexOrThrow(Calendars.OWNER_ACCOUNT); 191 mAccountNameColumn = c.getColumnIndexOrThrow(Calendars.ACCOUNT_NAME); 192 mAccountTypeColumn = c.getColumnIndexOrThrow(Calendars.ACCOUNT_TYPE);
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
CalendarDatabaseHelper.java | 33 import android.provider.CalendarContract.Calendars; 142 public static final String CALENDARS = "Calendars"; 204 private static final String CALENDAR_UPDATE_COLOR_TRIGGER_SQL = "UPDATE " + Tables.CALENDARS 206 + Colors.ACCOUNT_NAME + "=" + "new." + Calendars.ACCOUNT_NAME + " AND " 207 + Colors.ACCOUNT_TYPE + "=" + "new." + Calendars.ACCOUNT_TYPE + " AND " 208 + Colors.COLOR_KEY + "=" + "new." + Calendars.CALENDAR_COLOR_KEY + " AND " 210 + " WHERE " + Calendars._ID + "=" + "old." + Calendars._ID 214 + CALENDAR_COLOR_UPDATE_TRIGGER_NAME + " UPDATE OF " + Calendars.CALENDAR_COLOR_KE [all...] |
CalendarProvider2.java | 47 import android.provider.CalendarContract.Calendars; 95 private static final String ACCOUNT_SELECTION_PREFIX = Calendars.ACCOUNT_NAME + "=? AND " 96 + Calendars.ACCOUNT_TYPE + "=?"; 135 private static final String GENERIC_ACCOUNT_NAME = Calendars.ACCOUNT_NAME; 136 private static final String GENERIC_ACCOUNT_TYPE = Calendars.ACCOUNT_TYPE; 211 private static final String SQL_WHERE_CALENDAR_COLOR = Calendars.ACCOUNT_NAME + "=? AND " 212 + Calendars.ACCOUNT_TYPE + "=? AND " + Calendars.CALENDAR_COLOR_KEY + "=?"; 215 + Tables.CALENDARS + " WHERE " + Events.ACCOUNT_NAME + "=? AND " + Events.ACCOUNT_TYPE 227 Tables.EVENTS + "." + Events.CALENDAR_ID + "=" + Tables.CALENDARS + "." + Calendars._ID [all...] |
CalendarDebug.java | 36 * Displays info about all the user's calendars, for debugging. 43 CalendarContract.Calendars._ID, 44 CalendarContract.Calendars.CALENDAR_DISPLAY_NAME, 84 cursor = mContentResolver.query(CalendarContract.Calendars.CONTENT_URI, 87 CalendarContract.Calendars.DEFAULT_SORT_ORDER);
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
CalendarSyncTestingBase.java | 62 CALENDARS_COLUMNS_TO_SKIP.add(CalendarContract.Calendars._ID); 63 CALENDARS_COLUMNS_TO_SKIP.add(CalendarContract.Calendars.CAL_SYNC8); 64 CALENDARS_COLUMNS_TO_SKIP.add(CalendarContract.Calendars.CAL_SYNC7); 65 CALENDARS_COLUMNS_TO_SKIP.add(CalendarContract.Calendars.DIRTY); 66 CALENDARS_COLUMNS_TO_SKIP.add(CalendarContract.Calendars.CAL_SYNC6); 177 values.put(CalendarContract.Calendars.ACCOUNT_NAME, getAccount()); 178 values.put(CalendarContract.Calendars.CAL_SYNC1, calendarUrl); 179 values.put(CalendarContract.Calendars.NAME, name); 180 values.put(CalendarContract.Calendars.CALENDAR_DISPLAY_NAME, name); 182 values.put(CalendarContract.Calendars.SYNC_EVENTS, 1) [all...] |
CalendarProvider2Test.java | 33 import android.provider.CalendarContract.Calendars; 82 private static final String WHERE_CALENDARS_SELECTED = Calendars.VISIBLE + "=?"; 96 private Uri mCalendarsUri = Calendars.CONTENT_URI; [all...] |
/packages/apps/Calendar/src/com/android/calendar/event/ |
CreateEventDialogFragment.java | 28 import android.provider.CalendarContract.Calendars; 201 mService.startQuery(TOKEN_CALENDARS, null, Calendars.CONTENT_URI, 277 int calendarOwnerIndex = cursor.getColumnIndexOrThrow(Calendars.OWNER_ACCOUNT); 278 int accountNameIndex = cursor.getColumnIndexOrThrow(Calendars.ACCOUNT_NAME); 279 int accountTypeIndex = cursor.getColumnIndexOrThrow(Calendars.ACCOUNT_TYPE); 305 int calendarIdIndex = cursor.getColumnIndexOrThrow(Calendars._ID); 306 int colorIndex = cursor.getColumnIndexOrThrow(Calendars.CALENDAR_COLOR); 307 int calendarNameIndex = cursor.getColumnIndexOrThrow(Calendars.CALENDAR_DISPLAY_NAME); 308 int accountNameIndex = cursor.getColumnIndexOrThrow(Calendars.ACCOUNT_NAME); 309 int calendarOwnerIndex = cursor.getColumnIndexOrThrow(Calendars.OWNER_ACCOUNT) [all...] |
EditEventHelper.java | 27 import android.provider.CalendarContract.Calendars; 173 Calendars._ID, // 0 174 Calendars.CALENDAR_DISPLAY_NAME, // 1 175 Calendars.OWNER_ACCOUNT, // 2 176 Calendars.CALENDAR_COLOR, // 3 177 Calendars.CAN_ORGANIZER_RESPOND, // 4 178 Calendars.CALENDAR_ACCESS_LEVEL, // 5 179 Calendars.VISIBLE, // 6 180 Calendars.MAX_REMINDERS, // 7 181 Calendars.ALLOWED_REMINDERS, // [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
CalendarColorPickerDialog.java | 27 import android.provider.CalendarContract.Calendars; 49 Calendars.ACCOUNT_NAME, 50 Calendars.ACCOUNT_TYPE, 51 Calendars.CALENDAR_COLOR 150 values.put(Calendars.CALENDAR_COLOR_KEY, mColorKeyMap.get(color)); 152 Calendars.CONTENT_URI, mCalendarId), values, null, null, Utils.UNDO_DELAY); 237 ContentUris.withAppendedId(Calendars.CONTENT_URI, mCalendarId),
|
CalendarSettingsActivity.java | 28 import android.provider.CalendarContract.Calendars; 57 args.putString(Calendars.ACCOUNT_NAME, acct.name); 58 args.putString(Calendars.ACCOUNT_TYPE, acct.type);
|
GoogleCalendarUriIntentFilter.java | 32 import android.provider.CalendarContract.Calendars; 152 + Calendars.OWNER_ACCOUNT + " LIKE \"" + ownerAccount + "\""; 157 Calendars.CALENDAR_ACCESS_LEVEL + " desc");
|
EventInfoFragment.java | 53 import android.provider.CalendarContract.Calendars; 194 Calendars.CALENDAR_ACCESS_LEVEL, // 10 200 Calendars.MAX_REMINDERS, // 16 201 Calendars.ALLOWED_REMINDERS, // 17 275 Calendars._ID, // 0 276 Calendars.CALENDAR_DISPLAY_NAME, // 1 277 Calendars.OWNER_ACCOUNT, // 2 278 Calendars.CAN_ORGANIZER_RESPOND, // 3 279 Calendars.ACCOUNT_NAME, // 4 280 Calendars.ACCOUNT_TYPE // [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
CalendarTest.java | 36 import android.provider.CalendarContract.Calendars; 88 Calendars._ID, 89 Calendars.ACCOUNT_NAME, 90 Calendars.ACCOUNT_TYPE, 91 Calendars._SYNC_ID, 92 Calendars.CAL_SYNC7, 93 Calendars.CAL_SYNC8, 94 Calendars.DIRTY, 95 Calendars.NAME, 96 Calendars.CALENDAR_DISPLAY_NAME [all...] |
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
GlobalDismissManager.java | 30 import android.provider.CalendarContract.Calendars; 185 Calendars._ID, 186 Calendars.ACCOUNT_NAME, 187 Calendars.ACCOUNT_TYPE 217 Set<Long> calendars = new LinkedHashSet<Long>(); local 218 calendars.addAll(eventsToCalendars.values()); 219 if (calendars.isEmpty()) { 220 Log.d(TAG, "found no calendars for events"); 225 lookupCalendarToAccountMap(context, calendars); 228 Log.d(TAG, "found no accounts for calendars"); 357 Set<Long> calendars = new LinkedHashSet<Long>(); local [all...] |
/packages/apps/Exchange/src/com/android/exchange/ |
ExchangeService.java | 33 import android.provider.CalendarContract.Calendars; 250 .appendQueryParameter(Calendars.ACCOUNT_NAME, account) 251 .appendQueryParameter(Calendars.ACCOUNT_TYPE, accountType).build(); 279 Cursor c = mResolver.query(Calendars.CONTENT_URI, 280 new String[] {Calendars._ID, Calendars.SYNC_EVENTS}, 299 Cursor c = mResolver.query(Calendars.CONTENT_URI, 300 new String[] {Calendars.SYNC_EVENTS}, Calendars._ID + "=?",
|
/frameworks/base/core/java/android/provider/ |
CalendarContract.java | 53 * <li>The {@link Calendars} table holds the calendar specific information. Each 73 * {@link Calendars#MAX_REMINDERS} which is set by the Sync Adapter that owns 173 * {@link Calendars#ACCOUNT_NAME} and {@link Calendars#ACCOUNT_TYPE} as 181 * A special account type for calendars not associated with any account. 182 * Normally calendars that do not match an account on the device will be 199 * editable as part of the Calendars Uri, but can only be read if accessed 267 * Columns for Sync information used by Calendars and Events tables. These 333 * Columns specific to the Calendars Uri that other Uris can query. 418 * This will be different from the _SYNC_ACCOUNT for delegated calendars [all...] |
/packages/apps/Exchange/src/com/android/exchange/eas/ |
EasSyncCalendar.java | 15 import android.provider.CalendarContract.Calendars; 61 private static final String[] CALENDAR_ID_PROJECTION = { Calendars._ID }; 66 Calendars.ACCOUNT_NAME + "=? AND " + 67 Calendars.ACCOUNT_TYPE + "=? AND " + 68 Calendars._SYNC_ID + "=?"; 72 Calendars.ACCOUNT_NAME + "=? AND " + 73 Calendars.ACCOUNT_TYPE + "=? AND " + 74 Calendars._SYNC_ID + " IS NULL"; 134 final Cursor c = cr.query(Calendars.CONTENT_URI, CALENDAR_ID_PROJECTION, 152 final Cursor c1 = cr.query(Calendars.CONTENT_URI [all...] |
/packages/apps/Exchange/src/com/android/exchange/utility/ |
CalendarUtilities.java | 29 import android.provider.CalendarContract.Calendars; 451 * @param calendars an array of GregorianCalendar, set to a series of transition times in 453 * @return an RRULE or null if none could be inferred from the calendars 455 static RRule inferRRuleFromCalendars(GregorianCalendar[] calendars) { 457 GregorianCalendar calendar = calendars[0]; 466 for (int i = 1; i < calendars.length; i++) { 467 GregorianCalendar cal = calendars[i]; 679 * @param transitions calendars representing transitions to/from DST [all...] |
/packages/apps/Email/src/com/android/email/service/ |
EmailServiceUtils.java | 42 import android.provider.CalendarContract.Calendars; 464 final Uri oldCalendars = Calendars.CONTENT_URI.buildUpon() 466 .appendQueryParameter(Calendars.ACCOUNT_NAME, name) 467 .appendQueryParameter(Calendars.ACCOUNT_TYPE, oldType) 472 values.put(CalendarContract.Calendars.ACCOUNT_TYPE, newType); 474 Calendars.ACCOUNT_NAME + "=? AND " + Calendars.ACCOUNT_TYPE + "=?", 488 values.put(CalendarContract.Calendars.ACCOUNT_TYPE, newType); 617 .appendQueryParameter(Calendars.ACCOUNT_NAME, account) 618 .appendQueryParameter(Calendars.ACCOUNT_TYPE, accountType).build() [all...] |
/packages/apps/Email/emailsync/src/com/android/emailsync/ |
SyncManager.java | 42 import android.provider.CalendarContract.Calendars; 146 Calendars.ACCOUNT_NAME + "=? AND " + Calendars.ACCOUNT_TYPE + "=?"; 555 ContentUris.withAppendedId(Calendars.CONTENT_URI, observer.mCalendarId), false, 575 .appendQueryParameter(Calendars.ACCOUNT_NAME, account) 576 .appendQueryParameter(Calendars.ACCOUNT_TYPE, accountType).build(); 607 Cursor c = mResolver.query(Calendars.CONTENT_URI, 608 new String[] {Calendars._ID, Calendars.SYNC_EVENTS}, 633 Cursor c = mResolver.query(Calendars.CONTENT_URI [all...] |