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.java116 final Uri lookupUri = ContentUris.withAppendedId( in testLoadContactWithContactIdUri() local
130 assertEquals(lookupUri, contact.getLookupUri()); in testLoadContactWithContactIdUri()
143 final Uri lookupUri = ContentUris.withAppendedId( in testLoadContactWithOldStyleUri() local
146 final Uri entityUri = Uri.withAppendedPath(lookupUri, Contacts.Entity.CONTENT_DIRECTORY); in testLoadContactWithOldStyleUri()
158 assertEquals(lookupUri, contact.getLookupUri()); in testLoadContactWithOldStyleUri()
173 final Uri lookupUri = ContentUris.withAppendedId( in testLoadContactWithRawContactIdUri() local
176 final Uri entityUri = Uri.withAppendedPath(lookupUri, Contacts.Entity.CONTENT_DIRECTORY); in testLoadContactWithRawContactIdUri()
189 assertEquals(lookupUri, contact.getLookupUri()); in testLoadContactWithRawContactIdUri()
199 final Uri lookupUri = ContentUris.withAppendedId(lookupNoIdUri, CONTACT_ID); in testLoadContactWithContactLookupUri() local
213 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.java1000 Uri lookupUri = ContactsContract.Contacts.getLookupUri(contactId, lookupKey); in testDataDirectoryWithLookupUri() local
1001 Uri dataUri = Uri.withAppendedPath(lookupUri, Contacts.Data.CONTENT_DIRECTORY); in testDataDirectoryWithLookupUri()
1006 lookupUri = ContactsContract.Contacts.getLookupUri(contactId + 1, lookupKey); in testDataDirectoryWithLookupUri()
1007 dataUri = Uri.withAppendedPath(lookupUri, Contacts.Data.CONTENT_DIRECTORY); in testDataDirectoryWithLookupUri()
1707 Uri lookupUri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, "123"); in testPhoneLookupStarUseCases() local
1710 assertStoredValues(lookupUri, null, null, new ContentValues[] {values}); in testPhoneLookupStarUseCases()
1712 lookupUri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, "(1) 23"); in testPhoneLookupStarUseCases()
1715 assertStoredValues(lookupUri, null, null, new ContentValues[] {values}); in testPhoneLookupStarUseCases()
1718 lookupUri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, "*1-23"); in testPhoneLookupStarUseCases()
1721 assertStoredValues(lookupUri, null, null, new ContentValues[] {values}); in testPhoneLookupStarUseCases()
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/
DContactLoader.java98 public ContactLoader(Context context, Uri lookupUri, boolean postViewNotification) { in ContactLoader() argument
99 this(context, lookupUri, false, postViewNotification, false); in ContactLoader()
102 public ContactLoader(Context context, Uri lookupUri, boolean postViewNotification, in ContactLoader() argument
104 this(context, lookupUri, loadGroupMetaData, postViewNotification, false); in ContactLoader()
107 public ContactLoader(Context context, Uri lookupUri, boolean loadGroupMetaData, in ContactLoader() argument
110 mLookupUri = lookupUri; in ContactLoader()
111 mRequestedUri = lookupUri; in ContactLoader()
299 public void setNewLookup(Uri lookupUri) { in setNewLookup() argument
300 mLookupUri = lookupUri; in setNewLookup()
359 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/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/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.java186 info.lookupUri = UriUtils.parseUriOrNull(c.getString(CallLogQuery.CACHED_LOOKUP_URI)); in getContactInfo()
267 contactInfo.lookupUri = createTemporaryContactUri(contactInfo.formattedNumber); in createEmptyContactInfoForNumber()
362 info.lookupUri = in createPhoneLookupContactInfo()
485 if (!UriUtils.areEqual(updatedInfo.lookupUri, callLogInfo.lookupUri)) { in updateCallLogContactInfo()
486 values.put(Calls.CACHED_LOOKUP_URI, UriUtils.uriToString(updatedInfo.lookupUri)); in updateCallLogContactInfo()
527 values.put(Calls.CACHED_LOOKUP_URI, UriUtils.uriToString(updatedInfo.lookupUri)); in updateCallLogContactInfo()
/packages/apps/Dialer/java/com/android/contacts/common/util/
DUriUtils.java76 public static String getLookupKeyFromUri(Uri lookupUri) { in getLookupKeyFromUri() argument
81 if (lookupUri != null && !UriUtils.isEncodedContactUri(lookupUri)) { in getLookupKeyFromUri()
82 final List<String> segments = lookupUri.getPathSegments(); in getLookupKeyFromUri()
/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/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/Email/src/com/android/email/activity/
DContactStatusLoader.java76 public Result(Bitmap photo, int presenceResId, Uri lookupUri) { in Result() argument
79 mLookupUri = lookupUri; in Result()
143 final Uri lookupUri = Data.getContactLookupUri(context.getContentResolver(), uri); in getContactInfo() local
144 return new Result(photo, presenceStatusResId, lookupUri); in getContactInfo()
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DCallLogListItemViewHolder.java576 if (!isBlockedOrSpam && info != null && UriUtils.isEncodedContactUri(info.lookupUri)) { in bindActionButtons()
579 info.lookupUri, info.name, info.number, info.type, true /* isNewContact */)); in bindActionButtons()
584 info.lookupUri, info.name, info.number, info.type, false /* isNewContact */)); in bindActionButtons()
702 quickContactView.assignContactUri(info.lookupUri); in updatePhoto()
713 info.lookupUri, in updatePhoto()
750 info.lookupUri, in onClick()
815 if (info.lookupUri != null) { in buildContact()
816 contact.setContactUri(info.lookupUri.toString()); in buildContact()
DIntentProvider.java126 final Uri lookupUri,
136 if (lookupUri != null) {
137 contactToSave = ContactLoader.parseEncodedContactEntity(lookupUri);
/packages/experimental/LoaderApp/src/com/android/loaderapp/
DContactHeaderWidget.java264 final Uri lookupUri = Contacts.getLookupUri( in onQueryComplete() local
270 setPhotoId(photoId, lookupUri); in onQueryComplete()
379 public void setPhotoId(final long photoId, final Uri lookupUri) { in setPhotoId() argument
382 mPhotoView.assignContactUri(lookupUri); in setPhotoId()
385 startPhotoQuery(photoId, lookupUri, in setPhotoId()
/packages/apps/Dialer/java/com/android/dialer/app/filterednumber/
DNumbersAdapter.java98 info.lookupUri == null ? null : UriUtils.getLookupKeyFromUri(info.lookupUri); in loadContactPhoto()
105 badge.assignContactUri(info.lookupUri); in loadContactPhoto()
/packages/apps/Dialer/java/com/android/dialer/shortcuts/
DIconFactory.java78 @NonNull Uri lookupUri, @NonNull String displayName, @NonNull String lookupKey) { in create()
84 context.getContentResolver(), lookupUri, false /* preferHighres */); in create()
DPinnedShortcuts.java112 Uri lookupUri = DialerShortcut.getLookupUriFromShortcutInfo(shortcutInfo); in refresh() local
115 context.getContentResolver().query(lookupUri, PROJECTION, null, null, null)) { in refresh()
/packages/apps/Dialer/java/com/android/contacts/common/
DMoreContactUtils.java236 public static Intent getInvitableIntent(AccountType accountType, Uri lookupUri) { in getInvitableIntent() argument
248 intent.setData(lookupUri); in getInvitableIntent()
/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()
DContactSaveService.java504 Uri lookupUri = null; in saveContact() local
573 lookupUri = Contacts.getLookupUri(contactId, lookupKey); in saveContact()
581 lookupUri = RawContacts.getContactLookupUri(resolver, rawContactUri); in saveContact()
583 if (lookupUri != null && Log.isLoggable(TAG, Log.VERBOSE)) { in saveContact()
584 Log.v(TAG, "Saved contact. New URI: " + lookupUri); in saveContact()
669 callbackIntent.setData(lookupUri); in saveContact()
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
DContactLoader.java153 public ContactLoader(Context context, Uri lookupUri) { in ContactLoader() argument
155 mLookupUri = lookupUri; in ContactLoader()
/packages/apps/Dialer/java/com/android/incallui/
DExternalCallNotifier.java420 if (contactInfo.lookupUri != null && contactInfo.userType != ContactsUtils.USER_TYPE_WORK) { in getPersonReference()
421 return contactInfo.lookupUri.toString(); in getPersonReference()
/packages/apps/Messaging/src/com/android/messaging/util/
DContactUtil.java200 final Uri lookupUri = in showOrAddContact() local
202 ContactsContract.QuickContact.showQuickContact(view.getContext(), view, lookupUri, in showOrAddContact() local

12