/packages/apps/Contacts/tests/src/com/android/contacts/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() 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/ |
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 | 1036 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/ |
D | ContactInfo.java | 30 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()
|
D | ContactInfoHelper.java | 170 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/ |
D | ContactLoader.java | 93 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 …]
|
D | Contact.java | 141 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/ |
D | GlidePhotoManagerImpl.java | 166 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/ |
D | ContactLoader.java | 88 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 …]
|
D | Contact.java | 113 Uri lookupUri, in Contact() argument 132 mLookupUri = lookupUri; in Contact()
|
/packages/apps/Contacts/src/com/android/contacts/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/Dialer/java/com/android/dialer/util/ |
D | UriUtils.java | 78 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/ |
D | AllIntentsActivity.java | 317 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/ |
D | NumbersAdapter.java | 97 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/ |
D | IntentProvider.java | 210 final Uri lookupUri, 220 if (lookupUri != null) { 221 contactToSave = ContactLoader.parseEncodedContactEntity(lookupUri);
|
D | CallLogListItemViewHolder.java | 783 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/ |
D | MoreContactUtils.java | 200 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/ |
D | PinnedShortcuts.java | 119 Uri lookupUri = DialerShortcut.getLookupUriFromShortcutInfo(shortcutInfo); in refresh() local 122 context.getContentResolver().query(lookupUri, PROJECTION, null, null, null)) { in refresh()
|
D | IconFactory.java | 83 @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/ |
D | MoreContactUtils.java | 228 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/ |
D | ContactResultsLiveData.java | 173 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/ |
D | SmsDatabaseHandler.java | 205 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/ |
D | FavoriteNumberRepository.java | 192 Uri lookupUri = ContactsContract.Contacts.getLookupUri( in lookupContact() local 195 mContext.getContentResolver(), lookupUri); in lookupContact()
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | ExternalCallNotifier.java | 382 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/ |
D | ContactEntry.java | 36 public Uri lookupUri; field in ContactEntry
|