Home
last modified time | relevance | path

Searched refs:rawContactId1 (Results 1 – 15 of 15) sorted by relevance

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/
DContactAggregator2Test.java79 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, "zz", "top"); in testCrudAggregationExceptions() local
83 rawContactId1, rawContactId2); in testCrudAggregationExceptions()
85 String selection = "(" + AggregationExceptions.RAW_CONTACT_ID1 + "=" + rawContactId1 in testCrudAggregationExceptions()
88 + " AND " + AggregationExceptions.RAW_CONTACT_ID2 + "=" + rawContactId1 + ")"; in testCrudAggregationExceptions()
96 assertTrue((rawContactId1 == c.getLong(1) && rawContactId2 == c.getLong(2)) in testCrudAggregationExceptions()
97 || (rawContactId2 == c.getLong(1) && rawContactId1 == c.getLong(2))); in testCrudAggregationExceptions()
103 rawContactId1, rawContactId2); in testCrudAggregationExceptions()
110 assertTrue((rawContactId1 == c.getLong(1) && rawContactId2 == c.getLong(2)) in testCrudAggregationExceptions()
111 || (rawContactId2 == c.getLong(1) && rawContactId1 == c.getLong(2))); in testCrudAggregationExceptions()
117 rawContactId1, rawContactId2); in testCrudAggregationExceptions()
[all …]
DContactAggregatorTest.java79 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, "zz", "top"); in testCrudAggregationExceptions() local
83 rawContactId1, rawContactId2); in testCrudAggregationExceptions()
85 String selection = "(" + AggregationExceptions.RAW_CONTACT_ID1 + "=" + rawContactId1 in testCrudAggregationExceptions()
88 + " AND " + AggregationExceptions.RAW_CONTACT_ID2 + "=" + rawContactId1 + ")"; in testCrudAggregationExceptions()
96 assertTrue((rawContactId1 == c.getLong(1) && rawContactId2 == c.getLong(2)) in testCrudAggregationExceptions()
97 || (rawContactId2 == c.getLong(1) && rawContactId1 == c.getLong(2))); in testCrudAggregationExceptions()
103 rawContactId1, rawContactId2); in testCrudAggregationExceptions()
110 assertTrue((rawContactId1 == c.getLong(1) && rawContactId2 == c.getLong(2)) in testCrudAggregationExceptions()
111 || (rawContactId2 == c.getLong(1) && rawContactId1 == c.getLong(2))); in testCrudAggregationExceptions()
117 rawContactId1, rawContactId2); in testCrudAggregationExceptions()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactLookupKeyTest.java44 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe"); in testLookupKeyUsingDisplayNameAndNoAccount() local
47 AggregationExceptions.TYPE_KEEP_TOGETHER, rawContactId1, rawContactId2); in testLookupKeyUsingDisplayNameAndNoAccount()
51 String expectedLookupKey = "0r" + rawContactId1 + "-" + normalizedName + ".0r" in testLookupKeyUsingDisplayNameAndNoAccount()
54 long contactId = queryContactId(rawContactId1); in testLookupKeyUsingDisplayNameAndNoAccount()
72 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe"); in testLookupKeyUsingSourceIdAndNoAccount() local
73 storeValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.SOURCE_ID, "123"); in testLookupKeyUsingSourceIdAndNoAccount()
82 AggregationExceptions.TYPE_KEEP_TOGETHER, rawContactId1, rawContactId2); in testLookupKeyUsingSourceIdAndNoAccount()
84 AggregationExceptions.TYPE_KEEP_TOGETHER, rawContactId1, rawContactId3); in testLookupKeyUsingSourceIdAndNoAccount()
89 long contactId = queryContactId(rawContactId1); in testLookupKeyUsingSourceIdAndNoAccount()
98 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, "Dear", "Doe"); in testLookupKeySameSourceIdDifferentAccounts() local
[all …]
DGroupsTest.java290 final long rawContactId1 = RawContactUtil.createRawContact(this.mResolver); in testLocalMixedVisible() local
297 assertNotAggregated(rawContactId1, rawContactId2); in testLocalMixedVisible()
298 assertRawContactVisible(rawContactId1, true); in testLocalMixedVisible()
304 values.put(AggregationExceptions.RAW_CONTACT_ID1, rawContactId1); in testLocalMixedVisible()
308 assertRawContactVisible(rawContactId1, true); in testLocalMixedVisible()
334 final long rawContactId1 = RawContactUtil.createRawContact(this.mResolver, sTestAccount); in testMultipleSourcesVisible() local
338 this.insertGroupMembership(rawContactId1, groupId); in testMultipleSourcesVisible()
341 assertRawContactVisible(rawContactId1, false); in testMultipleSourcesVisible()
349 assertRawContactVisible(rawContactId1, true); in testMultipleSourcesVisible()
355 values.put(AggregationExceptions.RAW_CONTACT_ID1, rawContactId1); in testMultipleSourcesVisible()
[all …]
DContactsProvider2Test.java1039 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, account1); in testContactEntitiesWithIdBasedUri() local
1040 insertImHandle(rawContactId1, Im.PROTOCOL_GOOGLE_TALK, null, "gtalk"); in testContactEntitiesWithIdBasedUri()
1046 AggregationExceptions.TYPE_KEEP_TOGETHER, rawContactId1, rawContactId2); in testContactEntitiesWithIdBasedUri()
1048 long contactId = queryContactId(rawContactId1); in testContactEntitiesWithIdBasedUri()
1053 assertEntityRows(entityUri, contactId, rawContactId1, rawContactId2); in testContactEntitiesWithIdBasedUri()
1061 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, account1); in testContactEntitiesWithLookupUri() local
1062 insertImHandle(rawContactId1, Im.PROTOCOL_GOOGLE_TALK, null, "gtalk"); in testContactEntitiesWithLookupUri()
1068 AggregationExceptions.TYPE_KEEP_TOGETHER, rawContactId1, rawContactId2); in testContactEntitiesWithLookupUri()
1070 long contactId = queryContactId(rawContactId1); in testContactEntitiesWithLookupUri()
1076 assertEntityRows(entityUri, contactId, rawContactId1, rawContactId2); in testContactEntitiesWithLookupUri()
[all …]
DBaseContactsProvider2Test.java546 protected void setAggregationException(int type, long rawContactId1, long rawContactId2) { in setAggregationException() argument
548 values.put(AggregationExceptions.RAW_CONTACT_ID1, rawContactId1); in setAggregationException()
650 protected void assertAggregated(long rawContactId1, long rawContactId2) { in assertAggregated() argument
651 long contactId1 = queryContactId(rawContactId1); in assertAggregated()
656 protected void assertAggregated(long rawContactId1, long rawContactId2, in assertAggregated() argument
658 long contactId1 = queryContactId(rawContactId1); in assertAggregated()
666 protected void assertNotAggregated(long rawContactId1, long rawContactId2) { in assertNotAggregated() argument
667 long contactId1 = queryContactId(rawContactId1); in assertNotAggregated()
DContactsActor.java717 protected void setAggregationException(int type, long rawContactId1, long rawContactId2) { in setAggregationException() argument
719 values.put(AggregationExceptions.RAW_CONTACT_ID1, rawContactId1); in setAggregationException()
DContactMetadataProviderTest.java523 long rawContactId1 = RawContactUtil.createRawContactWithAccountDataSet( in setupData() local
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
DEntitySet.java210 Long rawContactId1 = get(index1).getValues().getAsLong(RawContacts._ID); in buildSplitContactDiff() local
211 if (rawContactId1 != null && rawContactId1 >= 0) { in buildSplitContactDiff()
212 builder.withValue(AggregationExceptions.RAW_CONTACT_ID1, rawContactId1); in buildSplitContactDiff()
/packages/apps/Contacts/src/com/android/contacts/model/
DRawContactDeltaList.java269 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/apps/Contacts/src/com/android/contacts/
DContactSaveService.java1718 long rawContactId1, long rawContactId2) { in buildJoinContactDiff() argument
1722 builder.withValue(AggregationExceptions.RAW_CONTACT_ID1, rawContactId1); in buildJoinContactDiff()
1733 long rawContactId1, long rawContactId2, boolean hardSplit) { in buildSplitContactDiff() argument
1740 builder.withValue(AggregationExceptions.RAW_CONTACT_ID1, rawContactId1); in buildSplitContactDiff()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsProvider2.java4893 long rawContactId1; in updateAggregationException() local
4896 rawContactId1 = rcId1; in updateAggregationException()
4900 rawContactId1 = rcId2; in updateAggregationException()
4904 mSelectionArgs2[0] = String.valueOf(rawContactId1); in updateAggregationException()
4912 exceptionValues.put(AggregationExceptions.RAW_CONTACT_ID1, rawContactId1); in updateAggregationException()
4919 aggregator.markForAggregation(rawContactId1, RawContacts.AGGREGATION_MODE_DEFAULT, true); in updateAggregationException()
4922 aggregator.aggregateContact(mTransactionContext.get(), db, rawContactId1); in updateAggregationException() local
4924 mTransactionContext.get().markRawContactMetadataDirty(rawContactId1, in updateAggregationException()
5059 final long rawContactId1 = c.getLong(AggregationExceptionQuery.RAW_CONTACT_ID1); in queryAggregationRawContactIds() local
5061 if (rawContactId1 != rawContactId) { in queryAggregationRawContactIds()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
DContactAggregator.java571 long rawContactId1 = c.getLong(AggregateExceptionQuery.RAW_CONTACT_ID1); in pickBestMatchBasedOnExceptions() local
573 if (rawContactId == rawContactId1) { in pickBestMatchBasedOnExceptions()
DContactAggregator2.java522 long rawContactId1 = c.getLong(AggregateExceptionQuery.RAW_CONTACT_ID1); in updateMatchScoresBasedOnExceptions() local
526 if (rawContactId == rawContactId1) { in updateMatchScoresBasedOnExceptions()
DAbstractContactAggregator.java975 long rawContactId1 = c.getLong(AggregateExceptionPrefetchQuery.RAW_CONTACT_ID1); in prefetchAggregationExceptionIds() local
977 mAggregationExceptionIds.add(rawContactId1); in prefetchAggregationExceptionIds()