Home
last modified time | relevance | path

Searched refs:rawContactId2 (Results 1 – 11 of 11) sorted by relevance

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/
DContactAggregatorTest.java71 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "aa", "bottom"); in testCrudAggregationExceptions() local
74 rawContactId1, rawContactId2); in testCrudAggregationExceptions()
77 + " AND " + AggregationExceptions.RAW_CONTACT_ID2 + "=" + rawContactId2 in testCrudAggregationExceptions()
78 + ") OR (" + AggregationExceptions.RAW_CONTACT_ID1 + "=" + rawContactId2 in testCrudAggregationExceptions()
87 assertTrue((rawContactId1 == c.getLong(1) && rawContactId2 == c.getLong(2)) in testCrudAggregationExceptions()
88 || (rawContactId2 == c.getLong(1) && rawContactId1 == c.getLong(2))); in testCrudAggregationExceptions()
94 rawContactId1, rawContactId2); in testCrudAggregationExceptions()
101 assertTrue((rawContactId1 == c.getLong(1) && rawContactId2 == c.getLong(2)) in testCrudAggregationExceptions()
102 || (rawContactId2 == c.getLong(1) && rawContactId1 == c.getLong(2))); in testCrudAggregationExceptions()
108 rawContactId1, rawContactId2); in testCrudAggregationExceptions()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactLookupKeyTest.java45 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 …]
DGroupsTest.java291 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 …]
DContactsProvider2Test.java838 long rawContactId2 = RawContactUtil.createRawContact(mResolver, account2); in testContactEntitiesWithIdBasedUri() local
840 AggregationExceptions.TYPE_KEEP_TOGETHER, rawContactId1, rawContactId2); in testContactEntitiesWithIdBasedUri()
847 assertEntityRows(entityUri, contactId, rawContactId1, rawContactId2); in testContactEntitiesWithIdBasedUri()
860 long rawContactId2 = RawContactUtil.createRawContact(mResolver, account2); in testContactEntitiesWithLookupUri() local
862 AggregationExceptions.TYPE_KEEP_TOGETHER, rawContactId1, rawContactId2); in testContactEntitiesWithLookupUri()
870 assertEntityRows(entityUri, contactId, rawContactId1, rawContactId2); in testContactEntitiesWithLookupUri()
875 assertEntityRows(entityUri, contactId, rawContactId1, rawContactId2); in testContactEntitiesWithLookupUri()
880 assertEntityRows(entityUri, contactId, rawContactId1, rawContactId2); in testContactEntitiesWithLookupUri()
884 long rawContactId2) { in assertEntityRows() argument
928 values.put(Contacts.Entity.RAW_CONTACT_ID, rawContactId2); in assertEntityRows()
[all …]
DBaseContactsProvider2Test.java508 protected void setAggregationException(int type, long rawContactId1, long rawContactId2) { in setAggregationException() argument
511 values.put(AggregationExceptions.RAW_CONTACT_ID2, rawContactId2); in setAggregationException()
590 protected void assertAggregated(long rawContactId1, long rawContactId2) { in assertAggregated() argument
592 long contactId2 = queryContactId(rawContactId2); in assertAggregated()
596 protected void assertAggregated(long rawContactId1, long rawContactId2, in assertAggregated() argument
599 long contactId2 = queryContactId(rawContactId2); in assertAggregated()
606 protected void assertNotAggregated(long rawContactId1, long rawContactId2) { in assertNotAggregated() argument
608 long contactId2 = queryContactId(rawContactId2); in assertNotAggregated()
DContactsActor.java510 protected void setAggregationException(int type, long rawContactId1, long rawContactId2) { in setAggregationException() argument
513 values.put(AggregationExceptions.RAW_CONTACT_ID2, rawContactId2); in setAggregationException()
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
DEntitySet.java217 Long rawContactId2 = get(index2).getValues().getAsLong(RawContacts._ID); in buildSplitContactDiff() local
218 if (rawContactId2 != null && rawContactId2 >= 0) { in buildSplitContactDiff()
219 builder.withValue(AggregationExceptions.RAW_CONTACT_ID2, rawContactId2); in buildSplitContactDiff()
/packages/apps/Contacts/src/com/android/contacts/model/
DRawContactDeltaList.java268 Long rawContactId2 = get(index2).getValues().getAsLong(RawContacts._ID); in buildSplitContactDiff() local
270 if (rawContactId2 != null && rawContactId2 >= 0) { in buildSplitContactDiff()
271 builder.withValue(AggregationExceptions.RAW_CONTACT_ID2, rawContactId2); in buildSplitContactDiff()
/packages/apps/Contacts/src/com/android/contacts/
DContactSaveService.java1097 long rawContactId1, long rawContactId2) { in buildJoinContactDiff() argument
1102 builder.withValue(AggregationExceptions.RAW_CONTACT_ID2, rawContactId2); in buildJoinContactDiff()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsProvider2.java4545 long rawContactId2; in updateAggregationException() local
4548 rawContactId2 = rcId2; in updateAggregationException()
4550 rawContactId2 = rcId1; in updateAggregationException()
4556 mSelectionArgs2[1] = String.valueOf(rawContactId2); in updateAggregationException()
4564 exceptionValues.put(AggregationExceptions.RAW_CONTACT_ID2, rawContactId2); in updateAggregationException()
4572 mAggregator.get().markForAggregation(rawContactId2, in updateAggregationException()
4576 mAggregator.get().aggregateContact(mTransactionContext.get(), db, rawContactId2); in updateAggregationException() local
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
DContactAggregator.java1135 long rawContactId2 = c.getLong(AggregateExceptionPrefetchQuery.RAW_CONTACT_ID2); in prefetchAggregationExceptionIds() local
1137 mAggregationExceptionIds.add(rawContactId2); in prefetchAggregationExceptionIds()