Lines Matching refs:tableName
96 int ContactAbilityTest::ContactUpdate(const std::string &tableName, OHOS::DataShare::DataShareValuesBucket updateValues,
100 if (tableName == ContactTabName::RAW_CONTACT) {
103 } else if (tableName == ContactTabName::CONTACT_DATA) {
106 } else if (tableName == ContactTabName::GROUPS) {
109 } else if (tableName == ContactTabName::CONTACT_BLOCKLIST) {
118 int ContactAbilityTest::ContactDelete(const std::string &tableName, OHOS::DataShare::DataSharePredicates predicates)
121 if (tableName == ContactTabName::RAW_CONTACT) {
124 } else if (tableName == ContactTabName::CONTACT_DATA) {
127 } else if (tableName == ContactTabName::GROUPS) {
130 } else if (tableName == ContactTabName::CONTACT_BLOCKLIST) {
133 } else if (tableName == ContactTabName::CONTACT) {
136 } else if (tableName == ContactTabName::DELETED_RAW_CONTACT_RECORD) {
146 const std::string &tableName, std::vector<std::string> &columns, OHOS::DataShare::DataSharePredicates predicates)
150 if (tableName == ContactTabName::RAW_CONTACT) {
153 } else if (tableName == ContactTabName::CONTACT_DATA) {
156 } else if (tableName == ContactTabName::CONTACT) {
159 } else if (tableName == ContactTabName::GROUPS) {
162 } else if (tableName == ContactTabName::CONTACT_BLOCKLIST) {
165 } else if (tableName == ContactTabName::DELETED_RAW_CONTACT) {
168 } else if (tableName == ContactTabName::SEARCH_CONTACT) {
177 void ContactAbilityTest::QueryAndExpectResult(std::string &tableName, OHOS::DataShare::DataSharePredicates predicates,
181 std::shared_ptr<OHOS::DataShare::DataShareResultSet> resultSet = ContactQuery(tableName, columns, predicates);
693 std::string tableName = ContactTabName::CONTACT_DATA;
706 ContactQuery(tableName, columnQuery, predicates);
1281 std::string tableName = ContactTabName::CONTACT_DATA;
1297 int upDateCode = ContactUpdate(tableName, upDateValuesBucket, predicates);
1304 std::shared_ptr<OHOS::DataShare::DataShareResultSet> resultSet = ContactQuery(tableName, columns, predicates);
1339 std::string tableName = ContactTabName::CONTACT_DATA;
1353 int upDateCode = ContactUpdate(tableName, upDateValuesBucket, predicates);
1357 ContactQuery(tableName, columnQuery, predicates);
1608 std::string tableName = ContactTabName::CONTACT_BLOCKLIST;
1617 std::shared_ptr<OHOS::DataShare::DataShareResultSet> resultSet = ContactQuery(tableName, columns, predicates);
1722 std::string tableName = ContactTabName::CONTACT_BLOCKLIST;
1723 int deleteCode = ContactDelete(tableName, predicates);
1728 ContactQuery(tableName, columns, predicates);
1973 std::string tableName = ContactTabName::GROUPS;
1974 int deleteCode = ContactDelete(tableName, predicates);
1979 ContactQuery(tableName, columns, predicates);
2585 std::string tableName = ContactTabName::CONTACT_DATA;
2598 int deleteCode = ContactDelete(tableName, predicates);
2603 ContactQuery(tableName, columns, predicates);
2816 std::string tableName = ContactTabName::CONTACT_DATA;
2820 std::shared_ptr<OHOS::DataShare::DataShareResultSet> resultSet = ContactQuery(tableName, columnQuery, predicates);
2917 std::string tableName = ContactTabName::RAW_CONTACT;
2920 std::shared_ptr<OHOS::DataShare::DataShareResultSet> resultSet = ContactQuery(tableName, columnQuery, predicates);