/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/ |
D | ContactAggregator.java | 489 long contactId = mDbHelper.getContactId(rawContactId); in triggerAggregation() local 491 if (contactId != 0) { in triggerAggregation() 492 updateAggregateData(txContext, contactId); in triggerAggregation() 547 private void markContactForAggregation(SQLiteDatabase db, long contactId) { in markContactForAggregation() argument 548 mSelectionArgs1[0] = String.valueOf(contactId); in markContactForAggregation() 614 long contactId = insertContact(db, rawContactId); in onRawContactInsert() local 615 setContactId(rawContactId, contactId); in onRawContactInsert() 616 mDbHelper.updateContactVisible(txContext, contactId); in onRawContactInsert() 617 return contactId; in onRawContactInsert() 649 long contactId = 0; in aggregateContact() local [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/ |
D | ContactMatcher.java | 174 public MatchScore(long contactId) { in MatchScore() argument 175 this.mContactId = contactId; in MatchScore() 178 public void reset(long contactId) { in reset() argument 179 this.mContactId = contactId; in reset() 251 private MatchScore getMatchingScore(long contactId) { in getMatchingScore() argument 252 MatchScore matchingScore = mScores.get(contactId); in getMatchingScore() 256 matchingScore.reset(contactId); in getMatchingScore() 258 matchingScore = new MatchScore(contactId); in getMatchingScore() 262 mScores.put(contactId, matchingScore); in getMatchingScore() 270 public void matchIdentity(long contactId) { in matchIdentity() argument [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
D | ContactLoaderTest.java | 100 final long contactId = 1; in testLoadContactWithContactIdUri() local 105 final Uri baseUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in testLoadContactWithContactIdUri() 109 contactId); in testLoadContactWithContactIdUri() 113 queries.fetchAllData(entityUri, contactId, rawContactId, dataId, lookupKey); in testLoadContactWithContactIdUri() 117 assertEquals(contactId, contact.getId()); in testLoadContactWithContactIdUri() 129 final long contactId = 1; in testLoadContactWithOldStyleUri() local 137 final Uri baseUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in testLoadContactWithOldStyleUri() 140 contactId); in testLoadContactWithOldStyleUri() 144 queries.fetchContactIdAndLookupFromRawContactUri(rawContactUri, contactId, lookupKey); in testLoadContactWithOldStyleUri() 145 queries.fetchAllData(entityUri, contactId, rawContactId, dataId, lookupKey); in testLoadContactWithOldStyleUri() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsProvider2Test.java | 790 long contactId = queryContactId(rawContactId); in testDataDirectoryWithLookupUri() local 791 String lookupKey = queryLookupKey(contactId); in testDataDirectoryWithLookupUri() 794 Uri lookupUri = ContactsContract.Contacts.getLookupUri(contactId, lookupKey); in testDataDirectoryWithLookupUri() 800 lookupUri = ContactsContract.Contacts.getLookupUri(contactId + 1, lookupKey); in testDataDirectoryWithLookupUri() 842 long contactId = queryContactId(rawContactId1); in testContactEntitiesWithIdBasedUri() local 844 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in testContactEntitiesWithIdBasedUri() 847 assertEntityRows(entityUri, contactId, rawContactId1, rawContactId2); in testContactEntitiesWithIdBasedUri() 864 long contactId = queryContactId(rawContactId1); in testContactEntitiesWithLookupUri() local 865 String lookupKey = queryLookupKey(contactId); in testContactEntitiesWithLookupUri() 868 Uri contactLookupUri = ContactsContract.Contacts.getLookupUri(contactId, lookupKey); in testContactEntitiesWithLookupUri() [all …]
|
D | SearchIndexManagerTest.java | 53 long contactId = queryContactId(rawContactId); in testSearchIndexForStructuredName() local 69 contactId, null, "John Doe Bob I Parr Helen I Parr PhD par helen parhelen", null); in testSearchIndexForStructuredName() 79 long contactId = queryContactId(rawContactId); in testSearchIndexForChineseName() local 85 contactId, null, "\u695A\u8FAD \u695A\u8FAD CI \u8FAD CHUCI CC C", null); in testSearchIndexForChineseName() 115 long contactId = queryContactId(rawContactId); in testSearchIndexForKoreanName() local 120 assertSearchIndex(contactId, null, in testSearchIndexForKoreanName() 179 long contactId = queryContactId(rawContactId); in testSearchIndexForOrganization() local 190 assertSearchIndex(contactId, in testSearchIndexForOrganization() 197 long contactId = queryContactId(rawContactId); in testSearchIndexForPhoneNumber() local 201 assertSearchIndex(contactId, null, null, "8005554664 +18005554664 8005551234 +18005551234"); in testSearchIndexForPhoneNumber() [all …]
|
D | ContactLookupKeyTest.java | 54 long contactId = queryContactId(rawContactId1); in testLookupKeyUsingDisplayNameAndNoAccount() local 55 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), in testLookupKeyUsingDisplayNameAndNoAccount() 60 assertStoredValue(lookupUri, Contacts._ID, contactId); in testLookupKeyUsingDisplayNameAndNoAccount() 63 assertStoredValue(ContentUris.withAppendedId(lookupUri, contactId), in testLookupKeyUsingDisplayNameAndNoAccount() 64 Contacts._ID, contactId); in testLookupKeyUsingDisplayNameAndNoAccount() local 67 assertStoredValue(ContentUris.withAppendedId(lookupUri, contactId + 1), in testLookupKeyUsingDisplayNameAndNoAccount() 68 Contacts._ID, contactId); in testLookupKeyUsingDisplayNameAndNoAccount() local 89 long contactId = queryContactId(rawContactId1); in testLookupKeyUsingSourceIdAndNoAccount() local 90 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), in testLookupKeyUsingSourceIdAndNoAccount() 94 assertStoredValue(lookupUri, Contacts._ID, contactId); in testLookupKeyUsingSourceIdAndNoAccount() [all …]
|
D | BaseContactsProvider2Test.java | 516 protected void markInvisible(long contactId) { in markInvisible() argument 521 " WHERE " + BaseColumns._ID + "=" + contactId); in markInvisible() 529 protected Cursor queryContact(long contactId) { in queryContact() argument 530 return mResolver.query(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), in queryContact() 534 protected Cursor queryContact(long contactId, String[] projection) { in queryContact() argument 535 return mResolver.query(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), in queryContact() 546 long contactId = c.getLong(c.getColumnIndex(RawContacts.CONTACT_ID)); in queryContactId() local 548 return contactId; in queryContactId() 551 protected long queryPhotoId(long contactId) { in queryPhotoId() argument 552 Cursor c = queryContact(contactId); in queryPhotoId() [all …]
|
D | GroupsTest.java | 232 final long contactId = this.queryContactId(rawContactId); in assertRawContactVisible() local 233 assertContactVisible(contactId, expected); in assertRawContactVisible() 236 public void assertContactVisible(long contactId, boolean expected) { in assertContactVisible() argument 239 }, Contacts._ID + "=" + contactId, null, null); in assertContactVisible() 246 public ContentProviderOperation buildVisibleAssert(long contactId, boolean visible) { in buildVisibleAssert() argument 248 Contacts._ID + "=" + contactId + " AND " + Contacts.IN_VISIBLE_GROUP + "=" in buildVisibleAssert() 260 final long contactId = this.queryContactId(rawContactId); in testDelayVisibleTransaction() local 261 final Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in testDelayVisibleTransaction() 269 oper.add(buildVisibleAssert(contactId, true)); in testDelayVisibleTransaction() 272 oper.add(buildVisibleAssert(contactId, true)); in testDelayVisibleTransaction() [all …]
|
D | ContactsActor.java | 386 public long createName(long contactId, String name) { in createName() argument 389 values.put(Data.RAW_CONTACT_ID, contactId); in createName() 395 contactId), RawContacts.Data.CONTENT_DIRECTORY); in createName() 400 public long createPhone(long contactId, String phoneNumber) { in createPhone() argument 403 values.put(Data.RAW_CONTACT_ID, contactId); in createPhone() 411 contactId), RawContacts.Data.CONTENT_DIRECTORY); in createPhone() 416 public long createEmail(long contactId, String address) { in createEmail() argument 419 values.put(Data.RAW_CONTACT_ID, contactId); in createEmail() 426 contactId), RawContacts.Data.CONTENT_DIRECTORY); in createEmail() 458 public int getDataCountForContact(long contactId) { in getDataCountForContact() argument [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/ |
D | AllIntentsActivity.java | 318 long contactId = findArbitraryContactWithPhoneNumber(); in onListItemClick() local 319 if (contactId != -1) { in onListItemClick() 320 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in onListItemClick() 332 final long contactId = findArbitraryContactWithPhoneNumber(); in onListItemClick() local 333 final Uri uri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in onListItemClick() 339 final long contactId = findArbitraryContactWithPhoneNumber(); in onListItemClick() local 340 final Uri uri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in onListItemClick() 350 final long contactId = findArbitraryContactWithPhoneNumber(); in onListItemClick() local 351 final Uri uri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in onListItemClick() 358 final long contactId = findArbitraryContactWithPhoneNumber(); in onListItemClick() local [all …]
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/provider/ |
D | ExchangeDirectoryProvider.java | 107 GalContactRow(GalProjection projection, long contactId, String lookupKey, in GalContactRow() argument 112 put(Contacts.Entity.CONTACT_ID, contactId); in GalContactRow() 115 put(Contacts.Entity.RAW_CONTACT_ID, contactId); in GalContactRow() 143 long contactId, String lookupKey, String accountName, String displayName, in addEmailAddress() argument 147 galProjection, contactId, lookupKey, accountName, displayName); in addEmailAddress() 155 static void addPhoneRow(MatrixCursor cursor, GalProjection projection, long contactId, 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() 320 long contactId = (match == GAL_CONTACT_WITH_ID) in query() local [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactsProvider2.java | 3136 long contactId = -1; in insertStatusUpdate() local 3210 contactId = cursor.getLong(DataContactsQuery.CONTACT_ID); in insertStatusUpdate() 3231 mValues.put(PresenceColumns.CONTACT_ID, contactId); in insertStatusUpdate() 3333 if (contactId != -1) { in insertStatusUpdate() 3334 mAggregator.get().updateLastStatusUpdateId(contactId); in insertStatusUpdate() 3407 long contactId = ContentUris.parseId(uri); in deleteInTransaction() local 3408 return deleteContact(contactId, callerIsSyncAdapter); in deleteInTransaction() 3420 final long contactId = lookupContactIdByLookupKey(db, lookupKey); in deleteInTransaction() local 3421 return deleteContact(contactId, callerIsSyncAdapter); in deleteInTransaction() 3431 long contactId = ContentUris.parseId(uri); in deleteInTransaction() local [all …]
|
D | GlobalSearchSupport.java | 72 long contactId; field in GlobalSearchSupport.SearchSuggestion 101 list.add(contactId); // _id in asList() 121 list.add(contactId); in addColumnValue() 146 return Contacts.getLookupUri(contactId, lookupKey).toString(); in buildUri() 150 contactId = 0; in reset() 211 long contactId; in handleSearchShortcutRefresh() local 213 contactId = mContactsProvider.lookupContactIdByLookupKey(db, lookupKey); in handleSearchShortcutRefresh() 215 contactId = -1L; in handleSearchShortcutRefresh() 220 db, projection, ContactsColumns.CONCRETE_ID + "=" + contactId, filter, null, in handleSearchShortcutRefresh() 258 suggestion.contactId = c.getLong(0); in addSearchSuggestionsBasedOnFilter()
|
D | ContactLookupKey.java | 42 public long contactId; field in ContactLookupKey.LookupKeySegment 45 if (contactId > another.contactId) { in compareTo() 48 if (contactId < another.contactId) { in compareTo() 250 segment.contactId = -1; in parse()
|
D | SearchIndexManager.java | 294 for (Long contactId : contactIds) { in updateIndexForRawContacts() 295 sb.append(contactId).append(","); in updateIndexForRawContacts() 361 long contactId = cursor.getLong(0); in buildAndInsertIndex() local 362 if (contactId != currentContactId) { in buildAndInsertIndex() 367 currentContactId = contactId; in buildAndInsertIndex() 387 private void insertIndexRow(SQLiteDatabase db, long contactId, IndexBuilder builder) { in insertIndexRow() argument 392 mValues.put(SearchIndexColumns.CONTACT_ID, contactId); in insertIndexRow()
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | AggregationSuggestionEngine.java | 72 public long contactId; field in AggregationSuggestionEngine.Suggestion 83 return "ID: " + contactId + " rawContacts: " + rawContacts + " name: " + name in toString() 143 public void setContactId(long contactId) { in setContactId() argument 144 if (contactId != mContactId) { in setContactId() 145 mContactId = contactId; in setContactId() 338 long contactId = cursor.getLong(0); in updateSuggestedContactIds() local 339 if (Arrays.binarySearch(mSuggestedContactIds, contactId) < 0) { in updateSuggestedContactIds() 380 long contactId = mDataCursor.getLong(DataQuery.CONTACT_ID); in getSuggestions() local 381 if (contactId != currentContactId) { in getSuggestions() 383 suggestion.contactId = contactId; in getSuggestions() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/ |
D | DatabaseAsserts.java | 60 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId); in assertAndCreateContact() local 61 MoreAsserts.assertNotEqual(CommonDatabaseUtils.NOT_FOUND, contactId); in assertAndCreateContact() 63 return new ContactIdPair(contactId, rawContactId); in assertAndCreateContact() 73 public static void assertHasDeleteLogGreaterThan(ContentResolver resolver, long contactId, in assertHasDeleteLogGreaterThan() argument 75 Assert.assertFalse(ContactUtil.recordExistsForContactId(resolver, contactId)); in assertHasDeleteLogGreaterThan() 78 contactId); in assertHasDeleteLogGreaterThan() 90 public ContactIdPair(long contactId, long rawContactId) { in ContactIdPair() argument 91 this.mContactId = contactId; in ContactIdPair()
|
D | ContactUtil.java | 33 public static void update(ContentResolver resolver, long contactId, in update() argument 35 Uri uri = ContentUris.withAppendedId(URI, contactId); in update() 39 public static void delete(ContentResolver resolver, long contactId) { in delete() argument 40 Uri uri = ContentUris.withAppendedId(URI, contactId); in delete() 44 public static boolean recordExistsForContactId(ContentResolver resolver, long contactId) { in recordExistsForContactId() argument 48 Uri uri = ContentUris.withAppendedId(URI, contactId); in recordExistsForContactId() 56 public static long queryContactLastUpdatedTimestamp(ContentResolver resolver, long contactId) { in queryContactLastUpdatedTimestamp() argument 61 Uri uri = ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, contactId); in queryContactLastUpdatedTimestamp()
|
/packages/apps/Contacts/src/com/android/contacts/group/ |
D | SuggestedMemberListAdapter.java | 117 public void addNewMember(long contactId) { in addNewMember() argument 118 mExistingMemberContactIds.add(contactId); in addNewMember() 121 public void removeMember(long contactId) { in removeMember() argument 122 if (mExistingMemberContactIds.contains(contactId)) { in removeMember() 123 mExistingMemberContactIds.remove(contactId); in removeMember() 216 long contactId = cursor.getLong(CONTACT_ID_COLUMN_INDEX); in performFiltering() local 218 if (mExistingMemberContactIds.contains(contactId)) { in performFiltering() 224 contactId); in performFiltering() 329 public SuggestedMember(long rawContactId, String displayName, long contactId) { in SuggestedMember() argument 332 mContactId = contactId; in SuggestedMember()
|
D | GroupEditorFragment.java | 490 public void loadMemberToAddToGroup(long rawContactId, String contactId) { in loadMemberToAddToGroup() argument 493 args.putString(MEMBER_LOOKUP_URI_KEY, contactId); in loadMemberToAddToGroup() 782 long contactId = data.getLong(GroupEditorQuery.CONTACT_ID); 787 listExistingMembers.add(new Member(rawContactId, lookupKey, contactId, 828 long contactId = cursor.getLong(CONTACT_ID_COLUMN_INDEX); 833 Member member = new Member(mRawContactId, lookupKey, contactId, displayName, photoUri); 853 public Member(long rawContactId, String lookupKey, long contactId, String displayName, in Member() argument 856 mContactId = contactId; in Member() 857 mLookupUri = Contacts.getLookupUri(contactId, lookupKey); in Member()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/ |
D | ContactAggregatorTest.java | 125 long contactId = queryContactId(rawContactId); in testAggregationCreatesNewAggregate() local 126 assertTrue(contactId != 0); in testAggregationCreatesNewAggregate() 128 String displayName = queryDisplayName(contactId); in testAggregationCreatesNewAggregate() 1161 long contactId = queryContactId(rawContactId); in testDisplayNameSources() local 1163 assertNull(queryDisplayName(contactId)); in testDisplayNameSources() 1166 assertEquals("eclair@android.com", queryDisplayName(contactId)); in testDisplayNameSources() 1169 assertEquals("800-555-5555", queryDisplayName(contactId)); in testDisplayNameSources() 1174 assertEquals("Android", queryDisplayName(contactId)); in testDisplayNameSources() 1177 assertEquals("Dro", queryDisplayName(contactId)); in testDisplayNameSources() 1183 assertEquals("Eclair Android", queryDisplayName(contactId)); in testDisplayNameSources() [all …]
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/util/ |
D | ContactsUtils.java | 275 long contactId = -1; in queryForContactId() local 281 contactId = contactIdCursor.getLong(0); in queryForContactId() 288 return contactId; in queryForContactId() 291 public static String querySuperPrimaryPhone(ContentResolver cr, long contactId) { in querySuperPrimaryPhone() argument 295 Uri baseUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in querySuperPrimaryPhone() 315 public static long queryForRawContactId(ContentResolver cr, long contactId) { in queryForRawContactId() argument 321 RawContacts.CONTACT_ID + "=" + contactId, null, null); in queryForRawContactId() 334 public static ArrayList<Long> queryForAllRawContactIds(ContentResolver cr, long contactId) { in queryForAllRawContactIds() argument 340 RawContacts.CONTACT_ID + "=" + contactId, null, null); in queryForAllRawContactIds()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/database/ |
D | ContactsTableUtil.java | 58 public static void updateContactLastUpdateByContactId(SQLiteDatabase db, long contactId) { in updateContactLastUpdateByContactId() argument 63 new String[] {String.valueOf(contactId)}); in updateContactLastUpdateByContactId() 112 public static int deleteContact(SQLiteDatabase db, long contactId) { in deleteContact() argument 113 DeletedContactsTableUtil.insertDeletedContact(db, contactId); in deleteContact() 114 return db.delete(Tables.CONTACTS, Contacts._ID + " = ?", new String[]{contactId + ""}); in deleteContact() 134 long contactId = cursor.getLong(0); in deleteContactIfSingleton() local 139 deleteContact(db, contactId); in deleteContactIfSingleton()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
D | ContactListAdapter.java | 126 public void setSelectedContact(long selectedDirectoryId, String lookupKey, long contactId) { in setSelectedContact() argument 129 mSelectedContactId = contactId; in setSelectedContact() 153 long contactId = cursor.getLong(ContactQuery.CONTACT_ID); in getContactUri() local 155 Uri uri = Contacts.getLookupUri(contactId, lookupKey); in getContactUri() 287 long contactId = cursor.getLong(ContactQuery.CONTACT_ID); in getSelectedContactPosition() local 288 if (contactId == mSelectedContactId) { in getSelectedContactPosition()
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
D | ConfirmAddDetailActivity.java | 387 final long contactId = ContentUris.parseId(data); in doInBackground() local 388 selectionArg = String.valueOf(contactId); in doInBackground() 392 final long contactId = queryForContactId(resolver, rawContactId); in doInBackground() local 393 selectionArg = String.valueOf(contactId); in doInBackground() 411 long contactId = -1; in queryForContactId() local 418 contactId = contactIdCursor.getLong(0); in queryForContactId() 425 return contactId; in queryForContactId()
|