Lines Matching refs:tableName
98 int ContactProfileTest::ContactUpdate(const std::string &tableName, OHOS::DataShare::DataShareValuesBucket updateValues,
102 if (tableName == ContactTabName::RAW_CONTACT) {
105 } else if (tableName == ContactTabName::CONTACT_DATA) {
108 } else if (tableName == ContactTabName::GROUPS) {
111 } else if (tableName == ContactTabName::CONTACT_BLOCKLIST) {
120 int ContactProfileTest::ContactDelete(const std::string &tableName, OHOS::DataShare::DataSharePredicates predicates)
123 if (tableName == ContactTabName::RAW_CONTACT) {
126 } else if (tableName == ContactTabName::CONTACT_DATA) {
129 } else if (tableName == ContactTabName::GROUPS) {
132 } else if (tableName == ContactTabName::CONTACT_BLOCKLIST) {
135 } else if (tableName == ContactTabName::CONTACT) {
145 const std::string &tableName, std::vector<std::string> &columns, OHOS::DataShare::DataSharePredicates predicates)
149 if (tableName == ContactTabName::RAW_CONTACT) {
152 } else if (tableName == ContactTabName::CONTACT_DATA) {
155 } else if (tableName == ContactTabName::CONTACT) {
158 } else if (tableName == ContactTabName::GROUPS) {
161 } else if (tableName == ContactTabName::CONTACT_BLOCKLIST) {
164 } else if (tableName == ContactTabName::DELETED_RAW_CONTACT) {
167 } else if (tableName == ContactTabName::SEARCH_CONTACT) {
176 void ContactProfileTest::QueryAndExpectResult(std::string &tableName, OHOS::DataShare::DataSharePredicates predicates,
180 std::shared_ptr<OHOS::DataShare::DataShareResultSet> resultSet = ContactQuery(tableName, columns, predicates);
688 std::string tableName = ContactTabName::CONTACT_DATA;
701 ContactQuery(tableName, columnQuery, predicates);
1276 std::string tableName = ContactTabName::CONTACT_DATA;
1292 int upDateCode = ContactUpdate(tableName, upDateValuesBucket, predicates);
1299 std::shared_ptr<OHOS::DataShare::DataShareResultSet> resultSet = ContactQuery(tableName, columns, predicates);
1334 std::string tableName = ContactTabName::CONTACT_DATA;
1348 int upDateCode = ContactUpdate(tableName, upDateValuesBucket, predicates);
1352 ContactQuery(tableName, columnQuery, predicates);
1603 std::string tableName = ContactTabName::CONTACT_BLOCKLIST;
1612 std::shared_ptr<OHOS::DataShare::DataShareResultSet> resultSet = ContactQuery(tableName, columns, predicates);
1717 std::string tableName = ContactTabName::CONTACT_BLOCKLIST;
1718 int deleteCode = ContactDelete(tableName, predicates);
1723 ContactQuery(tableName, columns, predicates);
1968 std::string tableName = ContactTabName::GROUPS;
1969 int deleteCode = ContactDelete(tableName, predicates);
1974 ContactQuery(tableName, columns, predicates);
2580 std::string tableName = ContactTabName::CONTACT_DATA;
2593 int deleteCode = ContactDelete(tableName, predicates);
2598 ContactQuery(tableName, columns, predicates);
2810 std::string tableName = ContactTabName::CONTACT_DATA;
2814 std::shared_ptr<OHOS::DataShare::DataShareResultSet> resultSet = ContactQuery(tableName, columnQuery, predicates);
2911 std::string tableName = ContactTabName::RAW_CONTACT;
2914 std::shared_ptr<OHOS::DataShare::DataShareResultSet> resultSet = ContactQuery(tableName, columnQuery, predicates);