/base/telephony/sms_mms/services/ |
D | sms_persist_helper.cpp | 76 …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/ |
D | data_storage_gtest.cpp | 117 … 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/ |
D | call_data_base_helper.cpp | 119 …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/ |
D | devicestatus_msdp_rdb.cpp | 113 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 …]
|
D | devicestatus_sensor_rdb.cpp | 126 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/ |
D | sms_persist_helper.h | 56 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/ |
D | sys_event_dao_test.cpp | 126 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/ |
D | rdb_base_helper.cpp | 92 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/ |
D | reminder_request.cpp | 422 …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 …]
|
D | reminder_request_calendar.cpp | 518 …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 …]
|
D | reminder_store.cpp | 335 …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()
|
D | reminder_request_alarm.cpp | 310 …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/ |
D | reminder_store.h | 58 …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/ |
D | data_storage_test.cpp | 147 … 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/ |
D | ans_test_single_kv_store.h | 42 …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;
|
D | ans_test_single_kv_store.cpp | 36 …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/ |
D | mock_single_kv_store.h | 42 …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/ |
D | mock_single_kv_store.h | 42 …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/ |
D | mock_single_kv_store.cpp | 36 …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/ |
D | mock_single_kv_store.cpp | 36 …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/ |
D | sms_mms_ability.cpp | 87 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/ |
D | pdp_profile_ability.cpp | 72 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/ |
D | mock_single_kv_store.h | 41 …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/ |
D | faultlog_database.cpp | 113 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/ |
D | sim_ability.cpp | 71 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()
|