Home
last modified time | relevance | path

Searched refs:lookupKey (Results 1 – 25 of 87) 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/providers/ContactsKeysProvider/src/com/android/providers/contactkeys/
DE2eeContactKeysProvider.java123 final String lookupKey = extras.getString(E2eeContactKeys.LOOKUP_KEY); in updateOrInsertE2eeContactKey() local
128 Bundle contactInfo = getContactBasicInfoFromCP2(lookupKey); in updateOrInsertE2eeContactKey()
136 int rowsUpdateOrInserted = mDbHelper.updateOrInsertContactKey(lookupKey, keyValue, in updateOrInsertE2eeContactKey()
155 final String lookupKey = extras.getString(E2eeContactKeys.LOOKUP_KEY); in getE2eeContactKey() local
160 E2eeContactKeysManager.E2eeContactKey contactKey = mDbHelper.getContactKey(lookupKey, in getE2eeContactKey()
178 String lookupKey = extras.getString(E2eeContactKeys.LOOKUP_KEY); in getAllE2eeContactKeys() local
183 mDbHelper.getAllContactKeys(lookupKey); in getAllE2eeContactKeys()
212 String lookupKey = extras.getString(E2eeContactKeys.LOOKUP_KEY); in getOwnerE2eeContactKeys() local
218 mDbHelper.getContactKeysForOwnerPackageName(lookupKey, callerPackageName); in getOwnerE2eeContactKeys()
236 final String lookupKey = extras.getString(E2eeContactKeys.LOOKUP_KEY); in updateE2eeContactKeyLocalVerificationState() local
[all …]
DE2eeContactKeysDatabaseHelper.java93 public List<E2eeContactKeysManager.E2eeContactKey> getAllContactKeys(String lookupKey) { in getAllContactKeys() argument
107 new String[] {lookupKey})) { in getAllContactKeys() argument
139 String lookupKey, String ownerPackageName) { in getContactKeysForOwnerPackageName() argument
153 new String[] {lookupKey, String.valueOf(ownerPackageName)})) { in getContactKeysForOwnerPackageName() argument
181 public E2eeContactKeysManager.E2eeContactKey getContactKey(String lookupKey, in getContactKey() argument
197 new String[] {lookupKey, String.valueOf(ownerPackageName), deviceId, accountId})) { in getContactKey() argument
223 public int updateContactKeyLocalVerificationState(String lookupKey, String ownerPackageName, in updateContactKeyLocalVerificationState() argument
236 updateStatement.bindString(3, lookupKey); in updateContactKeyLocalVerificationState()
248 public int updateContactKeyRemoteVerificationState(String lookupKey, String ownerPackageName, in updateContactKeyRemoteVerificationState() argument
261 updateStatement.bindString(3, lookupKey); in updateContactKeyRemoteVerificationState()
[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/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()
/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/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/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/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/Contacts/src/com/android/contacts/sdn/
DSdnProvider.kt162 Contacts.LOOKUP_KEY -> data.lookupKey() in <lambda>()
174 lookupKey: String?, in <lambda>()
177 if (lookupKey.isNullOrEmpty()) { in <lambda>()
190 val result = sdnRepository.fetchSdn().find { it.lookupKey() == lookupKey } ?: return cursor in <lambda>()
207 Contacts.LOOKUP_KEY -> result.lookupKey() in <lambda>()
/packages/apps/Contacts/tests/src/com/android/contacts/activities/
DPeopleActivityTest.java147 String lookupKey, long id, String returnLookupKey, long returnId) { in expectContactLookupQuery() argument
148 Uri uri = Contacts.getLookupUri(id, lookupKey); in expectContactLookupQuery()
156 private void expectContactEntityQuery(String lookupKey, int contactId) { in expectContactEntityQuery() argument
158 Contacts.getLookupUri(contactId, lookupKey), Contacts.Entity.CONTENT_DIRECTORY); in expectContactEntityQuery()
161 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/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/
DDataAccessServiceImpl.java159 String lookupKey = params.getString(Constants.EXTRA_LOOKUP_KEYS); in onRequest() local
160 if (lookupKey == null || lookupKey.isEmpty()) { in onRequest()
165 lookupKey, callback)); in onRequest()
175 lookupKey = params.getString(Constants.EXTRA_LOOKUP_KEYS); in onRequest()
176 if (lookupKey == null || lookupKey.isEmpty()) { in onRequest()
181 lookupKey, callback)); in onRequest()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactLookupKeyTest.java155 String lookupKey = accountHashCode + "i1." + accountHashCode + "i2." in testLookupKeyChoosingLargestContact() local
160 Contacts.LOOKUP_KEY, lookupKey); in testLookupKeyChoosingLargestContact() local
178 Uri lookupUri = Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, lookupKey); in testLookupKeyChoosingLargestContact()
240 private void assertLookupKey(String lookupKey, int[] accountHashCodes, int[] types, in assertLookupKey() argument
243 ArrayList<LookupKeySegment> list = key.parse(lookupKey); in assertLookupKey()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/transformer/
DPersonEnterpriseTransformer.java183 private static String getCorpLookupUriFromLookupKey(@NonNull String lookupKey, long contactId) { in getCorpLookupUriFromLookupKey() argument
187 ENTERPRISE_CONTACT_LOOKUP_PREFIX + lookupKey), in getCorpLookupUriFromLookupKey()
193 private static String getCorpLookupUriFromLookupKey(@NonNull String lookupKey) { in getCorpLookupUriFromLookupKey() argument
195 Contacts.CONTENT_LOOKUP_URI, ENTERPRISE_CONTACT_LOOKUP_PREFIX + lookupKey) in getCorpLookupUriFromLookupKey()
/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/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/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/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/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();

1234