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

1 2

  /packages/apps/Messaging/src/com/android/messaging/datamodel/
FrequentContactsCursorBuilder.java 24 import com.android.messaging.util.ContactUtil;
85 final MatrixCursor retCursor = new MatrixCursor(ContactUtil.PhoneQuery.PROJECTION);
96 ContactUtil.INDEX_LOOKUP_KEY_FREQUENT);
110 final String lookupKey = mAllContactsCursor.getString(ContactUtil.INDEX_LOOKUP_KEY);
112 final Object[] row = new Object[ContactUtil.PhoneQuery.PROJECTION.length];
113 row[ContactUtil.INDEX_DATA_ID] =
114 mAllContactsCursor.getLong(ContactUtil.INDEX_DATA_ID);
115 row[ContactUtil.INDEX_CONTACT_ID] =
116 mAllContactsCursor.getLong(ContactUtil.INDEX_CONTACT_ID);
117 row[ContactUtil.INDEX_LOOKUP_KEY]
    [all...]
ParticipantRefresh.java 37 import com.android.messaging.util.ContactUtil;
226 if (!ContactUtil.hasReadContactsPermission() || !OsUtil.hasPhonePermission()) {
462 selfCursor = ContactUtil.getSelf(db.getContext()).performSynchronousQuery();
465 final long selfContactId = selfCursor.getLong(ContactUtil.INDEX_CONTACT_ID);
468 ContactUtil.INDEX_DISPLAY_NAME));
470 ContactUtil.lookupFirstName(db.getContext(), selfContactId));
472 ContactUtil.INDEX_PHOTO_URI));
474 ContactUtil.INDEX_SELF_QUERY_LOOKUP_KEY));
516 matchingContactCursor = ContactUtil.lookupDestination(db.getContext(),
532 final long contactId = matchingContactCursor.getLong(ContactUtil.INDEX_CONTACT_ID)
    [all...]
  /packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
FrequentContactsCursorBuilderTest.java 23 import com.android.messaging.util.ContactUtil;
36 assertEquals(expected.getLong(ContactUtil.INDEX_DATA_ID),
37 actual.getLong(ContactUtil.INDEX_DATA_ID));
38 assertEquals(expected.getLong(ContactUtil.INDEX_CONTACT_ID),
39 actual.getLong(ContactUtil.INDEX_CONTACT_ID));
40 assertEquals(expected.getString(ContactUtil.INDEX_LOOKUP_KEY),
41 actual.getString(ContactUtil.INDEX_LOOKUP_KEY));
42 assertEquals(expected.getString(ContactUtil.INDEX_DISPLAY_NAME),
43 actual.getString(ContactUtil.INDEX_DISPLAY_NAME));
44 assertEquals(expected.getString(ContactUtil.INDEX_PHOTO_URI)
    [all...]
ParticipantRefreshTest.java 33 import com.android.messaging.util.ContactUtil;
65 final Uri uri = ContactUtil.lookupPhone(mContext, phone).getUri();
68 phoneLookup.addOverrideData(uri, null, null, ContactUtil.PhoneLookupQuery.PROJECTION,
  /packages/apps/Messaging/src/com/android/messaging/datamodel/data/
ContactListItemData.java 27 import com.android.messaging.util.ContactUtil;
56 final long dataId = cursor.getLong(ContactUtil.INDEX_DATA_ID);
57 final long contactId = cursor.getLong(ContactUtil.INDEX_CONTACT_ID);
58 final String lookupKey = cursor.getString(ContactUtil.INDEX_LOOKUP_KEY);
59 final String displayName = cursor.getString(ContactUtil.INDEX_DISPLAY_NAME);
60 final String photoThumbnailUri = cursor.getString(ContactUtil.INDEX_PHOTO_URI);
61 final String destination = cursor.getString(ContactUtil.INDEX_PHONE_EMAIL);
62 final int destinationType = cursor.getInt(ContactUtil.INDEX_PHONE_EMAIL_TYPE);
63 final String destinationLabel = cursor.getString(ContactUtil.INDEX_PHONE_EMAIL_LABEL);
73 final long contactIdPrevious = cursor.getLong(ContactUtil.INDEX_CONTACT_ID)
    [all...]
ContactPickerData.java 32 import com.android.messaging.util.ContactUtil;
38 * {@link ContactUtil#hasReadContactsPermission()}) before instantiating this class.
71 return ContactUtil.getPhones(mContext)
74 return ContactUtil.getFrequentContacts(mContext)
VCardContactItemData.java 34 import com.android.messaging.util.ContactUtil;
109 return ContactUtil.INVALID_CONTACT_ID;
  /packages/apps/Messaging/src/com/android/messaging/util/
ContactUtil.java 49 public class ContactUtil {
184 private ContactUtil() {
214 if (!ContactUtil.hasReadContactsPermission()) {
227 if (!ContactUtil.hasReadContactsPermission()) {
251 return ContactUtil.lookupEmail(context, destination);
253 return ContactUtil.lookupPhone(context, destination);
270 return ContactUtil.filterEmails(context, destination);
272 return ContactUtil.filterPhones(context, destination);
282 return ContactUtil.filterEmailsEnterprise(context, destination);
284 return ContactUtil.filterPhonesEnterprise(context, destination)
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/ui/contact/
ContactRecipientAdapter.java 41 import com.android.messaging.util.ContactUtil;
58 * contact lookup that relies on ContactUtil. It provides data source and filtering ability
99 * A Filter for a RecipientEditTextView that queries Bugle's ContactUtil for auto-complete
124 final Cursor personalFilterPhonesCursor = ContactUtil
126 final Cursor personalFilterEmailsCursor = ContactUtil
134 final Cursor enterpriseFilterPhonesCursor = ContactUtil.filterPhonesEnterprise(
136 final Cursor enterpriseFilterEmailsCursor = ContactUtil.filterEmailsEnterprise(
145 final Cursor personalFilterDestinationCursor = ContactUtil
151 final Cursor enterpriseFilterDestinationCursor = ContactUtil
206 final long contactId = cursor.getLong(ContactUtil.INDEX_CONTACT_ID)
    [all...]
ContactDropdownLayouter.java 37 import com.android.messaging.util.ContactUtil;
103 boolean isWorkContact = ContactUtil.isEnterpriseContactId(entry.getContactId());
ContactSectionIndexer.java 25 import com.android.messaging.util.ContactUtil;
143 final String sortKey = cursor.getString(ContactUtil.INDEX_SORT_KEY);
ContactRecipientAutoCompleteView.java 38 import com.android.messaging.util.ContactUtil;
49 * It uses Bugle's ContactUtil to perform contact lookup, and is able to return the list of
159 final Cursor lookupResult = ContactUtil.lookupDestination(getContext(),
165 ContactUtil.createRecipientEntryForPhoneQuery(
  /packages/apps/Messaging/tests/src/com/android/messaging/util/
ContactUtilTest.java 36 * Class for testing ContactUtil.
139 * Verify ContactUtil.getPhone will return all phones, including the ones added for test.
142 final Cursor cur = ContactUtil.getPhones(getContext())
156 * Verify ContactUtil.filterPhone will work on name based matches.
159 final Cursor cur = ContactUtil.filterPhones(getContext(), TEST_NAME_PREFIX)
175 * Verify ContactUtil.filterPhone will work on partial number matches.
181 final Cursor cur = ContactUtil.filterPhones(getContext(), filter)
196 * Verify ContactUtil.filterPhone will work on full number matches.
203 final Cursor cur = ContactUtil.filterPhones(getContext(), filter)
216 * Verify ContactUtil.lookPhone will work on number including area code
    [all...]
  /cts/tests/tests/provider/src/android/provider/cts/
ContactsContract_PinnedPositionsTest.java 19 import static android.provider.cts.contacts.ContactUtil.newContentValues;
34 import android.provider.cts.contacts.ContactUtil;
129 ContactUtil.delete(mResolver, i1.mContactId);
130 ContactUtil.delete(mResolver, i2.mContactId);
131 ContactUtil.delete(mResolver, i3.mContactId);
132 ContactUtil.delete(mResolver, i4.mContactId);
159 ContactUtil.setAggregationException(mResolver, AggregationExceptions.TYPE_KEEP_TOGETHER,
184 ContactUtil.setAggregationException(mResolver, AggregationExceptions.TYPE_KEEP_TOGETHER,
203 ContactUtil.setAggregationException(mResolver, AggregationExceptions.TYPE_KEEP_SEPARATE,
240 ContactUtil.setAggregationException(mResolver, AggregationExceptions.TYPE_KEEP_TOGETHER
    [all...]
ContactsContract_RawContactsTest.java 31 import android.provider.cts.contacts.ContactUtil;
179 long baseTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId);
185 long newTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId);
195 long baseTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId);
208 long baseTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId);
222 return ContactUtil.queryContactLastUpdatedTimestamp(mResolver, contactId);
ContactsContract_StructuredPhoneticName.java 33 import android.provider.cts.contacts.ContactUtil;
105 ContactUtil.setAggregationException(mResolver, AggregationExceptions.TYPE_KEEP_TOGETHER,
142 ContactUtil.setAggregationException(mResolver, AggregationExceptions.TYPE_KEEP_TOGETHER,
ContactsContract_ContactsTest.java 34 import android.provider.cts.contacts.ContactUtil;
156 long baseTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId);
162 ContactUtil.update(mResolver, ids.mContactId, values);
164 long newTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId);
248 ContactUtil.delete(mResolver, ids.mContactId);
250 assertFalse(ContactUtil.recordExistsForContactId(mResolver, ids.mContactId));
ContactsProvider2_AccountRemovalTest.java 26 import android.provider.cts.contacts.ContactUtil;
120 long baseTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, contactId);
124 while (ContactUtil.queryContactLastUpdatedTimestamp(mResolver, contactId) == baseTime) {
ContactsContract_DataTest.java 44 import android.provider.cts.contacts.ContactUtil;
538 long baseTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId);
543 long newTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId);
555 long baseTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId);
560 long newTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId);
634 long baseTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId);
641 long newTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId);
    [all...]
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/
ContactUtil.java 29 public class ContactUtil {
DatabaseAsserts.java 90 Assert.assertFalse(ContactUtil.recordExistsForContactId(resolver, contactId));
  /packages/apps/Messaging/src/com/android/messaging/ui/
ContactIconView.java 33 import com.android.messaging.util.ContactUtil;
140 ContactUtil.showOrAddContact(view, mContactId, mContactLookupKey,
  /cts/tests/tests/provider/src/android/provider/cts/contacts/
ContactUtil.java 32 public class ContactUtil {
  /packages/apps/Messaging/tests/src/com/android/messaging/datamodel/data/
TestDataFactory.java 37 import com.android.messaging.util.ContactUtil;
225 return new FakeCursor(ContactUtil.PhoneQuery.PROJECTION, sContactCursorColumns,
246 return new FakeCursor(ContactUtil.PhoneQuery.PROJECTION, sContactCursorColumns,
262 return new FakeCursor(ContactUtil.FrequentContactQuery.PROJECTION,
  /packages/apps/Messaging/src/com/android/messaging/datamodel/media/
VCardResourceEntry.java 32 import com.android.messaging.util.ContactUtil;
146 return ContactUtil.INVALID_CONTACT_ID;
374 return ContactUtil.INVALID_CONTACT_ID;

Completed in 472 milliseconds

1 2