Home
last modified time | relevance | path

Searched refs:lookupUri (Results 1 – 25 of 38) sorted by relevance

12

/packages/apps/Contacts/tests/src/com/android/contacts/model/
DContactLoaderTest.java112 final Uri lookupUri = ContentUris.withAppendedId( in testLoadContactWithContactIdUri() local
126 assertEquals(lookupUri, contact.getLookupUri()); in testLoadContactWithContactIdUri()
139 final Uri lookupUri = ContentUris.withAppendedId( in testLoadContactWithOldStyleUri() local
142 final Uri entityUri = Uri.withAppendedPath(lookupUri, Contacts.Entity.CONTENT_DIRECTORY); in testLoadContactWithOldStyleUri()
154 assertEquals(lookupUri, contact.getLookupUri()); in testLoadContactWithOldStyleUri()
169 final Uri lookupUri = ContentUris.withAppendedId( in testLoadContactWithRawContactIdUri() local
172 final Uri entityUri = Uri.withAppendedPath(lookupUri, Contacts.Entity.CONTENT_DIRECTORY); in testLoadContactWithRawContactIdUri()
185 assertEquals(lookupUri, contact.getLookupUri()); in testLoadContactWithRawContactIdUri()
195 final Uri lookupUri = ContentUris.withAppendedId(lookupNoIdUri, CONTACT_ID); in testLoadContactWithContactLookupUri() local
209 assertEquals(lookupUri, contact.getLookupUri()); in testLoadContactWithContactLookupUri()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactLookupKeyTest.java59 Uri lookupUri = Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, expectedLookupKey); in testLookupKeyUsingDisplayNameAndNoAccount() local
60 assertStoredValue(lookupUri, Contacts._ID, contactId); in testLookupKeyUsingDisplayNameAndNoAccount()
63 assertStoredValue(ContentUris.withAppendedId(lookupUri, contactId), in testLookupKeyUsingDisplayNameAndNoAccount()
67 assertStoredValue(ContentUris.withAppendedId(lookupUri, contactId + 1), in testLookupKeyUsingDisplayNameAndNoAccount()
93 Uri lookupUri = Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, expectedLookupKey); in testLookupKeyUsingSourceIdAndNoAccount() local
94 assertStoredValue(lookupUri, Contacts._ID, contactId); in testLookupKeyUsingSourceIdAndNoAccount()
164 Uri lookupUri = Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, lookupKey); in testLookupKeyChoosingLargestContact() local
165 assertStoredValue(lookupUri, Contacts._ID, largerContactId); in testLookupKeyChoosingLargestContact()
173 String lookupUri = "content://com.android.contacts/contacts/lookup/0i1/" + contactId; in testGetLookupUri() local
176 assertEquals(lookupUri, in testGetLookupUri()
[all …]
DContactsProvider2Test.java1036 Uri lookupUri = ContactsContract.Contacts.getLookupUri(contactId, lookupKey); in testDataDirectoryWithLookupUri() local
1037 Uri dataUri = Uri.withAppendedPath(lookupUri, Contacts.Data.CONTENT_DIRECTORY); in testDataDirectoryWithLookupUri()
1042 lookupUri = ContactsContract.Contacts.getLookupUri(contactId + 1, lookupKey); in testDataDirectoryWithLookupUri()
1043 dataUri = Uri.withAppendedPath(lookupUri, Contacts.Data.CONTENT_DIRECTORY); in testDataDirectoryWithLookupUri()
1742 Uri lookupUri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, "123"); in testPhoneLookupStarUseCases() local
1745 assertStoredValues(lookupUri, null, null, new ContentValues[] {values}); in testPhoneLookupStarUseCases()
1747 lookupUri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, "(1) 23"); in testPhoneLookupStarUseCases()
1750 assertStoredValues(lookupUri, null, null, new ContentValues[] {values}); in testPhoneLookupStarUseCases()
1753 lookupUri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, "*1-23"); in testPhoneLookupStarUseCases()
1756 assertStoredValues(lookupUri, null, null, new ContentValues[] {values}); in testPhoneLookupStarUseCases()
[all …]
/packages/apps/Dialer/java/com/android/dialer/phonenumbercache/
DContactInfo.java30 public Uri lookupUri; field in ContactInfo
79 result = prime * result + ((lookupUri == null) ? 0 : lookupUri.hashCode()); in hashCode()
96 if (!UriUtils.areEqual(lookupUri, other.lookupUri)) { in equals()
145 + lookupUri in toString()
DContactInfoHelper.java170 info.lookupUri = UriUtils.parseUriOrNull(c.getString(CallLogQuery.CACHED_LOOKUP_URI)); in getContactInfo()
254 contactInfo.lookupUri = createTemporaryContactUri(contactInfo.formattedNumber); in createEmptyContactInfoForNumber()
359 info.lookupUri = in createPhoneLookupContactInfo()
495 if (!UriUtils.areEqual(updatedInfo.lookupUri, callLogInfo.lookupUri)) { in updateCallLogContactInfo()
496 values.put(Calls.CACHED_LOOKUP_URI, UriUtils.uriToString(updatedInfo.lookupUri)); in updateCallLogContactInfo()
537 values.put(Calls.CACHED_LOOKUP_URI, UriUtils.uriToString(updatedInfo.lookupUri)); in updateCallLogContactInfo()
/packages/apps/Contacts/src/com/android/contacts/model/
DContactLoader.java93 public ContactLoader(Context context, Uri lookupUri, boolean postViewNotification) { in ContactLoader() argument
94 this(context, lookupUri, false, postViewNotification, false); in ContactLoader()
97 public ContactLoader(Context context, Uri lookupUri, boolean postViewNotification, in ContactLoader() argument
99 this(context, lookupUri, loadGroupMetaData, postViewNotification, false); in ContactLoader()
102 public ContactLoader(Context context, Uri lookupUri, boolean loadGroupMetaData, in ContactLoader() argument
105 mLookupUri = lookupUri; in ContactLoader()
106 mRequestedUri = lookupUri; in ContactLoader()
289 public void setNewLookup(Uri lookupUri) { in setNewLookup() argument
290 mLookupUri = lookupUri; in setNewLookup()
349 public static Contact parseEncodedContactEntity(Uri lookupUri) { in parseEncodedContactEntity() argument
[all …]
DContact.java141 public Contact(Uri requestedUri, Uri uri, Uri lookupUri, long directoryId, String lookupKey, in Contact() argument
149 mLookupUri = lookupUri; in Contact()
/packages/apps/Dialer/java/com/android/dialer/glidephotomanager/impl/
DGlidePhotoManagerImpl.java166 private static String getIdentifier(String lookupUri) { in getIdentifier() argument
167 if (!lookupUri.startsWith(Contacts.CONTENT_LOOKUP_URI.toString())) { in getIdentifier()
168 return lookupUri; in getIdentifier()
171 List<String> segments = Uri.parse(lookupUri).getPathSegments(); in getIdentifier()
173 return lookupUri; in getIdentifier()
177 return lookupUri; in getIdentifier()
/packages/apps/Dialer/java/com/android/contacts/common/model/
DContactLoader.java88 public ContactLoader(Context context, Uri lookupUri, boolean postViewNotification) { in ContactLoader() argument
89 this(context, lookupUri, false, false, postViewNotification, false); in ContactLoader()
94 Uri lookupUri, in ContactLoader() argument
100 mLookupUri = lookupUri; in ContactLoader()
101 mRequestedUri = lookupUri; in ContactLoader()
114 public static Contact parseEncodedContactEntity(Uri lookupUri) { in parseEncodedContactEntity() argument
116 return loadEncodedContactEntity(lookupUri, lookupUri); in parseEncodedContactEntity()
122 private static Contact loadEncodedContactEntity(Uri uri, Uri lookupUri) throws JSONException { in loadEncodedContactEntity() argument
137 lookupUri, in loadEncodedContactEntity()
438 Uri lookupUri; in loadContactHeaderData() local
[all …]
DContact.java113 Uri lookupUri, in Contact() argument
132 mLookupUri = lookupUri; in Contact()
/packages/apps/Contacts/src/com/android/contacts/util/
DUriUtils.java80 public static String getLookupKeyFromUri(Uri lookupUri) { in getLookupKeyFromUri() argument
85 if (lookupUri != null && !UriUtils.isEncodedContactUri(lookupUri)) { in getLookupKeyFromUri()
86 final List<String> segments = lookupUri.getPathSegments(); in getLookupKeyFromUri()
/packages/apps/Dialer/java/com/android/dialer/util/
DUriUtils.java78 public static String getLookupKeyFromUri(Uri lookupUri) { in getLookupKeyFromUri() argument
83 if (lookupUri != null && !UriUtils.isEncodedContactUri(lookupUri)) { in getLookupKeyFromUri()
84 final List<String> segments = lookupUri.getPathSegments(); in getLookupKeyFromUri()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
DAllIntentsActivity.java317 final Uri lookupUri = Contacts.getLookupUri(getContentResolver(), uri); in onListItemClick() local
318 final String lookupKey = lookupUri.getPathSegments().get(2); in onListItemClick()
330 final Uri lookupUri = Contacts.getLookupUri(getContentResolver(), uri); in onListItemClick() local
331 final Intent intent = new Intent(Intent.ACTION_EDIT, lookupUri); in onListItemClick()
418 final Uri lookupUri = Contacts.getLookupUri(getContentResolver(), uri); in onListItemClick() local
419 final String lookupKey = lookupUri.getPathSegments().get(2); in onListItemClick()
431 final Uri lookupUri = Contacts.getLookupUri(getContentResolver(), uri); in onListItemClick() local
432 final Intent intent = new Intent(Intent.ACTION_VIEW, lookupUri); in onListItemClick()
/packages/apps/Dialer/java/com/android/dialer/app/filterednumber/
DNumbersAdapter.java97 info.lookupUri == null ? null : UriUtils.getLookupKeyFromUri(info.lookupUri); in loadContactPhoto()
104 badge.assignContactUri(info.lookupUri); in loadContactPhoto()
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DIntentProvider.java210 final Uri lookupUri,
220 if (lookupUri != null) {
221 contactToSave = ContactLoader.parseEncodedContactEntity(lookupUri);
DCallLogListItemViewHolder.java783 if (!isBlockedOrSpam && info != null && UriUtils.isEncodedContactUri(info.lookupUri)) { in bindActionButtons()
786 info.lookupUri, info.name, info.number, info.type, true /* isNewContact */)); in bindActionButtons()
791 info.lookupUri, info.name, info.number, info.type, false /* isNewContact */)); in bindActionButtons()
937 quickContactView.assignContactUri(info.lookupUri); in updatePhoto()
948 info.lookupUri, in updatePhoto()
982 info.lookupUri, in onClick()
1089 if (info.lookupUri != null) { in buildContact()
1090 contact.setContactUri(info.lookupUri.toString()); in buildContact()
/packages/apps/Dialer/java/com/android/contacts/common/
DMoreContactUtils.java200 public static Intent getInvitableIntent(AccountType accountType, Uri lookupUri) { in getInvitableIntent() argument
212 intent.setData(lookupUri); in getInvitableIntent()
/packages/apps/Dialer/java/com/android/dialer/shortcuts/
DPinnedShortcuts.java119 Uri lookupUri = DialerShortcut.getLookupUriFromShortcutInfo(shortcutInfo); in refresh() local
122 context.getContentResolver().query(lookupUri, PROJECTION, null, null, null)) { in refresh()
DIconFactory.java83 @NonNull Uri lookupUri, @NonNull String displayName, @NonNull String lookupKey) { in create()
89 context.getContentResolver(), lookupUri, false /* preferHighres */); in create()
/packages/apps/Contacts/src/com/android/contacts/
DMoreContactUtils.java228 public static Intent getInvitableIntent(AccountType accountType, Uri lookupUri) { in getInvitableIntent() argument
240 intent.setData(lookupUri); in getInvitableIntent()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/common/
DContactResultsLiveData.java173 Uri lookupUri = Uri.withAppendedPath( in getQueryParam() local
176 return new QueryParam(lookupUri, CONTACT_DETAILS_PROJECTION, null, in getQueryParam()
/packages/apps/Car/Messenger/src/com/android/car/messenger/
DSmsDatabaseHandler.java205 Uri lookupUri = Uri.withAppendedPath(ContactsContract.PhoneLookup.CONTENT_FILTER_URI, in getContactId() local
209 try (Cursor cursor = cr.query(lookupUri, projection, null, null, null)) { in getContactId()
/packages/apps/Car/Dialer/src/com/android/car/dialer/storage/
DFavoriteNumberRepository.java192 Uri lookupUri = ContactsContract.Contacts.getLookupUri( in lookupContact() local
195 mContext.getContentResolver(), lookupUri); in lookupContact()
/packages/apps/Dialer/java/com/android/incallui/
DExternalCallNotifier.java382 if (contactInfo.lookupUri != null && contactInfo.userType != ContactsUtils.USER_TYPE_WORK) { in getPersonReference()
383 return contactInfo.lookupUri.toString(); in getPersonReference()
/packages/apps/Dialer/java/com/android/contacts/common/list/
DContactEntry.java36 public Uri lookupUri; field in ContactEntry

12