HomeSort by relevance Sort by last modified time
    Searched refs:RawContacts (Results 1 - 25 of 150) sorted by null

1 2 3 4 5 6

  /cts/tests/tests/provider/src/android/provider/cts/contacts/
ContactsContract_RawContactsTest.java 26 import android.provider.ContactsContract.RawContacts;
38 RawContacts._ID,
39 RawContacts.CONTACT_ID,
40 RawContacts.DELETED,
41 RawContacts.DISPLAY_NAME_PRIMARY,
42 RawContacts.DISPLAY_NAME_ALTERNATIVE,
43 RawContacts.DISPLAY_NAME_SOURCE,
44 RawContacts.PHONETIC_NAME,
45 RawContacts.PHONETIC_NAME_STYLE,
46 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;
60 .with(RawContacts.ACCOUNT_TYPE, "test_account")
61 .with(RawContacts.ACCOUNT_NAME, "test_name")
84 .with(RawContacts.ACCOUNT_TYPE, "test_account")
85 .with(RawContacts.ACCOUNT_NAME, "test_name")
94 .with(RawContacts.ACCOUNT_TYPE, "test_account")
95 .with(RawContacts.ACCOUNT_NAME, "test_name")
121 .with(RawContacts.ACCOUNT_TYPE, "test_account")
122 .with(RawContacts.ACCOUNT_NAME, "test_name")
131 .with(RawContacts.ACCOUNT_TYPE, "test_account"
    [all...]
ContactsContract_DataTest.java 40 import android.provider.ContactsContract.RawContacts;
58 RawContacts.RAW_CONTACT_IS_USER_PROFILE,
92 RawContacts.ACCOUNT_NAME,
93 RawContacts.ACCOUNT_TYPE,
94 RawContacts.DATA_SET,
95 RawContacts.ACCOUNT_TYPE_AND_DATA_SET,
96 RawContacts.DIRTY,
97 RawContacts.SOURCE_ID,
98 RawContacts.VERSION,
208 .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;
59 .with(RawContacts.ACCOUNT_TYPE, "test_account")
60 .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, 86400);
67 mResolver.insert(RawContacts.CONTENT_URI, values);
90 final ContentValues values = cv(RawContacts.LAST_TIME_CONTACTED, 86400);
93 mResolver.insert(RawContacts.CONTENT_URI, values);
97 values.put(RawContacts.LAST_TIME_CONTACTED, 86400 * 2);
101 assertTrue(mResolver.update(RawContacts.CONTENT_URI, values, null, null) > 0);
124 final ContentValues values = cv(RawContacts.LAST_TIME_CONTACTED, 86400);
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/Dialer/java/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(
60 resolver, ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId));
72 return RawContacts.getContactLookupUri(
73 resolver, ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId));
  /packages/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/
