/packages/apps/Contacts/tests/src/com/android/contacts/ |
EntityDeltaListTests.java | 39 import android.provider.ContactsContract.RawContacts; 106 after.put(RawContacts.ACCOUNT_NAME, EntityDeltaTests.TEST_ACCOUNT_NAME); 107 after.put(RawContacts.SEND_TO_VOICEMAIL, 1); 125 contact.put(RawContacts.VERSION, version); 126 contact.put(RawContacts._ID, rawContactId); 137 contact.put(RawContacts.ACCOUNT_TYPE, TEST_ACCOUNT); 231 values.put(RawContacts.VERSION, version); 232 return buildOper(RawContacts.CONTENT_URI, TYPE_ASSERT, values); 237 values.put(RawContacts.AGGREGATION_MODE, mode); 238 return buildOper(RawContacts.CONTENT_URI, TYPE_UPDATE, values) [all...] |
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
EntitySet.java | 32 import android.provider.ContactsContract.RawContacts; 65 EntityIterator iterator = RawContacts.newEntityIterator(resolver.query( 176 * {@link RawContacts} together. 210 Long rawContactId1 = get(index1).getValues().getAsLong(RawContacts._ID); 217 Long rawContactId2 = get(index2).getValues().getAsLong(RawContacts._ID); 228 * existing {@link RawContacts#_ID} value. Usually used when creating 233 final Long rawContactId = delta.getValues().getAsLong(RawContacts._ID); 242 * Find {@link RawContacts#_ID} of the requested {@link EntityDelta}. 249 return values.getAsLong(RawContacts._ID); 261 * Find index of given {@link RawContacts#_ID} when present [all...] |
ContactLoader.java | 21 import android.provider.ContactsContract.RawContacts; 29 * Loads a single Contact and all it constituent RawContacts. 117 cursor = resolver.query(RawContactsEntity.CONTENT_URI, null, RawContacts.CONTACT_ID 121 EntityIterator iterator = RawContacts.newEntityIterator(cursor);
|
/packages/apps/Contacts/src/com/android/contacts/ |
ContactLoader.java | 53 import android.provider.ContactsContract.RawContacts; 71 * Loads a single Contact and all it constituent RawContacts. 507 RawContacts.ACCOUNT_NAME, 508 RawContacts.ACCOUNT_TYPE, 509 RawContacts.DATA_SET, 510 RawContacts.ACCOUNT_TYPE_AND_DATA_SET, 511 RawContacts.DIRTY, 512 RawContacts.VERSION, 513 RawContacts.SOURCE_ID, 514 RawContacts.SYNC1 [all...] |
ContactSaveService.java | 51 import android.provider.ContactsContract.RawContacts; 239 operations.add(ContentProviderOperation.newInsert(RawContacts.CONTENT_URI) 240 .withValue(RawContacts.ACCOUNT_NAME, accountName) 241 .withValue(RawContacts.ACCOUNT_TYPE, accountType) 242 .withValue(RawContacts.DATA_SET, dataSet) 264 callbackIntent.setData(RawContacts.getContactLookupUri(resolver, rawContactUri)); 297 // Trim any empty fields, and RawContacts, before persisting 344 final Uri rawContactUri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, 346 lookupUri = RawContacts.getContactLookupUri(resolver, rawContactUri); 363 final StringBuilder sb = new StringBuilder(RawContacts._ID + " IN(") [all...] |
/packages/experimental/LoaderApp/src/com/android/loaderapp/util/ |
ContactsUtils.java | 32 import android.provider.ContactsContract.RawContacts; 277 contactIdCursor = cr.query(RawContacts.CONTENT_URI, 278 new String[] {RawContacts.CONTACT_ID}, 279 RawContacts._ID + "=" + rawContactId, null, null); 319 rawContactIdCursor = cr.query(RawContacts.CONTENT_URI, 320 new String[] {RawContacts._ID}, 321 RawContacts.CONTACT_ID + "=" + contactId, null, null); 338 rawContactIdCursor = cr.query(RawContacts.CONTENT_URI, 339 new String[] {RawContacts._ID}, 340 RawContacts.CONTACT_ID + "=" + contactId, null, null) [all...] |
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/ |
ContactOperations.java | 33 import android.provider.ContactsContract.RawContacts; 105 mValues.put(RawContacts.SOURCE_ID, userId); 106 mValues.put(RawContacts.ACCOUNT_TYPE, Constants.ACCOUNT_TYPE); 107 mValues.put(RawContacts.ACCOUNT_NAME, accountName); 109 newInsertCpo(RawContacts.CONTENT_URI, mIsSyncOperation, true).withValues(mValues); 245 mValues.put(RawContacts.SOURCE_ID, serverId); 309 mValues.put(RawContacts.DIRTY, isDirtyValue);
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
ContactEditorFragment.java | 73 import android.provider.ContactsContract.RawContacts; 454 String type = entityValues.getAsString(RawContacts.ACCOUNT_TYPE); 455 String dataSet = entityValues.getAsString(RawContacts.DATA_SET); 461 String name = entityValues.getAsString(RawContacts.ACCOUNT_NAME); 462 long rawContactId = entityValues.getAsLong(RawContacts.Entity._ID); 465 ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId), 496 if (state.getValues().getAsString(RawContacts.ACCOUNT_TYPE) == null) { 503 values.putNull(RawContacts.ACCOUNT_NAME); 504 values.putNull(RawContacts.ACCOUNT_TYPE); 505 values.putNull(RawContacts.DATA_SET) [all...] |
RawContactEditorView.java | 38 import android.provider.ContactsContract.RawContacts; 177 mRawContactId = values.getAsLong(RawContacts._ID); 181 String accountName = values.getAsString(RawContacts.ACCOUNT_NAME); 192 String accountName = values.getAsString(RawContacts.ACCOUNT_NAME); 364 String accountType = mState.getValues().getAsString(RawContacts.ACCOUNT_TYPE); 365 String accountName = mState.getValues().getAsString(RawContacts.ACCOUNT_NAME); 366 String accountDataSet = mState.getValues().getAsString(RawContacts.DATA_SET);
|
RawContactReadOnlyEditorView.java | 36 import android.provider.ContactsContract.RawContacts; 131 mAccountName = values.getAsString(RawContacts.ACCOUNT_NAME); 132 mAccountType = values.getAsString(RawContacts.ACCOUNT_TYPE); 133 mDataSet = values.getAsString(RawContacts.DATA_SET); 168 mRawContactId = values.getAsLong(RawContacts._ID); 293 ContentUris.withAppendedId(RawContacts.CONTENT_URI, mRawContactId));
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
ContactsActor.java | 53 import android.provider.ContactsContract.RawContacts; 347 Uri rawContactUri = resolver.insert(RawContacts.CONTENT_URI, values); 367 Uri insertUri = Uri.withAppendedPath(ContentUris.withAppendedId(RawContacts.CONTENT_URI, 368 contactId), RawContacts.Data.CONTENT_DIRECTORY); 383 Uri insertUri = Uri.withAppendedPath(ContentUris.withAppendedId(RawContacts.CONTENT_URI, 384 contactId), RawContacts.Data.CONTENT_DIRECTORY); 398 Uri insertUri = Uri.withAppendedPath(ContentUris.withAppendedId(RawContacts.CONTENT_URI, 399 contactId), RawContacts.Data.CONTENT_DIRECTORY); 419 Uri contactUri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId); 444 Uri contactUri = Uri.withAppendedPath(ContentUris.withAppendedId(RawContacts.CONTENT_URI [all...] |
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
ImportTestProvider.java | 23 import android.provider.ContactsContract.RawContacts; 68 Uri uri = Uri.withAppendedPath(RawContacts.CONTENT_URI, String.valueOf(i)); 82 if (uri.equals(RawContacts.CONTENT_URI)) { 83 TestCase.assertNull(actualContentValues.get(RawContacts.ACCOUNT_NAME)); 84 TestCase.assertNull(actualContentValues.get(RawContacts.ACCOUNT_TYPE));
|
ExportTestProvider.java | 26 import android.provider.ContactsContract.RawContacts; 103 TestCase.assertTrue(RawContacts.CONTENT_URI.getAuthority().equals(authority));
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
EntityDeltaList.java | 29 import android.provider.ContactsContract.RawContacts; 69 final EntityIterator iterator = RawContacts.newEntityIterator(resolver.query( 207 * {@link RawContacts} together. 241 Long rawContactId1 = get(index1).getValues().getAsLong(RawContacts._ID); 251 Long rawContactId2 = get(index2).getValues().getAsLong(RawContacts._ID); 266 * existing {@link RawContacts#_ID} value. Usually used when creating 271 final Long rawContactId = delta.getValues().getAsLong(RawContacts._ID); 280 * Find {@link RawContacts#_ID} of the requested {@link EntityDelta}. 287 return values.getAsLong(RawContacts._ID); 299 * Find index of given {@link RawContacts#_ID} when present [all...] |
EntityDelta.java | 35 import android.provider.ContactsContract.RawContacts; 51 * empty {@link Entity}, which then becomes an insert {@link RawContacts} case. 73 private Uri mContactsQueryUri = RawContacts.CONTENT_URI; 95 entity.mValues.setIdColumn(RawContacts._ID); 118 .getAsLong(RawContacts.VERSION); 119 final Long remoteVersion = remote.mValues.getAsLong(RawContacts.VERSION); 373 final Long beforeVersion = mValues.getAsLong(RawContacts.VERSION); 378 builder.withSelection(RawContacts._ID + "=" + beforeId, null); 379 builder.withValue(RawContacts.VERSION, beforeVersion); 404 mValues.put(RawContacts.AGGREGATION_MODE, RawContacts.AGGREGATION_MODE_SUSPENDED) [all...] |
/packages/apps/Contacts/src/com/android/contacts/activities/ |
ConfirmAddDetailActivity.java | 60 import android.provider.ContactsContract.RawContacts; 157 RawContacts.CONTACT_ID, 338 ExtraInfoQuery.COLUMNS, RawContacts.CONTACT_ID + " = ?", 370 mSelection = RawContacts.CONTACT_ID + "=?"; 371 } else if (RawContacts.CONTENT_ITEM_TYPE.equals(mimeType)) { 375 mSelection = RawContacts.CONTACT_ID + "=?"; 394 contactIdCursor = resolver.query(RawContacts.CONTENT_URI, 395 new String[] { RawContacts.CONTACT_ID }, 396 RawContacts._ID + "=?", new String[] { String.valueOf(rawContactId) }, 559 final String accountType = state.getValues().getAsString(RawContacts.ACCOUNT_TYPE) [all...] |
ContactEditorActivity.java | 38 import android.provider.ContactsContract.RawContacts; 198 intent.putExtra(RawContacts.ACCOUNT_NAME, account.name); 199 intent.putExtra(RawContacts.ACCOUNT_TYPE, account.type); 200 intent.putExtra(RawContacts.DATA_SET, account.dataSet);
|
ShowOrCreateActivity.java | 38 import android.provider.ContactsContract.RawContacts; 193 Intent createIntent = new Intent(Intent.ACTION_INSERT, RawContacts.CONTENT_URI); 195 createIntent.setType(RawContacts.CONTENT_TYPE); 213 createIntent.setType(RawContacts.CONTENT_ITEM_TYPE);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
LegacyContactImporter.java | 37 import android.provider.ContactsContract.RawContacts; 392 RawContacts._ID + "," + 393 RawContacts.CONTACT_ID + "," + 394 RawContacts.CUSTOM_RINGTONE + "," + 395 RawContacts.DIRTY + "," + 396 RawContacts.LAST_TIME_CONTACTED + "," + 397 RawContacts.SEND_TO_VOICEMAIL + "," + 398 RawContacts.STARRED + "," + 399 RawContacts.TIMES_CONTACTED + "," + 400 RawContacts.SYNC1 + "," [all...] |
LegacyApiSupport.java | 61 import android.provider.ContactsContract.RawContacts; 200 + RawContacts.LAST_TIME_CONTACTED + "=? WHERE " 201 + RawContacts._ID + "=?"; 566 RawContacts.ACCOUNT_NAME + ", " + 567 RawContacts.ACCOUNT_TYPE + ", " + 568 Tables.RAW_CONTACTS + "." + RawContacts.TIMES_CONTACTED 570 Tables.RAW_CONTACTS + "." + RawContacts.LAST_TIME_CONTACTED 572 Tables.RAW_CONTACTS + "." + RawContacts.CUSTOM_RINGTONE 574 Tables.RAW_CONTACTS + "." + RawContacts.SEND_TO_VOICEMAIL 576 Tables.RAW_CONTACTS + "." + RawContacts.STARRE [all...] |
SocialProvider.java | 35 import android.provider.ContactsContract.RawContacts; 94 columns.put(RawContacts._ID, Tables.RAW_CONTACTS + "." + RawContacts._ID + " AS _id"); 95 columns.put(RawContacts.CONTACT_ID, RawContacts.CONTACT_ID); 363 + " FROM " + Tables.RAW_CONTACTS + " WHERE " + RawContacts.CONTACT_ID + "="
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
PhoneNumberListAdapter.java | 31 import android.provider.ContactsContract.RawContacts; 149 selection.append(RawContacts.ACCOUNT_TYPE + "=?" 150 + " AND " + RawContacts.ACCOUNT_NAME + "=?"); 154 selection.append(" AND " + RawContacts.DATA_SET + "=?"); 157 selection.append(" AND " + RawContacts.DATA_SET + " IS NULL");
|
/packages/apps/Exchange/src/com/android/exchange/adapter/ |
ContactsSyncAdapter.java | 54 import android.provider.ContactsContract.RawContacts; 76 private static final String SERVER_ID_SELECTION = RawContacts.SOURCE_ID + "=?"; 77 private static final String CLIENT_ID_SELECTION = RawContacts.SYNC1 + "=?"; 78 private static final String[] ID_PROJECTION = new String[] {RawContacts._ID}; 136 mAccountUri = uriWithAccountAndIsSyncAdapter(RawContacts.CONTENT_URI); 759 RawContacts.CONTENT_URI, c.getLong(0)); 761 uri, RawContacts.Entity.CONTENT_DIRECTORY); 762 EntityIterator entityIterator = RawContacts.newEntityIterator( [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/ |
AllIntentsActivity.java | 45 import android.provider.ContactsContract.RawContacts; 364 final Uri uri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId); 398 startActivity(new Intent(Intent.ACTION_INSERT, RawContacts.CONTENT_URI)); 439 final Uri uri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId); 617 final Cursor cursor = getContentResolver().query(RawContacts.CONTENT_URI, 618 new String[] { RawContacts._ID }, 619 RawContacts.CONTACT_ID + "=?", 621 RawContacts._ID + " LIMIT 1");
|
/packages/apps/Contacts/tests/src/com/android/contacts/interactions/ |
PhoneNumberInteractionTest.java | 34 import android.provider.ContactsContract.RawContacts; 224 RawContacts.ACCOUNT_TYPE, 225 RawContacts.DATA_SET,
|