/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/ |
D | ContactAggregatorTest.java | 103 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, "zz", "top"); in testCrudAggregationExceptions() local 107 rawContactId1, rawContactId2); in testCrudAggregationExceptions() 109 String selection = "(" + AggregationExceptions.RAW_CONTACT_ID1 + "=" + rawContactId1 in testCrudAggregationExceptions() 112 + " AND " + AggregationExceptions.RAW_CONTACT_ID2 + "=" + rawContactId1 + ")"; in testCrudAggregationExceptions() 120 assertTrue((rawContactId1 == c.getLong(1) && rawContactId2 == c.getLong(2)) in testCrudAggregationExceptions() 121 || (rawContactId2 == c.getLong(1) && rawContactId1 == c.getLong(2))); in testCrudAggregationExceptions() 127 rawContactId1, rawContactId2); in testCrudAggregationExceptions() 134 assertTrue((rawContactId1 == c.getLong(1) && rawContactId2 == c.getLong(2)) in testCrudAggregationExceptions() 135 || (rawContactId2 == c.getLong(1) && rawContactId1 == c.getLong(2))); in testCrudAggregationExceptions() 141 rawContactId1, rawContactId2); in testCrudAggregationExceptions() [all …]
|
D | ContactAggregator2Test.java | 103 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, "zz", "top"); in testCrudAggregationExceptions() local 107 rawContactId1, rawContactId2); in testCrudAggregationExceptions() 109 String selection = "(" + AggregationExceptions.RAW_CONTACT_ID1 + "=" + rawContactId1 in testCrudAggregationExceptions() 112 + " AND " + AggregationExceptions.RAW_CONTACT_ID2 + "=" + rawContactId1 + ")"; in testCrudAggregationExceptions() 120 assertTrue((rawContactId1 == c.getLong(1) && rawContactId2 == c.getLong(2)) in testCrudAggregationExceptions() 121 || (rawContactId2 == c.getLong(1) && rawContactId1 == c.getLong(2))); in testCrudAggregationExceptions() 127 rawContactId1, rawContactId2); in testCrudAggregationExceptions() 134 assertTrue((rawContactId1 == c.getLong(1) && rawContactId2 == c.getLong(2)) in testCrudAggregationExceptions() 135 || (rawContactId2 == c.getLong(1) && rawContactId1 == c.getLong(2))); in testCrudAggregationExceptions() 141 rawContactId1, rawContactId2); in testCrudAggregationExceptions() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactLookupKeyTest.java | 54 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe"); in testLookupKeyUsingDisplayNameAndNoAccount() local 57 AggregationExceptions.TYPE_KEEP_TOGETHER, rawContactId1, rawContactId2); in testLookupKeyUsingDisplayNameAndNoAccount() 61 String expectedLookupKey = accountHashCode + "r" + rawContactId1 + "-" + normalizedName in testLookupKeyUsingDisplayNameAndNoAccount() 64 long contactId = queryContactId(rawContactId1); in testLookupKeyUsingDisplayNameAndNoAccount() 82 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe"); in testLookupKeyUsingSourceIdAndNoAccount() local 83 storeValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.SOURCE_ID, "123"); in testLookupKeyUsingSourceIdAndNoAccount() 92 AggregationExceptions.TYPE_KEEP_TOGETHER, rawContactId1, rawContactId2); in testLookupKeyUsingSourceIdAndNoAccount() 94 AggregationExceptions.TYPE_KEEP_TOGETHER, rawContactId1, rawContactId3); in testLookupKeyUsingSourceIdAndNoAccount() 103 long contactId = queryContactId(rawContactId1); in testLookupKeyUsingSourceIdAndNoAccount() 112 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, "Dear", "Doe"); in testLookupKeySameSourceIdDifferentAccounts() local [all …]
|
D | GroupsTest.java | 291 final long rawContactId1 = RawContactUtil.createRawContact(this.mResolver); in testLocalMixedVisible() local 298 assertNotAggregated(rawContactId1, rawContactId2); in testLocalMixedVisible() 299 assertRawContactVisible(rawContactId1, true); in testLocalMixedVisible() 305 values.put(AggregationExceptions.RAW_CONTACT_ID1, rawContactId1); in testLocalMixedVisible() 309 assertRawContactVisible(rawContactId1, true); in testLocalMixedVisible() 335 final long rawContactId1 = RawContactUtil.createRawContact(this.mResolver, sTestAccount); in testMultipleSourcesVisible() local 339 this.insertGroupMembership(rawContactId1, groupId); in testMultipleSourcesVisible() 342 assertRawContactVisible(rawContactId1, false); in testMultipleSourcesVisible() 350 assertRawContactVisible(rawContactId1, true); in testMultipleSourcesVisible() 356 values.put(AggregationExceptions.RAW_CONTACT_ID1, rawContactId1); in testMultipleSourcesVisible() [all …]
|
D | ContactsProvider2Test.java | 1341 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, account1); in testContactEntitiesWithIdBasedUri() local 1342 insertImHandle(rawContactId1, Im.PROTOCOL_GOOGLE_TALK, null, "gtalk"); in testContactEntitiesWithIdBasedUri() 1348 AggregationExceptions.TYPE_KEEP_TOGETHER, rawContactId1, rawContactId2); in testContactEntitiesWithIdBasedUri() 1350 long contactId = queryContactId(rawContactId1); in testContactEntitiesWithIdBasedUri() 1355 assertEntityRows(entityUri, contactId, rawContactId1, rawContactId2); in testContactEntitiesWithIdBasedUri() 1364 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, account1); in testContactEntitiesWithLookupUri() local 1365 insertImHandle(rawContactId1, Im.PROTOCOL_GOOGLE_TALK, null, "gtalk"); in testContactEntitiesWithLookupUri() 1371 AggregationExceptions.TYPE_KEEP_TOGETHER, rawContactId1, rawContactId2); in testContactEntitiesWithLookupUri() 1373 long contactId = queryContactId(rawContactId1); in testContactEntitiesWithLookupUri() 1379 assertEntityRows(entityUri, contactId, rawContactId1, rawContactId2); in testContactEntitiesWithLookupUri() [all …]
|
D | UnSyncAccountsTest.java | 80 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe", in testAccountUnSynced() local 82 Uri photoUri1 = insertPhoto(rawContactId1); in testAccountUnSynced() 88 assertAggregated(rawContactId1, rawContactId2); in testAccountUnSynced() 90 long contactId = queryContactId(rawContactId1); in testAccountUnSynced()
|
D | ContactsProvider2DefaultAccountTest.java | 493 long rawContactId1 = insertRawContact(SYSTEM_CLOUD_ACCOUNT_1); in testRawContactInsert_whenDefaultAccountSetToCloud_contactCreationNotRestricted() local 499 assertEquals(1, updateRawContactAccount(rawContactId1, SYSTEM_CLOUD_ACCOUNT_2)); in testRawContactInsert_whenDefaultAccountSetToCloud_contactCreationNotRestricted() 533 long rawContactId1 = insertRawContact(SYSTEM_CLOUD_ACCOUNT_1); in testRawContactInsert_whenDefaultAccountSetToCloud_contactCreationRestricted() local 542 assertEquals(1, updateRawContactAccount(rawContactId1, SYSTEM_CLOUD_ACCOUNT_2)); in testRawContactInsert_whenDefaultAccountSetToCloud_contactCreationRestricted() 546 () -> updateRawContactAccount(rawContactId1, null)); in testRawContactInsert_whenDefaultAccountSetToCloud_contactCreationRestricted() 585 long rawContactId1 = insertRawContact(SYSTEM_CLOUD_ACCOUNT_1); in testRawContactInsert_whenDefaultAccountSetToCloud_withManageSimAccountsPermission() local 596 assertEquals(1, updateRawContactAccount(rawContactId1, SYSTEM_CLOUD_ACCOUNT_2)); in testRawContactInsert_whenDefaultAccountSetToCloud_withManageSimAccountsPermission() 600 () -> updateRawContactAccount(rawContactId1, null)); in testRawContactInsert_whenDefaultAccountSetToCloud_withManageSimAccountsPermission()
|
D | BaseContactsProvider2Test.java | 564 protected void setAggregationException(int type, long rawContactId1, long rawContactId2) { in setAggregationException() argument 566 values.put(AggregationExceptions.RAW_CONTACT_ID1, rawContactId1); in setAggregationException() 668 protected void assertAggregated(long rawContactId1, long rawContactId2) { in assertAggregated() argument 669 long contactId1 = queryContactId(rawContactId1); in assertAggregated() 674 protected void assertAggregated(long rawContactId1, long rawContactId2, in assertAggregated() argument 676 long contactId1 = queryContactId(rawContactId1); in assertAggregated() 684 protected void assertNotAggregated(long rawContactId1, long rawContactId2) { in assertNotAggregated() argument 685 long contactId1 = queryContactId(rawContactId1); in assertNotAggregated() 1468 final long rawContactId1 = RawContactUtil.createRawContact(mResolver, mAccount, in createVCardTestContacts() local 1470 DataUtil.insertStructuredName(mResolver, rawContactId1, "John", "Doe"); in createVCardTestContacts() [all …]
|
D | ContactsActor.java | 840 protected void setAggregationException(int type, long rawContactId1, long rawContactId2) { in setAggregationException() argument 842 values.put(AggregationExceptions.RAW_CONTACT_ID1, rawContactId1); in setAggregationException()
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | RawContactDeltaList.java | 269 Long rawContactId1 = get(index1).getValues().getAsLong(RawContacts._ID); in buildSplitContactDiffHelper() local 271 if (rawContactId1 != null && rawContactId1 >= 0) { in buildSplitContactDiffHelper() 272 builder.withValue(AggregationExceptions.RAW_CONTACT_ID1, rawContactId1); in buildSplitContactDiffHelper()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/ |
D | ContactAggregator.java | 569 long rawContactId1 = c.getLong(AggregateExceptionQuery.RAW_CONTACT_ID1); in pickBestMatchBasedOnExceptions() local 571 if (rawContactId == rawContactId1) { in pickBestMatchBasedOnExceptions()
|
D | ContactAggregator2.java | 530 long rawContactId1 = c.getLong(AggregateExceptionQuery.RAW_CONTACT_ID1); in updateMatchScoresBasedOnExceptions() local 534 if (rawContactId == rawContactId1) { in updateMatchScoresBasedOnExceptions()
|
D | AbstractContactAggregator.java | 972 long rawContactId1 = c.getLong(AggregateExceptionPrefetchQuery.RAW_CONTACT_ID1); in prefetchAggregationExceptionIds() local 974 mAggregationExceptionIds.add(rawContactId1); in prefetchAggregationExceptionIds()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | ContactSaveService.java | 1726 long rawContactId1, long rawContactId2) { in buildJoinContactDiff() argument 1730 builder.withValue(AggregationExceptions.RAW_CONTACT_ID1, rawContactId1); in buildJoinContactDiff() 1741 long rawContactId1, long rawContactId2, boolean hardSplit) { in buildSplitContactDiff() argument 1748 builder.withValue(AggregationExceptions.RAW_CONTACT_ID1, rawContactId1); in buildSplitContactDiff()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactsProvider2.java | 5471 long rawContactId1; in updateAggregationException() local 5474 rawContactId1 = rcId1; in updateAggregationException() 5478 rawContactId1 = rcId2; in updateAggregationException() 5482 mSelectionArgs2[0] = String.valueOf(rawContactId1); in updateAggregationException() 5490 exceptionValues.put(AggregationExceptions.RAW_CONTACT_ID1, rawContactId1); in updateAggregationException() 5497 aggregator.markForAggregation(rawContactId1, RawContacts.AGGREGATION_MODE_DEFAULT, true); in updateAggregationException() 5500 aggregator.aggregateContact(mTransactionContext.get(), db, rawContactId1); in updateAggregationException() local 5607 final long rawContactId1 = c.getLong(AggregationExceptionQuery.RAW_CONTACT_ID1); in queryAggregationRawContactIds() local 5609 if (rawContactId1 != rawContactId) { in queryAggregationRawContactIds() 5610 aggregationRawContactIds.add(rawContactId1); in queryAggregationRawContactIds()
|