Home
last modified time | relevance | path

Searched refs:predicates (Results 1 – 25 of 36) sorted by relevance

12

/base/telephony/core_service/services/sim/src/
Dsim_rdb_helper.cpp58 std::vector<std::string> &columns, const NativeRdb::DataAbilityPredicates &predicates) in Query() argument
66 … std::shared_ptr<NativeRdb::AbsSharedResultSet> ret = helper_->Query(simUri, columns, predicates); in Query()
70 …r::Update(const NativeRdb::ValuesBucket &value, const NativeRdb::DataAbilityPredicates &predicates) in Update() argument
78 return helper_->Update(simUri, value, predicates); in Update()
81 int SimRdbHelper::Delete(const NativeRdb::DataAbilityPredicates &predicates) in Delete() argument
89 return helper_->Delete(simUri, predicates); in Delete()
97 NativeRdb::DataAbilityPredicates predicates; in GetDefaultMainCardSlotId() local
98 predicates.EqualTo(SimRdbInfo::IS_MAIN_CARD, std::to_string(static_cast<int32_t>(MAIN_CARD))); in GetDefaultMainCardSlotId()
99 std::shared_ptr<NativeRdb::AbsSharedResultSet> result = Query(colume, predicates); in GetDefaultMainCardSlotId()
121 NativeRdb::DataAbilityPredicates predicates; in GetDefaultMessageCardSlotId() local
[all …]
/base/request/request/download/ability/src/
Dpredicates_convert.cpp30 OHOS::NativeRdb::RdbPredicates predicates(tableName); in ConvertPredicates() local
32 &predicates, dataPredicates.GetWhereClause(), dataPredicates.GetWhereArgs()); in ConvertPredicates()
33 …OHOS::NativeRdb::PredicatesUtils::SetAttributes(&predicates, dataPredicates.IsDistinct(), dataPred… in ConvertPredicates()
35 return predicates; in ConvertPredicates()
41 OHOS::NativeRdb::RdbPredicates predicates(tableName); in CopyPredicates() local
43 &predicates, oldRdbPredicates.GetWhereClause(), oldRdbPredicates.GetWhereArgs()); in CopyPredicates()
44 OHOS::NativeRdb::PredicatesUtils::SetAttributes(&predicates, oldRdbPredicates.IsDistinct(), in CopyPredicates()
47 return predicates; in CopyPredicates()
Ddownload_database.cpp122 …dDataBase::Update(OHOS::NativeRdb::ValuesBucket values, OHOS::NativeRdb::RdbPredicates &predicates) in Update() argument
130 int ret = store_->Update(changeRow, values, predicates); in Update()
145 int DownloadDataBase::Delete(OHOS::NativeRdb::RdbPredicates &predicates) in Delete() argument
152 int ret = store_->Delete(deleteRow, predicates); in Delete()
169 OHOS::NativeRdb::RdbPredicates &predicates, std::vector<std::string> columns) in Query() argument
175 … std::unique_ptr<OHOS::NativeRdb::AbsSharedResultSet> result = store_->Query(predicates, columns); in Query()
/base/telephony/data_storage/test/unittest/data_test/
Ddata_storage_test.cpp127 NativeRdb::DataAbilityPredicates predicates; in SimSetCardByType() local
130 return helper->Update(uri, value, predicates); in SimSetCardByType()
151 NativeRdb::DataAbilityPredicates predicates; in OpKeyUpdate() local
152 predicates.EqualTo(OpKeyData::OPERATOR_KEY, "1435"); in OpKeyUpdate()
153 return helper->Update(uri, values, predicates); in OpKeyUpdate()
161 NativeRdb::DataAbilityPredicates predicates; in OpKeySelect() local
162 … std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet = helper->Query(uri, colume, predicates); in OpKeySelect()
175 NativeRdb::DataAbilityPredicates predicates; in OpKeyDelete() local
176 predicates.EqualTo(OpKeyData::ID, "1"); in OpKeyDelete()
177 return helper->Delete(uri, predicates); in OpKeyDelete()
[all …]
/base/telephony/data_storage/test/unittest/data_gtest/
Ddata_storage_gtest.cpp157 NativeRdb::DataAbilityPredicates predicates; in OpKeyUpdate() local
158 predicates.EqualTo(OpKeyData::OPERATOR_KEY, "123"); in OpKeyUpdate()
159 return helper->Update(uri, values, predicates); in OpKeyUpdate()
166 NativeRdb::DataAbilityPredicates predicates; in OpKeySelect() local
167 … std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet = helper->Query(uri, colume, predicates); in OpKeySelect()
179 NativeRdb::DataAbilityPredicates predicates; in OpKeyDelete() local
180 predicates.EqualTo(OpKeyData::ID, "1"); in OpKeyDelete()
181 return helper->Delete(uri, predicates); in OpKeyDelete()
201 NativeRdb::DataAbilityPredicates predicates; in SimUpdate() local
202 predicates.EqualTo(SimData::SLOT_INDEX, slot); in SimUpdate()
[all …]
/base/telephony/data_storage/
DREADME_zh.md72 | int Delete(const Uri &uri, const NativeRdb::DataAbilityPredicates &predicates) | 删除数据 &nbsp;&…
73 …ativeRdb::ValuesBucket &value, const NativeRdb::DataAbilityPredicates &predicates) | 更新数据 &nbs…
74 …ector\<std::string\> &columns, const NativeRdb::DataAbilityPredicates &predicates) | 查询数据 &nbs…
110 | predicates | 删除条件 |
121 | predicates | 更新条件 |
133 | predicates | 查询条件 |
179 NativeRdb::DataAbilityPredicates predicates;
181 return helper->Query(uri, colume, predicates);
203 NativeRdb::DataAbilityPredicates predicates;
205 predicates.EqualTo(SmsMmsInfo::MSG_ID, "1");
[all …]
DREADME.md75 | int Delete(const Uri &uri, const NativeRdb::DataAbilityPredicates &predicates) | Deletes data. …
76 …ativeRdb::ValuesBucket &value, const NativeRdb::DataAbilityPredicates &predicates) | Updates data.…
77 …ector\<std::string\> &columns, const NativeRdb::DataAbilityPredicates &predicates) | Queries data.…
113 | predicates | Conditions for data deletion. |
124 | predicates | Conditions for data updating.|
136 | predicates | Conditions for data query. |
181 // Query predicates
182 NativeRdb::DataAbilityPredicates predicates;
184 return helper->Query(uri, colume, predicates);
206 NativeRdb::DataAbilityPredicates predicates;
[all …]
/base/telephony/call_manager/services/call/call_state_observer/src/
Dcall_data_base_helper.cpp48 DataShare::DataSharePredicates predicates; in OnChange() local
49 predicates.NotEqualTo("phone_number", std::string("")); in OnChange()
51 callDataPtr->Query(this->phones, predicates); in OnChange()
115 …DataBaseHelper::Query(std::vector<std::string> *phones, DataShare::DataSharePredicates &predicates) in Query() argument
125 auto resultSet = helper->Query(uri, predicates, columns); in Query()
146 bool CallDataBaseHelper::Query(ContactInfo &contactInfo, DataShare::DataSharePredicates &predicates) in Query() argument
155 auto resultSet = helper->Query(uri, predicates, columns); in Query()
184 bool CallDataBaseHelper::Delete(DataShare::DataSharePredicates &predicates) in Delete() argument
192 return helper->Delete(uri, predicates); in Delete()
Dcall_records_handler.cpp94 DataShare::DataSharePredicates predicates; in QueryCallerInfo() local
95 predicates.EqualTo(CALL_DETAIL_INFO, phoneNumber); in QueryCallerInfo()
96 predicates.And(); in QueryCallerInfo()
97 predicates.EqualTo(CALL_CONTENT_TYPE, CALL_PHONE); in QueryCallerInfo()
98 bool ret = callDataPtr->Query(contactInfo, predicates); in QueryCallerInfo()
/base/telephony/data_storage/opkey/include/
Dopkey_ability.h48 const NativeRdb::DataAbilityPredicates &predicates) override;
50 const NativeRdb::DataAbilityPredicates &predicates) override;
51 virtual int Delete(const Uri &uri, const NativeRdb::DataAbilityPredicates &predicates) override;
71 …const NativeRdb::DataAbilityPredicates &predicates, NativeRdb::AbsRdbPredicates *absRdbPredicates);
/base/telephony/data_storage/pdp_profile/include/
Dpdp_profile_ability.h49 const NativeRdb::DataAbilityPredicates &predicates) override;
51 const NativeRdb::DataAbilityPredicates &predicates) override;
52 virtual int Delete(const Uri &uri, const NativeRdb::DataAbilityPredicates &predicates) override;
72 …const NativeRdb::DataAbilityPredicates &predicates, NativeRdb::AbsRdbPredicates *absRdbPredicates);
/base/telephony/data_storage/sim/include/
Dsim_ability.h49 const NativeRdb::DataAbilityPredicates &predicates) override;
51 const NativeRdb::DataAbilityPredicates &predicates) override;
52 virtual int Delete(const Uri &uri, const NativeRdb::DataAbilityPredicates &predicates) override;
72 …const NativeRdb::DataAbilityPredicates &predicates, NativeRdb::AbsRdbPredicates *absRdbPredicates);
/base/telephony/data_storage/sms_mms/include/
Dsms_mms_ability.h48 const NativeRdb::DataAbilityPredicates &predicates) override;
50 const NativeRdb::DataAbilityPredicates &predicates) override;
51 virtual int Delete(const Uri &uri, const NativeRdb::DataAbilityPredicates &predicates) override;
72 …const NativeRdb::DataAbilityPredicates &predicates, NativeRdb::AbsRdbPredicates *absRdbPredicates);
/base/telephony/cellular_data/services/src/utils/
Dcellular_data_settings_rdb_helper.cpp88 DataShare::DataSharePredicates predicates; in GetValue() local
90 predicates.EqualTo(CELLULAR_DATA_COLUMN_KEYWORD, column); in GetValue()
91 auto result = settingHelper->Query(uri, predicates, columns); in GetValue()
130 DataShare::DataSharePredicates predicates; in PutValue() local
131 predicates.EqualTo(CELLULAR_DATA_COLUMN_KEYWORD, column); in PutValue()
132 result = settingHelper->Update(uri, predicates, bucket); in PutValue()
Dcellular_data_rdb_helper.cpp48 const NativeRdb::ValuesBucket &value, const NativeRdb::DataAbilityPredicates &predicates) in Update() argument
55 int32_t result = helper_->Update(cellularDataUri_, value, predicates); in Update()
79 NativeRdb::DataAbilityPredicates predicates; in QueryApns() local
80 predicates.EqualTo(PdpProfileData::MCC, mcc)->And()->EqualTo(PdpProfileData::MNC, mnc); in QueryApns()
81 …_ptr<NativeRdb::AbsSharedResultSet> result = helper_->Query(cellularDataUri_, columns, predicates); in QueryApns()
/base/telephony/call_manager/services/call/src/
Dcall_incoming_filter_manager.cpp67 DataShare::DataSharePredicates predicates; in UpdateIncomingFilterData() local
68 predicates.NotEqualTo("phone_number", std::string("")); in UpdateIncomingFilterData()
70 callDataPtr->Query(&phones_, predicates); in UpdateIncomingFilterData()
/base/request/request/download/ability/include/
Ddownload_data_ability.h34 const NativeRdb::DataAbilityPredicates &predicates) override;
35 virtual int Delete(const Uri &uri, const NativeRdb::DataAbilityPredicates &predicates) override;
37 …const std::vector<std::string> &columns, const NativeRdb::DataAbilityPredicates &predicates) overr…
/base/telephony/sms_mms/services/
Dsms_receive_handler.cpp102 NativeRdb::DataAbilityPredicates predicates; in CombineMessagePart() local
103 predicates.EqualTo(SmsMmsData::SENDER_NUMBER, indexer->GetOriginatingAddress()) in CombineMessagePart()
108 DelayedSingleton<SmsPersistHelper>::GetInstance()->Query(predicates, dbIndexers); in CombineMessagePart()
158 NativeRdb::DataAbilityPredicates predicates; in DeleteMessageFormDb() local
159 predicates.EqualTo(SmsMmsData::SMS_SUBSECTION_ID, std::to_string(smsIndexer->GetMsgRefId())); in DeleteMessageFormDb()
160 DelayedSingleton<SmsPersistHelper>::GetInstance()->Delete(predicates); in DeleteMessageFormDb()
167 NativeRdb::DataAbilityPredicates predicates; in IsRepeatedMessagePart() local
168 predicates.EqualTo(SmsMmsData::SENDER_NUMBER, smsIndexer->GetOriginatingAddress()) in IsRepeatedMessagePart()
173 DelayedSingleton<SmsPersistHelper>::GetInstance()->Query(predicates, dbIndexers); in IsRepeatedMessagePart()
Dsms_persist_helper.cpp67 bool SmsPersistHelper::Query(NativeRdb::DataAbilityPredicates &predicates, std::vector<SmsReceiveIn… in Query() argument
76 …std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet = helper->Query(uri, columns, predicates); in Query()
94 bool SmsPersistHelper::Delete(NativeRdb::DataAbilityPredicates &predicates) in Delete() argument
102 int ret = helper->Delete(uri, predicates); in Delete()
122 NativeRdb::DataAbilityPredicates predicates; in QueryBlockPhoneNumber() local
123 predicates.EqualTo(phoneNumber, phoneNum); in QueryBlockPhoneNumber()
124 …std::shared_ptr<NativeRdb::AbsSharedResultSet> resultSet = helper->Query(uri, columns, predicates); in QueryBlockPhoneNumber()
/base/telephony/call_manager/services/call/call_state_observer/include/
Dcall_data_base_helper.h72 bool Query(std::vector<std::string> *phones, DataShare::DataSharePredicates &predicates);
73 bool Query(ContactInfo &contactInfo, DataShare::DataSharePredicates &predicates);
74 bool Delete(DataShare::DataSharePredicates &predicates);
/base/telephony/core_service/services/network_search/src/
Dsetting_utils.cpp98 DataShare::DataSharePredicates predicates; in Query() local
99 predicates.EqualTo(SETTING_KEY, key); in Query()
100 auto result = settingHelper_->Query(uri, predicates, columns); in Query()
156 DataShare::DataSharePredicates predicates; in Update() local
157 predicates.EqualTo(SETTING_KEY, key); in Update()
158 int32_t result = settingHelper_->Update(uri, predicates, valuesBucket); in Update()
/base/telephony/core_service/services/sim/include/
Dsim_rdb_helper.h64 std::vector<std::string> &columns, const NativeRdb::DataAbilityPredicates &predicates);
65 …t Update(const NativeRdb::ValuesBucket &value, const NativeRdb::DataAbilityPredicates &predicates);
66 int Delete(const NativeRdb::DataAbilityPredicates &predicates);
/base/telephony/data_storage/pdp_profile/src/
Dpdp_profile_ability.cpp91 … &uri, const std::vector<std::string> &columns, const NativeRdb::DataAbilityPredicates &predicates) in Query() argument
106 ConvertPredicates(predicates, absRdbPredicates); in Query()
120 …Uri &uri, const NativeRdb::ValuesBucket &value, const NativeRdb::DataAbilityPredicates &predicates) in Update() argument
153 ConvertPredicates(predicates, absRdbPredicates); in Update()
163 int PdpProfileAbility::Delete(const Uri &uri, const NativeRdb::DataAbilityPredicates &predicates) in Delete() argument
179 ConvertPredicates(predicates, absRdbPredicates); in Delete()
/base/telephony/data_storage/opkey/src/
Dopkey_ability.cpp90 … &uri, const std::vector<std::string> &columns, const NativeRdb::DataAbilityPredicates &predicates) in Query() argument
105 ConvertPredicates(predicates, absRdbPredicates); in Query()
119 …Uri &uri, const NativeRdb::ValuesBucket &value, const NativeRdb::DataAbilityPredicates &predicates) in Update() argument
144 ConvertPredicates(predicates, absRdbPredicates); in Update()
154 int OpKeyAbility::Delete(const Uri &uri, const NativeRdb::DataAbilityPredicates &predicates) in Delete() argument
170 ConvertPredicates(predicates, absRdbPredicates); in Delete()
/base/telephony/data_storage/common/include/
Drdb_base_helper.h47 …changedRows, const NativeRdb::ValuesBucket &values, const NativeRdb::AbsRdbPredicates &predicates);
50 int Delete(int &deletedRows, const NativeRdb::AbsRdbPredicates &predicates);
54 const NativeRdb::AbsRdbPredicates &predicates, const std::vector<std::string> columns);

12