/ohos5.0/foundation/ability/form_fwk/test/unittest/fms_form_db_record_test/ |
H A D | fms_form_db_record_test.cpp | 71 FormDbCache::GetInstance().Start(); 85 FormDbCache::GetInstance().DeleteFormInfo(0); 100 FormDbCache::GetInstance().DeleteFormInfo(1); 115 FormDbCache::GetInstance().DeleteFormInfo(1); 130 FormDbCache::GetInstance().DeleteFormInfo(0); 144 FormDbCache::GetInstance().UpdateDBRecord(1, formRecord_); 168 FormDbCache::GetInstance().DeleteFormInfo(0); 169 FormDbCache::GetInstance().DeleteFormInfo(1); 208 FormDbCache::GetInstance().DeleteFormInfo(0); 209 FormDbCache::GetInstance().DeleteFormInfo(1); [all …]
|
/ohos5.0/foundation/ability/form_fwk/test/unittest/fms_form_mgr_adapter_test/ |
H A D | mock_form_db_cache.cpp | 63 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()
|
/ohos5.0/foundation/ability/form_fwk/services/src/ |
H A D | form_db_cache.cpp | 29 FormDbCache::FormDbCache() in FormDbCache() function in OHOS::AppExecFwk::FormDbCache 34 FormDbCache::~FormDbCache() in ~FormDbCache() 43 void FormDbCache::Start() in Start() 64 ErrCode FormDbCache::SaveFormInfo(const FormDBInfo &formDBInfo) in SaveFormInfo() 91 ErrCode FormDbCache::SaveFormInfoNolock(const FormDBInfo &formDBInfo) in SaveFormInfoNolock() 117 ErrCode FormDbCache::DeleteFormInfo(int64_t formId) in DeleteFormInfo() 168 void FormDbCache::GetAllFormInfo(std::vector<FormDBInfo> &formDBInfos) in GetAllFormInfo() 228 return FormDbCache::GetInstance().SaveFormInfo(formDBInfo); in UpdateDBRecord() 237 ErrCode FormDbCache::GetNoHostDBForms(const int uid, std::map<FormIdKey, in GetNoHostDBForms() 286 void FormDbCache::DeleteDBFormsByUserId(const int32_t userId) in DeleteDBFormsByUserId() [all …]
|
H A D | form_event_util.cpp | 122 FormDbCache::GetInstance().DeleteFormInfo(formId); in HandleProviderUpdated() 167 FormDbCache::GetInstance().DeleteFormInfoByBundleName(bundleName, userId, removedDBForm); in HandleProviderRemoved() 170 …int32_t matchCount = FormDbCache::GetInstance().GetMatchCount(dbForm.bundleName, dbForm.moduleName… in HandleProviderRemoved() 292 FormDbCache::GetInstance().GetNoHostDBForms(uid, noHostFormDbMap, foundFormsMap); in ClearFormDBRecordData() 522 int errCode = FormDbCache::GetInstance().GetDBRecord(formId, dbInfo); in BatchDeleteNoHostDBForms() 525 FormDbCache::GetInstance().SaveFormInfo(dbInfo); in BatchDeleteNoHostDBForms() 532 int errCode = FormDbCache::GetInstance().GetDBRecord(formId, dbInfo); in BatchDeleteNoHostDBForms() 536 FormDbCache::GetInstance().DeleteFormInfo(formId); in BatchDeleteNoHostDBForms() 544 … int32_t matchCount = FormDbCache::GetInstance().GetMatchCount(item.bundleName, item.moduleName); in BatchDeleteNoHostDBForms()
|
H A D | form_mgr_adapter.cpp | 244 int ret = FormDbCache::GetInstance().UpdateDBRecord(formId, formRecord); in AddThemeDBRecord() 458 return FormDbCache::GetInstance().UpdateDBRecord(formId, record); in UpdateTimer() 502 ErrCode getDbRet = FormDbCache::GetInstance().GetDBRecord(formId, dbInfo); in DeleteForm() 523 ret = FormDbCache::GetInstance().DeleteFormInfo(formId); in DeleteThemeForm() 648 if (FormDbCache::GetInstance().GetDBRecord(formId, dbRecord) != ERR_OK) { in HandleDeleteForm() 1247 FormDbCache::GetInstance().GetAllFormInfo(formDBInfos); in DumpStorageFormInfos() 1496 !FormDbCache::GetInstance().IsHostOwner(formId, callingUid)) { in AllotFormById() 1513 ErrCode getDbRet = FormDbCache::GetInstance().GetDBRecord(formId, dbRecord); in AllotFormById() 1595 ErrCode getDbRet = FormDbCache::GetInstance().GetDBRecord(formId, dbRecord); in AllotFormBySpecificId() 1650 errorCode = FormDbCache::GetInstance().UpdateDBRecord(formId, formRecord); in AddNewFormRecord() [all …]
|
H A D | form_ability_connection.cpp | 85 FormDbCache::GetInstance().DeleteFormInfo(formId_); in OnAbilityConnectDone()
|
H A D | form_data_mgr.cpp | 367 FormDbCache::GetInstance().GetAllFormInfo(formDbInfos); in CheckEnoughForm() 2122 FormDbCache::GetInstance().GetAllFormInfo(formDBInfos); in GetUnusedFormInstancesByFilter() 2140 ErrCode getDbRet = FormDbCache::GetInstance().GetDBRecord(dbInfo.formId, dbRecord); in GetUnusedFormInstancesByFilter() 2259 ErrCode getDbRet = FormDbCache::GetInstance().GetDBRecord(formId, dbRecord); in GetUnusedFormInstanceById() 2331 FormDbCache::GetInstance().GetAllFormInfo(formDBInfos); in GetUnusedFormInfos() 2339 ErrCode getDbRet = FormDbCache::GetInstance().GetDBRecord(dbInfo.formId, dbRecord); in GetUnusedFormInfos() 2391 FormDbCache::GetInstance().GetAllFormInfo(formDBInfos); in GetUnusedFormInfos() 2409 ErrCode getDbRet = FormDbCache::GetInstance().GetDBRecord(dbInfo.formId, dbRecord); in GetUnusedFormInfos()
|
H A D | form_sys_event_receiver.cpp | 174 FormDbCache::GetInstance().DeleteDBFormsByUserId(userId); in HandleUserIdRemoved()
|
H A D | form_mgr_service.cpp | 814 FormDbCache::GetInstance().Start(); in Init()
|
/ohos5.0/foundation/ability/form_fwk/test/unittest/fms_form_mgr_delete_form_test/ |
H A D | fms_form_mgr_delete_form_test.cpp | 132 FormDbCache::GetInstance().SaveFormInfo(formDBInfo); 159 FormDbCache::GetInstance().DeleteFormInfo(formId); 187 FormDbCache::GetInstance().SaveFormInfo(formDBInfo); 210 FormDbCache::GetInstance().DeleteFormInfo(formId); 260 FormDbCache::GetInstance().DeleteFormInfo(formId); 289 FormDbCache::GetInstance().SaveFormInfo(formDBInfo); 316 FormDbCache::GetInstance().DeleteFormInfo(formId); 343 FormDbCache::GetInstance().SaveFormInfo(formDBInfo); 366 FormDbCache::GetInstance().DeleteFormInfo(formId); 386 FormDbCache::GetInstance().DeleteFormInfo(formId); [all …]
|
/ohos5.0/foundation/ability/form_fwk/test/unittest/fms_form_event_util_test/ |
H A D | mock_form_db_cache.cpp | 44 FormDbCache::FormDbCache() in FormDbCache() function in OHOS::AppExecFwk::FormDbCache 49 FormDbCache::~FormDbCache() 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::GetDBRecord(const int64_t formId, FormDBInfo &record) const in GetDBRecord()
|
/ohos5.0/foundation/ability/form_fwk/test/unittest/fms_form_mgr_add_form_test/ |
H A D | fms_form_mgr_add_form_test.cpp | 266 FormDbCache::GetInstance().DeleteFormInfo(formId); 301 FormDbCache::GetInstance().SaveFormInfo(formDBInfo); 355 FormDbCache::GetInstance().DeleteFormInfo(formId); 386 FormDbCache::GetInstance().SaveFormInfo(formDBInfo); 440 FormDbCache::GetInstance().DeleteFormInfo(formId); 573 FormDbCache::GetInstance().DeleteFormInfo(formId); 628 FormDbCache::GetInstance().DeleteFormInfo(formId); 696 FormDbCache::GetInstance().DeleteFormInfo(formId); 775 FormDbCache::GetInstance().DeleteFormInfo(formId); 849 FormDbCache::GetInstance().DeleteFormInfo(formId); [all …]
|
/ohos5.0/foundation/ability/form_fwk/test/unittest/fms_form_mgr_message_event_test/ |
H A D | fms_form_mgr_message_event_test.cpp | 320 FormDbCache formDbCache; 334 FormDbCache formDbCache; 352 FormDbCache formDbCache; 370 FormDbCache formDbCache; 388 FormDbCache formDbCache; 406 FormDbCache formDbCache; 425 FormDbCache formDbCache; 449 FormDbCache formDbCache; 468 FormDbCache formDbCache; 485 FormDbCache formDbCache; [all …]
|
/ohos5.0/foundation/ability/form_fwk/test/unittest/fms_form_mgr_publish_form_test/ |
H A D | fms_form_mgr_publish_form_test.cpp | 171 FormDbCache::GetInstance().GetAllFormInfo(oldFormDBInfos); 172 …FormDbCache::GetInstance().DeleteFormInfoByBundleName(FORM_PROVIDER_BUNDLE_NAME, USER_ID, oldFormD… 206 FormDbCache::GetInstance().GetAllFormInfo(oldFormDBInfos); 207 …FormDbCache::GetInstance().DeleteFormInfoByBundleName(FORM_PROVIDER_BUNDLE_NAME, USER_ID, oldFormD… 243 FormDbCache::GetInstance().GetAllFormInfo(oldFormDBInfos); 244 …FormDbCache::GetInstance().DeleteFormInfoByBundleName(FORM_PROVIDER_BUNDLE_NAME, USER_ID, oldFormD… 289 FormDbCache::GetInstance().GetAllFormInfo(oldFormDBInfos); 290 …FormDbCache::GetInstance().DeleteFormInfoByBundleName(FORM_PROVIDER_BUNDLE_NAME, USER_ID, oldFormD…
|
/ohos5.0/foundation/ability/form_fwk/services/include/ |
H A D | form_db_cache.h | 33 class FormDbCache final : public DelayedRefSingleton<FormDbCache> { 34 DECLARE_DELAYED_REF_SINGLETON(FormDbCache) 36 DISALLOW_COPY_AND_MOVE(FormDbCache);
|
/ohos5.0/foundation/ability/form_fwk/test/unittest/fms_form_mgr_release_form_test/ |
H A D | fms_form_mgr_release_form_test.cpp | 115 FormDbCache::GetInstance().SaveFormInfo(formDBInfo); 142 FormDbCache::GetInstance().DeleteFormInfo(formId); 143 FormDbCache::GetInstance().DeleteFormInfo(formId2); 170 FormDbCache::GetInstance().SaveFormInfo(formDBInfo); 186 FormDbCache::GetInstance().DeleteFormInfo(formId1); 187 FormDbCache::GetInstance().DeleteFormInfo(formId2);
|
/ohos5.0/foundation/ability/form_fwk/test/unittest/fms_form_mgr_cast_temp_form_test/ |
H A D | fms_form_mgr_cast_temp_form_test.cpp | 113 FormDbCache::GetInstance().GetAllFormInfo(originDBInfos); 144 FormDbCache::GetInstance().GetAllFormInfo(formDBInfos); 161 FormDbCache::GetInstance().DeleteFormInfo(formId); 227 FormDbCache::GetInstance().DeleteFormInfo(formId);
|
/ohos5.0/foundation/ability/form_fwk/test/unittest/fms_form_sys_event_receiver_test/ |
H A D | fms_form_sys_event_receiver_test.cpp | 179 FormDbCache::GetInstance().SaveFormInfo(formDBInfo); in CreateFormRecordAndFormInfo() 187 FormDbCache::GetInstance().DeleteFormInfo(formId); in ClearFormRecord() 222 FormDbCache::GetInstance().SaveFormInfo(formDBInfo); 231 FormDbCache::GetInstance().GetAllFormInfo(allFormInfo); 233 …EXPECT_NE(ERR_APPEXECFWK_FORM_NOT_EXIST_ID, FormDbCache::GetInstance().GetDBRecord(formId, tempFor… 235 FormDbCache::GetInstance().DeleteFormInfo(formId); 401 FormDbCache::GetInstance().SaveFormInfo(formDBInfo); 489 FormDbCache::GetInstance().SaveFormInfo(formDBInfo);
|
/ohos5.0/foundation/ability/form_fwk/test/unittest/fms_form_data_mgr_test/ |
H A D | mock_form_db_cache.cpp | 42 void FormDbCache::GetAllFormInfo(std::vector<FormDBInfo> &formDBInfos) in GetAllFormInfo()
|
H A D | fms_form_data_mgr_test.cpp | 84 if (!FormDbCache::GetInstance().formDBInfos_.empty()) { in TearDown() 85 FormDbCache::GetInstance().formDBInfos_.clear(); in TearDown() 2509 FormDbCache::GetInstance().formDBInfos_.emplace_back(formDbInfo); 2649 EXPECT_EQ(FormDbCache::GetInstance().formDBInfos_.size(), 0); 2652 FormDbCache::GetInstance().formDBInfos_.emplace_back(formDbInfo); 2672 FormDbCache::GetInstance().formDBInfos_.emplace_back(formDbInfo);
|
/ohos5.0/foundation/ability/form_fwk/test/unittest/fms_form_mgr_death_callback_test/ |
H A D | fms_form_mgr_death_callback_test.cpp | 195 FormDbCache::GetInstance().DeleteFormInfo(formId); 244 FormDbCache::GetInstance().DeleteFormInfo(formId);
|
/ohos5.0/foundation/ability/form_fwk/test/fuzztest/formdbcache_fuzzer/ |
H A D | formdbcache_fuzzer.cpp | 40 FormDbCache formDbCache; in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/ability/form_fwk/test/fuzztest/formdbcacheannex_fuzzer/ |
H A D | formdbcacheannex_fuzzer.cpp | 41 FormDbCache formDbCache; in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/ability/form_fwk/ |
H A D | libfms.map | 31 *OHOS::AppExecFwk::FormDbCache*;
|
/ohos5.0/foundation/ability/form_fwk/test/unittest/fms_form_share_mgr_test/ |
H A D | fms_form_share_mgr_test.cpp | 194 FormDbCache::GetInstance().GetAllFormInfo(oldFormDBInfos); in CreateForm() 195 …FormDbCache::GetInstance().DeleteFormInfoByBundleName(FORM_PROVIDER_BUNDLE_NAME, USER_ID, oldFormD… in CreateForm()
|