/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 | 73 String lookupKey; field in GlobalSearchSupport.SearchSuggestion 107 list.add(lookupKey); // shortcut id in asList() 132 list.add(lookupKey); in addColumnValue() 134 list.add(lookupKey); in addColumnValue() 145 return Contacts.getLookupUri(contactId, lookupKey).toString(); in buildUri() 151 lookupKey = null; in reset() 209 String lookupKey, String filter) { in handleSearchShortcutRefresh() argument 212 contactId = mContactsProvider.lookupContactIdByLookupKey(db, lookupKey); in handleSearchShortcutRefresh() 256 suggestion.lookupKey = c.getString(1); in addSearchSuggestionsBasedOnFilter()
|
D | ProfileAwareUriMatcher.java | 120 String lookupKey = uri.getPathSegments().get(lookupKeySegment); in mapsToProfile() local 121 if (ContactLookupKey.PROFILE_LOOKUP_KEY.equals(lookupKey)) { in mapsToProfile()
|
D | ContactsProvider2.java | 3291 final String lookupKey = pathSegments.get(2); in deleteInTransaction() local 3292 final long contactId = lookupContactIdByLookupKey(mActiveDb.get(), lookupKey); in deleteInTransaction() 3300 final String lookupKey = pathSegments.get(2); in deleteInTransaction() local 3312 args[1] = Uri.encode(lookupKey); in deleteInTransaction() 3703 final String lookupKey = pathSegments.get(2); in updateInTransaction() local 3704 final long contactId = lookupContactIdByLookupKey(mActiveDb.get(), lookupKey); in updateInTransaction() 4915 String lookupKey = pathSegments.get(2); in queryLocal() local 4923 Contacts._ID, contactId, Contacts.LOOKUP_KEY, lookupKey, in queryLocal() 4932 String.valueOf(lookupContactIdByLookupKey(mActiveDb.get(), lookupKey))); in queryLocal() 4947 String lookupKey = pathSegments.get(2); in queryLocal() local [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/ |
D | ContactLoaderTest.java | 103 final String lookupKey = "aa%12%@!"; in testLoadContactWithContactIdUri() local 107 Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, lookupKey), in testLoadContactWithContactIdUri() 112 queries.fetchAllData(entityUri, contactId, rawContactId, dataId, lookupKey); in testLoadContactWithContactIdUri() 119 assertEquals(lookupKey, contact.getLookupKey()); in testLoadContactWithContactIdUri() 132 final String lookupKey = "aa%12%@!"; in testLoadContactWithOldStyleUri() local 138 Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, lookupKey), in testLoadContactWithOldStyleUri() 143 queries.fetchContactIdAndLookupFromRawContactUri(rawContactUri, contactId, lookupKey); in testLoadContactWithOldStyleUri() 144 queries.fetchAllData(entityUri, contactId, rawContactId, dataId, lookupKey); in testLoadContactWithOldStyleUri() 151 assertEquals(lookupKey, contact.getLookupKey()); in testLoadContactWithOldStyleUri() 164 final String lookupKey = "aa%12%@!"; in testLoadContactWithRawContactIdUri() local [all …]
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | ContactListAdapter.java | 126 public void setSelectedContact(long selectedDirectoryId, String lookupKey, long contactId) { in setSelectedContact() argument 128 mSelectedContactLookupKey = lookupKey; in setSelectedContact() 154 String lookupKey = cursor.getString(ContactQuery.CONTACT_LOOKUP_KEY); in getContactUri() local 155 Uri uri = Contacts.getLookupUri(contactId, lookupKey); in getContactUri() 175 String lookupKey = getSelectedContactLookupKey(); in isSelectedContact() local 176 if (lookupKey != null && TextUtils.equals(lookupKey, in isSelectedContact() 279 String lookupKey = cursor.getString(ContactQuery.CONTACT_LOOKUP_KEY); in getSelectedContactPosition() local 280 if (mSelectedContactLookupKey.equals(lookupKey)) { in getSelectedContactPosition()
|
D | DefaultContactListAdapter.java | 109 String lookupKey = getSelectedContactLookupKey(); in configureUri() local 110 if (lookupKey != null) { in configureUri() 111 uri = Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, lookupKey); in configureUri()
|
D | JoinContactListAdapter.java | 202 String lookupKey = cursor.getString(ContactQuery.CONTACT_LOOKUP_KEY); in getContactUri() local 203 return Contacts.getLookupUri(contactId, lookupKey); in getContactUri()
|
D | ContactTileAdapter.java | 256 String lookupKey = cursor.getString(mLookupIndex); in createContactEntryFromCursor() local 263 contact.lookupKey = ContentUris.withAppendedId( in createContactEntryFromCursor() 264 Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, lookupKey), id); in createContactEntryFromCursor() 676 public Uri lookupKey;
|
D | ContactBrowseListFragment.java | 118 final String lookupKey = cursor.getString(1); in doInBackground() local 119 if (contactId != 0 && !TextUtils.isEmpty(lookupKey)) { in doInBackground() 120 return Contacts.getLookupUri(contactId, lookupKey); in doInBackground()
|
D | ContactTileView.java | 102 mLookupUri = entry.lookupKey;
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/provider/ |
D | ExchangeDirectoryProvider.java | 107 GalContactRow(GalProjection projection, long contactId, String lookupKey, in GalContactRow() argument 143 long contactId, String lookupKey, String accountName, String displayName, in addEmailAddress() argument 147 galProjection, contactId, lookupKey, accountName, displayName); in addEmailAddress() 156 String lookupKey, String accountName, String displayName, int type, String number) { in addPhoneRow() argument 159 projection, contactId, lookupKey, accountName, displayName); in addPhoneRow() 168 long contactId, String lookupKey, String accountName, String displayName, in addNameRow() argument 171 galProjection, contactId, lookupKey, accountName, displayName); in addNameRow() 205 String lookupKey; in query() local 319 lookupKey = pathSegments.get(2); in query() 323 ps = new PackedString(lookupKey); in query() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | NfcHandler.java | 69 final String lookupKey = Uri.encode(contactUri.getPathSegments().get(2)); in createNdefMessage() local 73 if (lookupKey.equals(PROFILE_LOOKUP_KEY)) { in createNdefMessage() 79 appendPath(lookupKey). in createNdefMessage()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactLookupKeyTest.java | 141 String lookupKey = "0i1.0i2.0i3"; in testLookupKeyChoosingLargestContact() local 145 Contacts.LOOKUP_KEY, lookupKey); in testLookupKeyChoosingLargestContact() local 163 Uri lookupUri = Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, lookupKey); in testLookupKeyChoosingLargestContact() 223 private void assertLookupKey(String lookupKey, int[] accountHashCodes, int[] types, in assertLookupKey() argument 226 ArrayList<LookupKeySegment> list = key.parse(lookupKey); in assertLookupKey()
|
/packages/apps/Contacts/tests/src/com/android/contacts/activities/ |
D | PeopleActivityTest.java | 218 String lookupKey, long id, String returnLookupKey, long returnId) { in expectContactLookupQuery() argument 219 Uri uri = Contacts.getLookupUri(id, lookupKey); in expectContactLookupQuery() 227 private void expectContactEntityQuery(String lookupKey, int contactId) { in expectContactEntityQuery() argument 229 Contacts.getLookupUri(contactId, lookupKey), Contacts.Entity.CONTENT_DIRECTORY); in expectContactEntityQuery() 232 row1.put(Contacts.Entity.LOOKUP_KEY, lookupKey); in expectContactEntityQuery()
|
/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/Contacts/src/com/android/contacts/activities/ |
D | ShowOrCreateActivity.java | 159 String lookupKey = null; in onQueryComplete() local 165 lookupKey = cursor.getString(LOOKUP_KEY_INDEX); in onQueryComplete() 173 final Uri contactUri = Contacts.getLookupUri(contactId, lookupKey); in onQueryComplete()
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/ |
D | ContactsListFragment.java | 145 final String lookupKey = cursor.getString(ContactsListLoader.COLUMN_LOOKUP_KEY); in getContactUri() local 146 return Contacts.getLookupUri(contactId, lookupKey); in getContactUri()
|
/packages/apps/Contacts/src/com/android/contacts/interactions/ |
D | ContactDeletionInteraction.java | 228 String lookupKey = null; in onLoadFinished() local 241 lookupKey = cursor.getString(COLUMN_INDEX_LOOKUP_KEY); in onLoadFinished() 263 final Uri contactUri = Contacts.getLookupUri(contactId, lookupKey); in onLoadFinished()
|
/packages/apps/Contacts/src/com/android/contacts/calllog/ |
D | ContactInfoHelper.java | 117 String lookupKey = phonesCursor.getString(PhoneQuery.LOOKUP_KEY); in lookupContactFromUri() local 118 info.lookupUri = Contacts.getLookupUri(contactId, lookupKey); in lookupContactFromUri()
|
/packages/apps/Contacts/src/com/android/contacts/group/ |
D | GroupEditorFragment.java | 780 String lookupKey = data.getString(GroupEditorQuery.CONTACT_LOOKUP_KEY); 783 listExistingMembers.add(new Member(rawContactId, lookupKey, contactId, 826 String lookupKey = cursor.getString(CONTACT_LOOKUP_KEY_COLUMN_INDEX); 829 Member member = new Member(mRawContactId, lookupKey, contactId, displayName, photoUri); 849 public Member(long rawContactId, String lookupKey, long contactId, String displayName, in Member() argument 853 mLookupUri = Contacts.getLookupUri(contactId, lookupKey); in Member()
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/ |
D | AllIntentsActivity.java | 368 final String lookupKey = lookupUri.getPathSegments().get(2); in onListItemClick() local 370 lookupKey); in onListItemClick() 443 final String lookupKey = lookupUri.getPathSegments().get(2); in onListItemClick() local 445 lookupKey); in onListItemClick()
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | AggregationSuggestionView.java | 82 mLookupKey = suggestion.lookupKey; in bindSuggestion()
|
D | AggregationSuggestionEngine.java | 73 public String lookupKey; field in AggregationSuggestionEngine.Suggestion 385 suggestion.lookupKey = mDataCursor.getString(DataQuery.LOOKUP_KEY); in getSuggestions()
|
/packages/apps/Contacts/src/com/android/contacts/detail/ |
D | ContactLoaderFragment.java | 310 final String lookupKey = mContactData.getLookupKey(); in onOptionsItemSelected() 311 Uri shareUri = Uri.withAppendedPath(Contacts.CONTENT_VCARD_URI, lookupKey); in onOptionsItemSelected()
|