HomeSort by relevance Sort by last modified time
    Searched full:rawcontacts (Results 1 - 25 of 142) sorted by null

1 2 3 4 5 6

  /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_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_StructuredPhoneticName.java 28 import android.provider.ContactsContract.RawContacts;
60 .with(RawContacts.ACCOUNT_TYPE, "test_account")
61 .with(RawContacts.ACCOUNT_NAME, "test_name")
78 .with(RawContacts.ACCOUNT_TYPE, "test_account")
79 .with(RawContacts.ACCOUNT_NAME, "test_name")
88 .with(RawContacts.ACCOUNT_TYPE, "test_account")
89 .with(RawContacts.ACCOUNT_NAME, "test_name")
115 .with(RawContacts.ACCOUNT_TYPE, "test_account")
116 .with(RawContacts.ACCOUNT_NAME, "test_name")
125 .with(RawContacts.ACCOUNT_TYPE, "test_account"
    [all...]
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_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/
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);
TestUtil.java 49 .appendQueryParameter(ContactsContract.RawContacts.ACCOUNT_NAME, account.name)
50 .appendQueryParameter(ContactsContract.RawContacts.ACCOUNT_TYPE, account.type)
  /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;
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/apps/ContactsCommon/tests/src/com/android/contacts/common/
RawContactDeltaListTests.java 33 import android.provider.ContactsContract.RawContacts;
109 after.put(RawContacts.ACCOUNT_NAME, RawContactDeltaTests.TEST_ACCOUNT_NAME);
110 after.put(RawContacts.SEND_TO_VOICEMAIL, 1);
126 contact.put(RawContacts.VERSION, version);
127 contact.put(RawContacts._ID, rawContactId);
138 contact.put(RawContacts.ACCOUNT_TYPE, TEST_ACCOUNT);
232 values.put(RawContacts.VERSION, version);
233 return buildOper(RawContacts.CONTENT_URI, TYPE_ASSERT, values);
238 values.put(RawContacts.AGGREGATION_MODE, mode);
239 return buildOper(RawContacts.CONTENT_URI, TYPE_UPDATE, values)
    [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...]
  /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());
  /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/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/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/src/com/android/providers/contacts/aggregation/
AbstractContactAggregator.java 67 import android.provider.ContactsContract.RawContacts;
114 " WHERE " + RawContacts.CONTACT_ID + "=?" +
309 "SELECT COUNT(" + RawContacts._ID + ")" +
311 " WHERE " + RawContacts.CONTACT_ID + "=?"
312 + " AND " + RawContacts._ID + "<>?");
321 " WHERE " + RawContacts._ID + "=?"
340 + Contacts.STARRED + "=(SELECT (CASE WHEN COUNT(" + RawContacts.STARRED
342 + RawContacts.CONTACT_ID + "=" + ContactsColumns.CONCRETE_ID + " AND "
343 + RawContacts.STARRED + "=1)" + " WHERE " + Contacts._ID + "=?");
346 + Contacts.PINNED + " = IFNULL((SELECT MIN(" + RawContacts.PINNED + ") FROM
    [all...]

Completed in 677 milliseconds

1 2 3 4 5 6