Home
last modified time | relevance | path

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

1234

/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()
/packages/apps/Contacts/src/com/android/contacts/
DDynamicShortcuts.java265 final String lookupKey = cursor.getString(1); in builderForContactShortcut() local
267 return builderForContactShortcut(id, lookupKey, displayName); in builderForContactShortcut()
271 ShortcutInfo.Builder builderForContactShortcut(long id, String lookupKey, String displayName) { in builderForContactShortcut() argument
272 if (lookupKey == null || displayName == null) { in builderForContactShortcut()
279 final ShortcutInfo.Builder builder = new ShortcutInfo.Builder(mContext, lookupKey) in builderForContactShortcut()
281 Contacts.getLookupUri(id, lookupKey))) in builderForContactShortcut()
307 public ShortcutInfo getQuickContactShortcutInfo(long id, String lookupKey, String displayName) { in getQuickContactShortcutInfo() argument
308 final ShortcutInfo.Builder builder = builderForContactShortcut(id, lookupKey, displayName); in getQuickContactShortcutInfo()
312 addIconForContact(id, lookupKey, displayName, builder); in getQuickContactShortcutInfo()
332 final String lookupKey = cursor.getString(1); in addIconForContact() local
[all …]
DShortcutIntentBuilder.java260 private Drawable getPhotoDrawable(byte[] bitmapData, String displayName, String lookupKey) { in getPhotoDrawable() argument
265 final DefaultImageRequest request = new DefaultImageRequest(displayName, lookupKey, in getPhotoDrawable()
277 String lookupKey, byte[] bitmapData) { in createContactShortcutIntent() argument
288 contactId, lookupKey, displayName); in createContactShortcutIntent()
293 final Drawable drawable = getPhotoDrawable(bitmapData, displayName, lookupKey); in createContactShortcutIntent()
313 private void createPhoneNumberShortcutIntent(Uri uri, String displayName, String lookupKey, in createPhoneNumberShortcutIntent() argument
316 final Drawable drawable = getPhotoDrawable(bitmapData, displayName, lookupKey); in createPhoneNumberShortcutIntent()
347 final String id = shortcutAction + lookupKey + phoneUri.toString().hashCode(); in createPhoneNumberShortcutIntent()
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/Car/libs/car-telephony-common/src/com/android/car/telephony/common/
DInMemoryPhoneBook.java169 public Contact lookupContactByKey(String lookupKey, @Nullable String accountName) { in lookupContactByKey() argument
173 if (TextUtils.isEmpty(lookupKey)) { in lookupContactByKey()
178 return mLookupKeyContactMap.get(accountName).get(lookupKey); in lookupContactByKey()
190 public List<Contact> lookupContactByKey(String lookupKey) { in lookupContactByKey() argument
195 if (TextUtils.isEmpty(lookupKey)) { in lookupContactByKey()
202 if (subMap.containsKey(lookupKey)) { in lookupContactByKey()
203 results.add(subMap.get(lookupKey)); in lookupContactByKey()
219 String lookupKey = cursor.getString(lookupKeyColumn); in onCursorLoaded() local
226 subMap.put(lookupKey, Contact.fromCursor(mContext, cursor, subMap.get(lookupKey))); in onCursorLoaded()
/packages/apps/Dialer/java/com/android/dialer/database/
DDialerDatabaseHelper.java570 final String lookupKey = updatedContactCursor.getString(PhoneQuery.PHONE_LOOKUP_KEY); in insertUpdatedContactsAndNumberPrefix() local
571 if (TextUtils.isEmpty(lookupKey)) { in insertUpdatedContactsAndNumberPrefix()
574 insert.bindString(4, lookupKey); in insertUpdatedContactsAndNumberPrefix()
982 final String lookupKey = cursor.getString(columnLookupKey); in getLooseMatches() local
989 final ContactMatch contactMatch = new ContactMatch(lookupKey, id); in getLooseMatches()
1005 id, dataID, displayName, phoneNumber, lookupKey, photoId, carrierPresence)); in getLooseMatches()
1245 public final String lookupKey; field in DialerDatabaseHelper.ContactNumber
1254 String lookupKey, in ContactNumber() argument
1261 this.lookupKey = lookupKey; in ContactNumber()
1269 id, dataId, displayName, phoneNumber, lookupKey, photoId, carrierPresence); in hashCode()
[all …]
/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/java/com/android/dialer/shortcuts/
DIconFactory.java83 @NonNull Uri lookupUri, @NonNull String displayName, @NonNull String lookupKey) { in create() argument
92 ? createAdaptiveIcon(displayName, lookupKey, inputStream) in create()
93 : createFlatIcon(displayName, lookupKey, inputStream); in create()
98 @NonNull String displayName, @NonNull String lookupKey, @Nullable InputStream inputStream) { in createAdaptiveIcon() argument
106 lookupKey, in createAdaptiveIcon()
122 @NonNull String displayName, @NonNull String lookupKey, @Nullable InputStream inputStream) { in createFlatIcon() argument
128 displayName, lookupKey, LetterTileDrawable.SHAPE_CIRCLE, LetterTileDrawable.TYPE_DEFAULT); in createFlatIcon()
DShortcutUsageReporter.java93 String lookupKey = queryForLookupKey(phoneNumbers[0]); in doInBackground() local
94 if (!TextUtils.isEmpty(lookupKey)) { in doInBackground()
95 LogUtil.i("ShortcutUsageReporter.backgroundLogUsage", "%s", lookupKey); in doInBackground()
102 shortcutManager.reportShortcutUsed(lookupKey); in doInBackground()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactListAdapter.java143 public void setSelectedContact(long selectedDirectoryId, String lookupKey, long contactId) { in setSelectedContact() argument
145 mSelectedContactLookupKey = lookupKey; in setSelectedContact()
171 String lookupKey = cursor.getString(ContactQuery.CONTACT_LOOKUP_KEY); in getContactUri() local
172 Uri uri = Contacts.getLookupUri(contactId, lookupKey); in getContactUri()
209 String lookupKey = getSelectedContactLookupKey(); in isSelectedContact() local
210 if (lookupKey != null && TextUtils.equals(lookupKey, in isSelectedContact()
318 String lookupKey = cursor.getString(ContactQuery.CONTACT_LOOKUP_KEY); in getSelectedContactPosition() local
319 if (mSelectedContactLookupKey.equals(lookupKey)) { in getSelectedContactPosition()
/packages/apps/Dialer/java/com/android/dialer/speeddial/loader/
DSpeedDialUiItem.java114 String lookupKey = cursor.getString(LOOKUP_KEY); in fromCursor() local
117 .setLookupKey(lookupKey) in fromCursor()
153 } while (cursor.moveToNext() && Objects.equals(lookupKey, cursor.getString(LOOKUP_KEY))); in fromCursor()
177 .setLookupUri(Contacts.getLookupUri(contactId(), lookupKey()).toString()) in getPhotoInfo()
185 .setLookupKey(lookupKey()) in buildSpeedDialEntry()
296 public abstract String lookupKey(); in lookupKey() method in SpeedDialUiItem
358 public abstract Builder setLookupKey(String lookupKey); in setLookupKey() argument
/packages/apps/Contacts/tests/src/com/android/contacts/activities/
DPeopleActivityTest.java146 String lookupKey, long id, String returnLookupKey, long returnId) { in expectContactLookupQuery() argument
147 Uri uri = Contacts.getLookupUri(id, lookupKey); in expectContactLookupQuery()
155 private void expectContactEntityQuery(String lookupKey, int contactId) { in expectContactEntityQuery() argument
157 Contacts.getLookupUri(contactId, lookupKey), Contacts.Entity.CONTENT_DIRECTORY); in expectContactEntityQuery()
160 row1.put(Contacts.Entity.LOOKUP_KEY, lookupKey); in expectContactEntityQuery()
/packages/apps/Dialer/java/com/android/dialer/phonenumbercache/
DContactInfoHelper.java101 Context context, String lookupKey, @UserType long userType, @Nullable Long directoryId) { in lookUpDisplayNameAlternative() argument
103 if (lookupKey == null || userType == ContactsUtils.USER_TYPE_WORK) { in lookUpDisplayNameAlternative()
119 final Uri uri = Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, lookupKey); in lookUpDisplayNameAlternative()
349 String lookupKey = phoneLookupCursor.getString(PhoneQuery.LOOKUP_KEY); in lookupContactFromUri() local
350 ContactInfo contactInfo = createPhoneLookupContactInfo(phoneLookupCursor, lookupKey); in lookupContactFromUri()
356 private ContactInfo createPhoneLookupContactInfo(Cursor phoneLookupCursor, String lookupKey) { in createPhoneLookupContactInfo() argument
358 info.lookupKey = lookupKey; in createPhoneLookupContactInfo()
360 Contacts.getLookupUri(phoneLookupCursor.getLong(PhoneQuery.PERSON_ID), lookupKey); in createPhoneLookupContactInfo()
/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/activities/
DShowOrCreateActivity.java166 String lookupKey = null; in onQueryComplete() local
172 lookupKey = cursor.getString(LOOKUP_KEY_INDEX); in onQueryComplete()
178 if (count == 1 && contactId != -1 && !TextUtils.isEmpty(lookupKey)) { in onQueryComplete()
180 final Uri contactUri = Contacts.getLookupUri(contactId, lookupKey); in onQueryComplete()
/packages/apps/Contacts/tests/src/com/android/contacts/
DDynamicShortcutsTests.java250 final String lookupKey, final String name) { in isShortcutForContact() argument
257 && lookupKey.equals(other.getId()) in isShortcutForContact()
265 " lookup=" + lookupKey + " and display_name=" + name); in isShortcutForContact()
270 private ShortcutInfo shortcutFor(long contactId, String lookupKey, String name) {
272 .builderForContactShortcut(contactId, lookupKey, name).build();
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DAccountImageHelper.java62 String lookupKey = null; in getAccountPictureUri() local
72 lookupKey = c.getString(3); in getAccountPictureUri()
82 if (contactId != -1 && !TextUtils.isEmpty(lookupKey) && !TextUtils.isEmpty(photoUri)) { in getAccountPictureUri()
/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/apps/Dialer/java/com/android/dialer/phonelookup/cp2/
DCp2Projections.java98 String lookupKey = cursor.getString(CP2_INFO_LOOKUP_KEY_INDEX); in buildCp2ContactInfoFromCursor() local
120 if (!TextUtils.isEmpty(lookupKey)) { in buildCp2ContactInfoFromCursor()
122 Contacts.getLookupUri(contactId, lookupKey) in buildCp2ContactInfoFromCursor()
/packages/apps/Dialer/java/com/android/contacts/common/list/
DContactTileView.java95 DefaultImageRequest request = getDefaultImageRequest(entry.namePrimary, entry.lookupKey);
160 protected DefaultImageRequest getDefaultImageRequest(String displayName, String lookupKey) {
161 return new DefaultImageRequest(displayName, lookupKey, isContactPhotoCircular());
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DContactMediaChooser.java117 String lookupKey = null; in onActivityResult() local
126 lookupKey = c.getString(0); in onActivityResult()
129 final Uri vCardUri = Uri.withAppendedPath(Contacts.CONTENT_VCARD_URI, lookupKey); in onActivityResult()
/packages/apps/Dialer/java/com/android/dialer/searchfragment/cp2/
DCp2Contact.java45 public abstract String lookupKey(); in lookupKey() method in Cp2Contact
76 public abstract Builder setLookupKey(String lookupKey); in setLookupKey() argument
122 row[Projections.LOOKUP_KEY] = lookupKey(); in toCursorRow()
/packages/apps/Contacts/src/com/android/contacts/interactions/
DContactDeletionInteraction.java246 String lookupKey = null; in onLoadFinished() local
259 lookupKey = cursor.getString(COLUMN_INDEX_LOOKUP_KEY); in onLoadFinished()
270 if (TextUtils.isEmpty(lookupKey)) { in onLoadFinished()
292 final Uri contactUri = Contacts.getLookupUri(contactId, lookupKey); in onLoadFinished()

1234