/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/ |
D | ContactAggregatorTest.java | 447 long contactId1 = queryContactId(rawContactId1); in testAggregationExceptionKeepIn() local 457 if (contactId1 != newContactId1) { in testAggregationExceptionKeepIn() 458 Cursor cursor = queryContact(contactId1); in testAggregationExceptionKeepIn() 552 long contactId1 = queryContactId(rawContactId1); in testAggregationExceptionKeepOutCheckResultDisplayNames() local 556 assertTrue(contactId1 != contactId2); in testAggregationExceptionKeepOutCheckResultDisplayNames() 557 assertTrue(contactId1 != contactId3); in testAggregationExceptionKeepOutCheckResultDisplayNames() 561 assertDisplayNameEquals(contactId1, rawContactId1); in testAggregationExceptionKeepOutCheckResultDisplayNames() 931 long contactId1 = queryContactId(rawContactId1); in testAggregationSuggestionsBasedOnName() local 935 assertSuggestions(contactId1, contactId2, contactId3); in testAggregationSuggestionsBasedOnName() 949 long contactId1 = queryContactId(rawContactId1); in testAggregationSuggestionsBasedOnPhoneNumber() local [all …]
|
D | ContactAggregator2Test.java | 453 long contactId1 = queryContactId(rawContactId1); in testAggregationExceptionKeepIn() local 463 if (contactId1 != newContactId1) { in testAggregationExceptionKeepIn() 464 Cursor cursor = queryContact(contactId1); in testAggregationExceptionKeepIn() 558 long contactId1 = queryContactId(rawContactId1); in testAggregationExceptionKeepOutCheckResultDisplayNames() local 562 assertTrue(contactId1 != contactId2); in testAggregationExceptionKeepOutCheckResultDisplayNames() 563 assertTrue(contactId1 != contactId3); in testAggregationExceptionKeepOutCheckResultDisplayNames() 567 assertDisplayNameEquals(contactId1, rawContactId1); in testAggregationExceptionKeepOutCheckResultDisplayNames() 928 long contactId1 = queryContactId(rawContactId1); in testAggregationSuggestionsBasedOnName() local 932 assertEquals(contactId1, contactId2); in testAggregationSuggestionsBasedOnName() 933 assertSuggestions(queryContactId(rawContactId5), contactId1, contactId3); in testAggregationSuggestionsBasedOnName() local [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactLookupKeyTest.java | 125 long contactId1 = queryContactId(rawContactId1); in testLookupKeySameSourceIdDifferentAccounts() local 126 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId1), in testLookupKeySameSourceIdDifferentAccounts() 134 assertStoredValue(lookupUri1, Contacts._ID, contactId1); in testLookupKeySameSourceIdDifferentAccounts()
|
D | BaseContactsProvider2Test.java | 669 long contactId1 = queryContactId(rawContactId1); in assertAggregated() local 671 assertTrue(contactId1 == contactId2); in assertAggregated() 676 long contactId1 = queryContactId(rawContactId1); in assertAggregated() local 678 assertTrue(contactId1 == contactId2); in assertAggregated() 680 String displayName = queryDisplayName(contactId1); in assertAggregated() 685 long contactId1 = queryContactId(rawContactId1); in assertNotAggregated() local 687 assertTrue(contactId1 != contactId2); in assertNotAggregated() 1462 final long contactId1 = queryContactId(rawContactId1); in createVCardTestContacts() local 1464 final Uri contact1Uri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId1); in createVCardTestContacts()
|
D | DirectoryTest.java | 103 long contactId1 = queryContactId(RawContactUtil.createRawContactWithName(mResolver, "Bob", in testForwardingToLocalInvisibleContacts() local
|
D | ContactsProvider2Test.java | 2709 long contactId1 = queryContactId(rawContactId1); in testCallablesQuery() local 2719 values1.put(RawContacts.CONTACT_ID, contactId1); in testCallablesQuery() 5243 long contactId1 = queryContactId(rawContactId1); in testSendToVoicemailAndRingtoneAfterAggregation() local 5244 updateSendToVoicemailAndRingtone(contactId1, true, "foo"); in testSendToVoicemailAndRingtoneAfterAggregation() 5255 assertSendToVoicemailAndRingtone(contactId1, true, "foo,bar"); // Either foo or bar in testSendToVoicemailAndRingtoneAfterAggregation() 5260 long contactId1 = queryContactId(rawContactId1); in testDoNotSendToVoicemailAfterAggregation() local 5261 updateSendToVoicemailAndRingtone(contactId1, true, null); in testDoNotSendToVoicemailAfterAggregation() 5277 long contactId1 = queryContactId(rawContactId1); in testSetSendToVoicemailAndRingtonePreservedAfterJoinAndSplit() local 5278 updateSendToVoicemailAndRingtone(contactId1, true, "foo"); in testSetSendToVoicemailAndRingtonePreservedAfterJoinAndSplit() 7552 long contactId1 = queryContactId(rawContactId1); in testPhotoStoreCleanup() local [all …]
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | ContactSaveService.java | 1351 public static Intent createJoinContactsIntent(Context context, long contactId1, in createJoinContactsIntent() argument 1355 serviceIntent.putExtra(ContactSaveService.EXTRA_CONTACT_ID1, contactId1); in createJoinContactsIntent() 1546 long contactId1 = intent.getLongExtra(EXTRA_CONTACT_ID1, -1); in joinContacts() local 1551 long rawContactIds[] = getRawContactIdsForAggregation(contactId1, contactId2); in joinContacts() 1572 Contacts.CONTENT_URI, contactId1); in joinContacts() 1604 final String name = queryNameOfLinkedContacts(new long[] {contactId1, contactId2}); in joinContacts() 1718 private long[] getRawContactIdsForAggregation(long contactId1, long contactId2) { in getRawContactIdsForAggregation() argument 1719 return getRawContactIdsForAggregation(new long[] {contactId1, contactId2}); in getRawContactIdsForAggregation()
|