/development/samples/BusinessCard/src/com/example/android/businesscard/ |
ContactAccessorSdk5.java | 60 long contactId = -1; 67 contactId = cursor.getLong(0); 77 Phone.CONTACT_ID + "=" + contactId, null, Phone.IS_SUPER_PRIMARY + " DESC");
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/database/ |
ContactsTableUtil.java | 58 public static void updateContactLastUpdateByContactId(SQLiteDatabase db, long contactId) { 63 new String[] {String.valueOf(contactId)}); 109 * @param contactId The contact id to delete. 112 public static int deleteContact(SQLiteDatabase db, long contactId) { 113 DeletedContactsTableUtil.insertDeletedContact(db, contactId); 114 return db.delete(Tables.CONTACTS, Contacts._ID + " = ?", new String[]{contactId + ""}); 134 long contactId = cursor.getLong(0); 139 deleteContact(db, contactId);
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
DirectoryTest.java | 79 long contactId = queryContactId(RawContactUtil.createRawContactWithName(mResolver, "John", 90 assertEquals(contactId, cursor.getLong(0));
|
ContactLookupKeyTest.java | 54 long contactId = queryContactId(rawContactId1); 55 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), 60 assertStoredValue(lookupUri, Contacts._ID, contactId); 63 assertStoredValue(ContentUris.withAppendedId(lookupUri, contactId), 64 Contacts._ID, contactId); 67 assertStoredValue(ContentUris.withAppendedId(lookupUri, contactId + 1), 68 Contacts._ID, contactId); 89 long contactId = queryContactId(rawContactId1); 90 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), 94 assertStoredValue(lookupUri, Contacts._ID, contactId); [all...] |
SearchIndexManagerTest.java | 53 long contactId = queryContactId(rawContactId); 69 contactId, null, "John Doe Bob I Parr Helen I Parr PhD par helen parhelen", null); 79 long contactId = queryContactId(rawContactId); 85 contactId, null, "\u695A\u8FAD \u695A\u8FAD CI \u8FAD CHUCI CC C", null); 115 long contactId = queryContactId(rawContactId); 120 assertSearchIndex(contactId, null, 179 long contactId = queryContactId(rawContactId); 190 assertSearchIndex(contactId, 197 long contactId = queryContactId(rawContactId); 201 assertSearchIndex(contactId, null, null, "8005554664 +18005554664 8005551234 +18005551234") [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/ |
DatabaseAsserts.java | 60 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId); 61 MoreAsserts.assertNotEqual(CommonDatabaseUtils.NOT_FOUND, contactId); 63 return new ContactIdPair(contactId, rawContactId); 70 * @param contactId The contact id to check. 73 public static void assertHasDeleteLogGreaterThan(ContentResolver resolver, long contactId, 75 Assert.assertFalse(ContactUtil.recordExistsForContactId(resolver, contactId)); 78 contactId); 90 public ContactIdPair(long contactId, long rawContactId) { 91 this.mContactId = contactId;
|
RawContactUtil.java | 56 public static List<String[]> queryByContactId(ContentResolver resolver, long contactId, 58 Uri uri = ContentUris.withAppendedId(ContactsContract.RawContacts.CONTENT_URI, contactId); 85 long contactId = queryContactIdByRawContactId(resolver, rawContactid); 86 return contactId != CommonDatabaseUtils.NOT_FOUND;
|
/cts/tests/tests/provider/src/android/provider/cts/ |
ContactsContract_DeletedContacts.java | 124 long contactId = Long.parseLong(record[0]); 125 assertFalse(beforeIds.contains(contactId)); 126 assertTrue(afterIds.contains(contactId));
|
ContactsContract_RawContactsTest.java | 185 long contactId = RawContactUtil.queryContactIdByRawContactId(mResolver, rawContactId); 186 MoreAsserts.assertNotEqual(CommonDatabaseUtils.NOT_FOUND, contactId); 188 return ContactUtil.queryContactLastUpdatedTimestamp(mResolver, contactId);
|
ContactsProvider2_AccountRemovalTest.java | 117 long contactId = idList.get(0).mContactId; 119 long baseTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, contactId); 123 while (ContactUtil.queryContactLastUpdatedTimestamp(mResolver, contactId) == baseTime) { 125 "Contact " + contactId + " last updated timestamp has not been updated."); 159 long contactId = NOT_MERGED; 160 while (contactId == NOT_MERGED) { 165 contactId = checkMerged(rawContactId, rawContactId2); 167 return contactId; 171 long contactId = RawContactUtil.queryContactIdByRawContactId(mResolver, rawContactId); 173 if (contactId == contactId2) [all...] |
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
DatabaseAsserts.java | 75 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId); 76 MoreAsserts.assertNotEqual(CommonDatabaseUtils.NOT_FOUND, contactId); 78 return new ContactIdPair(contactId, rawContactId); 89 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId); 90 MoreAsserts.assertNotEqual(CommonDatabaseUtils.NOT_FOUND, contactId); 92 return new ContactIdPair(contactId, rawContactId); 99 * @param contactId The contact id to check. 102 public static void assertHasDeleteLogGreaterThan(ContentResolver resolver, long contactId, 104 Assert.assertFalse(ContactUtil.recordExistsForContactId(resolver, contactId)); 107 contactId); [all...] |
RawContactUtil.java | 76 public static List<String[]> queryByContactId(ContentResolver resolver, long contactId, 78 Uri uri = ContentUris.withAppendedId(URI, contactId); 105 long contactId = queryContactIdByRawContactId(resolver, rawContactid); 106 return contactId != CommonDatabaseUtils.NOT_FOUND;
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
QuickContactsDemo.java | 82 final long contactId = cursor.getLong(SUMMARY_ID_COLUMN_INDEX); 84 cache.photoView.assignContactUri(Contacts.getLookupUri(contactId, lookupKey));
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
ContactInfoHelper.java | 116 long contactId = phonesCursor.getLong(PhoneQuery.PERSON_ID); 118 info.lookupUri = Contacts.getLookupUri(contactId, lookupKey);
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/ |
ContactsListFragment.java | 144 final long contactId = cursor.getLong(ContactsListLoader.COLUMN_ID); 146 return Contacts.getLookupUri(contactId, lookupKey);
|
ContactEntryAdapter.java | 46 public long contactId;
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
ShowOrCreateActivity.java | 158 long contactId = -1; 164 contactId = cursor.getLong(CONTACT_ID_INDEX); 171 if (count == 1 && contactId != -1) { 173 final Uri contactUri = Contacts.getLookupUri(contactId, lookupKey);
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
JoinContactListAdapter.java | 204 long contactId = cursor.getLong(ContactQuery.CONTACT_ID); 206 return Contacts.getLookupUri(contactId, lookupKey);
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
ContactLoaderTest.java | 100 final long contactId = 1; 105 final Uri baseUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); 109 contactId); 113 queries.fetchAllData(entityUri, contactId, rawContactId, dataId, lookupKey); 117 assertEquals(contactId, contact.getId()); 129 final long contactId = 1; 137 final Uri baseUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); 140 contactId); 144 queries.fetchContactIdAndLookupFromRawContactUri(rawContactUri, contactId, lookupKey); 145 queries.fetchAllData(entityUri, contactId, rawContactId, dataId, lookupKey) [all...] |
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
ContactLoader.java | 116 final long contactId = ContentUris.parseId(contactUri); 118 + "=" + contactId, null, null);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
ContactLookupKey.java | 42 public long contactId; 45 if (contactId > another.contactId) { 48 if (contactId < another.contactId) { 250 segment.contactId = -1;
|
GlobalSearchSupport.java | 72 long contactId; 101 list.add(contactId); // _id 121 list.add(contactId); 146 return Contacts.getLookupUri(contactId, lookupKey).toString(); 150 contactId = 0; 211 long contactId; 213 contactId = mContactsProvider.lookupContactIdByLookupKey(db, lookupKey); 215 contactId = -1L; 220 db, projection, ContactsColumns.CONCRETE_ID + "=" + contactId, filter, null, 258 suggestion.contactId = c.getLong(0) [all...] |
/frameworks/base/core/java/android/widget/ |
QuickContactBadge.java | 323 long contactId = cursor.getLong(PHONE_ID_COLUMN_INDEX); 325 lookupUri = Contacts.getLookupUri(contactId, lookupKey); 338 long contactId = cursor.getLong(EMAIL_ID_COLUMN_INDEX); 340 lookupUri = Contacts.getLookupUri(contactId, lookupKey);
|
/packages/apps/Contacts/src/com/android/contacts/interactions/ |
ContactDeletionInteraction.java | 226 long contactId = 0; 239 contactId = cursor.getLong(COLUMN_INDEX_CONTACT_ID); 262 final Uri contactUri = Contacts.getLookupUri(contactId, lookupKey);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
ContactListAdapter.java | 126 public void setSelectedContact(long selectedDirectoryId, String lookupKey, long contactId) { 129 mSelectedContactId = contactId; 153 long contactId = cursor.getLong(ContactQuery.CONTACT_ID); 155 Uri uri = Contacts.getLookupUri(contactId, lookupKey); 167 * lookup key to be the same. We are paying no attention to the contactId, 287 long contactId = cursor.getLong(ContactQuery.CONTACT_ID); 288 if (contactId == mSelectedContactId) {
|