/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
ContactLookupKey.java | 67 public static void appendToLookupKey(StringBuilder lookupKey, String accountTypeWithDataSet, 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) { [all...] |
GlobalSearchSupport.java | 74 String lookupKey; 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 = c.getString(1) [all...] |
ProfileAwareUriMatcher.java | 120 String lookupKey = uri.getPathSegments().get(lookupKeySegment); 121 if (ContactLookupKey.PROFILE_LOOKUP_KEY.equals(lookupKey)) {
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
ContactEntry.java | 32 public Uri lookupKey;
|
ContactListAdapter.java | 135 public void setSelectedContact(long selectedDirectoryId, String lookupKey, long contactId) { 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)) {
|
DefaultContactListAdapter.java | 108 String lookupKey = getSelectedContactLookupKey(); 109 if (lookupKey != null) { 110 uri = Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, lookupKey);
|
ContactTileAdapter.java | 252 String lookupKey = cursor.getString(mLookupIndex); 259 contact.lookupKey = ContentUris.withAppendedId( 260 Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, lookupKey), id);
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
ContactLoaderTest.java | 104 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 = "aa%12%@!" [all...] |
/packages/apps/Contacts/src/com/android/contacts/ |
NfcHandler.java | 68 final String lookupKey = Uri.encode(contactUri.getPathSegments().get(2)); 72 if (lookupKey.equals(PROFILE_LOOKUP_KEY)) { 78 appendPath(lookupKey).
|
/developers/samples/android/content/contacts/BasicContactables/BasicContactables/src/main/java/com/example/android/basiccontactables/ |
ContactablesLoaderCallbacks.java | 104 String lookupKey = ""; 108 if (!lookupKey.equals(currentLookupKey)) { 111 lookupKey = currentLookupKey;
|
/packages/apps/Dialer/src/com/android/dialer/service/ |
CachedNumberLookupService.java | 15 public void setLookupKey(String lookupKey);
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
ContactLookupKeyTest.java | 142 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, 227 ArrayList<LookupKeySegment> list = key.parse(lookupKey);
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
QuickContactsDemo.java | 83 final String lookupKey = cursor.getString(SUMMARY_LOOKUP_KEY); 84 cache.photoView.assignContactUri(Contacts.getLookupUri(contactId, lookupKey));
|
/packages/apps/Dialer/src/com/android/dialer/database/ |
DialerDatabaseHelper.java | 232 public final String lookupKey; 236 String lookupKey, long photoId) { 241 this.lookupKey = lookupKey; 247 return Objects.hashCode(id, dataId, displayName, phoneNumber, lookupKey, photoId); 261 && Objects.equal(this.lookupKey, that.lookupKey) 272 private final String lookupKey; 275 public ContactMatch(String lookupKey, long id) { 276 this.lookupKey = lookupKey [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/activities/ |
PeopleActivityTest.java | 218 String lookupKey, long id, String returnLookupKey, long returnId) { 219 Uri uri = Contacts.getLookupUri(id, lookupKey); 227 private void expectContactEntityQuery(String lookupKey, int contactId) { 229 Contacts.getLookupUri(contactId, lookupKey), Contacts.Entity.CONTENT_DIRECTORY); 232 row1.put(Contacts.Entity.LOOKUP_KEY, lookupKey);
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/ |
ContactsListFragment.java | 145 final String lookupKey = cursor.getString(ContactsListLoader.COLUMN_LOOKUP_KEY); 146 return Contacts.getLookupUri(contactId, lookupKey);
|
/frameworks/base/core/java/android/widget/ |
QuickContactBadge.java | 324 String lookupKey = cursor.getString(PHONE_LOOKUP_STRING_COLUMN_INDEX); 325 lookupUri = Contacts.getLookupUri(contactId, lookupKey); 339 String lookupKey = cursor.getString(EMAIL_LOOKUP_STRING_COLUMN_INDEX); 340 lookupUri = Contacts.getLookupUri(contactId, lookupKey);
|
/cts/tests/tests/provider/src/android/provider/cts/ |
ContactsContract_ContactsTest.java | 98 String lookupKey = contact.getString(Contacts.LOOKUP_KEY); 100 Uri lookupUri = Contacts.getLookupUri(contactId, lookupKey); 102 lookupKey), contactId), lookupUri);
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
ShowOrCreateActivity.java | 159 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/ |
ContactHeaderWidget.java | 282 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) { 609 mQueryHandler.startQuery(TOKEN_PHOTO_QUERY, lookupKey,
|
/packages/apps/Contacts/src/com/android/contacts/interactions/ |
ContactDeletionInteraction.java | 227 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/ |
SmartDialCursorLoader.java | 95 row[PhoneQuery.LOOKUP_KEY] = contact.lookupKey;
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
JoinContactListAdapter.java | 205 String lookupKey = cursor.getString(ContactQuery.CONTACT_LOOKUP_KEY); 206 return Contacts.getLookupUri(contactId, lookupKey);
|
ContactBrowseListFragment.java | 121 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/ |
ContactInfoHelper.java | 162 String lookupKey = phonesCursor.getString(PhoneQuery.LOOKUP_KEY); 163 info.lookupUri = Contacts.getLookupUri(contactId, lookupKey);
|