Home
last modified time | relevance | path

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

12

/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/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()
165 final Uri lookupUri = ContentUris.withAppendedId( in testLoadContactWithRawContactIdUri() local
168 final Uri entityUri = Uri.withAppendedPath(lookupUri, Contacts.Entity.CONTENT_DIRECTORY); in testLoadContactWithRawContactIdUri()
181 assertEquals(lookupUri, contact.getLookupUri()); in testLoadContactWithRawContactIdUri()
191 final Uri lookupUri = ContentUris.withAppendedId(lookupNoIdUri, CONTACT_ID); in testLoadContactWithContactLookupUri() local
205 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.java852 Uri lookupUri = ContactsContract.Contacts.getLookupUri(contactId, lookupKey); in testDataDirectoryWithLookupUri() local
853 Uri dataUri = Uri.withAppendedPath(lookupUri, Contacts.Data.CONTENT_DIRECTORY); in testDataDirectoryWithLookupUri()
858 lookupUri = ContactsContract.Contacts.getLookupUri(contactId + 1, lookupKey); in testDataDirectoryWithLookupUri()
859 dataUri = Uri.withAppendedPath(lookupUri, Contacts.Data.CONTENT_DIRECTORY); in testDataDirectoryWithLookupUri()
1445 Uri lookupUri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, "123"); in testPhoneLookupStarUseCases() local
1448 assertStoredValues(lookupUri, null, null, new ContentValues[] {values}); in testPhoneLookupStarUseCases()
1450 lookupUri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, "(1) 23"); in testPhoneLookupStarUseCases()
1453 assertStoredValues(lookupUri, null, null, new ContentValues[] {values}); in testPhoneLookupStarUseCases()
1456 lookupUri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, "*1-23"); in testPhoneLookupStarUseCases()
1459 assertStoredValues(lookupUri, null, null, new ContentValues[] {values}); in testPhoneLookupStarUseCases()
[all …]
/packages/apps/Dialer/src/com/android/dialer/calllog/
DCallLogAdapter.java756 final Uri lookupUri = info.lookupUri; in bindView() local
793 geocode, callTypes, date, duration, name, ntype, label, lookupUri, photoUri, in bindView()
807 String lookupKey = lookupUri == null ? null in bindView()
808 : ContactInfoHelper.getLookupKeyFromUri(lookupUri); in bindView()
819 setPhoto(views, photoUri, lookupUri, nameForDefaultImage, lookupKey, contactType); in bindView()
821 setPhoto(views, photoId, lookupUri, nameForDefaultImage, lookupKey, contactType); in bindView()
1079 if (UriUtils.isEncodedContactUri(info.lookupUri)) { in bindBadge()
1097 if (info.lookupUri == null) { in bindBadge()
1105 addContactFromLookupUri(info.lookupUri); in bindBadge()
1152 if (!UriUtils.areEqual(updatedInfo.lookupUri, callLogInfo.lookupUri)) { in updateCallLogContactInfoCache()
[all …]
DContactInfo.java29 public Uri lookupUri; field in ContactInfo
57 result = prime * result + ((lookupUri == null) ? 0 : lookupUri.hashCode()); in hashCode()
68 if (!UriUtils.areEqual(lookupUri, other.lookupUri)) return false; in equals()
83 return Objects.toStringHelper(this).add("lookupUri", lookupUri).add("name", name).add( in toString()
DContactInfoHelper.java106 updatedInfo.lookupUri = createTemporaryContactUri(updatedInfo.formattedNumber); in lookupNumber()
163 info.lookupUri = Contacts.getLookupUri(contactId, lookupKey); in lookupContactFromUri()
270 public static String getLookupKeyFromUri(Uri lookupUri) { in getLookupKeyFromUri() argument
275 if (lookupUri != null && !UriUtils.isEncodedContactUri(lookupUri)) { in getLookupKeyFromUri()
276 final List<String> segments = lookupUri.getPathSegments(); in getLookupKeyFromUri()
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DContactLoader.java95 public ContactLoader(Context context, Uri lookupUri, boolean postViewNotification) { in ContactLoader() argument
96 this(context, lookupUri, false, false, postViewNotification, false); in ContactLoader()
99 public ContactLoader(Context context, Uri lookupUri, boolean loadGroupMetaData, in ContactLoader() argument
103 mLookupUri = lookupUri; in ContactLoader()
104 mRequestedUri = lookupUri; in ContactLoader()
361 public static Contact parseEncodedContactEntity(Uri lookupUri) { in parseEncodedContactEntity() argument
363 return loadEncodedContactEntity(lookupUri, lookupUri); in parseEncodedContactEntity()
369 private static Contact loadEncodedContactEntity(Uri uri, Uri lookupUri) throws JSONException { in loadEncodedContactEntity() argument
383 lookupUri, in loadEncodedContactEntity()
643 Uri lookupUri; in loadContactHeaderData() local
[all …]
DContact.java143 public Contact(Uri requestedUri, Uri uri, Uri lookupUri, long directoryId, String lookupKey, in Contact() argument
151 mLookupUri = lookupUri; in Contact()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
DAllIntentsActivity.java347 final Uri lookupUri = Contacts.getLookupUri(getContentResolver(), uri); in onListItemClick() local
348 final String lookupKey = lookupUri.getPathSegments().get(2); in onListItemClick()
358 final Uri lookupUri = Contacts.getLookupUri(getContentResolver(), uri); in onListItemClick() local
359 final Intent intent = new Intent(Intent.ACTION_EDIT, lookupUri); in onListItemClick()
422 final Uri lookupUri = Contacts.getLookupUri(getContentResolver(), uri); in onListItemClick() local
423 final String lookupKey = lookupUri.getPathSegments().get(2); in onListItemClick()
433 final Uri lookupUri = Contacts.getLookupUri(getContentResolver(), uri); in onListItemClick() local
434 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/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/src/com/android/dialer/
DCallDetailActivity.java558 final Uri lookupUri; in getPhoneCallDetailsForUri() local
573 lookupUri = null; in getPhoneCallDetailsForUri()
581 lookupUri = info.lookupUri; in getPhoneCallDetailsForUri()
592 nameText, numberType, numberLabel, lookupUri, photoUri, sourceType, in getPhoneCallDetailsForUri()
/packages/apps/Contacts/src/com/android/contacts/
DContactSaveService.java345 Uri lookupUri = null; in saveContact() local
389 lookupUri = Contacts.getLookupUri(contactId, lookupKey); in saveContact()
397 lookupUri = RawContacts.getContactLookupUri(resolver, rawContactUri); in saveContact()
399 Log.v(TAG, "Saved contact. New URI: " + lookupUri); in saveContact()
484 callbackIntent.setData(lookupUri); in saveContact()
/packages/apps/InCallUI/src/com/android/incallui/
DContactInfoCache.java332 cce.lookupUri = null; in buildEntry()
334 cce.lookupUri = Contacts.getLookupUri(info.contactIdOrZero, info.lookupKeyOrNull); in buildEntry()
530 public Uri lookupUri; // Sent to NotificationMananger field in ContactInfoCache.ContactCacheEntry
DStatusBarNotifier.java406 if (contactInfo.lookupUri != null) { in addPersonReference()
407 builder.addPerson(contactInfo.lookupUri.toString()); in addPersonReference()
/packages/apps/Contacts/src/com/android/contacts/editor/
DContactEditorFragment.java475 public void load(String action, Uri lookupUri, Bundle intentExtras) { in load() argument
477 mLookupUri = lookupUri; in load()
1379 final Uri lookupUri; in onSaveCompleted() local
1387 lookupUri = legacyUri; in onSaveCompleted()
1390 lookupUri = contactLookupUri; in onSaveCompleted()
1393 (Rect) null, lookupUri, QuickContactActivity.MODE_FULLY_EXPANDED, null); in onSaveCompleted()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DQuickContactActivity.java793 Uri lookupUri = intent.getData(); in processIntent() local
796 if (lookupUri != null && LEGACY_AUTHORITY.equals(lookupUri.getAuthority())) { in processIntent()
797 final long rawContactId = ContentUris.parseId(lookupUri); in processIntent()
798 lookupUri = RawContacts.getContactLookupUri(getContentResolver(), in processIntent()
805 if (lookupUri == null) { in processIntent()
809 mLookupUri = lookupUri; in processIntent()
/packages/apps/ContactsCommon/src/com/android/contacts/common/
DMoreContactUtils.java220 public static Intent getInvitableIntent(AccountType accountType, Uri lookupUri) { in getInvitableIntent() argument
232 intent.setData(lookupUri); in getInvitableIntent()
/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/experimental/NotificationShowcase/src/com/android/example/notificationshowcase/
DNotificationService.java95 Uri lookupUri = ContactsContract.Contacts.getLookupUri(contactId, lookupKey); in makeBigTextNotification() local
96 personUri = lookupUri.toString(); in makeBigTextNotification()
/packages/apps/Dialer/src/com/android/dialer/list/
DPhoneFavoritesTileAdapter.java275 contact.lookupUri = ContentUris.withAppendedId( in saveCursorToCache()
670 unstarAndUnpinContact(mDraggedEntry.lookupUri); in onDroppedOnRemove()
/packages/apps/Contacts/src/com/android/contacts/activities/
DConfirmAddDetailActivity.java500 Uri lookupUri = Contacts.getLookupUri(mContactId, mLookupKey); in onQueryComplete() local
501 startPhotoQuery(photoId, lookupUri); in onQueryComplete()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DContactEntry.java32 public Uri lookupUri; field in ContactEntry
/packages/apps/Email/provider_src/com/android/email/service/
DAttachmentService.java918 final Uri lookupUri = EmailContent.uriWithLimit(Attachment.CONTENT_URI, in processQueue() local
920 final Cursor c = this.getContentResolver().query(lookupUri, in processQueue()
/packages/apps/Calendar/src/com/android/calendar/
DEventInfoFragment.java2034 final Uri lookupUri = ContactsContract.Data.getContactLookupUri(resolver, dataUri); in showContactInfo() local
2036 if (lookupUri != null) { in showContactInfo()
2038 QuickContact.showQuickContact(getActivity(), rect, lookupUri, in showContactInfo() local

12