/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/ |
D | ContactLoaderTest.java | 112 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/ |
D | ContactLookupKeyTest.java | 59 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 …]
|
D | ContactsProvider2Test.java | 856 Uri lookupUri = ContactsContract.Contacts.getLookupUri(contactId, lookupKey); in testDataDirectoryWithLookupUri() local 857 Uri dataUri = Uri.withAppendedPath(lookupUri, Contacts.Data.CONTENT_DIRECTORY); in testDataDirectoryWithLookupUri() 862 lookupUri = ContactsContract.Contacts.getLookupUri(contactId + 1, lookupKey); in testDataDirectoryWithLookupUri() 863 dataUri = Uri.withAppendedPath(lookupUri, Contacts.Data.CONTENT_DIRECTORY); in testDataDirectoryWithLookupUri() 1449 Uri lookupUri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, "123"); in testPhoneLookupStarUseCases() local 1452 assertStoredValues(lookupUri, null, null, new ContentValues[] {values}); in testPhoneLookupStarUseCases() 1454 lookupUri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, "(1) 23"); in testPhoneLookupStarUseCases() 1457 assertStoredValues(lookupUri, null, null, new ContentValues[] {values}); in testPhoneLookupStarUseCases() 1460 lookupUri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, "*1-23"); in testPhoneLookupStarUseCases() 1463 assertStoredValues(lookupUri, null, null, new ContentValues[] {values}); in testPhoneLookupStarUseCases() [all …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
D | ContactLoader.java | 95 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 …]
|
D | Contact.java | 143 public Contact(Uri requestedUri, Uri uri, Uri lookupUri, long directoryId, String lookupKey, in Contact() argument 151 mLookupUri = lookupUri; in Contact()
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
D | ContactInfo.java | 29 public Uri lookupUri; field in ContactInfo 60 result = prime * result + ((lookupUri == null) ? 0 : lookupUri.hashCode()); in hashCode() 71 if (!UriUtils.areEqual(lookupUri, other.lookupUri)) return false; in equals() 86 return Objects.toStringHelper(this).add("lookupUri", lookupUri).add("name", name).add( in toString()
|
D | ContactInfoHelper.java | 117 updatedInfo.lookupUri = createTemporaryContactUri(updatedInfo.formattedNumber); in lookupNumber() 180 info.lookupUri = Contacts.getLookupUri(contactId, lookupKey); in lookupContactFromUri() 324 if (!UriUtils.areEqual(updatedInfo.lookupUri, callLogInfo.lookupUri)) { in updateCallLogContactInfo() 325 values.put(Calls.CACHED_LOOKUP_URI, UriUtils.uriToString(updatedInfo.lookupUri)); in updateCallLogContactInfo() 363 values.put(Calls.CACHED_LOOKUP_URI, UriUtils.uriToString(updatedInfo.lookupUri)); in updateCallLogContactInfo() 404 info.lookupUri = UriUtils.parseUriOrNull(c.getString(CallLogQuery.CACHED_LOOKUP_URI)); in getContactInfo()
|
D | CallLogListItemViewHolder.java | 354 if (info != null && UriUtils.isEncodedContactUri(info.lookupUri)) { in bindActionButtons() 356 info.lookupUri, info.name, info.number, info.type, true /* isNewContact */)); in bindActionButtons() 360 info.lookupUri, info.name, info.number, info.type, false /* isNewContact */)); in bindActionButtons() 456 info.lookupUri, in onClick()
|
D | IntentProvider.java | 131 final Uri lookupUri, 141 if (lookupUri != null) { 142 contactToSave = ContactLoader.parseEncodedContactEntity(lookupUri);
|
D | CallLogAdapter.java | 517 details.contactUri = info.lookupUri; in bindCallLogListViewHolder() 570 views.setPhoto(info.photoId, info.photoUri, info.lookupUri, nameForDefaultImage, in bindCallLogListViewHolder()
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/ |
D | AllIntentsActivity.java | 304 final Uri lookupUri = Contacts.getLookupUri(getContentResolver(), uri); in onListItemClick() local 305 final String lookupKey = lookupUri.getPathSegments().get(2); in onListItemClick() 315 final Uri lookupUri = Contacts.getLookupUri(getContentResolver(), uri); in onListItemClick() local 316 final Intent intent = new Intent(Intent.ACTION_EDIT, lookupUri); in onListItemClick() 379 final Uri lookupUri = Contacts.getLookupUri(getContentResolver(), uri); in onListItemClick() local 380 final String lookupKey = lookupUri.getPathSegments().get(2); in onListItemClick() 390 final Uri lookupUri = Contacts.getLookupUri(getContentResolver(), uri); in onListItemClick() local 391 final Intent intent = new Intent(Intent.ACTION_VIEW, lookupUri); in onListItemClick()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
D | UriUtils.java | 80 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/Email/src/com/android/email/activity/ |
D | ContactStatusLoader.java | 76 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/ |
D | ContactHeaderWidget.java | 264 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/Contacts/src/com/android/contacts/ |
D | ContactSaveService.java | 372 Uri lookupUri = null; in saveContact() local 424 lookupUri = Contacts.getLookupUri(contactId, lookupKey); in saveContact() 432 lookupUri = RawContacts.getContactLookupUri(resolver, rawContactUri); in saveContact() 434 if (lookupUri != null) { in saveContact() 435 Log.v(TAG, "Saved contact. New URI: " + lookupUri); in saveContact() 520 callbackIntent.setData(lookupUri); in saveContact()
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | ContactEditorBaseFragment.java | 1358 public void load(String action, Uri lookupUri, Bundle intentExtras) { in load() argument 1360 mLookupUri = lookupUri; in load() 1424 final Uri lookupUri = maybeConvertToLegacyLookupUri( in onSaveCompleted() local 1426 resultIntent = ImplicitIntentsUtil.composeQuickContactIntent(lookupUri, in onSaveCompleted() 1441 final Uri lookupUri = maybeConvertToLegacyLookupUri( in onSaveCompleted() local 1447 lookupUri, getMaterialPalette(), updatedPhotos, photoId, in onSaveCompleted()
|
/packages/apps/InCallUI/src/com/android/incallui/ |
D | ContactInfoCache.java | 382 cce.lookupUri = null; in buildEntry() 384 cce.lookupUri = Contacts.getLookupUri(info.contactIdOrZero, info.lookupKeyOrNull); in buildEntry() 588 public Uri lookupUri; // Sent to NotificationMananger field in ContactInfoCache.ContactCacheEntry
|
D | StatusBarNotifier.java | 371 if (contactInfo.lookupUri != null) { in addPersonReference() 372 builder.addPerson(contactInfo.lookupUri.toString()); in addPersonReference()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/ |
D | MoreContactUtils.java | 228 public static Intent getInvitableIntent(AccountType accountType, Uri lookupUri) { in getInvitableIntent() argument 240 intent.setData(lookupUri); in getInvitableIntent()
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
D | ContactLoader.java | 153 public ContactLoader(Context context, Uri lookupUri) { in ContactLoader() argument 155 mLookupUri = lookupUri; in ContactLoader()
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
D | QuickContactActivity.java | 854 Uri lookupUri = intent.getData(); in processIntent() local 857 if (lookupUri != null && LEGACY_AUTHORITY.equals(lookupUri.getAuthority())) { in processIntent() 858 final long rawContactId = ContentUris.parseId(lookupUri); in processIntent() 859 lookupUri = RawContacts.getContactLookupUri(getContentResolver(), in processIntent() 866 if (lookupUri == null) { in processIntent() 870 mLookupUri = lookupUri; in processIntent()
|
/packages/experimental/NotificationShowcase/src/com/android/example/notificationshowcase/ |
D | NotificationService.java | 95 Uri lookupUri = ContactsContract.Contacts.getLookupUri(contactId, lookupKey); in makeBigTextNotification() local 96 personUri = lookupUri.toString(); in makeBigTextNotification()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | ContactUtil.java | 200 final Uri lookupUri = in showOrAddContact() local 202 ContactsContract.QuickContact.showQuickContact(view.getContext(), view, lookupUri, in showOrAddContact() local
|
/packages/apps/Dialer/src/com/android/dialer/list/ |
D | PhoneFavoritesTileAdapter.java | 275 contact.lookupUri = ContentUris.withAppendedId( in saveCursorToCache() 670 unstarAndUnpinContact(mDraggedEntry.lookupUri); in onDroppedOnRemove()
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
D | ConfirmAddDetailActivity.java | 503 Uri lookupUri = Contacts.getLookupUri(mContactId, mLookupKey); in onQueryComplete() local 504 startPhotoQuery(photoId, lookupUri); in onQueryComplete()
|