/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
ContactLookupKeyTest.java | 23 import android.provider.ContactsContract.RawContacts; 73 storeValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.SOURCE_ID, "123"); 76 storeValue(RawContacts.CONTENT_URI, rawContactId2, RawContacts.SOURCE_ID, "4.5.6"); 79 storeValue(RawContacts.CONTENT_URI, rawContactId3, RawContacts.SOURCE_ID, "http://foo?bar"); 99 storeValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.ACCOUNT_TYPE, "foo"); 100 storeValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.ACCOUNT_NAME, "FOO") [all...] |
ContactsProvider2TransactionTest.java | 30 import android.provider.ContactsContract.RawContacts; 63 final ContentValues values = cv(RawContacts.LAST_TIME_CONTACTED, 12345); 67 mResolver.insert(RawContacts.CONTENT_URI, values); 90 final ContentValues values = cv(RawContacts.LAST_TIME_CONTACTED, 12345); 93 mResolver.insert(RawContacts.CONTENT_URI, values); 97 values.put(RawContacts.LAST_TIME_CONTACTED, 99999); 101 assertTrue(mResolver.update(RawContacts.CONTENT_URI, values, null, null) > 0); 124 final ContentValues values = cv(RawContacts.LAST_TIME_CONTACTED, 12345); 127 mResolver.insert(RawContacts.CONTENT_URI, values); 132 assertTrue(mResolver.delete(RawContacts.CONTENT_URI, null, null) > 0) [all...] |
CallerInfoIntegrationTest.java | 22 import android.provider.ContactsContract.RawContacts; 42 values.put(RawContacts.CUSTOM_RINGTONE, "ring"); 43 values.put(RawContacts.SEND_TO_VOICEMAIL, 1); 45 Uri rawContactUri = mResolver.insert(RawContacts.CONTENT_URI, values);
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
ContactLoaderUtils.java | 24 import android.provider.ContactsContract.RawContacts; 57 if (RawContacts.CONTENT_ITEM_TYPE.equals(type)) { 59 return RawContacts.getContactLookupUri(resolver, 60 ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId)); 72 return RawContacts.getContactLookupUri(resolver, 73 ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId));
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/tests/testauth/ |
TestSyncAdapter.java | 27 import android.provider.ContactsContract.RawContacts; 56 values.put(RawContacts.ACCOUNT_NAME, account.name); 57 values.put(RawContacts.ACCOUNT_TYPE, account.type); 58 final int count = cr.update(RawContacts.CONTENT_URI, values, 59 RawContacts.ACCOUNT_NAME + " IS NULL AND " + RawContacts.ACCOUNT_TYPE + " IS NULL",
|
/cts/tests/tests/provider/src/android/provider/cts/ |
ContactsContract_StreamItemsTest.java | 28 import android.provider.ContactsContract.RawContacts; 63 ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId).buildUpon() 64 .appendPath(RawContacts.StreamItems.CONTENT_DIRECTORY) 74 values.put(RawContacts.ACCOUNT_TYPE, ACCOUNT_TYPE); 75 values.put(RawContacts.ACCOUNT_NAME, ACCOUNT_NAME); 87 values.put(RawContacts.ACCOUNT_TYPE, ACCOUNT_TYPE); 88 values.put(RawContacts.ACCOUNT_NAME, ACCOUNT_NAME); 90 Uri contactUri = resolver.insert(RawContacts.CONTENT_URI, values); 99 values.put(RawContacts.ACCOUNT_TYPE, ACCOUNT_TYPE); 100 values.put(RawContacts.ACCOUNT_NAME, ACCOUNT_NAME) [all...] |
ContactsContract_GroupMembershipTest.java | 25 import android.provider.ContactsContract.RawContacts; 64 .with(RawContacts.ACCOUNT_TYPE, "test_type") 65 .with(RawContacts.ACCOUNT_NAME, "test_name") 84 .with(RawContacts.ACCOUNT_TYPE, "test_type") 85 .with(RawContacts.ACCOUNT_NAME, "test_name")
|
ContactsContract_RawContactsTest.java | 26 import android.provider.ContactsContract.RawContacts; 58 .with(RawContacts.ACCOUNT_TYPE, "test_type") 59 .with(RawContacts.ACCOUNT_NAME, "test_name") 60 .with(RawContacts.SOURCE_ID, "source_id") 69 Uri lookupUri = RawContacts.getContactLookupUri(mResolver, rawContact.getUri()); 79 .with(RawContacts.ACCOUNT_TYPE, "test_type") 80 .with(RawContacts.ACCOUNT_NAME, "test_name") 86 Uri lookupUri = RawContacts.getContactLookupUri(mResolver, rawContact.getUri()); 103 ContactsContract.RawContacts.CONTACT_ID, 104 ContactsContract.RawContacts.DELETE [all...] |
/cts/tests/tests/permission2/src/android/permission2/cts/ |
WriteSocialStreamPermissionTest.java | 23 import android.provider.ContactsContract.RawContacts; 41 ContentUris.withAppendedId(RawContacts.CONTENT_URI, 1337), 42 RawContacts.StreamItems.CONTENT_DIRECTORY), values);
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
ExportTestResolver.java | 18 import android.provider.ContactsContract.RawContacts; 27 addProvider(RawContacts.CONTENT_URI.getAuthority(), mProvider);
|
ImportTestResolver.java | 21 import android.provider.ContactsContract.RawContacts; 37 equalsString(authority, RawContacts.CONTENT_URI.toString());
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
RawContact.java | 27 import android.provider.ContactsContract.RawContacts; 200 return getValues().getAsLong(RawContacts._ID); 207 return getValues().getAsString(RawContacts.ACCOUNT_NAME); 214 return getValues().getAsString(RawContacts.ACCOUNT_TYPE); 221 return getValues().getAsString(RawContacts.DATA_SET); 228 return getValues().getAsString(RawContacts.ACCOUNT_TYPE_AND_DATA_SET); 232 return getValues().getAsBoolean(RawContacts.DIRTY); 236 return getValues().getAsString(RawContacts.SOURCE_ID); 240 return getValues().getAsString(RawContacts.SYNC1); 244 return getValues().getAsString(RawContacts.SYNC2) [all...] |
RawContactDelta.java | 29 import android.provider.ContactsContract.RawContacts; 48 * empty {@link RawContact}, which then becomes an insert {@link RawContacts} case. 70 private Uri mContactsQueryUri = RawContacts.CONTENT_URI; 92 rawContactDelta.mValues.setIdColumn(RawContacts._ID); 115 .getAsLong(RawContacts.VERSION); 116 final Long remoteVersion = remote.mValues.getAsLong(RawContacts.VERSION); 213 String type = entityValues.getAsString(RawContacts.ACCOUNT_TYPE); 214 String dataSet = entityValues.getAsString(RawContacts.DATA_SET); 219 return getValues().getAsLong(RawContacts._ID); 223 return getValues().getAsString(RawContacts.ACCOUNT_NAME) [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/database/ |
ContactsTableUtil.java | 97 + " SELECT " + ContactsContract.RawContacts.CONTACT_ID 99 + " WHERE " + ContactsContract.RawContacts._ID 124 final String sql = "select " + ContactsContract.RawContacts.CONTACT_ID + ", count(1)" 126 + " where " + ContactsContract.RawContacts.CONTACT_ID + " =" 127 + " (select " + ContactsContract.RawContacts.CONTACT_ID 129 + " where " + ContactsContract.RawContacts._ID + " = ?)" 130 + " group by " + ContactsContract.RawContacts.CONTACT_ID;
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/ |
AccountTypeWithDataSet.java | 24 import android.provider.ContactsContract.RawContacts; 36 private static final Uri RAW_CONTACTS_URI_LIMIT_1 = RawContacts.CONTENT_URI.buildUpon() 59 final String BASE_SELECTION = RawContacts.ACCOUNT_TYPE + " = ?"; 63 selection = BASE_SELECTION + " AND " + RawContacts.DATA_SET + " IS NULL"; 66 selection = BASE_SELECTION + " AND " + RawContacts.DATA_SET + " = ?";
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/ |
TestUtil.java | 49 .appendQueryParameter(ContactsContract.RawContacts.ACCOUNT_NAME, account.name) 50 .appendQueryParameter(ContactsContract.RawContacts.ACCOUNT_TYPE, account.type)
|
RawContactUtil.java | 31 * Convenience methods for operating on the RawContacts table. 35 private static final Uri URI = ContactsContract.RawContacts.CONTENT_URI; 45 Uri uri = ContentUris.withAppendedId(ContactsContract.RawContacts.CONTENT_URI, 58 Uri uri = ContentUris.withAppendedId(ContactsContract.RawContacts.CONTENT_URI, contactId); 65 Uri uri = ContentUris.withAppendedId(ContactsContract.RawContacts.CONTENT_URI, rawContactId) 74 ContactsContract.RawContacts.CONTACT_ID 93 final Uri uri = TestUtil.maybeAddAccountQueryParameters(ContactsContract.RawContacts.CONTENT_URI, account);
|
/packages/apps/Contacts/src/com/android/contacts/group/ |
SuggestedMemberListAdapter.java | 27 import android.provider.ContactsContract.RawContacts; 54 RawContacts._ID, // 0 55 RawContacts.CONTACT_ID, // 1 56 RawContacts.DISPLAY_NAME_PRIMARY // 2 64 RawContacts._ID, // 0 65 RawContacts.CONTACT_ID, // 1 186 String accountClause = RawContacts.ACCOUNT_NAME + "=? AND " + 187 RawContacts.ACCOUNT_TYPE + "=?"; 190 accountClause += " AND " + RawContacts.DATA_SET + " IS NULL"; 193 accountClause += " AND " + RawContacts.DATA_SET + "=?" [all...] |
/packages/apps/Exchange/src/com/android/exchange/service/ |
ContactsSyncAdapterService.java | 29 import android.provider.ContactsContract.RawContacts; 102 Uri uri = RawContacts.CONTENT_URI.buildUpon() 103 .appendQueryParameter(RawContacts.ACCOUNT_NAME, account.name) 104 .appendQueryParameter(RawContacts.ACCOUNT_TYPE, Eas.EXCHANGE_ACCOUNT_MANAGER_TYPE) 107 boolean changed = hasDirtyRows(cr, uri, RawContacts.DIRTY); 110 .appendQueryParameter(RawContacts.ACCOUNT_NAME, account.name) 111 .appendQueryParameter(RawContacts.ACCOUNT_TYPE,
|
/packages/apps/Contacts/tests/src/com/android/contacts/ |
RawContactDeltaTests.java | 31 import android.provider.ContactsContract.RawContacts; 71 contact.put(RawContacts.VERSION, 43); 72 contact.put(RawContacts._ID, contactId); 199 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); 209 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); 218 source.getValues().put(RawContacts.AGGREGATION_MODE, RawContacts.AGGREGATION_MODE_DISABLED); 239 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); 244 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); 254 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()) [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/tests/streamitems/ |
StreamItemPopulatorActivity.java | 28 import android.provider.ContactsContract.RawContacts; 171 Cursor c = getContentResolver().query(RawContacts.CONTENT_URI, 173 RawContacts._ID, 174 RawContacts.ACCOUNT_TYPE, 175 RawContacts.ACCOUNT_NAME 177 RawContacts.CONTACT_ID + "=? AND " + RawContacts.ACCOUNT_TYPE + "=?", 223 ContentUris.withAppendedId(ContactsContract.RawContacts.CONTENT_URI, 225 ContactsContract.RawContacts.StreamItems.CONTENT_DIRECTORY)) 281 values.put(RawContacts.ACCOUNT_TYPE, accountType) [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
ContactsDatabaseHelper.java | 67 import android.provider.ContactsContract.RawContacts; 310 + SettingsColumns.CONCRETE_ACCOUNT_TYPE + "," + RawContacts.CONTACT_ID; 326 final String OUTER_RAW_CONTACTS_ID = OUTER_RAW_CONTACTS + "." + RawContacts._ID; 341 " WHERE " + RawContacts.CONTACT_ID + "=" + ContactsColumns.CONCRETE_ID + 342 " GROUP BY " + RawContacts.CONTACT_ID; 387 Tables.RAW_CONTACTS + "." + RawContacts.SOURCE_ID; 389 Tables.RAW_CONTACTS + "." + RawContacts.VERSION; 391 Tables.RAW_CONTACTS + "." + RawContacts.DIRTY; 393 Tables.RAW_CONTACTS + "." + RawContacts.DELETED; 395 Tables.RAW_CONTACTS + "." + RawContacts.SYNC1 [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/ |
ContactAggregator.java | 37 import android.provider.ContactsContract.RawContacts; 114 " WHERE " + RawContacts.CONTACT_ID + "=?" + 303 "SELECT COUNT(" + RawContacts._ID + ")" + 305 " WHERE " + RawContacts.CONTACT_ID + "=?" 306 + " AND " + RawContacts._ID + "<>?"); 315 " WHERE " + RawContacts._ID + "=?" 334 + Contacts.STARRED + "=(SELECT (CASE WHEN COUNT(" + RawContacts.STARRED 336 + RawContacts.CONTACT_ID + "=" + ContactsColumns.CONCRETE_ID + " AND " 337 + RawContacts.STARRED + "=1)" + " WHERE " + Contacts._ID + "=?"); 340 + Contacts.PINNED + "=(SELECT MIN(" + RawContacts.PINNED + ") FROM [all...] |
/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
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/ |
ContactAggregatorTest.java | 34 import android.provider.ContactsContract.RawContacts; [all...] |