Home
last modified time | relevance | path

Searched refs:FormDbCache (Results 1 - 24 of 24) sorted by relevance

/foundation/ability/form_fwk/test/unittest/fms_form_db_record_test/
H A Dfms_form_db_record_test.cpp71 FormDbCache::GetInstance().Start(); in HWTEST_F()
84 EXPECT_EQ(ERR_OK, FormDbCache::GetInstance().UpdateDBRecord(0, formRecord_)); in HWTEST_F()
85 FormDbCache::GetInstance().DeleteFormInfo(0); in HWTEST_F()
99 EXPECT_EQ(ERR_OK, FormDbCache::GetInstance().UpdateDBRecord(1, formRecord_)); in HWTEST_F()
100 FormDbCache::GetInstance().DeleteFormInfo(1); in HWTEST_F()
114 EXPECT_EQ(ERR_OK, FormDbCache::GetInstance().UpdateDBRecord(1, formRecord_)); in HWTEST_F()
115 FormDbCache::GetInstance().DeleteFormInfo(1); in HWTEST_F()
129 EXPECT_EQ(ERR_OK, FormDbCache::GetInstance().UpdateDBRecord(0, formRecord_)); in HWTEST_F()
130 FormDbCache::GetInstance().DeleteFormInfo(0); in HWTEST_F()
144 FormDbCache in HWTEST_F()
[all...]
/foundation/ability/form_fwk/test/unittest/fms_form_mgr_adapter_test/
H A Dmock_form_db_cache.cpp63 FormDbCache::FormDbCache() in FormDbCache() function in OHOS::AppExecFwk::FormDbCache
66 FormDbCache::~FormDbCache() in ~FormDbCache()
69 ErrCode FormDbCache::GetDBRecord(const int64_t formId, FormRecord &record) const in GetDBRecord()
84 ErrCode FormDbCache::DeleteFormInfo(int64_t formId) in DeleteFormInfo()
92 int FormDbCache::GetMatchCount(const std::string &bundleName, const std::string &moduleName) in GetMatchCount()
101 ErrCode FormDbCache::UpdateDBRecord(const int64_t formId, const FormRecord &record) const in UpdateDBRecord()
109 void FormDbCache::GetAllFormInfo(std::vector<FormDBInfo> &formDBInfos) in GetAllFormInfo()
/foundation/ability/form_fwk/test/unittest/fms_form_event_util_test/
H A Dmock_form_db_cache.cpp44 FormDbCache::FormDbCache() in FormDbCache() function in OHOS::AppExecFwk::FormDbCache
46 HILOG_INFO("FormDbCache is created"); in FormDbCache()
49 FormDbCache::~FormDbCache() in ~FormDbCache()
51 HILOG_INFO("FormDbCache is destroyed"); in ~FormDbCache()
54 ErrCode FormDbCache::DeleteFormInfoByBundleName(const std::string &bundleName, const int32_t userId, in DeleteFormInfoByBundleName()
63 int FormDbCache::GetMatchCount(const std::string &bundleName, const std::string &moduleName) in GetMatchCount()
71 ErrCode FormDbCache::GetNoHostDBForms(const int uid, std::map<FormIdKey, in GetNoHostDBForms()
92 ErrCode FormDbCache
[all...]
/foundation/ability/form_fwk/services/src/
H A Dform_db_cache.cpp29 FormDbCache::FormDbCache() in FormDbCache() function in OHOS::AppExecFwk::FormDbCache
34 FormDbCache::~FormDbCache() in ~FormDbCache()
43 void FormDbCache::Start() in Start()
65 ErrCode FormDbCache::SaveFormInfo(const FormDBInfo &formDBInfo) in SaveFormInfo()
92 ErrCode FormDbCache::SaveFormInfoNolock(const FormDBInfo &formDBInfo) in SaveFormInfoNolock()
118 ErrCode FormDbCache::DeleteFormInfo(int64_t formId) in DeleteFormInfo()
142 ErrCode FormDbCache::DeleteFormInfoByBundleName(const std::string &bundleName, const int32_t userId, in DeleteFormInfoByBundleName()
169 void FormDbCache
[all...]
H A Dform_event_util.cpp117 FormDbCache::GetInstance().DeleteFormInfo(formId); in HandleProviderUpdated()
161 FormDbCache::GetInstance().DeleteFormInfoByBundleName(bundleName, userId, removedDBForm); in HandleProviderRemoved()
164 int32_t matchCount = FormDbCache::GetInstance().GetMatchCount(dbForm.bundleName, dbForm.moduleName); in HandleProviderRemoved()
284 FormDbCache::GetInstance().GetNoHostDBForms(uid, noHostFormDbMap, foundFormsMap); in ClearFormDBRecordData()
514 int errCode = FormDbCache::GetInstance().GetDBRecord(formId, dbInfo); in BatchDeleteNoHostDBForms()
517 FormDbCache::GetInstance().SaveFormInfo(dbInfo); in BatchDeleteNoHostDBForms()
524 int errCode = FormDbCache::GetInstance().GetDBRecord(formId, dbInfo); in BatchDeleteNoHostDBForms()
528 FormDbCache::GetInstance().DeleteFormInfo(formId); in BatchDeleteNoHostDBForms()
536 int32_t matchCount = FormDbCache::GetInstance().GetMatchCount(item.bundleName, item.moduleName); in BatchDeleteNoHostDBForms()
H A Dform_mgr_adapter.cpp244 int ret = FormDbCache::GetInstance().UpdateDBRecord(formId, formRecord); in AddThemeDBRecord()
464 ErrCode getDbRet = FormDbCache::GetInstance().GetDBRecord(formId, dbInfo); in DeleteForm()
485 ret = FormDbCache::GetInstance().DeleteFormInfo(formId); in DeleteThemeForm()
548 if (FormDbCache::GetInstance().GetDBRecord(matchedFormId, dbRecord) != ERR_OK) { in ReleaseForm()
610 if (FormDbCache::GetInstance().GetDBRecord(formId, dbRecord) != ERR_OK) { in HandleDeleteForm()
711 if (result = FormDbCache::GetInstance().DeleteFormInfo(formId); result != ERR_OK) { in HandleDeleteFormCache()
716 int32_t matchCount = FormDbCache::GetInstance().GetMatchCount(dbRecord.bundleName, dbRecord.moduleName); in HandleDeleteFormCache()
733 if (result = FormDbCache::GetInstance().UpdateDBRecord(formId, dbRecord); result != ERR_OK) { in HandleDeleteFormCache()
1157 ErrCode errorCode = FormDbCache::GetInstance().UpdateDBRecord(matchedFormId, formRecord); in CastTempForm()
1188 FormDbCache in DumpStorageFormInfos()
[all...]
H A Dform_sys_event_receiver.cpp174 FormDbCache::GetInstance().DeleteDBFormsByUserId(userId); in HandleUserIdRemoved()
H A Dform_ability_connection.cpp85 FormDbCache::GetInstance().DeleteFormInfo(formId_); in OnAbilityConnectDone()
H A Dform_data_mgr.cpp362 FormDbCache::GetInstance().GetAllFormInfo(formDbInfos); in CheckEnoughForm()
2078 FormDbCache::GetInstance().GetAllFormInfo(formDBInfos); in GetUnusedFormInstancesByFilter()
2096 ErrCode getDbRet = FormDbCache::GetInstance().GetDBRecord(dbInfo.formId, dbRecord); in GetUnusedFormInstancesByFilter()
2216 ErrCode getDbRet = FormDbCache::GetInstance().GetDBRecord(formId, dbRecord); in GetUnusedFormInstanceById()
2286 FormDbCache::GetInstance().GetAllFormInfo(formDBInfos); in GetUnusedFormInfos()
2294 ErrCode getDbRet = FormDbCache::GetInstance().GetDBRecord(dbInfo.formId, dbRecord); in GetUnusedFormInfos()
2346 FormDbCache::GetInstance().GetAllFormInfo(formDBInfos); in GetUnusedFormInfos()
2364 ErrCode getDbRet = FormDbCache::GetInstance().GetDBRecord(dbInfo.formId, dbRecord); in GetUnusedFormInfos()
H A Dform_mgr_service.cpp813 FormDbCache::GetInstance().Start(); in Init()
/foundation/ability/form_fwk/test/unittest/fms_form_mgr_delete_form_test/
H A Dfms_form_mgr_delete_form_test.cpp112 FormDbCache::GetInstance().GetAllFormInfo(oldFormDBInfos); in HWTEST_F()
114 FormDbCache::GetInstance().DeleteFormInfo(oldFormDBInfo.formId); in HWTEST_F()
132 FormDbCache::GetInstance().SaveFormInfo(formDBInfo); in HWTEST_F()
148 FormDbCache::GetInstance().GetAllFormInfo(formDBInfos); in HWTEST_F()
159 FormDbCache::GetInstance().DeleteFormInfo(formId); in HWTEST_F()
187 FormDbCache::GetInstance().SaveFormInfo(formDBInfo); in HWTEST_F()
202 FormDbCache::GetInstance().GetAllFormInfo(formDBInfos); in HWTEST_F()
210 FormDbCache::GetInstance().DeleteFormInfo(formId); in HWTEST_F()
260 FormDbCache::GetInstance().DeleteFormInfo(formId); in HWTEST_F()
289 FormDbCache in HWTEST_F()
[all...]
/foundation/ability/form_fwk/test/unittest/fms_form_mgr_add_form_test/
H A Dfms_form_mgr_add_form_test.cpp223 FormDbCache::GetInstance().GetAllFormInfo(oldFormDBInfos); in HWTEST_F()
225 FormDbCache::GetInstance().DeleteFormInfo(oldFormDBInfo.formId); in HWTEST_F()
252 FormDbCache::GetInstance().GetAllFormInfo(formDBInfos); in HWTEST_F()
266 FormDbCache::GetInstance().DeleteFormInfo(formId); in HWTEST_F()
301 FormDbCache::GetInstance().SaveFormInfo(formDBInfo); in HWTEST_F()
341 FormDbCache::GetInstance().GetAllFormInfo(formDBInfos); in HWTEST_F()
355 FormDbCache::GetInstance().DeleteFormInfo(formId); in HWTEST_F()
386 FormDbCache::GetInstance().SaveFormInfo(formDBInfo); in HWTEST_F()
426 FormDbCache::GetInstance().GetAllFormInfo(formDBInfos); in HWTEST_F()
440 FormDbCache in HWTEST_F()
[all...]
/foundation/ability/form_fwk/services/include/
H A Dform_db_cache.h33 class FormDbCache final : public DelayedRefSingleton<FormDbCache> {
34 DECLARE_DELAYED_REF_SINGLETON(FormDbCache)
36 DISALLOW_COPY_AND_MOVE(FormDbCache);
/foundation/ability/form_fwk/test/unittest/fms_form_mgr_release_form_test/
H A Dfms_form_mgr_release_form_test.cpp115 FormDbCache::GetInstance().SaveFormInfo(formDBInfo); in HWTEST_F()
142 FormDbCache::GetInstance().DeleteFormInfo(formId); in HWTEST_F()
143 FormDbCache::GetInstance().DeleteFormInfo(formId2); in HWTEST_F()
170 FormDbCache::GetInstance().SaveFormInfo(formDBInfo); in HWTEST_F()
186 FormDbCache::GetInstance().DeleteFormInfo(formId1); in HWTEST_F()
187 FormDbCache::GetInstance().DeleteFormInfo(formId2); in HWTEST_F()
/foundation/ability/form_fwk/test/unittest/fms_form_mgr_publish_form_test/
H A Dfms_form_mgr_publish_form_test.cpp171 FormDbCache::GetInstance().GetAllFormInfo(oldFormDBInfos); in HWTEST_F()
172 FormDbCache::GetInstance().DeleteFormInfoByBundleName(FORM_PROVIDER_BUNDLE_NAME, USER_ID, oldFormDBInfos); in HWTEST_F()
206 FormDbCache::GetInstance().GetAllFormInfo(oldFormDBInfos); in HWTEST_F()
207 FormDbCache::GetInstance().DeleteFormInfoByBundleName(FORM_PROVIDER_BUNDLE_NAME, USER_ID, oldFormDBInfos); in HWTEST_F()
243 FormDbCache::GetInstance().GetAllFormInfo(oldFormDBInfos); in HWTEST_F()
244 FormDbCache::GetInstance().DeleteFormInfoByBundleName(FORM_PROVIDER_BUNDLE_NAME, USER_ID, oldFormDBInfos); in HWTEST_F()
289 FormDbCache::GetInstance().GetAllFormInfo(oldFormDBInfos); in HWTEST_F()
290 FormDbCache::GetInstance().DeleteFormInfoByBundleName(FORM_PROVIDER_BUNDLE_NAME, USER_ID, oldFormDBInfos); in HWTEST_F()
/foundation/ability/form_fwk/test/unittest/fms_form_mgr_message_event_test/
H A Dfms_form_mgr_message_event_test.cpp134 FormDbCache::GetInstance().SaveFormInfo(formDBInfo); in HWTEST_F()
295 FormDbCache::GetInstance().SaveFormInfo(formDBInfo); in HWTEST_F()
320 FormDbCache formDbCache; in HWTEST_F()
334 FormDbCache formDbCache; in HWTEST_F()
352 FormDbCache formDbCache; in HWTEST_F()
370 FormDbCache formDbCache; in HWTEST_F()
388 FormDbCache formDbCache; in HWTEST_F()
406 FormDbCache formDbCache; in HWTEST_F()
425 FormDbCache formDbCache; in HWTEST_F()
449 FormDbCache formDbCach in HWTEST_F()
[all...]
/foundation/ability/form_fwk/test/unittest/fms_form_mgr_cast_temp_form_test/
H A Dfms_form_mgr_cast_temp_form_test.cpp113 FormDbCache::GetInstance().GetAllFormInfo(originDBInfos); in HWTEST_F()
144 FormDbCache::GetInstance().GetAllFormInfo(formDBInfos); in HWTEST_F()
161 FormDbCache::GetInstance().DeleteFormInfo(formId); in HWTEST_F()
227 FormDbCache::GetInstance().DeleteFormInfo(formId); in HWTEST_F()
/foundation/ability/form_fwk/test/unittest/fms_form_data_mgr_test/
H A Dmock_form_db_cache.cpp42 void FormDbCache::GetAllFormInfo(std::vector<FormDBInfo> &formDBInfos) in GetAllFormInfo()
H A Dfms_form_data_mgr_test.cpp84 if (!FormDbCache::GetInstance().formDBInfos_.empty()) { in TearDown()
85 FormDbCache::GetInstance().formDBInfos_.clear(); in TearDown()
2509 FormDbCache::GetInstance().formDBInfos_.emplace_back(formDbInfo); in HWTEST_F()
2649 EXPECT_EQ(FormDbCache::GetInstance().formDBInfos_.size(), 0); in HWTEST_F()
2652 FormDbCache::GetInstance().formDBInfos_.emplace_back(formDbInfo); in HWTEST_F()
2672 FormDbCache::GetInstance().formDBInfos_.emplace_back(formDbInfo); in HWTEST_F()
/foundation/ability/form_fwk/test/unittest/fms_form_sys_event_receiver_test/
H A Dfms_form_sys_event_receiver_test.cpp179 FormDbCache::GetInstance().SaveFormInfo(formDBInfo); in CreateFormRecordAndFormInfo()
187 FormDbCache::GetInstance().DeleteFormInfo(formId); in ClearFormRecord()
222 FormDbCache::GetInstance().SaveFormInfo(formDBInfo); in HWTEST_F()
231 FormDbCache::GetInstance().GetAllFormInfo(allFormInfo); in HWTEST_F()
233 EXPECT_NE(ERR_APPEXECFWK_FORM_NOT_EXIST_ID, FormDbCache::GetInstance().GetDBRecord(formId, tempFormDBInfo)); in HWTEST_F()
235 FormDbCache::GetInstance().DeleteFormInfo(formId); in HWTEST_F()
401 FormDbCache::GetInstance().SaveFormInfo(formDBInfo); in HWTEST_F()
489 FormDbCache::GetInstance().SaveFormInfo(formDBInfo); in HWTEST_F()
/foundation/ability/form_fwk/test/fuzztest/formdbcache_fuzzer/
H A Dformdbcache_fuzzer.cpp40 FormDbCache formDbCache; in DoSomethingInterestingWithMyAPI()
/foundation/ability/form_fwk/test/fuzztest/formdbcacheannex_fuzzer/
H A Dformdbcacheannex_fuzzer.cpp41 FormDbCache formDbCache; in DoSomethingInterestingWithMyAPI()
/foundation/ability/form_fwk/test/unittest/fms_form_mgr_death_callback_test/
H A Dfms_form_mgr_death_callback_test.cpp195 FormDbCache::GetInstance().DeleteFormInfo(formId); in HWTEST_F()
244 FormDbCache::GetInstance().DeleteFormInfo(formId); in HWTEST_F()
/foundation/ability/form_fwk/test/unittest/fms_form_share_mgr_test/
H A Dfms_form_share_mgr_test.cpp193 FormDbCache::GetInstance().GetAllFormInfo(oldFormDBInfos); in CreateForm()
194 FormDbCache::GetInstance().DeleteFormInfoByBundleName(FORM_PROVIDER_BUNDLE_NAME, USER_ID, oldFormDBInfos); in CreateForm()

Completed in 34 milliseconds