Searched refs:lookupKey (Results 1 - 25 of 41) sorted by relevance

12

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DContactLookupKey.java67 public static void appendToLookupKey(StringBuilder lookupKey, String accountTypeWithDataSet, argument
74 if (lookupKey.length() != 0) {
75 lookupKey.append(".");
78 lookupKey.append(getAccountHashCode(accountTypeWithDataSet, accountName));
80 lookupKey.append('r').append(rawContactId).append('-').append(
83 int pos = lookupKey.length();
84 lookupKey.append('i');
85 if (appendEscapedSourceId(lookupKey, sourceId)) {
86 lookupKey.setCharAt(pos, 'e');
109 public ArrayList<LookupKeySegment> parse(String lookupKey) { argument
[all...]
H A DGlobalSearchSupport.java74 String lookupKey; field in class:GlobalSearchSupport.SearchSuggestion
108 list.add(lookupKey); // shortcut id
133 list.add(lookupKey);
135 list.add(lookupKey);
146 return Contacts.getLookupUri(contactId, lookupKey).toString();
152 lookupKey = null;
205 * <p>Note that if {@code lookupKey} is not a valid lookup key, an empty cursor is returned
210 String lookupKey, String filter, CancellationSignal cancellationSignal) {
213 contactId = mContactsProvider.lookupContactIdByLookupKey(db, lookupKey);
259 suggestion.lookupKey
209 handleSearchShortcutRefresh(SQLiteDatabase db, String[] projection, String lookupKey, String filter, CancellationSignal cancellationSignal) argument
[all...]
H A DProfileAwareUriMatcher.java120 String lookupKey = uri.getPathSegments().get(lookupKeySegment);
121 if (ContactLookupKey.PROFILE_LOOKUP_KEY.equals(lookupKey)) {
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
H A DContactEntry.java32 public Uri lookupKey; field in class:ContactEntry
H A DContactListAdapter.java135 public void setSelectedContact(long selectedDirectoryId, String lookupKey, long contactId) { argument
137 mSelectedContactLookupKey = lookupKey;
163 String lookupKey = cursor.getString(ContactQuery.CONTACT_LOOKUP_KEY);
164 Uri uri = Contacts.getLookupUri(contactId, lookupKey);
184 String lookupKey = getSelectedContactLookupKey();
185 if (lookupKey != null && TextUtils.equals(lookupKey,
291 String lookupKey = cursor.getString(ContactQuery.CONTACT_LOOKUP_KEY);
292 if (mSelectedContactLookupKey.equals(lookupKey)) {
H A DDefaultContactListAdapter.java108 String lookupKey = getSelectedContactLookupKey();
109 if (lookupKey != null) {
110 uri = Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, lookupKey);
H A DContactTileAdapter.java252 String lookupKey = cursor.getString(mLookupIndex);
259 contact.lookupKey = ContentUris.withAppendedId(
260 Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, lookupKey), id);
H A DContactTileView.java97 mLookupUri = entry.lookupKey;
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/
H A DContactLoaderTest.java104 final String lookupKey = "aa%12%@!";
108 Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, lookupKey),
113 queries.fetchAllData(entityUri, contactId, rawContactId, dataId, lookupKey);
120 assertEquals(lookupKey, contact.getLookupKey());
133 final String lookupKey = "aa%12%@!";
139 Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, lookupKey),
144 queries.fetchContactIdAndLookupFromRawContactUri(rawContactUri, contactId, lookupKey);
145 queries.fetchAllData(entityUri, contactId, rawContactId, dataId, lookupKey);
152 assertEquals(lookupKey, contact.getLookupKey());
165 final String lookupKey
[all...]
/packages/apps/Contacts/src/com/android/contacts/
H A DNfcHandler.java68 final String lookupKey = Uri.encode(contactUri.getPathSegments().get(2));
72 if (lookupKey.equals(PROFILE_LOOKUP_KEY)) {
78 appendPath(lookupKey).
/packages/apps/Dialer/src/com/android/dialer/service/
H A DCachedNumberLookupService.java15 public void setLookupKey(String lookupKey); argument
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DContactLookupKeyTest.java142 String lookupKey = "0i1.0i2.0i3";
146 Contacts.LOOKUP_KEY, lookupKey);
164 Uri lookupUri = Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, lookupKey);
224 private void assertLookupKey(String lookupKey, int[] accountHashCodes, int[] types, argument
227 ArrayList<LookupKeySegment> list = key.parse(lookupKey);
/packages/apps/Dialer/src/com/android/dialer/database/
H A DDialerDatabaseHelper.java233 public final String lookupKey; field in class:DialerDatabaseHelper.ContactNumber
237 String lookupKey, long photoId) {
242 this.lookupKey = lookupKey;
248 return Objects.hashCode(id, dataId, displayName, phoneNumber, lookupKey, photoId);
262 && Objects.equal(this.lookupKey, that.lookupKey)
273 private final String lookupKey; field in class:DialerDatabaseHelper.ContactMatch
276 public ContactMatch(String lookupKey, long id) { argument
277 this.lookupKey
236 ContactNumber(long id, long dataID, String displayName, String phoneNumber, String lookupKey, long photoId) argument
[all...]
/packages/apps/Contacts/tests/src/com/android/contacts/activities/
H A DPeopleActivityTest.java218 String lookupKey, long id, String returnLookupKey, long returnId) {
219 Uri uri = Contacts.getLookupUri(id, lookupKey);
227 private void expectContactEntityQuery(String lookupKey, int contactId) { argument
229 Contacts.getLookupUri(contactId, lookupKey), Contacts.Entity.CONTENT_DIRECTORY);
232 row1.put(Contacts.Entity.LOOKUP_KEY, lookupKey);
217 expectContactLookupQuery( String lookupKey, long id, String returnLookupKey, long returnId) argument
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
H A DContactsListFragment.java145 final String lookupKey = cursor.getString(ContactsListLoader.COLUMN_LOOKUP_KEY);
146 return Contacts.getLookupUri(contactId, lookupKey);
/packages/apps/Contacts/src/com/android/contacts/activities/
H A DShowOrCreateActivity.java159 String lookupKey = null;
165 lookupKey = cursor.getString(LOOKUP_KEY_INDEX);
173 final Uri contactUri = Contacts.getLookupUri(contactId, lookupKey);
/packages/experimental/LoaderApp/src/com/android/loaderapp/
H A DContactHeaderWidget.java282 String lookupKey = cursor.getString(
284 bindFromContactUriInternal(Contacts.getLookupUri(contactId, lookupKey),
298 String lookupKey = cursor.getString(
300 bindFromContactUriInternal(Contacts.getLookupUri(contactId, lookupKey),
601 * @param lookupKey the lookup uri.
604 protected void startPhotoQuery(long photoId, Uri lookupKey, boolean resetQueryHandler) { argument
609 mQueryHandler.startQuery(TOKEN_PHOTO_QUERY, lookupKey,
/packages/apps/Contacts/src/com/android/contacts/interactions/
H A DContactDeletionInteraction.java227 String lookupKey = null;
240 lookupKey = cursor.getString(COLUMN_INDEX_LOOKUP_KEY);
262 final Uri contactUri = Contacts.getLookupUri(contactId, lookupKey);
/packages/apps/Dialer/src/com/android/dialer/dialpad/
H A DSmartDialCursorLoader.java95 row[PhoneQuery.LOOKUP_KEY] = contact.lookupKey;
/packages/apps/Contacts/src/com/android/contacts/list/
H A DJoinContactListAdapter.java205 String lookupKey = cursor.getString(ContactQuery.CONTACT_LOOKUP_KEY);
206 return Contacts.getLookupUri(contactId, lookupKey);
H A DContactBrowseListFragment.java121 final String lookupKey = cursor.getString(1);
122 if (contactId != 0 && !TextUtils.isEmpty(lookupKey)) {
123 return Contacts.getLookupUri(contactId, lookupKey);
/packages/apps/Dialer/src/com/android/dialer/calllog/
H A DContactInfoHelper.java162 String lookupKey = phonesCursor.getString(PhoneQuery.LOOKUP_KEY);
163 info.lookupUri = Contacts.getLookupUri(contactId, lookupKey);
/packages/apps/Contacts/src/com/android/contacts/editor/
H A DAggregationSuggestionView.java82 mLookupKey = suggestion.lookupKey;
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
H A DAllIntentsActivity.java342 final String lookupKey = lookupUri.getPathSegments().get(2);
344 lookupKey);
417 final String lookupKey = lookupUri.getPathSegments().get(2);
419 lookupKey);
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
H A DContact.java138 public Contact(Uri requestedUri, Uri uri, Uri lookupUri, long directoryId, String lookupKey, argument
149 mLookupKey = lookupKey;

Completed in 670 milliseconds

12