Home
last modified time | relevance | path

Searched refs:resultSet (Results 1 – 25 of 50) sorted by relevance

12

/base/telephony/sms_mms/services/
Dsms_persist_helper.cpp76 …std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet = helper->Query(uri, columns, predicates); in Query() local
78 if (resultSet == nullptr) { in Query()
83 int resultSetNum = resultSet->GoToFirstRow(); in Query()
86 ResultSetConvertToIndexer(indexer, resultSet); in Query()
88 resultSetNum = resultSet->GoToNextRow(); in Query()
90 resultSet->Close(); in Query()
124 …std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet = helper->Query(uri, columns, predicates); in QueryBlockPhoneNumber() local
126 if (resultSet == nullptr) { in QueryBlockPhoneNumber()
130 if (resultSet->GetRowCount(count) == 0 && count != 0) { in QueryBlockPhoneNumber()
133 resultSet->Close(); in QueryBlockPhoneNumber()
[all …]
/base/telephony/core_service/services/sim/src/
Doperator_config_loader.cpp61 std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet; in LoadOpKeyOnMccMnc() local
69 resultSet = helper->Query(uri, colume, predicates); in LoadOpKeyOnMccMnc()
70 if (resultSet != nullptr) { in LoadOpKeyOnMccMnc()
71 return GetOpKey(resultSet, slotId); in LoadOpKeyOnMccMnc()
76 std::string OperatorConfigLoader::GetOpKey(std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet in GetOpKey() argument
78 if (resultSet == nullptr) { in GetOpKey()
92 resultSet->GetRowCount(count); in GetOpKey()
103 if (MatchOperatorRule(resultSet, row)) { in GetOpKey()
104 resultSet->GetColumnIndex(OPKEY, columnIndex); in GetOpKey()
105 resultSet->GetString(columnIndex, opKeyVal); in GetOpKey()
[all …]
/base/telephony/call_manager/services/call/call_state_observer/src/
Dcall_data_base_helper.cpp125 auto resultSet = helper->Query(uri, predicates, columns); in Query() local
127 if (resultSet == nullptr) { in Query()
130 int32_t resultSetNum = resultSet->GoToFirstRow(); in Query()
134 resultSet->GetColumnIndex("phone_number", columnIndex); in Query()
135 int32_t ret = resultSet->GetString(columnIndex, phone); in Query()
139 resultSetNum = resultSet->GoToNextRow(); in Query()
141 resultSet->Close(); in Query()
155 auto resultSet = helper->Query(uri, predicates, columns); in Query() local
157 if (resultSet == nullptr) { in Query()
161 int32_t resultSetNum = resultSet->GoToFirstRow(); in Query()
[all …]
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/cache/
Dapp_event_block_dao.cpp117 auto resultSet = dbStore->QuerySql(sql, std::vector<std::string> {}); in GetPackagesBySize() local
118 if (resultSet == nullptr) { in GetPackagesBySize()
124 while (resultSet->GoToNextRow() == NativeRdb::E_OK) { in GetPackagesBySize()
125 resultSet->GetLong(0, seq); // 0 means seq field in GetPackagesBySize()
128 resultSet->GetString(1, package); // 1 means package field in GetPackagesBySize()
132 resultSet->GetInt(2, packageSize); // 2 means packageSize field in GetPackagesBySize()
135 resultSet->Close(); in GetPackagesBySize()
149 auto resultSet = dbStore->QuerySql(sql, std::vector<std::string> {}); in CountPackages() local
150 if (resultSet == nullptr) { in CountPackages()
154 if (resultSet->GoToNextRow() == NativeRdb::E_OK) { in CountPackages()
[all …]
Dapp_event_blocks_dao.cpp102 auto resultSet = dbStore->QuerySql(sql, std::vector<std::string> {}); in GetBlocks() local
103 if (resultSet == nullptr) { in GetBlocks()
107 while (resultSet->GoToNextRow() == NativeRdb::E_OK) { in GetBlocks()
109 resultSet->GetString(0, name); // 0 means blockName field in GetBlocks()
112 resultSet->Close(); in GetBlocks()
/base/web/webview/ohos_adapter/distributeddatamgr_adapter/webdatabase/src/
Dohos_web_permission_data_base_adapter_impl.cpp125 std::unique_ptr<AbsSharedResultSet> resultSet = nullptr; in ExistPermissionByOrigin() local
129 resultSet = rdbStore_->Query(dirAbsPred, columns); in ExistPermissionByOrigin()
130 if ((resultSet == nullptr) || (resultSet->GoToFirstRow() != NativeRdb::E_OK)) { in ExistPermissionByOrigin()
148 std::unique_ptr<AbsSharedResultSet> resultSet = nullptr; in GetPermissionResultByOrigin() local
152 resultSet = rdbStore_->Query(dirAbsPred, columns); in GetPermissionResultByOrigin()
153 if ((resultSet == nullptr) || (resultSet->GoToFirstRow() != NativeRdb::E_OK)) { in GetPermissionResultByOrigin()
160 resultSet->GetColumnIndex(PERMISSION_RESULT_COL, columnIndex); in GetPermissionResultByOrigin()
161 resultSet->GetInt(columnIndex, resultVal); in GetPermissionResultByOrigin()
234 std::unique_ptr<AbsSharedResultSet> resultSet = rdbStore_->Query(dirAbsPred, columns); in GetOriginsByPermission() local
235 if ((resultSet == nullptr) || (resultSet->GoToFirstRow() != NativeRdb::E_OK)) { in GetOriginsByPermission()
[all …]
Dohos_web_data_base_adapter_impl.cpp147 std::unique_ptr<AbsSharedResultSet> resultSet = nullptr; in GetHttpAuthCredentials() local
152 resultSet = rdbStore_->Query(dirAbsPred, columns); in GetHttpAuthCredentials()
153 if ((resultSet == nullptr) || (resultSet->GoToFirstRow() != NativeRdb::E_OK)) { in GetHttpAuthCredentials()
160 resultSet->GetColumnIndex(HTTPAUTH_USERNAME_COL, columnIndex); in GetHttpAuthCredentials()
161 resultSet->GetString(columnIndex, username); in GetHttpAuthCredentials()
162 resultSet->GetColumnIndex(HTTPAUTH_PASSWORD_COL, columnIndex); in GetHttpAuthCredentials()
163 resultSet->GetBlob(columnIndex, passwordVector); in GetHttpAuthCredentials()
Dohos_web_dns_data_base_adapter_impl.cpp147 std::unique_ptr<AbsSharedResultSet> resultSet = rdbStore_->Query(dirAbsPred, columns); in GetHostnames() local
148 if ((resultSet == nullptr) || (resultSet->GoToFirstRow() != NativeRdb::E_OK)) { in GetHostnames()
153 resultSet->GetColumnIndex(HOSTNAME_COL, columnIndex); in GetHostnames()
156 resultSet->GetString(columnIndex, hostname); in GetHostnames()
158 } while (resultSet->GoToNextRow() == NativeRdb::E_OK); in GetHostnames()
/base/msdp/device_status/libs/src/
Ddevicestatus_msdp_rdb.cpp116 int32_t DevicestatusMsdpRdb::TrigerData(const std::unique_ptr<NativeRdb::ResultSet> &resultSet) in TrigerData() argument
120 if (resultSet == nullptr) { in TrigerData()
124 int32_t ret = resultSet->GetColumnIndex("ID", columnIndex); in TrigerData()
130 ret = resultSet->GetInt(columnIndex, intVal); in TrigerData()
137 ret = resultSet->GetColumnIndex("DEVICESTATUS_TYPE", columnIndex); in TrigerData()
143 ret = resultSet->GetInt(columnIndex, intVal); in TrigerData()
151 ret = resultSet->GetColumnIndex("DEVICESTATUS_STATUS", columnIndex); in TrigerData()
157 ret = resultSet->GetInt(columnIndex, intVal); in TrigerData()
178 std::unique_ptr<ResultSet> resultSet = in TrigerDatabaseObserver() local
181 if (resultSet == nullptr) { in TrigerDatabaseObserver()
[all …]
Ddevicestatus_sensor_rdb.cpp119 int32_t DevicestatusSensorRdb::TrigerData(const std::unique_ptr<NativeRdb::ResultSet> &resultSet) in TrigerData() argument
124 if (resultSet == nullptr) { in TrigerData()
128 int32_t ret = resultSet->GetColumnIndex("ID", columnIndex); in TrigerData()
134 ret = resultSet->GetInt(columnIndex, intVal); in TrigerData()
141 ret = resultSet->GetColumnIndex("DEVICESTATUS_TYPE", columnIndex); in TrigerData()
147 ret = resultSet->GetInt(columnIndex, intVal); in TrigerData()
155 ret = resultSet->GetColumnIndex("DEVICESTATUS_STATUS", columnIndex); in TrigerData()
161 ret = resultSet->GetInt(columnIndex, intVal); in TrigerData()
182 std::unique_ptr<ResultSet> resultSet = in TrigerDatabaseObserver() local
185 if (resultSet == nullptr) { in TrigerDatabaseObserver()
[all …]
/base/notification/distributed_notification_service/test/fuzztest/reminderstoreannex_fuzzer/
Dreminderstoreannex_fuzzer.cpp39 …std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet = std::make_shared<NativeRdb::AbsSharedRe… in DoSomethingInterestingWithMyAPI() local
42 reminderStore.GetInt32Val(resultSet, name, value); in DoSomethingInterestingWithMyAPI()
44 reminderStore.GetStringVal(resultSet, name, value1); in DoSomethingInterestingWithMyAPI()
46 reminderStore.BuildReminder(resultSet); in DoSomethingInterestingWithMyAPI()
/base/telephony/sms_mms/services/include/
Dsms_persist_helper.h52 SmsReceiveIndexer &info, const std::shared_ptr<NativeRdb::AbsSharedResultSet> &resultSet);
54 SmsReceiveIndexer &info, const std::shared_ptr<NativeRdb::AbsSharedResultSet> &resultSet);
56 SmsReceiveIndexer &info, const std::shared_ptr<NativeRdb::AbsSharedResultSet> &resultSet);
/base/telephony/data_storage/common/src/
Drdb_base_helper.cpp108 std::unique_ptr<NativeRdb::AbsSharedResultSet> resultSet; in QuerySql() local
110 resultSet = store_->QuerySql(sql); in QuerySql()
112 return resultSet; in QuerySql()
119 std::unique_ptr<NativeRdb::AbsSharedResultSet> resultSet; in Query() local
121 resultSet = store_->Query(predicates, columns); in Query()
123 return resultSet; in Query()
/base/notification/distributed_notification_service/test/fuzztest/reminderrequest_fuzzer/
Dreminderrequest_fuzzer.cpp68 std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet = in DoSomethingInterestingWithMyAPI() local
73 reminderRequest.RecoverInt64FromDb(resultSet, stringData, columnType); in DoSomethingInterestingWithMyAPI()
74 reminderRequest.RecoverFromDb(resultSet); in DoSomethingInterestingWithMyAPI()
75 reminderRequest.RecoverActionButton(resultSet); in DoSomethingInterestingWithMyAPI()
/base/telephony/data_storage/test/unittest/data_test/
Ddata_storage_test.cpp162 … std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet = helper->Query(uri, colume, predicates); in OpKeySelect() local
163 if (resultSet != nullptr) { in OpKeySelect()
165 resultSet->GetRowCount(count); in OpKeySelect()
207 … std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet = helper->Query(uri, colume, predicates); in SimSelect() local
208 if (resultSet != nullptr) { in SimSelect()
210 resultSet->GetRowCount(count); in SimSelect()
265 … std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet = helper->Query(uri, colume, predicates); in SmsSelect() local
266 if (resultSet != nullptr) { in SmsSelect()
268 resultSet->GetRowCount(count); in SmsSelect()
323 … std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet = helper->Query(uri, colume, predicates); in PdpProfileSelect() local
[all …]
/base/hiviewdfx/hiview/base/event_store/
Dsys_event_query_wrapper.cpp106 ResultSet resultSet; in Execute() local
112 resultSet.Set(queryErrorCode, false); in Execute()
113 return resultSet; in Execute()
117 resultSet = SysEventQuery::Execute(limit, tag, callerInfo, queryCallback); in Execute()
121 resultSet.Set(queryErrorCode, false); in Execute()
122 return resultSet; in Execute()
127 return resultSet; in Execute()
/base/notification/distributed_notification_service/frameworks/ans/src/
Dreminder_request.cpp423 …eminderRequest::RecoverInt64FromDb(const std::shared_ptr<NativeRdb::AbsSharedResultSet> &resultSet, in RecoverInt64FromDb() argument
426 if (resultSet == nullptr) { in RecoverInt64FromDb()
433 resultSet->GetInt(ReminderStore::GetColumnIndex(columnName), value); in RecoverInt64FromDb()
438 resultSet->GetLong(ReminderStore::GetColumnIndex(columnName), value); in RecoverInt64FromDb()
450 void ReminderRequest::RecoverFromDb(const std::shared_ptr<NativeRdb::AbsSharedResultSet> &resultSet) in RecoverFromDb() argument
452 if (resultSet == nullptr) { in RecoverFromDb()
458 resultSet->GetInt(ReminderStore::GetColumnIndex(REMINDER_ID), reminderId_); in RecoverFromDb()
461 resultSet->GetInt(ReminderStore::GetColumnIndex(USER_ID), userId_); in RecoverFromDb()
464 resultSet->GetString(ReminderStore::GetColumnIndex(PKG_NAME), bundleName_); in RecoverFromDb()
467 resultSet->GetInt(ReminderStore::GetColumnIndex(UID), uid_); in RecoverFromDb()
[all …]
Dreminder_store.cpp347 …uest> ReminderStore::BuildReminder(const std::shared_ptr<NativeRdb::AbsSharedResultSet> &resultSet) in BuildReminder() argument
351 resultSet->GetInt(ReminderStore::GetColumnIndex(ReminderRequest::REMINDER_TYPE), reminderType); in BuildReminder()
352 resultSet->GetInt(ReminderStore::GetColumnIndex(ReminderRequest::REMINDER_ID), reminderId); in BuildReminder()
374 reminder->RecoverFromDb(resultSet); in BuildReminder()
410 void ReminderStore::GetInt32Val(std::shared_ptr<NativeRdb::AbsSharedResultSet> &resultSet, in GetInt32Val() argument
414 resultSet->GetColumnIndex(name, columnIndex); in GetInt32Val()
415 resultSet->GetInt(columnIndex, value); in GetInt32Val()
418 void ReminderStore::GetStringVal(std::shared_ptr<NativeRdb::AbsSharedResultSet> &resultSet, in GetStringVal() argument
422 resultSet->GetColumnIndex(name, columnIndex); in GetStringVal()
423 resultSet->GetString(columnIndex, value); in GetStringVal()
Dreminder_request_calendar.cpp521 …nderRequestCalendar::RecoverFromDb(const std::shared_ptr<NativeRdb::AbsSharedResultSet> &resultSet) in RecoverFromDb() argument
523 ReminderRequest::RecoverFromDb(resultSet); in RecoverFromDb()
526 …repeatDay_ = static_cast<uint32_t>(RecoverInt64FromDb(resultSet, REPEAT_DAYS, DbRecoveryType::INT)… in RecoverFromDb()
530 static_cast<uint16_t>(RecoverInt64FromDb(resultSet, REPEAT_MONTHS, DbRecoveryType::INT)); in RecoverFromDb()
534 … static_cast<uint16_t>(RecoverInt64FromDb(resultSet, FIRST_DESIGNATE_YEAR, DbRecoveryType::INT)); in RecoverFromDb()
538 … static_cast<uint8_t>(RecoverInt64FromDb(resultSet, FIRST_DESIGNATE_MONTH, DbRecoveryType::INT)); in RecoverFromDb()
542 … static_cast<uint8_t>(RecoverInt64FromDb(resultSet, FIRST_DESIGNATE_DAY, DbRecoveryType::INT)); in RecoverFromDb()
545 … year_ = static_cast<uint16_t>(RecoverInt64FromDb(resultSet, CALENDAR_YEAR, DbRecoveryType::INT)); in RecoverFromDb()
548 … month_ = static_cast<uint8_t>(RecoverInt64FromDb(resultSet, CALENDAR_MONTH, DbRecoveryType::INT)); in RecoverFromDb()
551 day_ = static_cast<uint8_t>(RecoverInt64FromDb(resultSet, CALENDAR_DAY, DbRecoveryType::INT)); in RecoverFromDb()
[all …]
/base/notification/distributed_notification_service/interfaces/inner_api/
Dreminder_store.h58 …tr<ReminderRequest> BuildReminder(const std::shared_ptr<NativeRdb::AbsSharedResultSet> &resultSet);
60 void GetInt32Val(std::shared_ptr<NativeRdb::AbsSharedResultSet> &resultSet,
62 void GetStringVal(std::shared_ptr<NativeRdb::AbsSharedResultSet> &resultSet,
/base/telephony/core_service/services/sim/include/
Doperator_config_loader.h59 std::string GetOpKey(std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet, int32_t slotId);
60 bool MatchOperatorRule(std::shared_ptr<NativeRdb::AbsSharedResultSet> &resultSet, int row);
/base/telephony/data_storage/test/unittest/data_gtest/
Ddata_storage_gtest.cpp167 … std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet = helper->Query(uri, colume, predicates); in OpKeySelect() local
168 if (resultSet != nullptr) { in OpKeySelect()
170 resultSet->GetRowCount(count); in OpKeySelect()
211 … std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet = helper->Query(uri, colume, predicates); in SimSelect() local
212 if (resultSet != nullptr) { in SimSelect()
214 resultSet->GetRowCount(count); in SimSelect()
270 … std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet = helper->Query(uri, colume, predicates); in SmsSelect() local
271 if (resultSet != nullptr) { in SmsSelect()
273 resultSet->GetRowCount(count); in SmsSelect()
312 … std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet = helper->Query(uri, colume, predicates); in PdpProfileSelect() local
[all …]
/base/powermgr/power_manager/utils/setting/src/
Dsetting_provider.cpp181 auto resultSet = helper->Query(uri, predicates, columns); in GetStringValue() local
183 if (resultSet == nullptr) { in GetStringValue()
189 resultSet->GetRowCount(count); in GetStringValue()
196 resultSet->GoToRow(INDEX); in GetStringValue()
197 int32_t ret = resultSet->GetString(INDEX, value); in GetStringValue()
203 resultSet->Close(); in GetStringValue()
/base/hiviewdfx/hiview/base/event_store/test/unittest/common/
Dsys_event_dao_test.cpp130 EventStore::ResultSet resultSet = (*sysEventQuery).Select(selections). variable
133 while (resultSet.HasNext()) {
135 EventStore::ResultSet::RecordIter it = resultSet.Next();
165 EventStore::ResultSet resultSet = (*sysEventQuery1).Select(selections) variable
168 while (resultSet.HasNext()) {
170 EventStore::ResultSet::RecordIter it = resultSet.Next();
183 while (resultSet.HasNext()) {
223 EventStore::ResultSet resultSet = sysEventQuery->Execute(); variable
225 while (resultSet.HasNext()) {
253 EventStore::ResultSet resultSet = sysEventQuery->Execute(); variable
[all …]
/base/telephony/data_storage/sms_mms/src/
Dsms_mms_ability.cpp110 std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet = nullptr; in Query() local
112 return resultSet; in Query()
135 resultSet = helper_.QueryMaxGroupId(); in Query()
139 resultSet = helper_.StatisticsUnRead(); in Query()
148 resultSet = helper_.Query(*absRdbPredicates, columns); in Query()
154 return resultSet; in Query()

12