/cts/tests/tests/provider/src/android/provider/cts/ |
ContactsContract_IsSuperPrimaryName.java | 28 import android.provider.ContactsContract.RawContacts; 73 .with(RawContacts.ACCOUNT_TYPE, "test_account") 74 .with(RawContacts.ACCOUNT_NAME, "test_name") 84 .with(RawContacts.ACCOUNT_TYPE, "test_account") 85 .with(RawContacts.ACCOUNT_NAME, "test_name") 134 .with(RawContacts.ACCOUNT_TYPE, "test_account") 135 .with(RawContacts.ACCOUNT_NAME, "test_name") 145 .with(RawContacts.ACCOUNT_TYPE, "test_account") 146 .with(RawContacts.ACCOUNT_NAME, "test_name")
|
ContactsContract_AggregationSuggestionsTest.java | 28 import android.provider.ContactsContract.RawContacts; 162 .with(RawContacts.ACCOUNT_TYPE, "test_account") 163 .with(RawContacts.ACCOUNT_NAME, "test_name") 172 .with(RawContacts.ACCOUNT_TYPE, "test_account") 173 .with(RawContacts.ACCOUNT_NAME, "test_name") 182 .with(RawContacts.ACCOUNT_TYPE, "test_account") 183 .with(RawContacts.ACCOUNT_NAME, "test_name")
|
ContactsContract_PhoneLookup.java | 30 import android.provider.ContactsContract.RawContacts; 76 .with(RawContacts.ACCOUNT_TYPE, "test_account") 77 .with(RawContacts.ACCOUNT_NAME, "test_name") 90 .with(RawContacts.ACCOUNT_TYPE, "test_account") 91 .with(RawContacts.ACCOUNT_NAME, "test_name") 105 .with(RawContacts.ACCOUNT_TYPE, "test_account") 106 .with(RawContacts.ACCOUNT_NAME, "test_name")
|
ContactsContract_SearchSnippetsTest.java | 31 import android.provider.ContactsContract.RawContacts; 218 .with(RawContacts.ACCOUNT_TYPE, "test_account") 219 .with(RawContacts.ACCOUNT_NAME, "test_name") 232 .with(RawContacts.ACCOUNT_TYPE, "test_account") 233 .with(RawContacts.ACCOUNT_NAME, "test_name") 251 .with(RawContacts.ACCOUNT_TYPE, "test_account") 252 .with(RawContacts.ACCOUNT_NAME, "test_name")
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
RawContactUtil.java | 30 * Convenience methods for operating on the RawContacts table. 34 private static final Uri URI = ContactsContract.RawContacts.CONTENT_URI; 58 values.put(ContactsContract.RawContacts.ACCOUNT_NAME, account.name); 59 values.put(ContactsContract.RawContacts.ACCOUNT_TYPE, account.type); 94 ContactsContract.RawContacts.CONTACT_ID
|
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/ |
ContactManager.java | 38 import android.provider.ContactsContract.RawContacts; 100 * @param rawContacts The list of contacts to update 106 List<RawContact> rawContacts, long groupId, long lastSyncMarker) { 114 for (final RawContact rawContact : rawContacts) { 128 // row for this contact so that the RawContacts.SOURCE_ID value 226 * @param rawContacts The list of users we want to update 228 public static void updateStatusMessages(Context context, List<RawContact> rawContacts) { 231 for (RawContact rawContact : rawContacts) { 415 Uri uri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId); 442 values.put(RawContacts.ACCOUNT_NAME, account.name) [all...] |
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/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
ContactsProvider2Test.java | 64 import android.provider.ContactsContract.RawContacts; 356 assertProjection(RawContacts.CONTENT_URI, new String[]{ 357 RawContacts._ID, 358 RawContacts.CONTACT_ID, 359 RawContacts.ACCOUNT_NAME, 360 RawContacts.ACCOUNT_TYPE, 361 RawContacts.DATA_SET, 362 RawContacts.ACCOUNT_TYPE_AND_DATA_SET, 363 RawContacts.SOURCE_ID, 364 RawContacts.BACKUP_ID [all...] |
ContactMetadataProviderTest.java | 26 import android.provider.ContactsContract.RawContacts; 179 Uri rawContactUri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId); 181 values.put(RawContacts.BACKUP_ID, backupId); 184 assertStoredValue(rawContactUri, RawContacts._ID, rawContactId); 185 assertStoredValue(rawContactUri, RawContacts.ACCOUNT_TYPE, TEST_ACCOUNT_TYPE1); 186 assertStoredValue(rawContactUri, RawContacts.ACCOUNT_NAME, TEST_ACCOUNT_NAME1); 187 assertStoredValue(rawContactUri, RawContacts.BACKUP_ID, backupId); 188 assertStoredValue(rawContactUri, RawContacts.DATA_SET, TEST_DATA_SET1); 220 assertStoredValue(rawContactUri, RawContacts.ACCOUNT_TYPE, TEST_ACCOUNT_TYPE1); 221 assertStoredValue(rawContactUri, RawContacts.ACCOUNT_NAME, TEST_ACCOUNT_NAME1) [all...] |
ContactsDatabaseHelperUpgradeTest.java | 33 import android.provider.ContactsContract.RawContacts; 191 new TableColumn(RawContacts._ID, INTEGER, false, null), 193 new TableColumn(RawContacts.SOURCE_ID, TEXT, false, null), 194 new TableColumn(RawContacts.BACKUP_ID, TEXT, false, null), 195 new TableColumn(RawContacts.RAW_CONTACT_IS_READ_ONLY, INTEGER, true, "0"), 196 new TableColumn(RawContacts.VERSION, INTEGER, true, "1"), 197 new TableColumn(RawContacts.DIRTY, INTEGER, true, "0"), 198 new TableColumn(RawContacts.DELETED, INTEGER, true, "0"), 199 new TableColumn(RawContacts.METADATA_DIRTY, INTEGER, true, "0"), 200 new TableColumn(RawContacts.CONTACT_ID, INTEGER, false, null) [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/ |
AbstractContactAggregator.java | 67 import android.provider.ContactsContract.RawContacts; 114 " WHERE " + RawContacts.CONTACT_ID + "=?" + 310 "SELECT COUNT(" + RawContacts._ID + ")" + 312 " WHERE " + RawContacts.CONTACT_ID + "=?" 313 + " AND " + RawContacts._ID + "<>?"); 322 " WHERE " + RawContacts._ID + "=?" 341 + Contacts.STARRED + "=(SELECT (CASE WHEN COUNT(" + RawContacts.STARRED 343 + RawContacts.CONTACT_ID + "=" + ContactsColumns.CONCRETE_ID + " AND " 344 + RawContacts.STARRED + "=1)" + " WHERE " + Contacts._ID + "=?"); 348 + RawContacts.SEND_TO_VOICEMAIL + ") FROM " + Tables.RAW_CONTACT [all...] |
ContactAggregator2.java | 32 import android.provider.ContactsContract.RawContacts; 106 int aggregationMode = RawContacts.AGGREGATION_MODE_DEFAULT; 115 if (aggregationMode == RawContacts.AGGREGATION_MODE_DEFAULT) { 124 } else if (aggregationMode == RawContacts.AGGREGATION_MODE_DISABLED) { 157 || aggregationMode == RawContacts.AGGREGATION_MODE_SUSPENDED)) { 192 final String sql = "SELECT " + RawContacts._ID + " FROM " + Tables.RAW_CONTACTS + 194 " AND " + RawContacts._ID + "=?"; 402 Tables.RAW_CONTACTS + " WHERE " + RawContacts.CONTACT_ID + "=? AND " + 403 RawContacts.DELETED + "=0"; 427 final String rawContacts = TextUtils.join(",", component) [all...] |
ContactAggregator.java | 26 import android.provider.ContactsContract.RawContacts; 87 int aggregationMode = RawContacts.AGGREGATION_MODE_DEFAULT; 100 if (aggregationMode == RawContacts.AGGREGATION_MODE_DEFAULT) { 126 "SELECT " + RawContacts._ID + ", " + RawContactsColumns.ACCOUNT_ID + 128 " WHERE " + RawContacts.CONTACT_ID + "=?" + 129 " AND " + RawContacts._ID + "!=?", 165 } else if (aggregationMode == RawContacts.AGGREGATION_MODE_DISABLED) { 184 || aggregationMode == RawContacts.AGGREGATION_MODE_SUSPENDED)) { 261 Data.RAW_CONTACT_ID + " IN (SELECT " + RawContacts._ID + " FROM " + 262 Tables.RAW_CONTACTS + " WHERE " + RawContacts.CONTACT_ID + "=?1)) AS a" [all...] |
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
EntityDelta.java | 33 import android.provider.ContactsContract.RawContacts; 49 * empty {@link Entity}, which then becomes an insert {@link RawContacts} case. 87 entity.mValues.setIdColumn(RawContacts._ID); 110 .getAsLong(RawContacts.VERSION); 111 final Long remoteVersion = remote.mValues.getAsLong(RawContacts.VERSION); 353 final Long beforeVersion = mValues.getAsLong(RawContacts.VERSION); 357 .newAssertQuery(RawContacts.CONTENT_URI); 358 builder.withSelection(RawContacts._ID + "=" + beforeId, null); 359 builder.withValue(RawContacts.VERSION, beforeVersion); 384 mValues.put(RawContacts.AGGREGATION_MODE, RawContacts.AGGREGATION_MODE_SUSPENDED) [all...] |
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...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/ |
PhonebookPullRequest.java | 16 import android.provider.ContactsContract.RawContacts; 97 Uri uri = RawContacts.CONTENT_URI.buildUpon() 98 .appendQueryParameter(RawContacts.ACCOUNT_NAME, mAccount.name) 99 .appendQueryParameter(RawContacts.ACCOUNT_TYPE, mAccount.type) 103 new String[] { RawContacts._ID }, 131 ops.add(ContentProviderOperation.newInsert(RawContacts.CONTENT_URI) 132 .withValue(RawContacts.ACCOUNT_TYPE, mAccount.type) 133 .withValue(RawContacts.ACCOUNT_NAME, mAccount.name) 174 ops.add(ContentProviderOperation.newDelete(RawContacts.CONTENT_URI.buildUpon() 177 .withSelection(RawContacts._ID + "=?", new String[] { e.id } [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
AccountImageHelper.java | 27 import android.provider.ContactsContract.RawContacts; 99 final Uri uri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, 104 intent.setDataAndType(uri, RawContacts.CONTENT_ITEM_TYPE);
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/ |
ContactLoaderTest.java | 27 import android.provider.ContactsContract.RawContacts; 143 RawContacts.CONTENT_URI, RAW_CONTACT_ID); 173 RawContacts.CONTENT_URI, RAW_CONTACT_ID); 181 mContactsProvider.expectTypeQuery(rawContactUri, RawContacts.CONTENT_ITEM_TYPE); 325 RawContacts.ACCOUNT_NAME, RawContacts.ACCOUNT_TYPE, 326 RawContacts.DATA_SET, 327 RawContacts.DIRTY, RawContacts.VERSION, RawContacts.SOURCE_ID [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
ContactsProvider2.java | 103 import android.provider.ContactsContract.RawContacts; 236 "UPDATE " + Tables.RAW_CONTACTS + " SET " + RawContacts.TIMES_CONTACTED + "=" + 237 " ifnull(" + RawContacts.TIMES_CONTACTED + ",0)+1 " + 238 " WHERE " + RawContacts.CONTACT_ID + "=?"; 504 "SELECT " + RawContacts.STARRED 505 + " FROM " + Tables.RAW_CONTACTS + " WHERE " + RawContacts._ID + "=?"; 536 RawContacts.DELETED, 555 + "(SELECT " + RawContacts.CONTACT_ID 569 " SET " + RawContacts.DIRTY + "=1" + 570 " WHERE " + RawContacts._ID + " IN (" [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/ |
AccountWithDataSet.java | 27 import android.provider.ContactsContract.RawContacts; 55 private static final Uri RAW_CONTACTS_URI_LIMIT_1 = RawContacts.CONTENT_URI.buildUpon() 119 RawContacts.ACCOUNT_TYPE + " = ?" + " AND " + RawContacts.ACCOUNT_NAME + " = ?"; 123 selection = BASE_SELECTION + " AND " + RawContacts.DATA_SET + " IS NULL"; 126 selection = BASE_SELECTION + " AND " + RawContacts.DATA_SET + " = ?";
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/ |
RawContactDeltaListTests.java | 28 import android.provider.ContactsContract.RawContacts; 112 after.put(RawContacts.ACCOUNT_NAME, RawContactDeltaTests.TEST_ACCOUNT_NAME); 113 after.put(RawContacts.SEND_TO_VOICEMAIL, 1); 129 contact.put(RawContacts.VERSION, version); 130 contact.put(RawContacts._ID, rawContactId); 141 contact.put(RawContacts.ACCOUNT_TYPE, TEST_ACCOUNT); 238 values.put(RawContacts.VERSION, version); 239 return buildCPOWrapper(RawContacts.CONTENT_URI, TYPE_ASSERT, values); 244 values.put(RawContacts.AGGREGATION_MODE, mode); 245 return buildCPOWrapper(RawContacts.CONTENT_URI, TYPE_UPDATE, values) [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...] |
/packages/apps/Contacts/src/com/android/contacts/interactions/ |
ContactMultiDeletionInteraction.java | 38 import android.provider.ContactsContract.RawContacts; 63 RawContacts._ID, 64 RawContacts.ACCOUNT_TYPE, 65 RawContacts.DATA_SET, 66 RawContacts.CONTACT_ID, 165 builder.append(RawContacts.CONTACT_ID + " =?"); 171 return new CursorLoader(mContext, RawContacts.CONTENT_URI, RAW_CONTACT_PROJECTION,
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/ |
ContactAggregator2Test.java | 34 import android.provider.ContactsContract.RawContacts; [all...] |
ContactAggregatorTest.java | 34 import android.provider.ContactsContract.RawContacts; [all...] |