/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactLookupKey.java | 67 public static void appendToLookupKey(StringBuilder lookupKey, String accountTypeWithDataSet, in appendToLookupKey() argument 74 if (lookupKey.length() != 0) { in appendToLookupKey() 75 lookupKey.append("."); in appendToLookupKey() 78 lookupKey.append(getAccountHashCode(accountTypeWithDataSet, accountName)); in appendToLookupKey() 80 lookupKey.append('r').append(rawContactId).append('-').append( in appendToLookupKey() 83 int pos = lookupKey.length(); in appendToLookupKey() 84 lookupKey.append('i'); in appendToLookupKey() 85 if (appendEscapedSourceId(lookupKey, sourceId)) { in appendToLookupKey() 86 lookupKey.setCharAt(pos, 'e'); in appendToLookupKey() 109 public ArrayList<LookupKeySegment> parse(String lookupKey) { in parse() argument [all …]
|
D | GlobalSearchSupport.java | 74 String lookupKey; field in GlobalSearchSupport.SearchSuggestion 108 list.add(lookupKey); // shortcut id in asList() 133 list.add(lookupKey); in addColumnValue() 135 list.add(lookupKey); in addColumnValue() 146 return Contacts.getLookupUri(contactId, lookupKey).toString(); in buildUri() 152 lookupKey = null; in reset() 210 String lookupKey, String filter, CancellationSignal cancellationSignal) { in handleSearchShortcutRefresh() argument 213 contactId = mContactsProvider.lookupContactIdByLookupKey(db, lookupKey); in handleSearchShortcutRefresh() 260 suggestion.lookupKey = c.getString(1); in addSearchSuggestionsBasedOnFilter()
|
D | ContactsProvider2.java | 3493 final String lookupKey = pathSegments.get(2); in deleteInTransaction() local 3494 final long contactId = lookupContactIdByLookupKey(db, lookupKey); in deleteInTransaction() 3502 final String lookupKey = pathSegments.get(2); in deleteInTransaction() local 3514 args[1] = Uri.encode(lookupKey); in deleteInTransaction() 3922 final String lookupKey = pathSegments.get(2); in updateInTransaction() local 3923 final long contactId = lookupContactIdByLookupKey(db, lookupKey); in updateInTransaction() 5225 String lookupKey = pathSegments.get(2); in queryLocal() local 5233 Contacts._ID, contactId, Contacts.LOOKUP_KEY, lookupKey, in queryLocal() 5242 String.valueOf(lookupContactIdByLookupKey(db, lookupKey))); in queryLocal() 5257 String lookupKey = pathSegments.get(2); in queryLocal() local [all …]
|
/packages/apps/Dialer/src/com/android/dialer/database/ |
D | DialerDatabaseHelper.java | 248 public final String lookupKey; field in DialerDatabaseHelper.ContactNumber 252 String lookupKey, long photoId) { in ContactNumber() argument 257 this.lookupKey = lookupKey; in ContactNumber() 263 return Objects.hashCode(id, dataId, displayName, phoneNumber, lookupKey, photoId); in hashCode() 277 && Objects.equal(this.lookupKey, that.lookupKey) in equals() 288 private final String lookupKey; field in DialerDatabaseHelper.ContactMatch 291 public ContactMatch(String lookupKey, long id) { in ContactMatch() argument 292 this.lookupKey = lookupKey; in ContactMatch() 298 return Objects.hashCode(lookupKey, id); in hashCode() 308 return Objects.equal(this.lookupKey, that.lookupKey) in equals() [all …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
D | ContactListAdapter.java | 137 public void setSelectedContact(long selectedDirectoryId, String lookupKey, long contactId) { in setSelectedContact() argument 139 mSelectedContactLookupKey = lookupKey; in setSelectedContact() 165 String lookupKey = cursor.getString(ContactQuery.CONTACT_LOOKUP_KEY); in getContactUri() local 166 Uri uri = Contacts.getLookupUri(contactId, lookupKey); in getContactUri() 186 String lookupKey = getSelectedContactLookupKey(); in isSelectedContact() local 187 if (lookupKey != null && TextUtils.equals(lookupKey, in isSelectedContact() 295 String lookupKey = cursor.getString(ContactQuery.CONTACT_LOOKUP_KEY); in getSelectedContactPosition() local 296 if (mSelectedContactLookupKey.equals(lookupKey)) { in getSelectedContactPosition()
|
D | ShortcutIntentBuilder.java | 254 private Drawable getPhotoDrawable(byte[] bitmapData, String displayName, String lookupKey) { in getPhotoDrawable() argument 260 false, new DefaultImageRequest(displayName, lookupKey, false)); in getPhotoDrawable() 265 String lookupKey, byte[] bitmapData) { in createContactShortcutIntent() argument 266 Drawable drawable = getPhotoDrawable(bitmapData, displayName, lookupKey); in createContactShortcutIntent() 304 private void createPhoneNumberShortcutIntent(Uri uri, String displayName, String lookupKey, in createPhoneNumberShortcutIntent() argument 307 Drawable drawable = getPhotoDrawable(bitmapData, displayName, lookupKey); in createPhoneNumberShortcutIntent()
|
D | PhoneNumberPickerFragment.java | 207 final String lookupKey = getLookupKey(position); in onItemClick() local 208 if (!TextUtils.isEmpty(lookupKey)) { in onItemClick() 209 maybeTrackAnalytics(lookupKey); in onItemClick() 352 private void maybeTrackAnalytics(String lookupKey) { in maybeTrackAnalytics() argument 354 JSONObject json = new JSONObject(lookupKey); in maybeTrackAnalytics()
|
D | ContactTileAdapter.java | 242 String lookupKey = cursor.getString(mLookupIndex); in createContactEntryFromCursor() local 249 contact.lookupKey = lookupKey; in createContactEntryFromCursor() 251 Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, lookupKey), id); in createContactEntryFromCursor()
|
D | ContactTileView.java | 128 DefaultImageRequest request = getDefaultImageRequest(entry.name, entry.lookupKey); 213 protected DefaultImageRequest getDefaultImageRequest(String displayName, String lookupKey) { 214 return new DefaultImageRequest(displayName, lookupKey, isContactPhotoCircular());
|
D | DefaultContactListAdapter.java | 101 String lookupKey = getSelectedContactLookupKey(); in configureUri() local 102 if (lookupKey != null) { in configureUri() 103 uri = Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, lookupKey); in configureUri()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | BugleRecipientEntry.java | 34 final String lookupKey) { in BugleRecipientEntry() argument 36 directoryId, dataId, photoThumbnailUri, isFirstLevel, isValid, lookupKey); in BugleRecipientEntry() 43 final String lookupKey) { in constructTopLevelEntry() argument 46 ? Uri.parse(thumbnailUriAsString) : null), true, isValid, lookupKey); in constructTopLevelEntry() 53 final String lookupKey) { in constructSecondLevelEntry() argument 56 ? Uri.parse(thumbnailUriAsString) : null), false, isValid, lookupKey); in constructSecondLevelEntry()
|
D | FrequentContactsCursorBuilder.java | 95 final String lookupKey = mFrequentContactsCursor.getString( in build() local 97 lookupKeyToRankMap.put(lookupKey, rank++); in build() 110 final String lookupKey = mAllContactsCursor.getString(ContactUtil.INDEX_LOOKUP_KEY); in build() local 111 if (lookupKeyToRankMap.containsKey(lookupKey)) { in build()
|
/packages/apps/Contacts/tests/src/com/android/contacts/activities/ |
D | PeopleActivityTest.java | 155 String lookupKey, long id, String returnLookupKey, long returnId) { in expectContactLookupQuery() argument 156 Uri uri = Contacts.getLookupUri(id, lookupKey); in expectContactLookupQuery() 164 private void expectContactEntityQuery(String lookupKey, int contactId) { in expectContactEntityQuery() argument 166 Contacts.getLookupUri(contactId, lookupKey), Contacts.Entity.CONTENT_DIRECTORY); in expectContactEntityQuery() 169 row1.put(Contacts.Entity.LOOKUP_KEY, lookupKey); in expectContactEntityQuery()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactLookupKeyTest.java | 142 String lookupKey = "0i1.0i2.0i3"; in testLookupKeyChoosingLargestContact() local 146 Contacts.LOOKUP_KEY, lookupKey); in testLookupKeyChoosingLargestContact() local 164 Uri lookupUri = Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, lookupKey); in testLookupKeyChoosingLargestContact() 224 private void assertLookupKey(String lookupKey, int[] accountHashCodes, int[] types, in assertLookupKey() argument 227 ArrayList<LookupKeySegment> list = key.parse(lookupKey); in assertLookupKey()
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/ |
D | ContactHeaderWidget.java | 282 String lookupKey = cursor.getString( in onQueryComplete() local 284 bindFromContactUriInternal(Contacts.getLookupUri(contactId, lookupKey), in onQueryComplete() 298 String lookupKey = cursor.getString( in onQueryComplete() local 300 bindFromContactUriInternal(Contacts.getLookupUri(contactId, lookupKey), in onQueryComplete() 604 protected void startPhotoQuery(long photoId, Uri lookupKey, boolean resetQueryHandler) { in startPhotoQuery() argument 609 mQueryHandler.startQuery(TOKEN_PHOTO_QUERY, lookupKey, in startPhotoQuery()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | ContactUtil.java | 435 final String destinationLabel, final long contactId, final String lookupKey, in createRecipientEntry() argument 440 photoThumbnailUri, true, lookupKey); in createRecipientEntry() 444 photoThumbnailUri, true, lookupKey); in createRecipientEntry() 465 final String lookupKey = cursor.getString( in createRecipientEntryForPhoneQuery() local 473 destinationLabel, contactId, lookupKey, dataId, photoThumbnailUri, in createRecipientEntryForPhoneQuery()
|
/packages/apps/Contacts/src/com/android/contacts/group/ |
D | GroupEditorFragment.java | 786 String lookupKey = data.getString(GroupEditorQuery.CONTACT_LOOKUP_KEY); 789 listExistingMembers.add(new Member(rawContactId, lookupKey, contactId, 832 String lookupKey = cursor.getString(CONTACT_LOOKUP_KEY_COLUMN_INDEX); 835 Member member = new Member(mRawContactId, lookupKey, contactId, displayName, photoUri); 856 public Member(long rawContactId, String lookupKey, long contactId, String displayName, in Member() argument 860 mLookupKey = lookupKey; in Member() 861 mLookupUri = Contacts.getLookupUri(contactId, lookupKey); in Member()
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
D | ShowOrCreateActivity.java | 167 String lookupKey = null; in onQueryComplete() local 173 lookupKey = cursor.getString(LOOKUP_KEY_INDEX); in onQueryComplete() 179 if (count == 1 && contactId != -1 && !TextUtils.isEmpty(lookupKey)) { in onQueryComplete() 181 final Uri contactUri = Contacts.getLookupUri(contactId, lookupKey); in onQueryComplete()
|
/packages/apps/Contacts/src/com/android/contacts/interactions/ |
D | ContactDeletionInteraction.java | 236 String lookupKey = null; in onLoadFinished() local 249 lookupKey = cursor.getString(COLUMN_INDEX_LOOKUP_KEY); in onLoadFinished() 258 if (TextUtils.isEmpty(lookupKey)) { in onLoadFinished() 276 final Uri contactUri = Contacts.getLookupUri(contactId, lookupKey); in onLoadFinished()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | NfcHandler.java | 68 final String lookupKey = Uri.encode(mContactUri.getPathSegments().get(2)); in createNdefMessage() local 72 if (lookupKey.equals(PROFILE_LOOKUP_KEY)) { in createNdefMessage() 78 appendPath(lookupKey). in createNdefMessage()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
D | AccountImageHelper.java | 64 String lookupKey = null; in getAccountPictureUri() local 74 lookupKey = c.getString(3); in getAccountPictureUri() 84 if (contactId != -1 && !TextUtils.isEmpty(lookupKey) && !TextUtils.isEmpty(photoUri)) { in getAccountPictureUri()
|
D | AccountImageChangeObserver.java | 175 String lookupKey = null; in getContactIdForAccount() local 181 lookupKey = c.getString(2); in getContactIdForAccount() 189 if (contactId != -1 && !TextUtils.isEmpty(lookupKey)) { in getContactIdForAccount()
|
/packages/apps/Dialer/src/com/android/dialer/ |
D | CallDetailActivity.java | 165 String lookupKey = contactUri == null ? null 183 contactUri, photoUri, nameForDefaultImage, lookupKey, contactType); 309 String lookupKey, int contactType) { in loadContactPhotos() argument 311 final DefaultImageRequest request = new DefaultImageRequest(displayName, lookupKey, in loadContactPhotos()
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
D | ContactInfoHelper.java | 178 String lookupKey = phonesCursor.getString(PhoneQuery.LOOKUP_KEY); in lookupContactFromUri() local 179 info.lookupKey = lookupKey; in lookupContactFromUri() 180 info.lookupUri = Contacts.getLookupUri(contactId, lookupKey); in lookupContactFromUri()
|
/packages/apps/Dialer/src/com/android/dialer/list/ |
D | PhoneFavoritesTileAdapter.java | 262 final String lookupKey = cursor.getString(mLookupIndex); in saveCursorToCache() local 274 contact.lookupKey = lookupKey; in saveCursorToCache() 276 Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, lookupKey), id); in saveCursorToCache()
|