/cts/tests/tests/provider/src/android/provider/cts/ |
ContactsContract_RawContactsTest.java | 27 import android.provider.ContactsContract.RawContacts; 43 RawContacts._ID, 44 RawContacts.CONTACT_ID, 45 RawContacts.DELETED, 46 RawContacts.DISPLAY_NAME_PRIMARY, 47 RawContacts.DISPLAY_NAME_ALTERNATIVE, 48 RawContacts.DISPLAY_NAME_SOURCE, 49 RawContacts.PHONETIC_NAME, 50 RawContacts.PHONETIC_NAME_STYLE, 51 RawContacts.SORT_KEY_PRIMARY [all...] |
ContactsContract_PinnedPositionsTest.java | 32 import android.provider.ContactsContract.RawContacts; 78 assertValuesForRawContact(i1.mRawContactId, newContentValues(RawContacts.PINNED, unpinned)); 79 assertValuesForRawContact(i2.mRawContactId, newContentValues(RawContacts.PINNED, unpinned)); 80 assertValuesForRawContact(i3.mRawContactId, newContentValues(RawContacts.PINNED, unpinned)); 81 assertValuesForRawContact(i4.mRawContactId, newContentValues(RawContacts.PINNED, unpinned)); 100 assertValuesForRawContact(i1.mRawContactId, newContentValues(RawContacts.PINNED, 1)); 101 assertValuesForRawContact(i2.mRawContactId, newContentValues(RawContacts.PINNED, unpinned)); 102 assertValuesForRawContact(i3.mRawContactId, newContentValues(RawContacts.PINNED, 3)); 103 assertValuesForRawContact(i4.mRawContactId, newContentValues(RawContacts.PINNED, 2)); 121 newContentValues(RawContacts.PINNED, 1, RawContacts.STARRED, 1)) [all...] |
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_StructuredPhoneticName.java | 29 import android.provider.ContactsContract.RawContacts; 61 .with(RawContacts.ACCOUNT_TYPE, "test_account") 62 .with(RawContacts.ACCOUNT_NAME, "test_name") 85 .with(RawContacts.ACCOUNT_TYPE, "test_account") 86 .with(RawContacts.ACCOUNT_NAME, "test_name") 95 .with(RawContacts.ACCOUNT_TYPE, "test_account") 96 .with(RawContacts.ACCOUNT_NAME, "test_name") 122 .with(RawContacts.ACCOUNT_TYPE, "test_account") 123 .with(RawContacts.ACCOUNT_NAME, "test_name") 132 .with(RawContacts.ACCOUNT_TYPE, "test_account" [all...] |
ContactsContract_DataTest.java | 39 import android.provider.ContactsContract.RawContacts; 61 RawContacts.RAW_CONTACT_IS_USER_PROFILE, 95 RawContacts.ACCOUNT_NAME, 96 RawContacts.ACCOUNT_TYPE, 97 RawContacts.DATA_SET, 98 RawContacts.ACCOUNT_TYPE_AND_DATA_SET, 99 RawContacts.DIRTY, 100 RawContacts.SOURCE_ID, 101 RawContacts.VERSION, 211 .with(RawContacts.ACCOUNT_TYPE, "test_type" [all...] |
ContactsContract_ContactCountsTest.java | 30 import android.provider.ContactsContract.RawContacts; 118 .with(RawContacts.ACCOUNT_TYPE, "test_account") 119 .with(RawContacts.ACCOUNT_NAME, "test_name") 128 .with(RawContacts.ACCOUNT_TYPE, "test_account") 129 .with(RawContacts.ACCOUNT_NAME, "test_name") 138 .with(RawContacts.ACCOUNT_TYPE, "test_account") 139 .with(RawContacts.ACCOUNT_NAME, "test_name") 148 .with(RawContacts.ACCOUNT_TYPE, "test_account") 149 .with(RawContacts.ACCOUNT_NAME, "test_name") 158 .with(RawContacts.ACCOUNT_TYPE, "test_account" [all...] |
ContactsContract_ProviderStatus.java | 26 import android.provider.ContactsContract.RawContacts; 60 .with(RawContacts.ACCOUNT_TYPE, "test_account") 61 .with(RawContacts.ACCOUNT_NAME, "test_name")
|
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")
|
/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/ContactsCommon/src/com/android/contacts/common/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",
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/ |
TestUtil.java | 21 import android.provider.ContactsContract.RawContacts; 50 .appendQueryParameter(RawContacts.ACCOUNT_NAME, account.name) 51 .appendQueryParameter(RawContacts.ACCOUNT_TYPE, account.type) 61 .appendQueryParameter(RawContacts.ACCOUNT_NAME, account.getAccountName()) 62 .appendQueryParameter(RawContacts.ACCOUNT_TYPE, account.getAccountType()) 63 .appendQueryParameter(RawContacts.DATA_SET, account.getDataSet())
|
RawContactUtil.java | 32 * Convenience methods for operating on the RawContacts table. 36 private static final Uri URI = ContactsContract.RawContacts.CONTENT_URI; 46 Uri uri = ContentUris.withAppendedId(ContactsContract.RawContacts.CONTENT_URI, 59 Uri uri = ContentUris.withAppendedId(ContactsContract.RawContacts.CONTENT_URI, contactId); 66 Uri uri = ContentUris.withAppendedId(ContactsContract.RawContacts.CONTENT_URI, rawContactId) 75 ContactsContract.RawContacts.CONTACT_ID 95 ContactsContract.RawContacts.CONTENT_URI, account); 105 ContactsContract.RawContacts.CONTENT_URI, accountWithDataSet); 137 values.put(ContactsContract.RawContacts.BACKUP_ID, backupId); 138 final Uri uri = ContactsContract.RawContacts.CONTENT_UR [all...] |
/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/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/apps/ContactsCommon/src/com/android/contacts/common/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); 225 return getValues().getAsBoolean(RawContacts.DIRTY); 229 return getValues().getAsString(RawContacts.SOURCE_ID); 233 return getValues().getAsString(RawContacts.SYNC1); 237 return getValues().getAsString(RawContacts.SYNC2); 241 return getValues().getAsString(RawContacts.SYNC3) [all...] |
RawContactDelta.java | 29 import android.provider.ContactsContract.RawContacts; 51 * empty {@link RawContact}, which then becomes an insert {@link RawContacts} case. 73 private Uri mContactsQueryUri = RawContacts.CONTENT_URI; 95 rawContactDelta.mValues.setIdColumn(RawContacts._ID); 118 .getAsLong(RawContacts.VERSION); 119 final Long remoteVersion = remote.mValues.getAsLong(RawContacts.VERSION); 216 String type = entityValues.getAsString(RawContacts.ACCOUNT_TYPE); 217 String dataSet = entityValues.getAsString(RawContacts.DATA_SET); 222 return getValues().getAsLong(RawContacts._ID); 226 return getValues().getAsString(RawContacts.ACCOUNT_NAME) [all...] |
/packages/apps/Contacts/src/com/android/contacts/group/ |
SuggestedMemberListAdapter.java | 27 import android.provider.ContactsContract.RawContacts; 55 RawContacts._ID, // 0 56 RawContacts.CONTACT_ID, // 1 57 RawContacts.DISPLAY_NAME_PRIMARY // 2 65 RawContacts._ID, // 0 66 RawContacts.CONTACT_ID, // 1 188 String accountClause = RawContacts.ACCOUNT_NAME + "=? AND " + 189 RawContacts.ACCOUNT_TYPE + "=?"; 192 accountClause += " AND " + RawContacts.DATA_SET + " IS NULL"; 195 accountClause += " AND " + RawContacts.DATA_SET + "=?" [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
RawContactDeltaComparator.java | 25 import android.provider.ContactsContract.RawContacts; 48 String accountType1 = one.getValues().getAsString(RawContacts.ACCOUNT_TYPE); 49 String dataSet1 = one.getValues().getAsString(RawContacts.DATA_SET); 51 String accountType2 = two.getValues().getAsString(RawContacts.ACCOUNT_TYPE); 52 String dataSet2 = two.getValues().getAsString(RawContacts.DATA_SET);
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/ |
RawContactDeltaTests.java | 26 import android.provider.ContactsContract.RawContacts; 69 contact.put(RawContacts.VERSION, 43); 70 contact.put(RawContacts._ID, contactId); 200 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); 212 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); 221 source.getValues().put(RawContacts.AGGREGATION_MODE, RawContacts.AGGREGATION_MODE_DISABLED); 243 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); 249 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); 261 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()) [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
ContactsDatabaseHelper.java | 73 import android.provider.ContactsContract.RawContacts; 344 + SettingsColumns.CONCRETE_ACCOUNT_TYPE + "," + RawContacts.CONTACT_ID; 360 final String OUTER_RAW_CONTACTS_ID = OUTER_RAW_CONTACTS + "." + RawContacts._ID; 375 " WHERE " + RawContacts.CONTACT_ID + "=" + ContactsColumns.CONCRETE_ID + 376 " GROUP BY " + RawContacts.CONTACT_ID; 426 Tables.RAW_CONTACTS + "." + RawContacts.SOURCE_ID; 428 Tables.RAW_CONTACTS + "." + RawContacts.BACKUP_ID; 430 Tables.RAW_CONTACTS + "." + RawContacts.VERSION; 432 Tables.RAW_CONTACTS + "." + RawContacts.DIRTY; 434 Tables.RAW_CONTACTS + "." + RawContacts.DELETED [all...] |