/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/ |
D | ContactAggregator2Test.java | 104 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "aa", "bottom"); in testCrudAggregationExceptions() local 107 rawContactId1, rawContactId2); in testCrudAggregationExceptions() 110 + " AND " + AggregationExceptions.RAW_CONTACT_ID2 + "=" + rawContactId2 in testCrudAggregationExceptions() 111 + ") OR (" + AggregationExceptions.RAW_CONTACT_ID1 + "=" + rawContactId2 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 | ContactAggregatorTest.java | 104 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "aa", "bottom"); in testCrudAggregationExceptions() local 107 rawContactId1, rawContactId2); in testCrudAggregationExceptions() 110 + " AND " + AggregationExceptions.RAW_CONTACT_ID2 + "=" + rawContactId2 in testCrudAggregationExceptions() 111 + ") OR (" + AggregationExceptions.RAW_CONTACT_ID1 + "=" + rawContactId2 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 | 45 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "johndoe", null); in testLookupKeyUsingDisplayNameAndNoAccount() local 47 AggregationExceptions.TYPE_KEEP_TOGETHER, rawContactId1, rawContactId2); in testLookupKeyUsingDisplayNameAndNoAccount() 52 + rawContactId2 + "-" + normalizedName; in testLookupKeyUsingDisplayNameAndNoAccount() 75 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "johndoe", null); in testLookupKeyUsingSourceIdAndNoAccount() local 76 storeValue(RawContacts.CONTENT_URI, rawContactId2, RawContacts.SOURCE_ID, "4.5.6"); in testLookupKeyUsingSourceIdAndNoAccount() 82 AggregationExceptions.TYPE_KEEP_TOGETHER, rawContactId1, rawContactId2); in testLookupKeyUsingSourceIdAndNoAccount() 103 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "Deer", "Dough"); in testLookupKeySameSourceIdDifferentAccounts() local 104 storeValue(RawContacts.CONTENT_URI, rawContactId2, RawContacts.ACCOUNT_TYPE, "bar"); in testLookupKeySameSourceIdDifferentAccounts() 105 storeValue(RawContacts.CONTENT_URI, rawContactId2, RawContacts.ACCOUNT_NAME, "BAR"); in testLookupKeySameSourceIdDifferentAccounts() 106 storeValue(RawContacts.CONTENT_URI, rawContactId2, RawContacts.SOURCE_ID, "1"); in testLookupKeySameSourceIdDifferentAccounts() [all …]
|
D | GroupsTest.java | 291 final long rawContactId2 = RawContactUtil.createRawContact(this.mResolver, sTestAccount); in testLocalMixedVisible() local 294 this.insertGroupMembership(rawContactId2, groupId); in testLocalMixedVisible() 297 assertNotAggregated(rawContactId1, rawContactId2); in testLocalMixedVisible() 299 assertRawContactVisible(rawContactId2, false); in testLocalMixedVisible() 305 values.put(AggregationExceptions.RAW_CONTACT_ID2, rawContactId2); in testLocalMixedVisible() 309 assertRawContactVisible(rawContactId2, true); in testLocalMixedVisible() 335 final long rawContactId2 = RawContactUtil.createRawContact(this.mResolver, sSecondAccount); in testMultipleSourcesVisible() local 342 assertRawContactVisible(rawContactId2, false); in testMultipleSourcesVisible() 350 assertRawContactVisible(rawContactId2, false); in testMultipleSourcesVisible() 356 values.put(AggregationExceptions.RAW_CONTACT_ID2, rawContactId2); in testMultipleSourcesVisible() [all …]
|
D | ContactsProvider2Test.java | 1073 long rawContactId2 = RawContactUtil.createRawContact(mResolver, account2); in testContactEntitiesWithIdBasedUri() local 1075 AggregationExceptions.TYPE_KEEP_TOGETHER, rawContactId1, rawContactId2); in testContactEntitiesWithIdBasedUri() 1082 assertEntityRows(entityUri, contactId, rawContactId1, rawContactId2); in testContactEntitiesWithIdBasedUri() 1095 long rawContactId2 = RawContactUtil.createRawContact(mResolver, account2); in testContactEntitiesWithLookupUri() local 1097 AggregationExceptions.TYPE_KEEP_TOGETHER, rawContactId1, rawContactId2); in testContactEntitiesWithLookupUri() 1105 assertEntityRows(entityUri, contactId, rawContactId1, rawContactId2); in testContactEntitiesWithLookupUri() 1110 assertEntityRows(entityUri, contactId, rawContactId1, rawContactId2); in testContactEntitiesWithLookupUri() 1115 assertEntityRows(entityUri, contactId, rawContactId1, rawContactId2); in testContactEntitiesWithLookupUri() 1119 long rawContactId2) { in assertEntityRows() argument 1163 values.put(Contacts.Entity.RAW_CONTACT_ID, rawContactId2); in assertEntityRows() [all …]
|
D | BaseContactsProvider2Test.java | 546 protected void setAggregationException(int type, long rawContactId1, long rawContactId2) { in setAggregationException() argument 549 values.put(AggregationExceptions.RAW_CONTACT_ID2, rawContactId2); in setAggregationException() 650 protected void assertAggregated(long rawContactId1, long rawContactId2) { in assertAggregated() argument 652 long contactId2 = queryContactId(rawContactId2); in assertAggregated() 656 protected void assertAggregated(long rawContactId1, long rawContactId2, in assertAggregated() argument 659 long contactId2 = queryContactId(rawContactId2); in assertAggregated() 666 protected void assertNotAggregated(long rawContactId1, long rawContactId2) { in assertNotAggregated() argument 668 long contactId2 = queryContactId(rawContactId2); in assertNotAggregated()
|
D | ContactsActor.java | 785 protected void setAggregationException(int type, long rawContactId1, long rawContactId2) { in setAggregationException() argument 788 values.put(AggregationExceptions.RAW_CONTACT_ID2, rawContactId2); in setAggregationException()
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | RawContactDeltaList.java | 279 Long rawContactId2 = get(index2).getValues().getAsLong(RawContacts._ID); in buildSplitContactDiffHelper() local 281 if (rawContactId2 != null && rawContactId2 >= 0) { in buildSplitContactDiffHelper() 282 builder.withValue(AggregationExceptions.RAW_CONTACT_ID2, rawContactId2); in buildSplitContactDiffHelper()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | ContactSaveService.java | 1718 long rawContactId1, long rawContactId2) { in buildJoinContactDiff() argument 1723 builder.withValue(AggregationExceptions.RAW_CONTACT_ID2, rawContactId2); in buildJoinContactDiff() 1733 long rawContactId1, long rawContactId2, boolean hardSplit) { in buildSplitContactDiff() argument 1741 builder.withValue(AggregationExceptions.RAW_CONTACT_ID2, rawContactId2); in buildSplitContactDiff()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactsProvider2.java | 4924 long rawContactId2; in updateAggregationException() local 4927 rawContactId2 = rcId2; in updateAggregationException() 4929 rawContactId2 = rcId1; in updateAggregationException() 4935 mSelectionArgs2[1] = String.valueOf(rawContactId2); in updateAggregationException() 4943 exceptionValues.put(AggregationExceptions.RAW_CONTACT_ID2, rawContactId2); in updateAggregationException() 4950 aggregator.markForAggregation(rawContactId2, RawContacts.AGGREGATION_MODE_DEFAULT, true); in updateAggregationException() 4953 aggregator.aggregateContact(mTransactionContext.get(), db, rawContactId2); in updateAggregationException() local 5060 final long rawContactId2 = c.getLong(AggregationExceptionQuery.RAW_CONTACT_ID2); in queryAggregationRawContactIds() local 5064 if (rawContactId2 != rawContactId) { in queryAggregationRawContactIds() 5065 aggregationRawContactIds.add(rawContactId2); in queryAggregationRawContactIds()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/ |
D | AbstractContactAggregator.java | 977 long rawContactId2 = c.getLong(AggregateExceptionPrefetchQuery.RAW_CONTACT_ID2); in prefetchAggregationExceptionIds() local 979 mAggregationExceptionIds.add(rawContactId2); in prefetchAggregationExceptionIds()
|