/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | FrequentContactsCursorBuilder.java | 24 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 …]
|
D | ParticipantRefresh.java | 37 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/ |
D | FrequentContactsCursorBuilderTest.java | 23 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 …]
|
D | ParticipantRefreshTest.java | 34 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/ |
D | ContactUtil.java | 49 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/ |
D | ContactListItemData.java | 27 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 …]
|
D | ContactPickerData.java | 32 import com.android.messaging.util.ContactUtil; 71 return ContactUtil.getPhones(mContext) in onCreateLoader() 74 return ContactUtil.getFrequentContacts(mContext) in onCreateLoader()
|
D | VCardContactItemData.java | 34 import com.android.messaging.util.ContactUtil; 109 return ContactUtil.INVALID_CONTACT_ID; in getContactId()
|
D | ConversationListItemData.java | 31 import com.android.messaging.util.ContactUtil; 482 if (ContactUtil.isEnterpriseContactId(participant.getContactId())) { in hasAnyEnterpriseContact()
|
D | ConversationData.java | 52 import com.android.messaging.util.ContactUtil; 629 if (ContactUtil.hasReadContactsPermission()) { in sendMessage()
|
/packages/apps/Messaging/tests/src/com/android/messaging/util/ |
D | ContactUtilTest.java | 142 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/ |
D | ContactRecipientAdapter.java | 41 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 …]
|
D | ContactRecipientAutoCompleteView.java | 38 import com.android.messaging.util.ContactUtil; 160 ContactUtil.lookupDestination( in doInBackground() 169 ContactUtil.createRecipientEntryForPhoneQuery( in doInBackground()
|
D | ContactDropdownLayouter.java | 37 import com.android.messaging.util.ContactUtil; 103 boolean isWorkContact = ContactUtil.isEnterpriseContactId(entry.getContactId()); in bindView()
|
D | ContactSectionIndexer.java | 25 import com.android.messaging.util.ContactUtil; 143 final String sortKey = cursor.getString(ContactUtil.INDEX_SORT_KEY); in buildIndexerFromDisplayNames()
|
D | ContactPickerFragment.java | 60 import com.android.messaging.util.ContactUtil; 131 if (ContactUtil.hasReadContactsPermission()) { in onCreate()
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/data/ |
D | TestDataFactory.java | 37 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/mediapicker/ |
D | ContactMediaChooser.java | 33 import com.android.messaging.util.ContactUtil; 94 if (selected && !ContactUtil.hasReadContactsPermission()) { in setSelected()
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | ContactIconView.java | 33 import com.android.messaging.util.ContactUtil; 140 ContactUtil.showOrAddContact(view, mContactId, mContactLookupKey, in maybeInitializeOnClickListener()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
D | VCardResourceEntry.java | 32 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/ |
D | ContactUtil.java | 29 public class ContactUtil { class
|
D | DatabaseAsserts.java | 100 Assert.assertFalse(ContactUtil.recordExistsForContactId(resolver, contactId)); in assertHasDeleteLogGreaterThan()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsProvider2Test.java | 88 import com.android.providers.contacts.testutil.ContactUtil; 8497 ContactUtil.update(mResolver, ids.mContactId, values); in testContactUpdate_metadataChange() 8507 long baseTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testContactUpdate_updatesContactUpdatedTimestamp() 8513 ContactUtil.update(mResolver, ids.mContactId, values); in testContactUpdate_updatesContactUpdatedTimestamp() 8515 long newTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testContactUpdate_updatesContactUpdatedTimestamp() 8538 long baseTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testRawContactUpdate_updatesContactUpdatedTimestamp() 8544 long newTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testRawContactUpdate_updatesContactUpdatedTimestamp() 8554 long baseTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testRawContactPsuedoDelete_hasDeleteLogForContact() 8567 long baseTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testRawContactDelete_hasDeleteLogForContact() 8581 return ContactUtil.queryContactLastUpdatedTimestamp(mResolver, contactId); in getContactLastUpdatedTimestampByRawContactId() [all …]
|