Home
last modified time | relevance | path

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

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/
DContactAggregatorTest.java104 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 …]
DContactAggregator2Test.java104 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/
DContactLookupKeyTest.java55 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "johndoe", null); in testLookupKeyUsingDisplayNameAndNoAccount() local
57 AggregationExceptions.TYPE_KEEP_TOGETHER, rawContactId1, rawContactId2); in testLookupKeyUsingDisplayNameAndNoAccount()
62 + "." + accountHashCode + "r" + rawContactId2 + "-" + normalizedName; in testLookupKeyUsingDisplayNameAndNoAccount()
85 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "johndoe", null); in testLookupKeyUsingSourceIdAndNoAccount() local
86 storeValue(RawContacts.CONTENT_URI, rawContactId2, RawContacts.SOURCE_ID, "4.5.6"); in testLookupKeyUsingSourceIdAndNoAccount()
92 AggregationExceptions.TYPE_KEEP_TOGETHER, rawContactId1, rawContactId2); in testLookupKeyUsingSourceIdAndNoAccount()
117 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "Deer", "Dough"); in testLookupKeySameSourceIdDifferentAccounts() local
118 storeValues(RawContacts.CONTENT_URI, rawContactId2, in testLookupKeySameSourceIdDifferentAccounts()
120 storeValue(RawContacts.CONTENT_URI, rawContactId2, RawContacts.SOURCE_ID, "1"); in testLookupKeySameSourceIdDifferentAccounts()
122 assertNotAggregated(rawContactId1, rawContactId2); in testLookupKeySameSourceIdDifferentAccounts()
[all …]
DGroupsTest.java292 final long rawContactId2 = RawContactUtil.createRawContact(this.mResolver, sTestAccount); in testLocalMixedVisible() local
295 this.insertGroupMembership(rawContactId2, groupId); in testLocalMixedVisible()
298 assertNotAggregated(rawContactId1, rawContactId2); in testLocalMixedVisible()
300 assertRawContactVisible(rawContactId2, false); in testLocalMixedVisible()
306 values.put(AggregationExceptions.RAW_CONTACT_ID2, rawContactId2); in testLocalMixedVisible()
310 assertRawContactVisible(rawContactId2, true); in testLocalMixedVisible()
336 final long rawContactId2 = RawContactUtil.createRawContact(this.mResolver, sSecondAccount); in testMultipleSourcesVisible() local
343 assertRawContactVisible(rawContactId2, false); in testMultipleSourcesVisible()
351 assertRawContactVisible(rawContactId2, false); in testMultipleSourcesVisible()
357 values.put(AggregationExceptions.RAW_CONTACT_ID2, rawContactId2); in testMultipleSourcesVisible()
[all …]
DContactsProvider2Test.java1346 long rawContactId2 = RawContactUtil.createRawContact(mResolver, account2); in testContactEntitiesWithIdBasedUri() local
1348 AggregationExceptions.TYPE_KEEP_TOGETHER, rawContactId1, rawContactId2); in testContactEntitiesWithIdBasedUri()
1355 assertEntityRows(entityUri, contactId, rawContactId1, rawContactId2); in testContactEntitiesWithIdBasedUri()
1369 long rawContactId2 = RawContactUtil.createRawContact(mResolver, account2); in testContactEntitiesWithLookupUri() local
1371 AggregationExceptions.TYPE_KEEP_TOGETHER, rawContactId1, rawContactId2); in testContactEntitiesWithLookupUri()
1379 assertEntityRows(entityUri, contactId, rawContactId1, rawContactId2); in testContactEntitiesWithLookupUri()
1384 assertEntityRows(entityUri, contactId, rawContactId1, rawContactId2); in testContactEntitiesWithLookupUri()
1389 assertEntityRows(entityUri, contactId, rawContactId1, rawContactId2); in testContactEntitiesWithLookupUri()
1393 long rawContactId2) { in assertEntityRows() argument
1437 values.put(Contacts.Entity.RAW_CONTACT_ID, rawContactId2); in assertEntityRows()
[all …]
DUnSyncAccountsTest.java83 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "john", "doe", in testAccountUnSynced() local
85 Uri photoUri2 = insertPhoto(rawContactId2); in testAccountUnSynced()
88 assertAggregated(rawContactId1, rawContactId2); in testAccountUnSynced()
DBaseContactsProvider2Test.java564 protected void setAggregationException(int type, long rawContactId1, long rawContactId2) { in setAggregationException() argument
567 values.put(AggregationExceptions.RAW_CONTACT_ID2, rawContactId2); in setAggregationException()
668 protected void assertAggregated(long rawContactId1, long rawContactId2) { in assertAggregated() argument
670 long contactId2 = queryContactId(rawContactId2); in assertAggregated()
674 protected void assertAggregated(long rawContactId1, long rawContactId2, in assertAggregated() argument
677 long contactId2 = queryContactId(rawContactId2); in assertAggregated()
684 protected void assertNotAggregated(long rawContactId1, long rawContactId2) { in assertNotAggregated() argument
686 long contactId2 = queryContactId(rawContactId2); in assertNotAggregated()
1472 final long rawContactId2 = RawContactUtil.createRawContact(mResolver, mAccount, in createVCardTestContacts() local
1474 DataUtil.insertStructuredName(mResolver, rawContactId2, "Jane", "Doh"); in createVCardTestContacts()
[all …]
DContactsProvider2DefaultAccountTest.java496 long rawContactId2 = insertRawContact((Account) null); in testRawContactInsert_whenDefaultAccountSetToCloud_contactCreationNotRestricted() local
500 assertEquals(1, updateRawContactAccount(rawContactId2, SYSTEM_CLOUD_ACCOUNT_2)); in testRawContactInsert_whenDefaultAccountSetToCloud_contactCreationNotRestricted()
503 assertEquals(1, updateRawContactAccount(rawContactId2, null)); in testRawContactInsert_whenDefaultAccountSetToCloud_contactCreationNotRestricted()
DContactsActor.java840 protected void setAggregationException(int type, long rawContactId1, long rawContactId2) { in setAggregationException() argument
843 values.put(AggregationExceptions.RAW_CONTACT_ID2, rawContactId2); in setAggregationException()
/packages/apps/Contacts/src/com/android/contacts/model/
DRawContactDeltaList.java279 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/
DContactSaveService.java1726 long rawContactId1, long rawContactId2) { in buildJoinContactDiff() argument
1731 builder.withValue(AggregationExceptions.RAW_CONTACT_ID2, rawContactId2); in buildJoinContactDiff()
1741 long rawContactId1, long rawContactId2, boolean hardSplit) { in buildSplitContactDiff() argument
1749 builder.withValue(AggregationExceptions.RAW_CONTACT_ID2, rawContactId2); in buildSplitContactDiff()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsProvider2.java5472 long rawContactId2; in updateAggregationException() local
5475 rawContactId2 = rcId2; in updateAggregationException()
5477 rawContactId2 = rcId1; in updateAggregationException()
5483 mSelectionArgs2[1] = String.valueOf(rawContactId2); in updateAggregationException()
5491 exceptionValues.put(AggregationExceptions.RAW_CONTACT_ID2, rawContactId2); in updateAggregationException()
5498 aggregator.markForAggregation(rawContactId2, RawContacts.AGGREGATION_MODE_DEFAULT, true); in updateAggregationException()
5501 aggregator.aggregateContact(mTransactionContext.get(), db, rawContactId2); in updateAggregationException() local
5608 final long rawContactId2 = c.getLong(AggregationExceptionQuery.RAW_CONTACT_ID2); in queryAggregationRawContactIds() local
5612 if (rawContactId2 != rawContactId) { in queryAggregationRawContactIds()
5613 aggregationRawContactIds.add(rawContactId2); in queryAggregationRawContactIds()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
DAbstractContactAggregator.java973 long rawContactId2 = c.getLong(AggregateExceptionPrefetchQuery.RAW_CONTACT_ID2); in prefetchAggregationExceptionIds() local
975 mAggregationExceptionIds.add(rawContactId2); in prefetchAggregationExceptionIds()