TestUtil.java 21 import android.provider.ContactsContract.RawContacts;
49 .appendQueryParameter(RawContacts.ACCOUNT_NAME, account.name)
50 .appendQueryParameter(RawContacts.ACCOUNT_TYPE, account.type)
60 .appendQueryParameter(RawContacts.ACCOUNT_NAME, accountName)
61 .appendQueryParameter(RawContacts.ACCOUNT_TYPE, accountType)
62 .appendQueryParameter(RawContacts.DATA_SET, dataSet)
RawContactUtil.java 30 * Convenience methods for operating on the RawContacts table.
34 private static final Uri URI = ContactsContract.RawContacts.CONTENT_URI;
44 Uri uri = ContentUris.withAppendedId(ContactsContract.RawContacts.CONTENT_URI,
52 Uri uri = ContentUris.withAppendedId(ContactsContract.RawContacts.CONTENT_URI, rawContactId)
61 ContactsContract.RawContacts.CONTACT_ID
81 ContactsContract.RawContacts.CONTENT_URI, account);
91 ContactsContract.RawContacts.CONTENT_URI, accountName, accountType, dataSet);
123 values.put(ContactsContract.RawContacts.BACKUP_ID, backupId);
124 final Uri uri = ContactsContract.RawContacts.CONTENT_URI
126 .appendQueryParameter(ContactsContract.RawContacts.ACCOUNT_NAME
    [all...]
  /packages/apps/Contacts/tests/src/com/android/contacts/tests/testauth/
TestSyncAdapter.java 30 import android.provider.ContactsContract.RawContacts;
64 final Cursor cursor = contentResolver.query(RawContacts.CONTENT_URI,
65 new String[] { RawContacts._ID },
66 RawContacts.ACCOUNT_NAME + " IS NULL AND " + RawContacts.ACCOUNT_TYPE + " IS NULL",
73 ops.add(ContentProviderOperation.newUpdate(RawContacts.CONTENT_URI)
74 .withValue(RawContacts.ACCOUNT_NAME, account.name)
75 .withValue(RawContacts.ACCOUNT_TYPE, account.type)
76 .withSelection(RawContacts._ID+"=?", new String[] { rawContactId })
  /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/Contacts/src/com/android/contacts/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 + " = ?";
AccountWithDataSet.java 28 import android.provider.ContactsContract.RawContacts;
58 private static final Uri RAW_CONTACTS_URI_LIMIT_1 = RawContacts.CONTENT_URI.buildUpon()
61 public static final String LOCAL_ACCOUNT_SELECTION = RawContacts.ACCOUNT_TYPE + " IS NULL AND "
62 + RawContacts.ACCOUNT_NAME + " IS NULL AND "
63 + RawContacts.DATA_SET + " IS NULL";
134 RawContacts.ACCOUNT_TYPE + " = ?" + " AND " + RawContacts.ACCOUNT_NAME + " = ?";
136 selection = BASE_SELECTION + " AND " + RawContacts.DATA_SET + " IS NULL";
139 selection = BASE_SELECTION + " AND " + RawContacts.DATA_SET + " = ?";
143 selection += " AND " + RawContacts.DELETED + "=0"
    [all...]
  /packages/apps/Dialer/java/com/android/contacts/common/model/account/
AccountTypeWithDataSet.java 24 import android.provider.ContactsContract.RawContacts;
33 RawContacts.CONTENT_URI
58 final String BASE_SELECTION = RawContacts.ACCOUNT_TYPE + " = ?";
62 selection = BASE_SELECTION + " AND " + RawContacts.DATA_SET + " IS NULL";
65 selection = BASE_SELECTION + " AND " + RawContacts.DATA_SET + " = ?";
  /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);
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;
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);
212 String type = entityValues.getAsString(RawContacts.ACCOUNT_TYPE);
213 String dataSet = entityValues.getAsString(RawContacts.DATA_SET);
218 return getValues().getAsLong(RawContacts._ID);
222 return getValues().getAsString(RawContacts.ACCOUNT_NAME)
    [all...]
  /packages/apps/Dialer/java/com/android/contacts/common/model/
RawContact.java 27 import android.provider.ContactsContract.RawContacts;
121 return getValues().getAsLong(RawContacts._ID);
126 return getValues().getAsString(RawContacts.ACCOUNT_NAME);
131 return getValues().getAsString(RawContacts.ACCOUNT_TYPE);
136 return getValues().getAsString(RawContacts.DATA_SET);
140 return getValues().getAsBoolean(RawContacts.DIRTY);
144 return getValues().getAsString(RawContacts.SOURCE_ID);
148 return getValues().getAsString(RawContacts.SYNC1);
152 return getValues().getAsString(RawContacts.SYNC2);
156 return getValues().getAsString(RawContacts.SYNC3)
    [all...]
  /cts/tests/tests/provider/src/android/provider/cts/contacts/account/
ContactsContract_Subquery.java 24 import android.provider.ContactsContract.RawContacts;
50 .with(RawContacts.ACCOUNT_TYPE, "test_account")
51 .with(RawContacts.ACCOUNT_NAME, "test_name")

Completed in 618 milliseconds

1 2 3 4 5 6