Home
last modified time | relevance | path

Searched refs:lookupKey (Results 1 – 25 of 69) sorted by relevance

123

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactLookupKey.java65 public static void appendToLookupKey(StringBuilder lookupKey, String accountTypeWithDataSet, in appendToLookupKey() argument
72 if (lookupKey.length() != 0) { in appendToLookupKey()
73 lookupKey.append("."); in appendToLookupKey()
76 lookupKey.append(getAccountHashCode(accountTypeWithDataSet, accountName)); in appendToLookupKey()
78 lookupKey.append('r').append(rawContactId).append('-').append( in appendToLookupKey()
81 int pos = lookupKey.length(); in appendToLookupKey()
82 lookupKey.append('i'); in appendToLookupKey()
83 if (appendEscapedSourceId(lookupKey, sourceId)) { in appendToLookupKey()
84 lookupKey.setCharAt(pos, 'e'); in appendToLookupKey()
107 public ArrayList<LookupKeySegment> parse(String lookupKey) { in parse() argument
[all …]
DGlobalSearchSupport.java74 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()
DProfileAwareUriMatcher.java126 String lookupKey = uri.getPathSegments().get(lookupKeySegment); in mapsToProfile() local
127 if (ContactLookupKey.PROFILE_LOOKUP_KEY.equals(lookupKey)) { in mapsToProfile()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DBugleRecipientEntry.java34 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()
DFrequentContactsCursorBuilder.java95 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/Dialer/src/com/android/dialer/database/
DDialerDatabaseHelper.java275 public final String lookupKey; field in DialerDatabaseHelper.ContactNumber
280 String lookupKey, long photoId, int carrierPresence) { in ContactNumber() argument
285 this.lookupKey = lookupKey; in ContactNumber()
292 return Objects.hashCode(id, dataId, displayName, phoneNumber, lookupKey, photoId, in hashCode()
307 && Objects.equal(this.lookupKey, that.lookupKey) in equals()
319 private final String lookupKey; field in DialerDatabaseHelper.ContactMatch
322 public ContactMatch(String lookupKey, long id) { in ContactMatch() argument
323 this.lookupKey = lookupKey; in ContactMatch()
329 return Objects.hashCode(lookupKey, id); in hashCode()
339 return Objects.equal(this.lookupKey, that.lookupKey) in equals()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DContactListAdapter.java147 public void setSelectedContact(long selectedDirectoryId, String lookupKey, long contactId) { in setSelectedContact() argument
149 mSelectedContactLookupKey = lookupKey; in setSelectedContact()
175 String lookupKey = cursor.getString(ContactQuery.CONTACT_LOOKUP_KEY); in getContactUri() local
176 Uri uri = Contacts.getLookupUri(contactId, lookupKey); in getContactUri()
205 String lookupKey = getSelectedContactLookupKey(); in isSelectedContact() local
206 if (lookupKey != null && TextUtils.equals(lookupKey, in isSelectedContact()
314 String lookupKey = cursor.getString(ContactQuery.CONTACT_LOOKUP_KEY); in getSelectedContactPosition() local
315 if (mSelectedContactLookupKey.equals(lookupKey)) { in getSelectedContactPosition()
DPhoneNumberPickerFragment.java228 final String lookupKey = getLookupKey(position); in callNumber() local
229 if (!TextUtils.isEmpty(lookupKey)) { in callNumber()
230 maybeTrackAnalytics(lookupKey); in callNumber()
384 private void maybeTrackAnalytics(String lookupKey) { in maybeTrackAnalytics() argument
386 JSONObject json = new JSONObject(lookupKey); in maybeTrackAnalytics()
DShortcutIntentBuilder.java254 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()
DContactTileStarredView.java52 protected DefaultImageRequest getDefaultImageRequest(String displayName, String lookupKey) { in getDefaultImageRequest() argument
53 return new DefaultImageRequest(displayName, lookupKey, ContactPhotoManager.TYPE_DEFAULT, in getDefaultImageRequest()
DContactTileView.java129 entry.lookupKey);
214 protected DefaultImageRequest getDefaultImageRequest(String displayName, String lookupKey) {
215 return new DefaultImageRequest(displayName, lookupKey, isContactPhotoCircular());
DDefaultContactListAdapter.java146 String lookupKey = getSelectedContactLookupKey(); in configureUri() local
147 if (lookupKey != null) { in configureUri()
148 uri = Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, lookupKey); in configureUri()
/packages/apps/Dialer/src/com/android/dialer/calllog/
DContactInfoHelper.java183 String lookupKey = phoneLookupCursor.getString(PhoneQuery.LOOKUP_KEY); in lookupContactFromUri() local
184 ContactInfo contactInfo = createPhoneLookupContactInfo(phoneLookupCursor, lookupKey); in lookupContactFromUri()
185 contactInfo.nameAlternative = lookUpDisplayNameAlternative(mContext, lookupKey, in lookupContactFromUri()
193 private ContactInfo createPhoneLookupContactInfo(Cursor phoneLookupCursor, String lookupKey) { in createPhoneLookupContactInfo() argument
195 info.lookupKey = lookupKey; in createPhoneLookupContactInfo()
197 lookupKey); in createPhoneLookupContactInfo()
212 public static String lookUpDisplayNameAlternative(Context context, String lookupKey, in lookUpDisplayNameAlternative() argument
215 if (lookupKey == null || userType == ContactsUtils.USER_TYPE_WORK) { in lookUpDisplayNameAlternative()
218 final Uri uri = Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, lookupKey); in lookUpDisplayNameAlternative()
/packages/apps/Contacts/tests/src/com/android/contacts/activities/
DPeopleActivityTest.java155 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/
DContactLookupKeyTest.java142 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/apps/Contacts/src/com/android/contacts/
DNfcHandler.java68 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/Dialer/tests/src/com/android/dialer/database/
DDatabaseTestUtils.java62 MatrixCursor nameCursor, int id, String number, int contactId, String lookupKey, in constructNewContact() argument
75 contactCursor.addRow(new Object[]{id, "", "", number, contactId, lookupKey, displayName, in constructNewContact()
80 return new ContactNumber(contactId, id, displayName, number, lookupKey, 0, 0); in constructNewContact()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
DAccountImageHelper.java64 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()
DAccountImageChangeObserver.java175 String lookupKey = null; in getContactIdForAccount() local
181 lookupKey = c.getString(2); in getContactIdForAccount()
189 if (contactId != -1 && !TextUtils.isEmpty(lookupKey)) { in getContactIdForAccount()
/packages/apps/Contacts/src/com/android/contacts/activities/
DShowOrCreateActivity.java167 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/experimental/LoaderApp/src/com/android/loaderapp/
DContactHeaderWidget.java282 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/Contacts/src/com/android/contacts/interactions/
DContactDeletionInteraction.java237 String lookupKey = null; in onLoadFinished() local
250 lookupKey = cursor.getString(COLUMN_INDEX_LOOKUP_KEY); in onLoadFinished()
259 if (TextUtils.isEmpty(lookupKey)) { in onLoadFinished()
281 final Uri contactUri = Contacts.getLookupUri(contactId, lookupKey); in onLoadFinished()
/packages/apps/Messaging/src/com/android/messaging/util/
DContactUtil.java469 final String destinationLabel, final long contactId, final String lookupKey, in createRecipientEntry() argument
474 photoThumbnailUri, true, lookupKey); in createRecipientEntry()
478 photoThumbnailUri, true, lookupKey); in createRecipientEntry()
499 final String lookupKey = cursor.getString( in createRecipientEntryForPhoneQuery() local
507 destinationLabel, contactId, lookupKey, dataId, photoThumbnailUri, in createRecipientEntryForPhoneQuery()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/enterprise/
DEnterpriseContactsCursorWrapper.java110 final String lookupKey = super.getString(columnIndex); in getString() local
111 if (TextUtils.isEmpty(lookupKey)) { in getString()
114 return Contacts.ENTERPRISE_CONTACT_LOOKUP_PREFIX + lookupKey; in getString()
/packages/apps/Dialer/src/com/android/dialer/list/
DPhoneFavoriteTileView.java137 protected DefaultImageRequest getDefaultImageRequest(String displayName, String lookupKey) {
138 return new DefaultImageRequest(displayName, lookupKey, ContactPhotoManager.TYPE_DEFAULT,

123