Home
last modified time | relevance | path

Searched refs:resultSet (Results 1 – 25 of 33) 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/data_storage/test/unittest/data_gtest/
Ddata_storage_gtest.cpp117 … std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet = helper->Query(uri, colume, predicates); in SimSelect() local
118 if (resultSet != nullptr) { in SimSelect()
120 resultSet->GetRowCount(count); in SimSelect()
160 … std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet = helper->Query(uri, colume, predicates); in SmsSelect() local
161 if (resultSet != nullptr) { in SmsSelect()
163 resultSet->GetRowCount(count); in SmsSelect()
207 … std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet = helper->Query(uri, colume, predicates); in PdpProfileSelectOne() local
208 if (resultSet != nullptr) { in PdpProfileSelectOne()
209 return resultSet; in PdpProfileSelectOne()
222 … std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet = helper->Query(uri, colume, predicates); in PdpProfileSelectAll() local
[all …]
/base/telephony/call_manager/services/call/call_state_observer/src/
Dcall_data_base_helper.cpp119 …std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet = helper->Query(uri, columns, predicates); in Query() local
121 if (resultSet == nullptr) { in Query()
124 int32_t resultSetNum = resultSet->GoToFirstRow(); in Query()
128 int32_t ret = resultSet->GetColumnIndex("phone_number", columnIndex); in Query()
129 ret = resultSet->GetString(columnIndex, phone); in Query()
133 resultSetNum = resultSet->GoToNextRow(); in Query()
135 resultSet->Close(); in Query()
151 …eHelper::ResultSetConvertToIndexer(const std::shared_ptr<NativeRdb::AbsSharedResultSet> &resultSet) in ResultSetConvertToIndexer() argument
/base/msdp/device_status/libs/src/
Ddevicestatus_msdp_rdb.cpp113 int32_t DevicestatusMsdpRdb::TrigerData(const std::unique_ptr<NativeRdb::ResultSet> &resultSet) in TrigerData() argument
118 int32_t ret = resultSet->GetColumnIndex("ID", columnIndex); in TrigerData()
124 ret = resultSet->GetInt(columnIndex, intVal); in TrigerData()
131 ret = resultSet->GetColumnIndex("DEVICESTATUS_TYPE", columnIndex); in TrigerData()
137 ret = resultSet->GetInt(columnIndex, intVal); in TrigerData()
145 ret = resultSet->GetColumnIndex("DEVICESTATUS_STATUS", columnIndex); in TrigerData()
151 ret = resultSet->GetInt(columnIndex, intVal); in TrigerData()
172 std::unique_ptr<ResultSet> resultSet = in TrigerDatabaseObserver() local
175 if (resultSet == nullptr) { in TrigerDatabaseObserver()
180 int32_t ret = resultSet->GoToFirstRow(); in TrigerDatabaseObserver()
[all …]
Ddevicestatus_sensor_rdb.cpp126 int32_t DevicestatusSensorRdb::TrigerData(const std::unique_ptr<NativeRdb::ResultSet> &resultSet) in TrigerData() argument
131 int32_t ret = resultSet->GetColumnIndex("ID", columnIndex); in TrigerData()
137 ret = resultSet->GetInt(columnIndex, intVal); in TrigerData()
144 ret = resultSet->GetColumnIndex("DEVICESTATUS_TYPE", columnIndex); in TrigerData()
150 ret = resultSet->GetInt(columnIndex, intVal); in TrigerData()
158 ret = resultSet->GetColumnIndex("DEVICESTATUS_STATUS", columnIndex); in TrigerData()
164 ret = resultSet->GetInt(columnIndex, intVal); in TrigerData()
185 std::unique_ptr<ResultSet> resultSet = in TrigerDatabaseObserver() local
188 if (resultSet == nullptr) { in TrigerDatabaseObserver()
193 int32_t ret = resultSet->GoToFirstRow(); in TrigerDatabaseObserver()
[all …]
/base/telephony/sms_mms/services/include/
Dsms_persist_helper.h56 SmsReceiveIndexer &info, const std::shared_ptr<NativeRdb::AbsSharedResultSet> &resultSet);
58 SmsReceiveIndexer &info, const std::shared_ptr<NativeRdb::AbsSharedResultSet> &resultSet);
60 SmsReceiveIndexer &info, const std::shared_ptr<NativeRdb::AbsSharedResultSet> &resultSet);
/base/hiviewdfx/hiview/base/event_store/test/unittest/common/
Dsys_event_dao_test.cpp126 EventStore::ResultSet resultSet = sysEventQuery.Select({EventStore::EventCol::TS}). variable
129 while (resultSet.HasNext()) {
131 EventStore::ResultSet::RecordIter it = resultSet.Next();
160 EventStore::ResultSet resultSet = sysEventQuery1.Select({EventStore::EventCol::TS}). variable
163 while (resultSet.HasNext()) {
165 EventStore::ResultSet::RecordIter it = resultSet.Next();
178 while (resultSet.HasNext()) {
218 EventStore::ResultSet resultSet = sysEventQuery.Execute(); variable
220 while (resultSet.HasNext()) {
248 EventStore::ResultSet resultSet = sysEventQuery.Execute(); variable
[all …]
/base/telephony/data_storage/common/src/
Drdb_base_helper.cpp92 std::unique_ptr<NativeRdb::AbsSharedResultSet> resultSet; in QuerySql() local
94 resultSet = store_->QuerySql(sql); in QuerySql()
96 return resultSet; in QuerySql()
103 std::unique_ptr<NativeRdb::AbsSharedResultSet> resultSet; in Query() local
105 resultSet = store_->Query(predicates, columns); in Query()
107 return resultSet; in Query()
/base/notification/ans_standard/frameworks/ans/native/src/
Dreminder_request.cpp422 …eminderRequest::RecoverInt64FromDb(const std::shared_ptr<NativeRdb::AbsSharedResultSet> &resultSet, in RecoverInt64FromDb() argument
425 if (resultSet == nullptr) { in RecoverInt64FromDb()
432 resultSet->GetInt(ReminderStore::GetColumnIndex(columnName), value); in RecoverInt64FromDb()
437 resultSet->GetLong(ReminderStore::GetColumnIndex(columnName), value); in RecoverInt64FromDb()
449 void ReminderRequest::RecoverFromDb(const std::shared_ptr<NativeRdb::AbsSharedResultSet> &resultSet) in RecoverFromDb() argument
451 if (resultSet == nullptr) { in RecoverFromDb()
457 resultSet->GetInt(ReminderStore::GetColumnIndex(REMINDER_ID), reminderId_); in RecoverFromDb()
460 resultSet->GetInt(ReminderStore::GetColumnIndex(USER_ID), userId_); in RecoverFromDb()
463 resultSet->GetString(ReminderStore::GetColumnIndex(PKG_NAME), bundleName_); in RecoverFromDb()
466 resultSet->GetInt(ReminderStore::GetColumnIndex(UID), uid_); in RecoverFromDb()
[all …]
Dreminder_request_calendar.cpp518 …nderRequestCalendar::RecoverFromDb(const std::shared_ptr<NativeRdb::AbsSharedResultSet> &resultSet) in RecoverFromDb() argument
520 ReminderRequest::RecoverFromDb(resultSet); in RecoverFromDb()
523 …repeatDay_ = static_cast<uint32_t>(RecoverInt64FromDb(resultSet, REPEAT_DAYS, DbRecoveryType::INT)… in RecoverFromDb()
527 static_cast<uint16_t>(RecoverInt64FromDb(resultSet, REPEAT_MONTHS, DbRecoveryType::INT)); in RecoverFromDb()
531 … static_cast<uint16_t>(RecoverInt64FromDb(resultSet, FIRST_DESIGNATE_YEAR, DbRecoveryType::INT)); in RecoverFromDb()
535 … static_cast<uint8_t>(RecoverInt64FromDb(resultSet, FIRST_DESIGNATE_MONTH, DbRecoveryType::INT)); in RecoverFromDb()
539 … static_cast<uint8_t>(RecoverInt64FromDb(resultSet, FIRST_DESIGNATE_DAY, DbRecoveryType::INT)); in RecoverFromDb()
542 … year_ = static_cast<uint16_t>(RecoverInt64FromDb(resultSet, CALENDAR_YEAR, DbRecoveryType::INT)); in RecoverFromDb()
545 … month_ = static_cast<uint8_t>(RecoverInt64FromDb(resultSet, CALENDAR_MONTH, DbRecoveryType::INT)); in RecoverFromDb()
548 day_ = static_cast<uint8_t>(RecoverInt64FromDb(resultSet, CALENDAR_DAY, DbRecoveryType::INT)); in RecoverFromDb()
[all …]
Dreminder_store.cpp335 …uest> ReminderStore::BuildReminder(const std::shared_ptr<NativeRdb::AbsSharedResultSet> &resultSet) in BuildReminder() argument
339 resultSet->GetInt(ReminderStore::GetColumnIndex(ReminderRequest::REMINDER_TYPE), reminderType); in BuildReminder()
340 resultSet->GetInt(ReminderStore::GetColumnIndex(ReminderRequest::REMINDER_ID), reminderId); in BuildReminder()
362 reminder->RecoverFromDb(resultSet); in BuildReminder()
394 void ReminderStore::GetInt32Val(std::shared_ptr<NativeRdb::AbsSharedResultSet> &resultSet, in GetInt32Val() argument
398 resultSet->GetColumnIndex(name, columnIndex); in GetInt32Val()
399 resultSet->GetInt(columnIndex, value); in GetInt32Val()
402 void ReminderStore::GetStringVal(std::shared_ptr<NativeRdb::AbsSharedResultSet> &resultSet, in GetStringVal() argument
406 resultSet->GetColumnIndex(name, columnIndex); in GetStringVal()
407 resultSet->GetString(columnIndex, value); in GetStringVal()
Dreminder_request_alarm.cpp310 …eminderRequestAlarm::RecoverFromDb(const std::shared_ptr<NativeRdb::AbsSharedResultSet> &resultSet) in RecoverFromDb() argument
312 ReminderRequest::RecoverFromDb(resultSet); in RecoverFromDb()
316 … static_cast<uint8_t>(RecoverInt64FromDb(resultSet, REPEAT_DAYS_OF_WEEK, DbRecoveryType::INT)); in RecoverFromDb()
320 static_cast<uint8_t>(RecoverInt64FromDb(resultSet, ALARM_HOUR, DbRecoveryType::INT)); in RecoverFromDb()
324 static_cast<uint8_t>(RecoverInt64FromDb(resultSet, ALARM_MINUTE, DbRecoveryType::INT)); in RecoverFromDb()
/base/notification/ans_standard/interfaces/innerkits/ans/native/include/
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/data_storage/test/unittest/data_test/
Ddata_storage_test.cpp147 … std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet = helper->Query(uri, colume, predicates); in SimSelect() local
148 if (resultSet != nullptr) { in SimSelect()
150 resultSet->GetRowCount(count); in SimSelect()
189 … std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet = helper->Query(uri, colume, predicates); in SmsSelect() local
190 if (resultSet != nullptr) { in SmsSelect()
192 resultSet->GetRowCount(count); in SmsSelect()
247 … std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet = helper->Query(uri, colume, predicates); in PdpProfileSelect() local
248 if (resultSet != nullptr) { in PdpProfileSelect()
250 resultSet->GetRowCount(count); in PdpProfileSelect()
/base/notification/ans_standard/services/distributed/test/unittest/mock/
Dans_test_single_kv_store.h42 …virtual Status GetResultSet(const Key &prefixKey, std::shared_ptr<KvStoreResultSet> &resultSet) co…
45 const std::string &query, std::shared_ptr<KvStoreResultSet> &resultSet) const override;
48 const DataQuery &query, std::shared_ptr<KvStoreResultSet> &resultSet) const override;
50 virtual Status CloseResultSet(std::shared_ptr<KvStoreResultSet> &resultSet) override;
Dans_test_single_kv_store.cpp36 …ngleKvStore::GetResultSet(const Key &prefixKey, std::shared_ptr<KvStoreResultSet> &resultSet) const in GetResultSet()
42 const std::string &query, std::shared_ptr<KvStoreResultSet> &resultSet) const in GetResultSetWithQuery()
48 const DataQuery &query, std::shared_ptr<KvStoreResultSet> &resultSet) const in GetResultSetWithQuery()
53 Status AnsTestSingleKvStore::CloseResultSet(std::shared_ptr<KvStoreResultSet> &resultSet) in CloseResultSet() argument
/base/notification/ans_standard/services/ans/test/unittest/mock/include/
Dmock_single_kv_store.h42 …virtual Status GetResultSet(const Key &prefixKey, std::shared_ptr<KvStoreResultSet> &resultSet) co…
45 … std::shared_ptr<KvStoreResultSet> &resultSet) const override;
48 … std::shared_ptr<KvStoreResultSet> &resultSet) const override;
50 virtual Status CloseResultSet(std::shared_ptr<KvStoreResultSet> &resultSet) override;
/base/notification/ans_standard/services/test/moduletest/mock/include/
Dmock_single_kv_store.h42 …virtual Status GetResultSet(const Key &prefixKey, std::shared_ptr<KvStoreResultSet> &resultSet) co…
45 … std::shared_ptr<KvStoreResultSet> &resultSet) const override;
48 … std::shared_ptr<KvStoreResultSet> &resultSet) const override;
50 virtual Status CloseResultSet(std::shared_ptr<KvStoreResultSet> &resultSet) override;
/base/notification/ans_standard/services/test/moduletest/mock/
Dmock_single_kv_store.cpp36 …ngleKvStore::GetResultSet(const Key &prefixKey, std::shared_ptr<KvStoreResultSet> &resultSet) const in GetResultSet()
42 … std::shared_ptr<KvStoreResultSet> &resultSet) const in GetResultSetWithQuery()
48 … std::shared_ptr<KvStoreResultSet> &resultSet) const in GetResultSetWithQuery()
53 Status AnsTestSingleKvStore::CloseResultSet(std::shared_ptr<KvStoreResultSet> &resultSet) in CloseResultSet() argument
/base/notification/ans_standard/services/ans/test/unittest/mock/
Dmock_single_kv_store.cpp36 …ngleKvStore::GetResultSet(const Key &prefixKey, std::shared_ptr<KvStoreResultSet> &resultSet) const in GetResultSet()
42 … std::shared_ptr<KvStoreResultSet> &resultSet) const in GetResultSetWithQuery()
48 … std::shared_ptr<KvStoreResultSet> &resultSet) const in GetResultSetWithQuery()
53 Status AnsTestSingleKvStore::CloseResultSet(std::shared_ptr<KvStoreResultSet> &resultSet) in CloseResultSet() argument
/base/telephony/data_storage/sms_mms/src/
Dsms_mms_ability.cpp87 std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet = nullptr; in Query() local
89 return resultSet; in Query()
112 resultSet = helper_.QueryMaxGroupId(); in Query()
116 resultSet = helper_.StatisticsUnRead(); in Query()
125 resultSet = helper_.Query(*absRdbPredicates, columns); in Query()
131 return resultSet; in Query()
/base/telephony/data_storage/pdp_profile/src/
Dpdp_profile_ability.cpp72 std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet = nullptr; in Query() local
74 return resultSet; in Query()
82 resultSet = helper_.Query(*absRdbPredicates, columns); in Query()
91 return resultSet; in Query()
/base/notification/ans_standard/frameworks/ans/test/moduletest/mock/include/
Dmock_single_kv_store.h41 …virtual Status GetResultSet(const Key &prefixKey, std::shared_ptr<KvStoreResultSet> &resultSet) co…
44 … std::shared_ptr<KvStoreResultSet> &resultSet) const override;
47 … std::shared_ptr<KvStoreResultSet> &resultSet) const override;
49 virtual Status CloseResultSet(std::shared_ptr<KvStoreResultSet> &resultSet) override;
/base/hiviewdfx/hiview/plugins/faultlogger/service/
Dfaultlog_database.cpp113 EventStore::ResultSet resultSet = query.Execute(maxNum); in GetFaultInfoList() local
114 while (resultSet.HasNext()) { in GetFaultInfoList()
115 auto it = resultSet.Next(); in GetFaultInfoList()
/base/telephony/data_storage/sim/src/
Dsim_ability.cpp71 std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet = nullptr; in Query() local
73 return resultSet; in Query()
81 resultSet = helper_.Query(*absRdbPredicates, columns); in Query()
90 return resultSet; in Query()

12