Home
last modified time | relevance | path

Searched refs:ContactUtil (Results 1 – 22 of 22) sorted by relevance

/packages/apps/Messaging/src/com/android/messaging/datamodel/
DFrequentContactsCursorBuilder.java24 import com.android.messaging.util.ContactUtil;
85 final MatrixCursor retCursor = new MatrixCursor(ContactUtil.PhoneQuery.PROJECTION); in build()
96 ContactUtil.INDEX_LOOKUP_KEY_FREQUENT); in build()
110 final String lookupKey = mAllContactsCursor.getString(ContactUtil.INDEX_LOOKUP_KEY); in build()
112 final Object[] row = new Object[ContactUtil.PhoneQuery.PROJECTION.length]; in build()
113 row[ContactUtil.INDEX_DATA_ID] = in build()
114 mAllContactsCursor.getLong(ContactUtil.INDEX_DATA_ID); in build()
115 row[ContactUtil.INDEX_CONTACT_ID] = in build()
116 mAllContactsCursor.getLong(ContactUtil.INDEX_CONTACT_ID); in build()
117 row[ContactUtil.INDEX_LOOKUP_KEY] = in build()
[all …]
DParticipantRefresh.java37 import com.android.messaging.util.ContactUtil;
226 if (!ContactUtil.hasReadContactsPermission() || !OsUtil.hasPhonePermission()) { in refreshParticipants()
462 selfCursor = ContactUtil.getSelf(db.getContext()).performSynchronousQuery(); in refreshFromSelfProfile()
465 final long selfContactId = selfCursor.getLong(ContactUtil.INDEX_CONTACT_ID); in refreshFromSelfProfile()
468 ContactUtil.INDEX_DISPLAY_NAME)); in refreshFromSelfProfile()
470 ContactUtil.lookupFirstName(db.getContext(), selfContactId)); in refreshFromSelfProfile()
472 ContactUtil.INDEX_PHOTO_URI)); in refreshFromSelfProfile()
474 ContactUtil.INDEX_SELF_QUERY_LOOKUP_KEY)); in refreshFromSelfProfile()
516 matchingContactCursor = ContactUtil.lookupDestination(db.getContext(), in refreshFromContacts()
532 final long contactId = matchingContactCursor.getLong(ContactUtil.INDEX_CONTACT_ID); in refreshFromContacts()
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
DFrequentContactsCursorBuilderTest.java23 import com.android.messaging.util.ContactUtil;
36 assertEquals(expected.getLong(ContactUtil.INDEX_DATA_ID), in verifyBuiltCursor()
37 actual.getLong(ContactUtil.INDEX_DATA_ID)); in verifyBuiltCursor()
38 assertEquals(expected.getLong(ContactUtil.INDEX_CONTACT_ID), in verifyBuiltCursor()
39 actual.getLong(ContactUtil.INDEX_CONTACT_ID)); in verifyBuiltCursor()
40 assertEquals(expected.getString(ContactUtil.INDEX_LOOKUP_KEY), in verifyBuiltCursor()
41 actual.getString(ContactUtil.INDEX_LOOKUP_KEY)); in verifyBuiltCursor()
42 assertEquals(expected.getString(ContactUtil.INDEX_DISPLAY_NAME), in verifyBuiltCursor()
43 actual.getString(ContactUtil.INDEX_DISPLAY_NAME)); in verifyBuiltCursor()
44 assertEquals(expected.getString(ContactUtil.INDEX_PHOTO_URI), in verifyBuiltCursor()
[all …]
DParticipantRefreshTest.java34 import com.android.messaging.util.ContactUtil;
70 final Uri uri = ContactUtil.lookupPhone(mContext, phone).getUri(); in addPhoneLookup()
73 phoneLookup.addOverrideData(uri, null, null, ContactUtil.PhoneLookupQuery.PROJECTION, in addPhoneLookup()
/packages/apps/Messaging/src/com/android/messaging/util/
DContactUtil.java49 public class ContactUtil { class
184 private ContactUtil() { in ContactUtil() method in ContactUtil
214 if (!ContactUtil.hasReadContactsPermission()) { in getSelf()
227 if (!ContactUtil.hasReadContactsPermission()) { in getPhones()
251 return ContactUtil.lookupEmail(context, destination); in lookupDestination()
253 return ContactUtil.lookupPhone(context, destination); in lookupDestination()
270 return ContactUtil.filterEmails(context, destination); in filterDestination()
272 return ContactUtil.filterPhones(context, destination); in filterDestination()
282 return ContactUtil.filterEmailsEnterprise(context, destination); in filterDestinationEnterprise()
284 return ContactUtil.filterPhonesEnterprise(context, destination); in filterDestinationEnterprise()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DContactListItemData.java27 import com.android.messaging.util.ContactUtil;
56 final long dataId = cursor.getLong(ContactUtil.INDEX_DATA_ID); in bind()
57 final long contactId = cursor.getLong(ContactUtil.INDEX_CONTACT_ID); in bind()
58 final String lookupKey = cursor.getString(ContactUtil.INDEX_LOOKUP_KEY); in bind()
59 final String displayName = cursor.getString(ContactUtil.INDEX_DISPLAY_NAME); in bind()
60 final String photoThumbnailUri = cursor.getString(ContactUtil.INDEX_PHOTO_URI); in bind()
61 final String destination = cursor.getString(ContactUtil.INDEX_PHONE_EMAIL); in bind()
62 final int destinationType = cursor.getInt(ContactUtil.INDEX_PHONE_EMAIL_TYPE); in bind()
63 final String destinationLabel = cursor.getString(ContactUtil.INDEX_PHONE_EMAIL_LABEL); in bind()
73 final long contactIdPrevious = cursor.getLong(ContactUtil.INDEX_CONTACT_ID); in bind()
[all …]
DContactPickerData.java32 import com.android.messaging.util.ContactUtil;
71 return ContactUtil.getPhones(mContext) in onCreateLoader()
74 return ContactUtil.getFrequentContacts(mContext) in onCreateLoader()
DVCardContactItemData.java34 import com.android.messaging.util.ContactUtil;
109 return ContactUtil.INVALID_CONTACT_ID; in getContactId()
DConversationListItemData.java31 import com.android.messaging.util.ContactUtil;
482 if (ContactUtil.isEnterpriseContactId(participant.getContactId())) { in hasAnyEnterpriseContact()
DConversationData.java52 import com.android.messaging.util.ContactUtil;
629 if (ContactUtil.hasReadContactsPermission()) { in sendMessage()
/packages/apps/Messaging/tests/src/com/android/messaging/util/
DContactUtilTest.java142 final Cursor cur = ContactUtil.getPhones(getContext()) in ingoredTestGetPhones()
159 final Cursor cur = ContactUtil.filterPhones(getContext(), TEST_NAME_PREFIX) in ingoredTestFilterPhonesByName()
181 final Cursor cur = ContactUtil.filterPhones(getContext(), filter) in ingoredTestFilterPhonesByPartialNumber()
203 final Cursor cur = ContactUtil.filterPhones(getContext(), filter) in ingoredTestFilterPhonesByFullNumber()
223 final Cursor cur = ContactUtil.lookupPhone(getContext(), filter) in ingoredTestLookupPhoneWithAreaCode()
243 final Cursor cur = ContactUtil.lookupPhone(getContext(), filter) in ingoredTestLookupPhoneWithoutAreaCode()
256 final Cursor cur = ContactUtil.getFrequentContacts(getContext()) in ingoredTestGetFrequentPhones()
270 final Cursor cur = ContactUtil.filterEmails(getContext(), "john@") in ingoredTestFilterEmails()
283 final Cursor cur = ContactUtil.lookupEmail(getContext(), "john@gmail.com") in ingoredTestLookupEmail()
298 final String name = cursor.getString(ContactUtil.INDEX_DISPLAY_NAME); in verifyCursorContains()
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactRecipientAdapter.java41 import com.android.messaging.util.ContactUtil;
124 final Cursor personalFilterPhonesCursor = ContactUtil in getFilteredResultsCursor()
126 final Cursor personalFilterEmailsCursor = ContactUtil in getFilteredResultsCursor()
134 final Cursor enterpriseFilterPhonesCursor = ContactUtil.filterPhonesEnterprise( in getFilteredResultsCursor()
136 final Cursor enterpriseFilterEmailsCursor = ContactUtil.filterEmailsEnterprise( in getFilteredResultsCursor()
145 final Cursor personalFilterDestinationCursor = ContactUtil in getFilteredResultsCursor()
151 final Cursor enterpriseFilterDestinationCursor = ContactUtil in getFilteredResultsCursor()
206 final long contactId = cursor.getLong(ContactUtil.INDEX_CONTACT_ID); in performFiltering()
211 tempEntries.add(ContactUtil.createRecipientEntryForPhoneQuery(cursor, in performFiltering()
356 final Cursor cursor = ContactUtil.lookupDestination(getContext(), address)
[all …]
DContactRecipientAutoCompleteView.java38 import com.android.messaging.util.ContactUtil;
159 final Cursor lookupResult = ContactUtil.lookupDestination(getContext(), in doInBackground()
165 ContactUtil.createRecipientEntryForPhoneQuery( in doInBackground()
DContactDropdownLayouter.java37 import com.android.messaging.util.ContactUtil;
103 boolean isWorkContact = ContactUtil.isEnterpriseContactId(entry.getContactId()); in bindView()
DContactSectionIndexer.java25 import com.android.messaging.util.ContactUtil;
143 final String sortKey = cursor.getString(ContactUtil.INDEX_SORT_KEY); in buildIndexerFromDisplayNames()
DContactPickerFragment.java60 import com.android.messaging.util.ContactUtil;
131 if (ContactUtil.hasReadContactsPermission()) { in onCreate()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/data/
DTestDataFactory.java37 import com.android.messaging.util.ContactUtil;
225 return new FakeCursor(ContactUtil.PhoneQuery.PROJECTION, sContactCursorColumns, in getAllContactListCursor()
246 return new FakeCursor(ContactUtil.PhoneQuery.PROJECTION, sContactCursorColumns, in getFrequentContactListCursor()
262 return new FakeCursor(ContactUtil.FrequentContactQuery.PROJECTION, in getStrequentContactsCursor()
/packages/apps/Messaging/src/com/android/messaging/ui/
DContactIconView.java33 import com.android.messaging.util.ContactUtil;
140 ContactUtil.showOrAddContact(view, mContactId, mContactLookupKey, in maybeInitializeOnClickListener()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DVCardResourceEntry.java32 import com.android.messaging.util.ContactUtil;
146 return ContactUtil.INVALID_CONTACT_ID; in getDisplayItem()
374 return ContactUtil.INVALID_CONTACT_ID;
/packages/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/
DContactUtil.java29 public class ContactUtil { class
DDatabaseAsserts.java90 Assert.assertFalse(ContactUtil.recordExistsForContactId(resolver, contactId)); in assertHasDeleteLogGreaterThan()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java94 import com.android.providers.contacts.testutil.ContactUtil;
8904 ContactUtil.update(mResolver, ids.mContactId, values); in testContactUpdate_metadataChange()
8915 long baseTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testContactUpdate_updatesContactUpdatedTimestamp()
8921 ContactUtil.update(mResolver, ids.mContactId, values); in testContactUpdate_updatesContactUpdatedTimestamp()
8923 long newTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testContactUpdate_updatesContactUpdatedTimestamp()
8946 long baseTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testRawContactUpdate_updatesContactUpdatedTimestamp()
8952 long newTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testRawContactUpdate_updatesContactUpdatedTimestamp()
8962 long baseTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testRawContactPsuedoDelete_hasDeleteLogForContact()
8975 long baseTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testRawContactDelete_hasDeleteLogForContact()
8989 return ContactUtil.queryContactLastUpdatedTimestamp(mResolver, contactId); in getContactLastUpdatedTimestampByRawContactId()
[all …]