Lines Matching refs:rawContactId

153     async function insertData(rawContactId, type, value, position)
157 {"raw_contact_id" : rawContactId, "content_type" : type, "detail_info" : value, "position" : position};
178 var rawContactId = await dataShareHelper.insert(profileRawContactUri, common.getProfileRawContact());
180 console.info('logMessage contactCard_insert_test_100: rawContactId = ' + rawContactId);
181 expect(rawContactId > 0).assertTrue();
183 map.set("id", rawContactId.toString());
207 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
208 console.info("logMessage contactCard_insert_test_400: rawContactId = " + rawContactId);
209 expect(rawContactId > 0).assertTrue();
210 await dataNameInsert(dataShareHelper, rawContactId);
211 await dataCompanyInsert(dataShareHelper, rawContactId);
212 await dataPhoneInsert(dataShareHelper, rawContactId);
222 async function dataNameInsert(dataShareHelper, rawContactId)
225 "raw_contact_id" : rawContactId,
236 map.set("raw_contact_id", rawContactId.toString());
244 async function dataCompanyInsert(dataShareHelper, rawContactId)
247 "raw_contact_id" : rawContactId,
267 async function dataPhoneInsert(dataShareHelper, rawContactId)
270 "raw_contact_id" : rawContactId,
303 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
304 console.info("logMessage contactCard_insert_test_500: rawContactId = " + rawContactId);
305 expect(rawContactId > 0).assertTrue();
306 await dataEmailInsert(dataShareHelper, rawContactId);
307 await dataNickNameInsert(dataShareHelper, rawContactId);
308 await dataPostalAddressInsert(dataShareHelper, rawContactId);
318 async function dataEmailInsert(dataShareHelper, rawContactId)
321 "raw_contact_id" : rawContactId,
339 async function dataNickNameInsert(dataShareHelper, rawContactId)
342 "raw_contact_id" : rawContactId,
359 async function dataPostalAddressInsert(dataShareHelper, rawContactId)
362 "raw_contact_id" : rawContactId,
393 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues)
394 console.info("logMessage contactCard_insert_test_600: rawContactId = " + rawContactId);
395 expect(rawContactId > 0).assertTrue();
396 await dataNoteInsert(dataShareHelper, rawContactId);
397 await dataAimInsert(dataShareHelper, rawContactId);
398 await dataEventInsert(dataShareHelper, rawContactId);
408 async function dataNoteInsert(dataShareHelper, rawContactId)
411 "raw_contact_id" : rawContactId,
429 async function dataAimInsert(dataShareHelper, rawContactId)
431 var contactDataValues2 = {"raw_contact_id" : rawContactId, "content_type" : "im", "detail_info" : "aaaaa"};
445 async function dataEventInsert(dataShareHelper, rawContactId)
448 "raw_contact_id" : rawContactId,
479 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
480 console.info("logMessage contactCard_insert_test_700: rawContactId = " + rawContactId);
481 expect(rawContactId > 0).assertTrue();
482 await dataWebsiteInsert(dataShareHelper, rawContactId);
483 await dataRelationInsert(dataShareHelper, rawContactId);
484 await dataWebsiteInsert(dataShareHelper, rawContactId);
494 async function dataWebsiteInsert(dataShareHelper, rawContactId)
497 "raw_contact_id" : rawContactId,
516 async function dataRelationInsert(dataShareHelper, rawContactId)
519 "raw_contact_id" : rawContactId,
538 async function dataGroupInsert(dataShareHelper, rawContactId)
541 "raw_contact_id" : rawContactId,
574 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
575 console.info("logMessage contactCard_insert_test_800: rawContactId = " + rawContactId);
576 expect(rawContactId > 0).assertTrue();
577 await dataMiscInsert(dataShareHelper, rawContactId);
587 async function dataMiscInsert(dataShareHelper, rawContactId)
590 "raw_contact_id" : rawContactId,
626 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
627 console.info("logMessage contactCard_update_test_900: rawContactId = " + rawContactId);
628 expect(rawContactId > 0).assertTrue();
629 await rawContactUpdate(dataShareHelper, rawContactId);
639 async function rawContactUpdate(dataShareHelper, rawContactId)
649 condition.equalTo("id", rawContactId.toString());
656 map.set("id", rawContactId.toString());
679 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
680 console.info("logMessage contactCard_update_test_1200: rawContactId = " + rawContactId);
681 expect(rawContactId > 0).assertTrue();
682 await beforedataNameInsert(dataShareHelper, rawContactId);
683 await dataNameUpdate(dataShareHelper, rawContactId);
693 async function beforedataNameInsert(dataShareHelper, rawContactId)
695 var contactDataValues = {"raw_contact_id" : rawContactId, "content_type" : "name", "detail_info" : "xiaoyuan"};
706 async function dataNameUpdate(dataShareHelper, rawContactId)
710 condition.equalTo("raw_contact_id", rawContactId.toString());
717 map.set("id", rawContactId.toString());
736 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
737 console.info("logMessage contactCard_update_test_1300: rawContactId = " + rawContactId);
738 expect(rawContactId > 0).assertTrue();
739 await beforedataCompanyInsert(dataShareHelper, rawContactId);
740 await dataCompanyUpdate(dataShareHelper, rawContactId);
750 async function beforedataCompanyInsert(dataShareHelper, rawContactId)
753 "raw_contact_id" : rawContactId,
768 async function dataCompanyUpdate(dataShareHelper, rawContactId)
772 condition.equalTo("raw_contact_id", rawContactId.toString());
779 map.set("id", rawContactId.toString());
799 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
800 console.info("logMessage contactCard_update_test_1400: rawContactId = " + rawContactId);
801 expect(rawContactId > 0).assertTrue();
802 await beforeDataPhoneInsert(dataShareHelper, rawContactId);
803 await dataPhoneUpdate(dataShareHelper, rawContactId);
813 async function beforeDataPhoneInsert(dataShareHelper, rawContactId)
815 var contactDataValues = {"raw_contact_id" : rawContactId, "content_type" : "phone", "detail_info" : "123456"};
826 async function dataPhoneUpdate(dataShareHelper, rawContactId)
830 condition.equalTo("raw_contact_id", rawContactId.toString());
857 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
858 console.info("logMessage contactCard_update_test_1500: rawContactId = " + rawContactId);
859 expect(rawContactId > 0).assertTrue();
860 await beforedataNickNameInsert(dataShareHelper, rawContactId);
861 await dataNickNameUpdate(dataShareHelper, rawContactId);
871 async function beforedataNickNameInsert(dataShareHelper, rawContactId)
874 "raw_contact_id" : rawContactId,
888 async function dataNickNameUpdate(dataShareHelper, rawContactId)
892 condition.equalTo("raw_contact_id", rawContactId.toString());
919 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
920 console.info("logMessage contactCard_update_test_1600: rawContactId = " + rawContactId);
921 expect(rawContactId > 0).assertTrue();
922 await beforeDataEmailInsert(dataShareHelper, rawContactId);
923 await dataEmailUpdate(dataShareHelper, rawContactId);
933 async function beforeDataEmailInsert(dataShareHelper, rawContactId)
936 "raw_contact_id" : rawContactId,
950 async function dataEmailUpdate(dataShareHelper, rawContactId)
954 condition.equalTo("raw_contact_id", rawContactId.toString());
981 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
982 console.info("logMessage contactCard_update_test_1700: rawContactId = " + rawContactId);
983 expect(rawContactId > 0).assertTrue();
984 await beforeDataPostalInsert(dataShareHelper, rawContactId);
995 async function beforeDataPostalInsert(dataShareHelper, rawContactId)
998 "raw_contact_id" : rawContactId,
1012 async function dataPostalUpdate(dataShareHelper, rawContactId)
1016 condition.equalTo("raw_contact_id", rawContactId.toString());
1043 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
1044 console.info("logMessage contactCard_update_test_1800: rawContactId = " + rawContactId);
1045 expect(rawContactId > 0).assertTrue();
1046 await beforedataNoteInsert(dataShareHelper, rawContactId);
1047 await dataNoteUpdate(dataShareHelper, rawContactId);
1057 async function beforedataNoteInsert(dataShareHelper, rawContactId)
1059 var contactDataValues = {"raw_contact_id" : rawContactId, "content_type" : "note", "detail_info" : "Gangster"};
1070 async function dataNoteUpdate(dataShareHelper, rawContactId)
1074 condition.equalTo("raw_contact_id", rawContactId.toString());
1101 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues)
1102 console.info("logMessage contactCard_update_test_1900: rawContactId = " + rawContactId);
1103 expect(rawContactId > 0).assertTrue();
1104 await beforeDataAimInsert(dataShareHelper, rawContactId);
1105 await dataAimUpdate(dataShareHelper, rawContactId);
1115 async function beforeDataAimInsert(dataShareHelper, rawContactId)
1117 var contactDataValues = {"raw_contact_id" : rawContactId, "content_type" : "im", "detail_info" : "aaaaa"};
1128 async function dataAimUpdate(dataShareHelper, rawContactId)
1132 condition.equalTo("raw_contact_id", rawContactId.toString());
1159 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
1160 console.info("logMessage contactCard_update_test_2000: rawContactId = " + rawContactId);
1161 expect(rawContactId > 0).assertTrue();
1162 await beforeDataEventInsert(dataShareHelper, rawContactId);
1163 await dataEventUpdate(dataShareHelper, rawContactId);
1173 async function beforeDataEventInsert(dataShareHelper, rawContactId)
1176 "raw_contact_id" : rawContactId,
1190 async function dataEventUpdate(dataShareHelper, rawContactId)
1194 condition.equalTo("raw_contact_id", rawContactId.toString());
1221 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
1222 console.info("logMessage contactCard_update_test_2100: rawContactId = " + rawContactId);
1223 expect(rawContactId > 0).assertTrue();
1224 await beforeDataWebsiteInsert(dataShareHelper, rawContactId);
1225 await dataWebsiteUpdate(dataShareHelper, rawContactId);
1235 async function beforeDataWebsiteInsert(dataShareHelper, rawContactId)
1238 "raw_contact_id" : rawContactId,
1252 async function dataWebsiteUpdate(dataShareHelper, rawContactId)
1256 condition.equalTo("raw_contact_id", rawContactId.toString());
1283 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
1284 console.info("logMessage contactCard_update_test_2200: rawContactId = " + rawContactId);
1285 expect(rawContactId > 0).assertTrue();
1286 await beforeDataRelationInsert(dataShareHelper, rawContactId);
1287 await dataRelationUpdate(dataShareHelper, rawContactId);
1297 async function beforeDataRelationInsert(dataShareHelper, rawContactId)
1300 "raw_contact_id" : rawContactId,
1313 async function dataRelationUpdate(dataShareHelper, rawContactId)
1317 condition.equalTo("raw_contact_id", rawContactId.toString());
1344 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
1345 console.info("logMessage contactCard_update_test_2300: rawContactId = " + rawContactId);
1346 expect(rawContactId > 0).assertTrue();
1347 await beforeDataGroupInsert(dataShareHelper, rawContactId);
1348 await dataGroupUpdate(dataShareHelper, rawContactId);
1358 async function beforeDataGroupInsert(dataShareHelper, rawContactId)
1361 "raw_contact_id" : rawContactId,
1375 async function dataGroupUpdate(dataShareHelper, rawContactId)
1379 condition.equalTo("raw_contact_id", rawContactId.toString());
1406 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
1408 console.info("logMessage contactCard_update_test_2400: rawContactId = " + rawContactId);
1409 expect(rawContactId > 0).assertTrue();
1410 await beforeDataMiscInsert(dataShareHelper, rawContactId);
1411 await dataMiscUpdate(dataShareHelper, rawContactId);
1421 async function beforeDataMiscInsert(dataShareHelper, rawContactId)
1424 "raw_contact_id" : rawContactId,
1438 async function dataMiscUpdate(dataShareHelper, rawContactId)
1442 condition.equalTo("raw_contact_id", rawContactId.toString());
1469 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues)
1470 console.info('logMessage contactCard_favorite_test_2500: rawContactId = ' + rawContactId);
1471 expect(rawContactId > 0).assertTrue();
1472 await updateFavorite(dataShareHelper, rawContactId);
1481 async function updateFavorite(dataShareHelper, rawContactId)
1485 condition.equalTo("id", rawContactId.toString());
1492 map.set("id", rawContactId.toString());
1514 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
1515 console.info('logMessage contactCard_unfavorite_test_2600: rawContactId = ' + rawContactId);
1516 expect(rawContactId > 0).assertTrue();
1517 await updateUnFavorite(dataShareHelper, rawContactId);
1526 async function updateUnFavorite(dataShareHelper, rawContactId)
1530 condition.equalTo("id", rawContactId.toString());
1537 map.set("id", rawContactId.toString());
1644 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
1646 console.info("logMessage contactCard_insert_test_2900: rawContactId =" + rawContactId);
1647 expect(rawContactId > 0).assertTrue();
1648 await groupDataInsert(dataShareHelper, rawContactId);
1654 async function groupDataInsert(dataShareHelper, rawContactId)
1657 "raw_contact_id" : rawContactId,
1668 map.set("raw_contact_id", rawContactId.toString());
1707 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
1709 console.info("logMessage contactCard_delete_test_3000: rawContactId =" + rawContactId);
1710 expect(rawContactId > 0).assertTrue();
1711 await deleteGroupContactDataInsert(dataShareHelper, rawContactId);
1717 async function deleteGroupContactDataInsert(dataShareHelper, rawContactId)
1720 "raw_contact_id" : rawContactId,
1763 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
1765 console.info("logMessage contactCard_query_test_3100: rawContactId = " + rawContactId);
1766 expect(rawContactId > 0).assertTrue();
1767 await RawContactQuery(dataShareHelper, rawContactId);
1776 async function RawContactQuery(dataShareHelper, rawContactId)
1780 condition.equalTo("id", rawContactId.toString());
1787 expect(resultSet.getString(0) == rawContactId).assertEqual(true);
1812 console.info("logMessage contactCard_query_test_3200: rawContactId = " + rawContactId1);
1823 console.info("logMessage contactCard_query_test_3200: rawContactId = " + rawContactId2);
1872 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues1);
1874 console.info("logMessage contactCard_query_test_3300: rawContactId = " + rawContactId);
1875 expect(rawContactId > 0).assertTrue();
1889 expect(resultSet.getString(0) == rawContactId.toString()).assertEqual(true);
1921 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
1923 console.info("logMessage contactCard_query_test_3400: rawContactId = " + rawContactId);
1924 expect(rawContactId > 0).assertTrue();
1925 await queryAllInformation(dataShareHelper, rawContactId);
1934 async function queryAllInformation(dataShareHelper, rawContactId)
1938 condition.equalTo("id", rawContactId.toString());
1946 expect(id == rawContactId).assertEqual(true);
1978 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
1980 console.info("logMessage contactCard_query_test_3500: rawContactId = " + rawContactId);
1981 expect(rawContactId > 0).assertTrue();
1996 await groupBossBoardInsert(dataShareHelper, rawContactId, groupId);
2003 async function groupBossBoardInsert(dataShareHelper, rawContactId, groupId)
2006 "raw_contact_id" : rawContactId,
2015 await groupBossBoardQuery(dataShareHelper, rawContactId, groupId);
2021 async function groupBossBoardQuery(dataShareHelper, rawContactId, groupId)
2035 expect(resultSet.getString(0) == rawContactId).assertEqual(true);
2057 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
2059 console.info("logMessage contactCard_query_test_3600: rawContactId = " + rawContactId);
2060 expect(rawContactId > 0).assertTrue();
2082 expect(resultSet.getString(0) == rawContactId.toString()).assertTrue();
2107 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
2109 console.info("logMessage contactCard_query_test_3700: rawContactId = " + rawContactId);
2110 expect(rawContactId > 0).assertTrue();
2132 expect(resultSet.getString(0) == rawContactId.toString()).assertTrue();
2157 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
2159 console.info("logMessage contactCard_query_test_3800: rawContactId = " + rawContactId);
2160 expect(rawContactId > 0).assertTrue();
2161 await rawContactDelete(dataShareHelper, rawContactId);
2162 await deletedRawContactQuery(dataShareHelper, rawContactId);
2171 async function rawContactDelete(dataShareHelper, rawContactId)
2174 condition1.equalTo("id", rawContactId.toString());
2186 async function deletedRawContactQuery(dataShareHelper, rawContactId)
2190 condition2.equalTo("raw_contact_id", rawContactId.toString());
2197 expect(resultSet.getString(1) == rawContactId.toString()).assertTrue();
2221 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
2223 console.info("logMessage contactCard_query_test_3900: rawContactId = " + rawContactId);
2224 expect(rawContactId > 0).assertTrue();
2226 await phoneQuery(rawContactId);
2236 async function queryPhoneInsert(dataShareHelper, rawContactId)
2239 "raw_contact_id" : rawContactId,
2253 async function phoneQuery(dataShareHelper, rawContactId)
2265 expect(resultSet.getString(0) == rawContactId.toString()).assertTrue();
2289 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
2291 console.info("logMessage contactCard_query_test_4000: rawContactId = " + rawContactId);
2292 expect(rawContactId > 0).assertTrue();
2293 await queryEmailInsert(dataShareHelper, rawContactId);
2294 await emailQuery(dataShareHelper, contactDataId, rawContactId);
2304 async function queryEmailInsert(dataShareHelper, rawContactId)
2307 "raw_contact_id" : rawContactId,
2321 async function emailQuery(dataShareHelper, contactDataId, rawContactId)
2335 expect(resultSet.getString(1) == rawContactId.toString()).assertTrue();
2358 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
2360 console.info("logMessage contactCard_query_test_4100: rawContactId = " + rawContactId);
2361 expect(rawContactId > 0).assertTrue();
2362 await queryTwoDataInsert(dataShareHelper, rawContactId);
2363 await queryTwoDataInsertCompany(dataShareHelper, rawContactId);
2364 await queryTwo(dataShareHelper, rawContactId);
2375 async function queryTwoDataInsert(dataShareHelper, rawContactId)
2377 var contactDataValues = {"raw_contact_id" : rawContactId, "content_type" : "name", "detail_info" : "xiaoyu"};
2388 async function queryTwoDataInsertCompany(dataShareHelper, rawContactId)
2391 "raw_contact_id" : rawContactId,
2405 async function queryTwo(dataShareHelper, rawContactId)
2409 condition.equalTo("raw_contact_id", rawContactId.toString());
2421 expect(resultSet.getString(1) == rawContactId.toString()).assertEqual(true);
2447 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
2449 console.info("logMessage contactCard_delete_test_4400: rawContactId = " + rawContactId);
2450 expect(rawContactId > 0).assertTrue();
2451 await deleteRaw(dataShareHelper, rawContactId);
2452 await queryDelete(dataShareHelper, rawContactId);
2460 async function deleteRaw(dataShareHelper, rawContactId)
2463 condition1.equalTo("id", rawContactId.toString());
2474 async function queryDelete(dataShareHelper, rawContactId)
2478 condition2.equalTo("raw_contact_id", rawContactId.toString());
2508 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
2510 console.info("logMessage contactCard_delete_test_4700: rawContactId = " + rawContactId);
2511 expect(rawContactId > 0).assertTrue();
2512 await queryDeleteCompanyData(dataShareHelper, rawContactId);
2513 await rawContactDelete(dataShareHelper, rawContactId);
2514 await companyRawContactDeleteQuery(dataShareHelper, rawContactId);
2523 async function queryDeleteCompanyData(dataShareHelper, rawContactId)
2526 "raw_contact_id" : rawContactId,
2541 async function rawContactDelete(dataShareHelper, rawContactId)
2544 condition1.equalTo("id", rawContactId.toString());
2556 async function companyRawContactDeleteQuery(dataShareHelper, rawContactId)
2560 condition2.equalTo("raw_contact_id", rawContactId.toString());
2590 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
2592 console.info("logMessage contactCard_delete_test_4800: rawContactId = " + rawContactId);
2593 expect(rawContactId > 0).assertTrue();
2594 await ContactDelete(dataShareHelper, rawContactId);
2595 await DeletedRawContactQuery(dataShareHelper, rawContactId)
2604 async function ContactDelete(dataShareHelper, rawContactId)
2607 condition1.equalTo("name_raw_contact_id", rawContactId.toString());
2618 async function DeletedRawContactQuery(dataShareHelper, rawContactId)
2622 condition2.equalTo("raw_contact_id", rawContactId.toString());
2682 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
2684 console.info("logMessage contactCard_batchinsert_test_5000: rawContactId = " + rawContactId);
2685 expect(rawContactId > 0).assertTrue();
2982 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
2983 console.info('logMessage contactCard_pinyin_query_test_200 rawContactId = ' + rawContactId);
2984 expect(rawContactId > 0).assertTrue();
2997 "raw_contact_id" : rawContactId,
3005 await SearchQuery(dataShareHelper, rawContactId);
3013 async function SearchQuery(dataShareHelper, rawContactId)
3017 condition.equalTo("raw_contact_id", rawContactId.toString());
3021 map.set("raw_contact_id", rawContactId.toString());
3050 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
3052 console.info('logMessage contactCard_pinyin_query_test_100 rawContactId = ' + rawContactId);
3053 expect(rawContactId > 0).assertTrue();
3065 var contactDataValues = {"raw_contact_id" : rawContactId, "content_type" : "name", "detail_info" : "鍵盤"};
3071 await SearchContactQueryChinese(dataShareHelper, rawContactId);
3079 async function SearchContactQueryChinese(dataShareHelper, rawContactId)
3083 condition.equalTo("raw_contact_id", rawContactId.toString());
3089 expect(resultSet.getString(0) == rawContactId.toString()).assertEqual(true);
3113 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
3115 console.info('logMessage contactCard_pinyin_query_test_300 rawContactId = ' + rawContactId);
3116 expect(rawContactId > 0).assertTrue();
3127 var contactDataValues = {"raw_contact_id" : rawContactId, "content_type" : "name", "detail_info" : "Tom"};
3132 await SearchContactQuery(dataShareHelper, rawContactId);
3140 async function SearchContactQuery(dataShareHelper, rawContactId)
3144 condition.equalTo("raw_contact_id", rawContactId.toString());
3150 expect(resultSet.getString(0) == rawContactId.toString()).assertTrue();
3174 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
3176 console.info('logMessage contactCard_fuzzyquery_test_400 rawContactId = ' + rawContactId);
3177 expect(rawContactId > 0).assertTrue();
3198 expect(resultSet.getString(0) == rawContactId.toString()).assertEqual(true);
3222 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
3224 console.info('logMessage contactCard_fuzzyquery_test_500 rawContactId = ' + rawContactId);
3225 expect(rawContactId > 0).assertTrue();
3250 expect(resultSet.getString(0) == rawContactId.toString()).assertTrue();
3279 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
3281 console.info('logMessage contactCard_fuzzyquery_test_600 rawContactId = ' + rawContactId);
3282 expect(rawContactId > 0).assertTrue();
3283 await RawContactCompanyQuery(dataShareHelper, rawContactId);
3292 async function RawContactCompanyQuery(dataShareHelper, rawContactId)
3308 expect(resultSet.getString(0) == rawContactId.toString()).assertEqual(true);
3336 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
3338 console.info('logMessage contactCard_fuzzyquery_test_700 rawContactId = ' + rawContactId);
3339 expect(rawContactId > 0).assertTrue();
3352 "raw_contact_id" : rawContactId,
3361 await fuzzyQueryPhone(dataShareHelper, rawContactId, contactDataId);
3369 async function fuzzyQueryPhone(dataShareHelper, rawContactId, contactDataId)
3386 expect(resultSet.getString(1) == rawContactId.toString()).assertEqual(true);
3409 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
3411 console.info('logMessage contactCard_fuzzyquery_test_800 rawContactId = ' + rawContactId);
3412 expect(rawContactId > 0).assertTrue();
3425 "raw_contact_id" : rawContactId,
3433 await fuzzyQueryPhoneNickName(dataShareHelper, rawContactId, contactDataId);
3441 async function fuzzyQueryPhoneNickName(dataShareHelper, rawContactId, contactDataId)
3458 expect(resultSet.getString(1) == rawContactId.toString()).assertTrue();
3480 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
3482 console.info('logMessage contactCard_fuzzyquery_test_900 rawContactId = ' + rawContactId);
3483 expect(rawContactId > 0).assertTrue();
3496 "raw_contact_id" : rawContactId,
3504 await fuzzyQueryEmail(dataShareHelper, rawContactId, contactDataId);
3512 async function fuzzyQueryEmail(dataShareHelper, rawContactId, contactDataId)
3529 expect(resultSet.getString(1) == rawContactId.toString()).assertTrue();
3552 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
3554 console.info('logMessage contactCard_fuzzyquery_test_1000 rawContactId = ' + rawContactId);
3555 expect(rawContactId > 0).assertTrue();
3568 "raw_contact_id" : rawContactId,
3577 await fuzzyQueryAddress(dataShareHelper, rawContactId, contactDataId);
3585 async function fuzzyQueryAddress(dataShareHelper, rawContactId, contactDataId)
3602 expect(resultSet.getString(1) == rawContactId.toString()).assertTrue();
3626 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
3628 console.info('logMessage contactCard_fuzzyquery_test_1100 rawContactId = ' + rawContactId);
3629 expect(rawContactId > 0).assertTrue();
3642 "raw_contact_id" : rawContactId,
3651 await fuzzyQueryNote(dataShareHelper, rawContactId, contactDataId);
3659 async function fuzzyQueryNote(dataShareHelper, rawContactId, contactDataId)
3675 expect(resultSet.getString(1) == rawContactId.toString()).assertEqual(true);
3699 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
3700 console.info('logMessage contactCard_fuzzyquery_test_1200 rawContactId = ' + rawContactId);
3701 expect(rawContactId > 0).assertTrue();
3714 "raw_contact_id" : rawContactId,
3722 await fuzzyQueryIM(dataShareHelper, rawContactId, contactDataId);
3730 async function fuzzyQueryIM(dataShareHelper, rawContactId, contactDataId)
3746 expect(resultSet.getString(1) == rawContactId.toString()).assertEqual(true);
3770 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
3771 console.info("logMessage abnormal_contactCard_insert_test_200: rawContactId = " + rawContactId);
3772 expect(rawContactId).assertEqual(-1);
3793 var rawContactId = await dataShareHelper.insert(errorUri, rawContactValues);
3794 console.info("logMessage abnormal_contactCard_insert_test_300: rawContactId = " + rawContactId);
3795 expect(rawContactId == -1).assertTrue();
3815 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
3816 console.info("logMessage abnormal_contactCard_update_test_1100: rawContactId = " + rawContactId);
3817 expect(rawContactId > 0).assertTrue();
3830 condition.equalTo("ids", rawContactId.toString());
3836 map.set("id", rawContactId.toString());
3859 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
3860 console.info("logMessage abnormal_contactCard_update_test_1000: rawContactId = " + rawContactId);
3861 expect(rawContactId > 0).assertTrue();
3874 condition.equalTo("id", rawContactId.toString());
3880 map.set("id", rawContactId.toString());
3902 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
3903 console.info("logMessage abnormal_contactCard_delete_test_4500: rawContactId = " + rawContactId);
3904 expect(rawContactId > 0).assertTrue();
3916 condition.equalTo("ids", rawContactId.toString());
3922 map.set("id", rawContactId.toString());
3946 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
3947 console.info("logMessage abnormal_contactCard_delete_test_4600: rawContactId = " + rawContactId);
3948 expect(rawContactId > 0).assertTrue();
3960 condition.equalTo("id", rawContactId.toString());
3966 map.set("id", rawContactId.toString());
3989 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues)
3990 console.info("logMessage abnormal_contactCard_query_test_4200: rawContactId = " + rawContactId);
3991 expect(rawContactId > 0).assertTrue();
4004 condition.equalTo("ids", rawContactId.toString());
4052 * @tc.name insert_data error no rawContactId
4062 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
4064 console.info('logMessage abnormal_contactCard_insert_data_5300 rawContactId = ' + rawContactId);
4065 expect(rawContactId > 0).assertTrue();
4100 var rawContactId = await dataShareHelper.insert(profileRawContactUri, rawContactValues);
4101 console.info('logMessage abnormal_contactCard_insert_data_5400 rawContactId = ' + rawContactId);
4102 expect(rawContactId > 0).assertTrue();
4113 var contactDataValues = {"raw_contact_id" : rawContactId, "detail_info" : "aaaa"};
4135 var rawContactId = await dataShareHelper.insert(profileRawContactUri, common.getProfileRawContact());
4136 console.info("logMessage contactCard_delete_test_5500: rawContactId = " + rawContactId);
4137 expect(rawContactId > 0).assertTrue();
4139 map.set("id", rawContactId.toString());
4149 condition.equalTo("id", rawContactId.toString());
4179 var rawContactId = await dataShareHelper.insert(profileRawContactUri, common.getProfileRawContact());
4180 console.info("logMessage contactCard_update_test_5600: rawContactId = " + rawContactId);
4181 expect(rawContactId > 0).assertTrue();
4183 map.set("id", rawContactId.toString());
4195 condition.equalTo("id", rawContactId.toString());
4226 var rawContactId = await dataShareHelper.insert(profileRawContactUri, common.getProfileRawContact());
4228 console.info('logMessage contactCard_insert_test_5700: rawContactId = ' + rawContactId);
4229 expect(rawContactId > 0).assertTrue();
4231 map.set("id", rawContactId.toString());
4270 var rawContactId = await dataShareHelper.insert(profileRawContactUri, contcatvalues);
4272 console.info('logMessage contactCard_insert_test_5800: rawContactId = ' + rawContactId);
4273 expect(rawContactId > 0).assertTrue();
4275 map.set("id", rawContactId.toString());
4297 var rawContactId = await dataShareHelper.insert(profileRawContactUri, contcatvalues);
4298 console.info('logMessage contactCard_insert_test_5900: rawContactId = ' + rawContactId);
4299 expect(rawContactId > 0).assertTrue();
4301 "raw_contact_id" : rawContactId,
4315 console.info('logMessage contactCard_insert_test_5900: rawContactId = ' + rawContactIdOne);
4359 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
4360 console.info("logMessage contactCard_insert_test_6000: rawContactId = " + rawContactId);
4361 expect(rawContactId > 0).assertTrue();
4364 map.set("id", rawContactId.toString());
4395 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
4396 console.info("logMessage contactCard_insertData_test_6100: rawContactId = " + rawContactId);
4397 expect(rawContactId > 0).assertTrue();
4399 contactDataValues["raw_contact_id"] = rawContactId;
4407 map.set("raw_contact_id", rawContactId.toString());
4431 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
4432 expect(rawContactId > 0).assertTrue();
4433 console.info("logMessage contactCard_update_test_6200: rawContactId = " + rawContactId);
4449 condition.equalTo("id", rawContactId.toString());
4459 "contactCard_update_test_6200", dataShareHelper, rawContactId, rawContactIdOne, rawContactIdTwo);
4468 async function queryUpdateThree(tag, dataShareHelper, rawContactId, rawContactIdOne, rawContactIdTwo)
4475 condition.equalTo("id", rawContactId.toString());
4507 var rawContactId = await dataShareHelper.insert(profileRawContactUri, common.getProfileRawContact());
4508 console.info("logMessage contactCard_UpdateRawContcat_test_6300: rawContactId = " + rawContactId);
4509 expect(rawContactId > 0).assertTrue();
4513 condition.equalTo("id", rawContactId.toString());
4518 map.set("id", rawContactId.toString());
4543 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
4544 console.info("logMessage contactCard_insertDataUpdate_test_6400: rawContactId = " + rawContactId);
4545 expect(rawContactId > 0).assertTrue();
4548 contactDataValues["raw_contact_id"] = rawContactId;
4563 map.set("raw_contact_id", rawContactId.toString());
4588 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
4589 console.info("logMessage contactCard_insertDataUpdateAll_test_6500: rawContactId = " + rawContactId);
4590 expect(rawContactId > 0).assertTrue();
4591 await insertData(rawContactId, "name", "xiaocai", "");
4592 await insertData(rawContactId, "phone", "6500", "");
4593 await insertData(rawContactId, "organization", "TTTTT", "Deve");
4594 await insertData(rawContactId, "nickname", "xxxxcai", "");
4595 await insertData(rawContactId, "email", "111@fox.com", "");
4596 await insertData(rawContactId, "postal_address", "dddd", "");
4597 await insertData(rawContactId, "note", "caicai", "");
4598 await insertData(rawContactId, "im", "999999999", "");
4599 await insertData(rawContactId, "contact_event", "1125", "");
4600 await insertData(rawContactId, "website", "wwww.xxx.com", "");
4601 await insertData(rawContactId, "relation", "xiaobai", "");
4602 await insertData(rawContactId, "group_membership", 1, "");
4603 await insertData(rawContactId, "contact_misc", "5678", "");
4606 condition.equalTo("raw_contact_id", rawContactId.toString());
4610 await queryUpdateAllData("contactCard_insertDataUpdateAll_test_6500", dataShareHelper, rawContactId);
4620 async function queryUpdateAllData(tag, dataShareHelper, rawContactId)
4627 condition.equalTo("row_contact_id", rawContactId.toString());
4656 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
4657 console.info("logMessage contactCard_insertFavorite_test_6600: rawContactId = " + rawContactId);
4661 console.info("logMessage contactCard_insertFavorite_test_6600: rawContactId = " + rawContactIdOne);
4665 console.info("logMessage contactCard_insertFavorite_test_6600: rawContactId = " + rawContactIdTwo);
4669 "contactCard_insertFavorite_test_6600", dataShareHelper, rawContactId, rawContactIdOne, rawContactIdTwo, 1);
4678 async function queryThreeFavorite(tag, dataShareHelper, rawContactId, rawContactIdOne, rawContactIdTwo, favoritevalue)
4685 condition.equalTo("id", rawContactId.toString());
4718 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
4719 console.info("logMessage contactCard_unFavorite_test_6700: rawContactId = " + rawContactId);
4723 console.info("logMessage contactCard_unFavorite_test_6700: rawContactId = " + rawContactIdOne);
4727 console.info("logMessage contactCard_unFavorite_test_6700: rawContactId = " + rawContactIdTwo);
4731 condition.equalTo("id", rawContactId.toString());
4740 "contactCard_unFavorite_test_6700", dataShareHelper, rawContactId, rawContactIdOne, rawContactIdTwo, 0);
4853 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
4854 console.info("logMessage contactCard_insertGroup_test_7000: rawContactId = " + rawContactId);
4855 await insertData(rawContactId, "group_membership", 1, "");
4861 console.info("logMessage contactCard_insertGroup_test_7000: rawContactId = " + rawContactIdOne);
4867 console.info("logMessage contactCard_insertGroup_test_7000: rawContactId = " + rawContactIdTwo);
4871 "contactCard_insertGroup_test_7000", dataShareHelper, rawContactId, rawContactIdOne, rawContactIdTwo, 1);
4880 async function queryThreeGroup(tag, dataShareHelper, rawContactId, rawContactIdOne, rawContactIdTwo, groupId)
4886 condition.equalTo("id", rawContactId.toString());
4945 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
4946 console.info("logMessage contactCard_delete_test_7200: rawContactId = " + rawContactId);
4947 await insertData(rawContactId, "group_membership", 1, "");
4953 console.info("logMessage contactCard_delete_test_7200: rawContactId = " + rawContactIdOne);
4959 console.info("logMessage contactCard_delete_test_7200: rawContactId = " + rawContactIdTwo);
4965 "contactCard_delete_test_7200", dataShareHelper, rawContactId, rawContactIdOne, rawContactIdTwo);
4974 async function queryZeroGroup(tag, dataShareHelper, rawContactId, rawContactIdOne, rawContactIdTwo)
4981 condition.equalTo("raw_contact_id", rawContactId.toString());
5030 var rawContactId = await dataShareHelper.insert(profileRawContactUri, common.getProfileRawContact());
5032 console.info('logMessage contactCard_delete_test_7400: rawContactId = ' + rawContactId);
5033 expect(rawContactId > 0).assertTrue();
5035 map.set("id", rawContactId.toString());
5067 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
5068 console.info("logMessage contactCard_delete_test_7500: rawContactId = " + rawContactId);
5069 expect(rawContactId > 0).assertTrue();
5071 contactDataValues["raw_contact_id"] = rawContactId;
5102 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
5103 console.info("logMessage contactCard_insertDataAll_test_7600: rawContactId = " + rawContactId);
5104 expect(rawContactId > 0).assertTrue();
5105 var contactdata1 = await insertData(rawContactId, "name", "xiaocai", "");
5106 await queryAlldata("contactCard_insertDataAll_test_7600", dataShareHelper, rawContactId, contactdata1, "xiaocai");
5107 var contactdata2 = await insertData(rawContactId, "phone", "6500", "");
5108 await queryAlldata("contactCard_insertDataAll_test_7600", dataShareHelper, rawContactId, contactdata2, "6500");
5109 var contactdatd3 = await insertData(rawContactId, "organization", "TTTTT", "Deve");
5110 await queryAlldata("contactCard_insertDataAll_test_7600", dataShareHelper, rawContactId, contactdatd3, "TTTTT");
5111 var contactdatd4 = await insertData(rawContactId, "nickname", "xxxxcai", "");
5112 await queryAlldata("contactCard_insertDataAll_test_7600", dataShareHelper, rawContactId, contactdatd4, "xxxxcai");
5113 var contactdatd5 = await insertData(rawContactId, "email", "111@fox.com", "");
5115 "contactCard_insertDataAll_test_7600", dataShareHelper, rawContactId, contactdatd5, "111@fox.com");
5116 var contactdatd6 = await insertData(rawContactId, "postal_address", "dddd", "");
5117 await queryAlldata("contactCard_insertDataAll_test_7600", dataShareHelper, rawContactId, contactdatd6, "dddd");
5118 var contactdatd7 = await insertData(rawContactId, "note", "caicai", "");
5119 await queryAlldata("contactCard_insertDataAll_test_7600", dataShareHelper, rawContactId, contactdatd7, "caicai");
5120 var contactdatd8 = await insertData(rawContactId, "im", "999999999", "");
5122 "contactCard_insertDataAll_test_7600", dataShareHelper, rawContactId, contactdatd8, "999999999");
5133 async function queryAlldata(tag, dataShareHelper, rawContactId, contactdata, values)
5145 expect(id == rawContactId).assertEqual(true);
5173 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
5174 console.info("logMessage contactCard_insertDataAll_test_7700: rawContactId = " + rawContactId);
5175 expect(rawContactId > 0).assertTrue();
5176 var contactdata1 = await insertData(rawContactId, "name", "xiaocai", "");
5177 await queryAlldata("contactCard_insertDataAll_test_7700", dataShareHelper, rawContactId, contactdata1, "xiaocai");
5178 var contactdata2 = await insertData(rawContactId, "phone", "6500", "");
5179 await queryAlldata("contactCard_insertDataAll_test_7700", dataShareHelper, rawContactId, contactdata2, "6500");
5180 var contactdatd3 = await insertData(rawContactId, "organization", "TTTTT", "Deve");
5181 await queryAlldata("contactCard_insertDataAll_test_7700", dataShareHelper, rawContactId, contactdatd3, "TTTTT");
5182 var contactdatd4 = await insertData(rawContactId, "nickname", "xxxxcai", "");
5183 await queryAlldata("contactCard_insertDataAll_test_7700", dataShareHelper, rawContactId, contactdatd4, "xxxxcai");
5184 var contactdatd5 = await insertData(rawContactId, "email", "111@fox.com", "");
5186 "contactCard_insertDataAll_test_7700", dataShareHelper, rawContactId, contactdatd5, "111@fox.com");
5187 var contactdatd6 = await insertData(rawContactId, "postal_address", "dddd", "");
5188 await queryAlldata("contactCard_insertDataAll_test_7700", dataShareHelper, rawContactId, contactdatd6, "dddd");
5189 var contactdatd7 = await insertData(rawContactId, "note", "caicai", "");
5190 await queryAlldata("contactCard_insertDataAll_test_7700", dataShareHelper, rawContactId, contactdatd7, "caicai");
5191 var contactdatd8 = await insertData(rawContactId, "im", "999999999", "");
5193 "contactCard_insertDataAll_test_7700", dataShareHelper, rawContactId, contactdatd8, "999999999");
5194 var contactdatd9 = await insertData(rawContactId, "contact_event", "1125", "");
5195 await queryAlldata("contactCard_insertDataAll_test_7700", dataShareHelper, rawContactId, contactdatd9, "1125");
5196 var contactdatd10 = await insertData(rawContactId, "website", "wwww.xxx.com", "");
5198 "contactCard_insertDataAll_test_7700", dataShareHelper, rawContactId, contactdatd10, "wwww.xxx.com");
5199 var contactdatd11 = await insertData(rawContactId, "relation", "xiaobai", "");
5200 await queryAlldata("contactCard_insertDataAll_test_7700", dataShareHelper, rawContactId, contactdatd11, "xiaobai");
5201 var contactdatd12 = await insertData(rawContactId, "group_membership", 1, "");
5202 await queryAlldata("contactCard_insertDataAll_test_7700", dataShareHelper, rawContactId, contactdatd12, 1);
5203 var contactdatd13 = await insertData(rawContactId, "contact_misc", "5678", "");
5204 await queryAlldata("contactCard_insertDataAll_test_7700", dataShareHelper, rawContactId, contactdatd13, "5678");
5226 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
5227 console.info("logMessage contactCard_insertDataUpdateMore_test_7800: rawContactId = " + rawContactId);
5228 expect(rawContactId > 0).assertTrue();
5234 await insertData(rawContactId, "name", "xiaotian", "");
5238 condition.equalTo("raw_contact_id", rawContactId.toString());
5245 "contactCard_insertDataUpdateMore_test_7800", dataShareHelper, rawContactId, rawContactId1);
5255 async function insertDataUpdateMoreQuery(tag, dataShareHelper, rawContactId, rawContactId1)
5259 condition.equalTo("raw_contact_id", rawContactId.toString());
5290 var rawContactId = await dataShareHelper.insert(profileRawContactUri, insertRawContactValues);
5291 console.info("logMessage contactCard_deleterestore_test_7900: rawContactId = " + rawContactId);
5292 expect(rawContactId > 0).assertTrue();
5295 condition1.equalTo("id", rawContactId.toString());
5302 condition2.equalTo("id", rawContactId.toString());
5309 condition3.equalTo("id", rawContactId.toString());
5313 map.set("id", rawContactId.toString());