/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/ |
D | ContactAggregator2Test.java | 47 import com.android.providers.contacts.testutil.RawContactUtil; 103 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, "zz", "top"); in testCrudAggregationExceptions() 104 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "aa", "bottom"); in testCrudAggregationExceptions() 151 long rawContactId = RawContactUtil.createRawContact(mResolver); in testAggregationCreatesNewAggregate() 166 long rawContactId1 = RawContactUtil.createRawContact(mResolver, ACCOUNT_1); in testAggregationOfExactFullNameMatch() 169 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2); in testAggregationOfExactFullNameMatch() 179 long rawContactId1 = RawContactUtil.createRawContact(mResolver, account); in testAggregationIgnoresInvisibleContact() 185 long rawContactId2 = RawContactUtil.createRawContact(mResolver, account); in testAggregationIgnoresInvisibleContact() 188 long rawContactId3 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2); in testAggregationIgnoresInvisibleContact() 197 long rawContactId1 = RawContactUtil.createRawContact(mResolver, ACCOUNT_1); in testAggregationOfCaseInsensitiveFullNameMatch() [all …]
|
D | ContactAggregatorTest.java | 47 import com.android.providers.contacts.testutil.RawContactUtil; 103 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, "zz", "top"); in testCrudAggregationExceptions() 104 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "aa", "bottom"); in testCrudAggregationExceptions() 151 long rawContactId = RawContactUtil.createRawContact(mResolver); in testAggregationCreatesNewAggregate() 166 long rawContactId1 = RawContactUtil.createRawContact(mResolver, ACCOUNT_1); in testAggregationOfExactFullNameMatch() 169 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2); in testAggregationOfExactFullNameMatch() 179 long rawContactId1 = RawContactUtil.createRawContact(mResolver, account); in testAggregationIgnoresInvisibleContact() 185 long rawContactId2 = RawContactUtil.createRawContact(mResolver, account); in testAggregationIgnoresInvisibleContact() 188 long rawContactId3 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2); in testAggregationIgnoresInvisibleContact() 197 long rawContactId1 = RawContactUtil.createRawContact(mResolver, ACCOUNT_1); in testAggregationOfCaseInsensitiveFullNameMatch() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | SearchIndexManagerTest.java | 34 import com.android.providers.contacts.testutil.RawContactUtil; 53 long rawContactId = RawContactUtil.createRawContact(mResolver); in testSearchIndexForStructuredName() 74 long rawContactId = RawContactUtil.createRawContact(mResolver); in testSearchIndexForStructuredName_phoneticOnly() 99 long rawContactId = RawContactUtil.createRawContact(mResolver); in testSearchIndexForChineseName() 116 long rawContactId = RawContactUtil.createRawContact(mResolver); in testSearchByChineseName() 135 long rawContactId = RawContactUtil.createRawContact(mResolver); in testSearchIndexForKoreanName() 151 long rawContactId = RawContactUtil.createRawContact(mResolver); in testSearchByKoreanName() 175 long rawContactId = RawContactUtil.createRawContact(mResolver); in testSearchByKoreanNameWithTwoCharactersFamilyName() 199 long rawContactId = RawContactUtil.createRawContact(mResolver); in testSearchIndexForOrganization() 217 long rawContactId = RawContactUtil.createRawContact(mResolver); in testSearchIndexForPhoneNumber() [all …]
|
D | ContactLookupKeyTest.java | 28 import com.android.providers.contacts.testutil.RawContactUtil; 52 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe"); in testLookupKeyUsingDisplayNameAndNoAccount() 53 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "johndoe", null); in testLookupKeyUsingDisplayNameAndNoAccount() 80 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe"); in testLookupKeyUsingSourceIdAndNoAccount() 83 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "johndoe", null); in testLookupKeyUsingSourceIdAndNoAccount() 86 long rawContactId3 = RawContactUtil.createRawContactWithName(mResolver, "john", "dough"); in testLookupKeyUsingSourceIdAndNoAccount() 110 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, "Dear", "Doe"); in testLookupKeySameSourceIdDifferentAccounts() 115 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "Deer", "Dough"); in testLookupKeySameSourceIdDifferentAccounts() 141 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe"); in testLookupKeyChoosingLargestContact() 144 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe"); in testLookupKeyChoosingLargestContact() [all …]
|
D | ContactsProvider2Test.java | 105 import com.android.providers.contacts.testutil.RawContactUtil; 1247 long rawContactId = RawContactUtil.createRawContactWithName(mResolver); in testDataDirectoryWithLookupUri() 1294 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, account1); in testContactEntitiesWithIdBasedUri() 1299 long rawContactId2 = RawContactUtil.createRawContact(mResolver, account2); in testContactEntitiesWithIdBasedUri() 1316 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, account1); in testContactEntitiesWithLookupUri() 1321 long rawContactId2 = RawContactUtil.createRawContact(mResolver, account2); in testContactEntitiesWithLookupUri() 1408 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe"); in testDataInsert() 1436 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe"); in testDataInsertAndUpdateHashId() 1493 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe"); in testDataInsertAndUpdateHashId_Photo() 1517 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe"); in testDataInsertPhoneNumberTooLongIsTrimmed() [all …]
|
D | GroupsTest.java | 36 import com.android.providers.contacts.testutil.RawContactUtil; 260 final long rawContactId = RawContactUtil.createRawContact(this.mResolver, sTestAccount); in testDelayVisibleTransaction() 283 final long rawContactId = RawContactUtil.createRawContact(this.mResolver); in testLocalSingleVisible() 291 final long rawContactId1 = RawContactUtil.createRawContact(this.mResolver); in testLocalMixedVisible() 292 final long rawContactId2 = RawContactUtil.createRawContact(this.mResolver, sTestAccount); in testLocalMixedVisible() 314 final long rawContactId = RawContactUtil.createRawContact(this.mResolver, sTestAccount); in testUngroupedVisible() 335 final long rawContactId1 = RawContactUtil.createRawContact(this.mResolver, sTestAccount); in testMultipleSourcesVisible() 336 final long rawContactId2 = RawContactUtil.createRawContact(this.mResolver, sSecondAccount); in testMultipleSourcesVisible()
|
D | DirectoryTest.java | 33 import com.android.providers.contacts.testutil.RawContactUtil; 84 long contactId = queryContactId(RawContactUtil.createRawContactWithName(mResolver, "John", in testForwardingToLocalContacts() 103 long contactId1 = queryContactId(RawContactUtil.createRawContactWithName(mResolver, "Bob", in testForwardingToLocalInvisibleContacts() 109 long contactId2 = queryContactId(RawContactUtil.createRawContactWithName(mResolver, "Helen", in testForwardingToLocalInvisibleContacts()
|
D | VCardTest.java | 23 import com.android.providers.contacts.testutil.RawContactUtil; 42 RawContactUtil.createRawContactWithName(mResolver, "John", "Doe"); in testCompose()
|
D | SqlInjectionDetectionTest.java | 32 import com.android.providers.contacts.testutil.RawContactUtil; 99 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, "Hot", "Tamale"); in testPhoneQueryBadLimit()
|
D | GlobalSearchSupportTest.java | 33 import com.android.providers.contacts.testutil.RawContactUtil; 54 long rawContactId = RawContactUtil.createRawContact(mResolver, account); in testSearchSuggestionsNotInDefaultDirectory()
|
D | BaseContactsProvider2Test.java | 69 import com.android.providers.contacts.testutil.RawContactUtil; 1454 final long rawContactId1 = RawContactUtil.createRawContact(mResolver, mAccount, in createVCardTestContacts() 1458 final long rawContactId2 = RawContactUtil.createRawContact(mResolver, mAccount, in createVCardTestContacts() 1720 long rawContactId = RawContactUtil.createRawContact(mResolver); in build()
|
/packages/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/ |
D | DatabaseAsserts.java | 68 long rawContactId = RawContactUtil.createRawContactWithName(resolver, account); in assertAndCreateContact() 70 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId); in assertAndCreateContact() 83 long rawContactId = RawContactUtil.createRawContactWithName(resolver, firstName, lastName); in assertAndCreateContactWithName() 85 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId); in assertAndCreateContactWithName()
|
D | RawContactUtil.java | 32 public class RawContactUtil { class 63 String[] result = RawContactUtil.queryByRawContactId(resolver, rawContactid, in queryContactIdByRawContactId()
|