Lines Matching refs:helper
134 auto helper = CreateDataShareHelper(); in RegisterObserver() local
135 if (helper == nullptr) { in RegisterObserver()
139 helper->RegisterObserver(uri, observer); in RegisterObserver()
140 helper->NotifyChange(uri); in RegisterObserver()
143 ReleaseDataShareHelper(helper); in RegisterObserver()
153 auto helper = CreateDataShareHelper(); in UnregisterObserver() local
154 if (helper == nullptr) { in UnregisterObserver()
158 helper->UnregisterObserver(uri, observer); in UnregisterObserver()
159 ReleaseDataShareHelper(helper); in UnregisterObserver()
183 auto helper = CreateDataShareHelper(); in GetStringValue() local
184 if (helper == nullptr) { in GetStringValue()
192 auto resultSet = helper->Query(uri, predicates, columns); in GetStringValue()
193 ReleaseDataShareHelper(helper); in GetStringValue()
222 auto helper = CreateDataShareHelper(); in PutStringValue() local
223 if (helper == nullptr) { in PutStringValue()
235 if (helper->Update(uri, predicates, bucket) <= 0) { in PutStringValue()
237 helper->Insert(uri, bucket); in PutStringValue()
240 helper->NotifyChange(AssembleUri(key)); in PutStringValue()
242 ReleaseDataShareHelper(helper); in PutStringValue()
249 auto helper = DataShare::DataShareHelper::Creator(remoteObj_, SETTING_URI_PROXY); in CreateDataShareHelper() local
250 if (helper == nullptr) { in CreateDataShareHelper()
254 return helper; in CreateDataShareHelper()
257 bool SettingProvider::ReleaseDataShareHelper(std::shared_ptr<DataShare::DataShareHelper>& helper) in ReleaseDataShareHelper() argument
259 if (!helper->Release()) { in ReleaseDataShareHelper()