/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/ |
H A D | ContactAggregatorTest.java | 67 long rawContactId1 = createRawContactWithName("zz", "top"); 71 rawContactId1, rawContactId2); 73 String selection = "(" + AggregationExceptions.RAW_CONTACT_ID1 + "=" + rawContactId1 76 + " AND " + AggregationExceptions.RAW_CONTACT_ID2 + "=" + rawContactId1 + ")"; 84 assertTrue((rawContactId1 == c.getLong(1) && rawContactId2 == c.getLong(2)) 85 || (rawContactId2 == c.getLong(1) && rawContactId1 == c.getLong(2))); 91 rawContactId1, rawContactId2); 98 assertTrue((rawContactId1 == c.getLong(1) && rawContactId2 == c.getLong(2)) 99 || (rawContactId2 == c.getLong(1) && rawContactId1 == c.getLong(2))); 105 rawContactId1, rawContactId [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | ContactLookupKeyTest.java | 43 long rawContactId1 = createRawContactWithName("John", "Doe"); 46 AggregationExceptions.TYPE_KEEP_TOGETHER, rawContactId1, rawContactId2); 50 String expectedLookupKey = "0r" + rawContactId1 + "-" + normalizedName + ".0r" 53 long contactId = queryContactId(rawContactId1); 71 long rawContactId1 = createRawContactWithName("John", "Doe"); 72 storeValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.SOURCE_ID, "123"); 81 AggregationExceptions.TYPE_KEEP_TOGETHER, rawContactId1, rawContactId2); 83 AggregationExceptions.TYPE_KEEP_TOGETHER, rawContactId1, rawContactId3); 88 long contactId = queryContactId(rawContactId1); 97 long rawContactId1 [all...] |
H A D | GroupsTest.java | 288 final long rawContactId1 = this.createRawContact(); 295 assertNotAggregated(rawContactId1, rawContactId2); 296 assertRawContactVisible(rawContactId1, true); 302 values.put(AggregationExceptions.RAW_CONTACT_ID1, rawContactId1); 306 assertRawContactVisible(rawContactId1, true); 332 final long rawContactId1 = this.createRawContact(sTestAccount); 336 this.insertGroupMembership(rawContactId1, groupId); 339 assertRawContactVisible(rawContactId1, false); 347 assertRawContactVisible(rawContactId1, true); 353 values.put(AggregationExceptions.RAW_CONTACT_ID1, rawContactId1); [all...] |
H A D | ContactsProvider2Test.java | 781 long rawContactId1 = createRawContactWithName(account1); 782 insertImHandle(rawContactId1, Im.PROTOCOL_GOOGLE_TALK, null, "gtalk"); 788 AggregationExceptions.TYPE_KEEP_TOGETHER, rawContactId1, rawContactId2); 790 long contactId = queryContactId(rawContactId1); 795 assertEntityRows(entityUri, contactId, rawContactId1, rawContactId2); 803 long rawContactId1 = createRawContactWithName(account1); 804 insertImHandle(rawContactId1, Im.PROTOCOL_GOOGLE_TALK, null, "gtalk"); 810 AggregationExceptions.TYPE_KEEP_TOGETHER, rawContactId1, rawContactId2); 812 long contactId = queryContactId(rawContactId1); 818 assertEntityRows(entityUri, contactId, rawContactId1, rawContactId 831 assertEntityRows(Uri entityUri, long contactId, long rawContactId1, long rawContactId2) argument [all...] |
H A D | BaseContactsProvider2Test.java | 567 protected void setAggregationException(int type, long rawContactId1, long rawContactId2) { argument 569 values.put(AggregationExceptions.RAW_CONTACT_ID1, rawContactId1); 649 protected void assertAggregated(long rawContactId1, long rawContactId2) { argument 650 long contactId1 = queryContactId(rawContactId1); 655 protected void assertAggregated(long rawContactId1, long rawContactId2, argument 657 long contactId1 = queryContactId(rawContactId1); 665 protected void assertNotAggregated(long rawContactId1, long rawContactId2) { argument 666 long contactId1 = queryContactId(rawContactId1);
|
H A D | ContactsActor.java | 510 protected void setAggregationException(int type, long rawContactId1, long rawContactId2) { argument 512 values.put(AggregationExceptions.RAW_CONTACT_ID1, rawContactId1);
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
H A D | EntitySet.java | 210 Long rawContactId1 = get(index1).getValues().getAsLong(RawContacts._ID); 211 if (rawContactId1 != null && rawContactId1 >= 0) { 212 builder.withValue(AggregationExceptions.RAW_CONTACT_ID1, rawContactId1);
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
H A D | RawContactDeltaList.java | 264 Long rawContactId1 = get(index1).getValues().getAsLong(RawContacts._ID); 266 if (rawContactId1 != null && rawContactId1 >= 0) { 267 builder.withValue(AggregationExceptions.RAW_CONTACT_ID1, rawContactId1);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/ |
H A D | ContactAggregator.java | 1137 long rawContactId1 = c.getLong(AggregateExceptionPrefetchQuery.RAW_CONTACT_ID1); 1139 mAggregationExceptionIds.add(rawContactId1); 1198 long rawContactId1 = c.getLong(AggregateExceptionQuery.RAW_CONTACT_ID1); 1200 if (rawContactId == rawContactId1) {
|
/packages/apps/Contacts/src/com/android/contacts/ |
H A D | ContactSaveService.java | 1099 long rawContactId1, long rawContactId2) { 1103 builder.withValue(AggregationExceptions.RAW_CONTACT_ID1, rawContactId1); 1098 buildJoinContactDiff(ArrayList<ContentProviderOperation> operations, long rawContactId1, long rawContactId2) argument
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | ContactsProvider2.java | 4439 long rawContactId1; 4442 rawContactId1 = rcId1; 4446 rawContactId1 = rcId2; 4450 mSelectionArgs2[0] = String.valueOf(rawContactId1); 4458 exceptionValues.put(AggregationExceptions.RAW_CONTACT_ID1, rawContactId1); 4465 mAggregator.get().markForAggregation(rawContactId1, 4470 mAggregator.get().aggregateContact(mTransactionContext.get(), db, rawContactId1);
|