Home | History | Annotate | Download | only in aggregation

Lines Matching defs:rawContactId2

81         long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "aa", "bottom");
84 rawContactId1, rawContactId2);
87 + " AND " + AggregationExceptions.RAW_CONTACT_ID2 + "=" + rawContactId2
88 + ") OR (" + AggregationExceptions.RAW_CONTACT_ID1 + "=" + rawContactId2
97 assertTrue((rawContactId1 == c.getLong(1) && rawContactId2 == c.getLong(2))
98 || (rawContactId2 == c.getLong(1) && rawContactId1 == c.getLong(2)));
104 rawContactId1, rawContactId2);
111 assertTrue((rawContactId1 == c.getLong(1) && rawContactId2 == c.getLong(2))
112 || (rawContactId2 == c.getLong(1) && rawContactId1 == c.getLong(2)));
118 rawContactId1, rawContactId2);
146 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
147 DataUtil.insertStructuredName(mResolver, rawContactId2, "Johnb", "Smithb");
149 assertAggregated(rawContactId1, rawContactId2, "Johnb Smithb");
162 long rawContactId2 = RawContactUtil.createRawContact(mResolver, account);
163 DataUtil.insertStructuredName(mResolver, rawContactId2, "Flynn", "Ryder");
168 assertNotAggregated(rawContactId1, rawContactId2);
170 assertAggregated(rawContactId2, rawContactId3, "Flynn Ryder");
177 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
178 DataUtil.insertStructuredName(mResolver, rawContactId2, "Johnc", "smithc");
180 assertAggregated(rawContactId1, rawContactId2, "Johnc Smithc");
187 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
188 DataUtil.insertStructuredName(mResolver, rawContactId2, null, "johnd");
190 assertAggregated(rawContactId1, rawContactId2, "Johnd");
197 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
198 DataUtil.insertStructuredName(mResolver, rawContactId2, "Johne", null);
200 assertNotAggregated(rawContactId1, rawContactId2);
207 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
208 DataUtil.insertStructuredName(mResolver, rawContactId2, null, "Smithf");
210 assertNotAggregated(rawContactId1, rawContactId2);
217 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
218 DataUtil.insertStructuredName(mResolver, rawContactId2, "johngsmithg", null);
220 assertAggregated(rawContactId1, rawContactId2, "Johng Smithg");
227 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
228 DataUtil.insertStructuredName(mResolver, rawContactId2, "helene bjorn", null);
230 assertAggregated(rawContactId1, rawContactId2, "H\u00e9l\u00e8ne Bj\u00f8rn");
238 long rawContactId2 = RawContactUtil.createRawContact(mResolver);
239 DataUtil.insertStructuredName(mResolver, rawContactId2, "helene bjorn", null);
241 assertAggregated(rawContactId1, rawContactId2, "helene bjorn");
248 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
249 DataUtil.insertStructuredName(mResolver, rawContactId2, "1-2-3", null);
251 assertAggregated(rawContactId1, rawContactId2, "1-2-3");
264 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
269 DataUtil.insertStructuredName(mResolver, rawContactId2, values);
271 assertAggregated(rawContactId1, rawContactId2, "604 Arizona Ave");
283 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
288 DataUtil.insertStructuredName(mResolver, rawContactId2, values);
290 assertNotAggregated(rawContactId1, rawContactId2);
297 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
298 insertPhoneNumber(rawContactId2, "1(888)555-1231");
300 assertAggregated(rawContactId1, rawContactId2);
307 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
308 DataUtil.insertStructuredName(mResolver, rawContactId2, "Johnl", "Smithl");
309 insertPhoneNumber(rawContactId2, "1(888)555-1232");
311 assertAggregated(rawContactId1, rawContactId2);
319 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
320 insertPhoneNumber(rawContactId2, "1(888)555-1233");
322 assertAggregated(rawContactId1, rawContactId2);
330 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
331 DataUtil.insertStructuredName(mResolver, rawContactId2, "Blind", "Mouse");
332 insertPhoneNumber(rawContactId2, "1(888)555-1235");
334 assertNotAggregated(rawContactId1, rawContactId2);
342 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
343 DataUtil.insertStructuredName(mResolver, rawContactId2, "Chick", null);
344 insertPhoneNumber(rawContactId2, "1(888)555-1236");
346 assertAggregated(rawContactId1, rawContactId2);
353 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
354 insertEmail(rawContactId2, "lightning@android.com");
356 assertAggregated(rawContactId1, rawContactId2);
363 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
364 DataUtil.insertStructuredName(mResolver, rawContactId2, "Lightning", "McQueen");
365 insertEmail(rawContactId2, "mcqueen@android.com");
367 assertAggregated(rawContactId1, rawContactId2, "Lightning McQueen");
375 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
376 insertEmail(rawContactId2, "doc@android.com");
378 assertAggregated(rawContactId1, rawContactId2);
386 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
387 DataUtil.insertStructuredName(mResolver, rawContactId2, "Luigi", "Guido");
388 insertEmail(rawContactId2, "hicky@android.com");
390 assertNotAggregated(rawContactId1, rawContactId2);
397 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
398 DataUtil.insertStructuredName(mResolver, rawContactId2, "William", "Gore");
403 assertNotAggregated(rawContactId1, rawContactId2);
405 assertAggregated(rawContactId1, rawContactId2, "William Gore");
413 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
414 DataUtil.insertStructuredName(mResolver, rawContactId2, "Larry", null);
418 assertNotAggregated(rawContactId1, rawContactId2);
420 assertAggregated(rawContactId1, rawContactId2, "Lawrence");
428 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
429 insertNickname(rawContactId2, "Frozone");
431 assertAggregated(rawContactId1, rawContactId2);
439 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
440 DataUtil.insertStructuredName(mResolver, rawContactId2, "Shawn", "Johnson");
441 insertNickname(rawContactId2, "Elastigirl");
443 assertNotAggregated(rawContactId1, rawContactId2);
453 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
454 insertOrganization(rawContactId2, values);
455 insertNickname(rawContactId2, "Rendall"); // To force reaggregation
457 assertNotAggregated(rawContactId1, rawContactId2);
464 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
465 insertIdentity(rawContactId2, "iden1", "namespace1");
467 assertAggregated(rawContactId1, rawContactId2);
474 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
475 DataUtil.insertStructuredName(mResolver, rawContactId2, "Johnkx", "Smithkx");
478 long contactId2 = queryContactId(rawContactId2);
481 rawContactId1, rawContactId2);
483 assertAggregated(rawContactId1, rawContactId2, "Johnkx Smithkx");
502 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
503 DataUtil.insertStructuredName(mResolver, rawContactId2, "Johnh", "Smithh");
506 rawContactId1, rawContactId2);
508 assertNotAggregated(rawContactId1, rawContactId2);
515 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
516 DataUtil.insertStructuredName(mResolver, rawContactId2, "Johnj", "Smithj");
522 rawContactId1, rawContactId2);
526 rawContactId2, rawContactId3);
528 assertAggregated(rawContactId1, rawContactId2, "Johnm Smithm");
532 rawContactId1, rawContactId2);
536 assertNotAggregated(rawContactId1, rawContactId2);
542 assertAggregated(rawContactId2, rawContactId3, "Johnm Smithm");
545 rawContactId2, rawContactId3);
546 assertNotAggregated(rawContactId1, rawContactId2);
548 assertNotAggregated(rawContactId2, rawContactId3);
553 String displayName3 = queryDisplayName(queryContactId(rawContactId2));
562 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "b", "b", ACCOUNT_2);
567 rawContactId1, rawContactId2);
571 rawContactId2, rawContactId3);
575 rawContactId2, rawContactId3);
577 rawContactId1, rawContactId2);
583 long contactId2 = queryContactId(rawContactId2);
592 assertDisplayNameEquals(contactId2, rawContactId2);
599 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe",
601 assertNotAggregated(rawContactId1, rawContactId2);
607 assertNotAggregated(rawContactId2, rawContactId3);
610 assertNotAggregated(rawContactId1, rawContactId2);
616 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe",
618 assertAggregated(rawContactId1, rawContactId2);
626 assertNotAggregated(rawContactId2, rawContactId3);
627 assertNotAggregated(rawContactId1, rawContactId2);
636 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
637 DataUtil.insertStructuredName(mResolver, rawContactId2, "Lawrence", null, "Yamada");
639 assertNotAggregated(rawContactId1, rawContactId2);
648 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
649 DataUtil.insertStructuredName(mResolver, rawContactId2, "Lawrence", null, "Yamada");
651 assertNotAggregated(rawContactId1, rawContactId2);
661 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
662 DataUtil.insertStructuredName(mResolver, rawContactId2, null, null, "Yamada");
664 assertAggregated(rawContactId1, rawContactId2, "Yamada");
674 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
675 DataUtil.insertStructuredName(mResolver, rawContactId2, "Flynn", "Ryder");
681 assertNotAggregated(rawContactId2, rawContactId3);
682 assertNotAggregated(rawContactId1, rawContactId2);
687 assertAggregated(rawContactId1, rawContactId2, "Flynn Ryder");
689 assertNotAggregated(rawContactId2, rawContactId3);
699 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
700 DataUtil.insertStructuredName(mResolver, rawContactId2, "Flynn", "Ryder");
706 assertNotAggregated(rawContactId2, rawContactId3);
707 assertNotAggregated(rawContactId1, rawContactId2);
712 assertAggregated(rawContactId1, rawContactId2
714 assertNotAggregated(rawContactId2, rawContactId3);
724 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
725 DataUtil.insertStructuredName(mResolver, rawContactId2, "Flynn", "Ryder");
731 assertAggregated(rawContactId1, rawContactId2, "Flynn Ryder");
733 assertNotAggregated(rawContactId2, rawContactId3);
738 assertNotAggregated(rawContactId2, rawContactId3);
739 assertNotAggregated(rawContactId1, rawContactId2);
745 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe",
749 assertAggregated(rawContactId1, rawContactId2);
752 AggregationExceptions.TYPE_KEEP_TOGETHER, rawContactId1, rawContactId2);
753 assertAggregated(rawContactId1, rawContactId2);
760 assertAggregated(rawContactId1, rawContactId2); // Aggregation exception
771 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe",
773 insertIdentity(rawContactId2, "iden", "namespace");
774 assertAggregated(rawContactId1, rawContactId2);
778 assertAggregated(rawContactId1, rawContactId2);
780 assertNotAggregated(rawContactId2, rawContactId3);
788 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe",
790 insertPhoneNumber(rawContactId2, "111");
791 setRawContactCustomization(rawContactId2, 1, 1);
799 assertAggregated(rawContactId1, rawContactId2);
810 assertAggregated(rawContactId1, rawContactId2);
835 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
836 insertIdentity(rawContactId2, "iden2", "namespace");
837 DataUtil.insertStructuredName(mResolver, rawContactId2, "John", "Doe");
841 assertNotAggregated(rawContactId1, rawContactId2);
847 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe",
849 assertNotAggregated(rawContactId1, rawContactId2);
859 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe",
861 insertEmail(rawContactId2, "lightning2@android.com");
862 insertPhoneNumber(rawContactId2, "555-666-7777");
865 assertNotAggregated(rawContactId1, rawContactId2);
873 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe",
875 insertEmail(rawContactId2, "lightning2@android.com");
876 insertEmail(rawContactId2, "lightning3@android.com");
878 assertNotAggregated(rawContactId1, rawContactId2);
886 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe",
888 insertIdentity(rawContactId2, "iden", "namespace");
890 assertAggregated(rawContactId1, rawContactId2);
899 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe",
901 insertIdentity(rawContactId2, "iden2", "namespace1");
902 insertIdentity(rawContactId2, "iden1", "namespace2");
904 assertNotAggregated(rawContactId1, rawContactId2);
912 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe",
914 insertPhoneNumber(rawContactId2, "111-222-3333");
916 assertAggregated(rawContactId1, rawContactId2);
924 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe",
926 insertPhoneNumber(rawContactId2, "+1-111-222-3333");
928 assertAggregated(rawContactId1, rawContactId2);
936 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "John", "Doe",
938 insertPhoneNumber(rawContactId2, "111-222-3334");
940 assertNotAggregated(rawContactId1, rawContactId2);
948 long rawContactId2 = RawContactUtil.createRawContact(mResolver);
949 DataUtil.insertStructuredName(mResolver, rawContactId2, "Duane", null);
951 rawContactId1, rawContactId2);
962 long contactId2 = queryContactId(rawContactId2);
975 long rawContactId2 = RawContactUtil.createRawContact(mResolver);
976 DataUtil.insertStructuredName(mResolver, rawContactId2, "Talking", "Donkey");
977 insertPhoneNumber(rawContactId2, "1(888)555-1236");
980 long contactId2 = queryContactId(rawContactId2);
993 long rawContactId2 = RawContactUtil.createRawContact(mResolver);
994 DataUtil.insertStructuredName(mResolver, rawContactId2, "Charles", "Muntz");
995 insertEmail(rawContactId2, "Up@Android.com");
998 long contactId2 = queryContactId(rawContactId2);
1011 long rawContactId2 = RawContactUtil.createRawContact(mResolver);
1012 DataUtil.insertStructuredName(mResolver, rawContactId2, "Lucius", "Best");
1013 insertEmail(rawContactId2, "incrediball@android.com");
1016 long contactId2 = queryContactId(rawContactId2);
1027 long rawContactId2 = RawContactUtil.createRawContact(mResolver);
1028 DataUtil.insertStructuredName(mResolver, rawContactId2, "Manny", "Spider");
1032 rawContactId1, rawContactId2);
1034 long contactId2 = queryContactId(rawContactId2);
1043 long rawContactId2 = RawContactUtil.createRawContact(mResolver);
1044 DataUtil.insertStructuredName(mResolver, rawContactId2, "Roy", "Williams");
1045 insertNickname(rawContactId2, "superman");
1049 rawContactId1, rawContactId2);
1051 long contactId2 = queryContactId(rawContactId2);
1059 long rawContactId2 = RawContactUtil.createRawContact(mResolver);
1060 DataUtil.insertStructuredName(mResolver, rawContactId2, "Richard", "Cherry");
1063 rawContactId1, rawContactId2);
1066 long contactId2 = queryContactId(rawContactId2);
1077 long rawContactId2 = RawContactUtil.createRawContact(mResolver);
1078 DataUtil.insertStructuredName(mResolver, rawContactId2, "Talking", "Donkey");
1079 insertPhoneNumber(rawContactId2, "1(888)555-1236");
1082 long contactId2 = queryContactId(rawContactId2);
1099 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "first", "last",
1101 insertPhoneNumber(rawContactId2, "111-222-3333");
1102 insertNickname(rawContactId2, "Superman");
1103 insertEmail(rawContactId2, "incredible@android.com");
1107 rawContactId1, rawContactId2);
1110 long contactId2 = queryContactId(rawContactId2);
1130 long rawContactId2 = RawContactUtil.createRawContact(mResolver);
1131 setContactAccount(rawContactId2, "cupcake", "cupcake_act");
1132 long cupcakeId = ContentUris.parseId(insertPhoto(rawContactId2));
1139 rawContactId1, rawContactId2);
1142 assertEquals(cupcakeId, queryPhotoId(queryContactId(rawContactId2)));
1150 long rawContactId2 = RawContactUtil.createRawContact(mResolver);
1152 rawContactId1, rawContactId2);
1153 setContactAccount(rawContactId2, "cupcake", "cupcake_act");
1154 long cupcakeId = ContentUris.parseId(insertPhoto(rawContactId2));
1162 assertEquals(cupcakeId, queryPhotoId(queryContactId(rawContactId2)));
1185 long rawContactId2 = RawContactUtil.createRawContact(mResolver);
1186 setContactAccount(rawContactId2, "cupcake", "cupcake_act");
1187 insertPhoto(rawContactId2, R.drawable.earth_200);
1190 rawContactId1, rawContactId2);
1208 long rawContactId2 = RawContactUtil.createRawContact(mResolver);
1209 setContactAccount(rawContactId2, "cupcake", "cupcake_act");
1210 insertPhoto(rawContactId2, R.drawable.galaxy);
1213 rawContactId1, rawContactId2);
1230 long rawContactId2 = RawContactUtil.createRawContact(mResolver);
1231 setContactAccount(rawContactId2, "cupcake", "cupcake_act");
1232 insertPhoto(rawContactId2, R.drawable.earth_small);
1235 rawContactId1, rawContactId2);
1248 long rawContactId2 = RawContactUtil.createRawContact(mResolver);
1249 setContactAccount(rawContactId2, "cupcake", "cupcake_act");
1251 insertPhoto(rawContactId2, R.drawable.earth_normal));
1257 rawContactId1, rawContactId2);
1271 long rawContactId2 = RawContactUtil.createRawContact(mResolver);
1272 setContactAccount(rawContactId2, "cupcake", "cupcake_act");
1274 insertPhoto(rawContactId2, R.drawable.ic_contact_picture));
1277 rawContactId1, rawContactId2);
1315 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_1);
1316 DataUtil.insertStructuredName(mResolver, rawContactId2, "name2", null, null,
1321 rawContactId2);
1333 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_1);
1334 final Uri nameUri2 = DataUtil.insertStructuredName(mResolver, rawContactId2, "name2", null,
1339 rawContactId2);
1367 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_1);
1368 final Uri nameUri2 = DataUtil.insertStructuredName(mResolver, rawContactId2, "name2", null,
1371 rawContactId2);
1393 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
1394 storeValue(RawContacts.CONTENT_URI, rawContactId2,
1396 DataUtil.insertStructuredName(mResolver, rawContactId2, "THE", "SAME");
1398 assertNotAggregated(rawContactId1, rawContactId2);
1403 storeValue(RawContacts.CONTENT_URI, rawContactId2,
1405 assertNotAggregated(rawContactId1, rawContactId2);
1409 assertAggregated(rawContactId1, rawContactId2);
1449 long rawContactId2 = ContentUris.parseId(results[2].uri);
1451 assertNotAggregated(rawContactId1, rawContactId2);
1491 long rawContactId2 = ContentUris.parseId(results[2].uri);
1493 assertNotAggregated(rawContactId1, rawContactId2);
1542 long rawContactId2 = ContentUris.parseId(results[2].uri);
1544 assertAggregated(rawContactId1, rawContactId2);
1570 long rawContactId2 = RawContactUtil.createRawContact(mResolver);
1571 Uri dataUri2 = DataUtil.insertStructuredName(mResolver, rawContactId2, "john", "doe");
1575 AggregationExceptions.TYPE_KEEP_TOGETHER, rawContactId1, rawContactId2);
1582 AggregationExceptions.TYPE_KEEP_SEPARATE, rawContactId1, rawContactId2);
1587 assertStoredValue(getContactUriForRawContact(rawContactId2),
1593 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, "first2", "last2");
1617 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, null,
1622 rawContactId2);
1633 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, null,
1640 rawContactId2);
1652 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, null,
1657 rawContactId2);
1667 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, null,
1674 rawContactId2);
1698 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_2);
1699 Uri uri_phone2 = insertPhoneNumber(rawContactId2, "(333)333-3333", true, true);
1700 Uri uri_email2 = insertEmail(rawContactId2, "two@gmail.com", false, false);
1704 Uri uri_phone4 = insertPhoneNumber(rawContactId2, "1(111)111-1111", true, true);
1709 rawContactId2);
1726 long rawContactId2 = RawContactUtil.createRawContact(mResolver, ACCOUNT_1);
1735 rawContactId2);