Home
last modified time | relevance | path

Searched refs:preInstallBundleInfo (Results 1 - 19 of 19) sorted by relevance

/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Dpreinstall_data_storage_rdb.cpp69 PreInstallBundleInfo preInstallBundleInfo; in TransformStrToInfo() local
77 if (preInstallBundleInfo.FromJson(jsonObject) != ERR_OK) { in TransformStrToInfo()
83 preInstallBundleInfos.emplace_back(preInstallBundleInfo); in TransformStrToInfo()
86 if (key != preInstallBundleInfo.GetBundleName()) { in TransformStrToInfo()
87 updateInfos.emplace(key, preInstallBundleInfo); in TransformStrToInfo()
114 const PreInstallBundleInfo &preInstallBundleInfo) in SavePreInstallStorageBundleInfo()
121 if (preInstallBundleInfo.GetBundleName().empty()) { in SavePreInstallStorageBundleInfo()
127 preInstallBundleInfo.GetBundleName(), preInstallBundleInfo.ToString()); in SavePreInstallStorageBundleInfo()
133 const PreInstallBundleInfo &preInstallBundleInfo) in DeletePreInstallStorageBundleInfo()
113 SavePreInstallStorageBundleInfo( const PreInstallBundleInfo &preInstallBundleInfo) SavePreInstallStorageBundleInfo() argument
132 DeletePreInstallStorageBundleInfo( const PreInstallBundleInfo &preInstallBundleInfo) DeletePreInstallStorageBundleInfo() argument
150 LoadPreInstallBundleInfo(const std::string &bundleName, PreInstallBundleInfo &preInstallBundleInfo) LoadPreInstallBundleInfo() argument
[all...]
H A Dhmp_bundle_installer.cpp371 PreInstallBundleInfo preInstallBundleInfo; in CheckUninstallSystemHsp() local
372 if ((dataMgr_->GetPreInstallBundleInfo(bundleName, preInstallBundleInfo))) { in CheckUninstallSystemHsp()
373 dataMgr_->DeletePreInstallBundleInfo(bundleName, preInstallBundleInfo); in CheckUninstallSystemHsp()
384 PreInstallBundleInfo preInstallBundleInfo; in UpdatePreInfoInDb() local
385 dataMgr_->GetPreInstallBundleInfo(bundleName, preInstallBundleInfo); in UpdatePreInfoInDb()
386 auto bundlePathList = preInstallBundleInfo.GetBundlePaths(); in UpdatePreInfoInDb()
390 preInstallBundleInfo.DeleteBundlePath(bundlePath); in UpdatePreInfoInDb()
393 if (preInstallBundleInfo.GetBundlePaths().empty()) { in UpdatePreInfoInDb()
394 dataMgr_->DeletePreInstallBundleInfo(bundleName, preInstallBundleInfo); in UpdatePreInfoInDb()
396 dataMgr_->SavePreInstallBundleInfo(bundleName, preInstallBundleInfo); in UpdatePreInfoInDb()
[all...]
H A Dbundle_mgr_service_event_handler.cpp1259 for (auto &preInstallBundleInfo : preInstallBundleInfos) { in InnerProcessCheckPreinstallData()
1261 if (dataMgr->GetBundleInfo(preInstallBundleInfo.GetBundleName(), in InnerProcessCheckPreinstallData()
1263 preInstallBundleInfo.SetIconId(bundleInfo.applicationInfo.iconResource.id); in InnerProcessCheckPreinstallData()
1264 preInstallBundleInfo.SetLabelId(bundleInfo.applicationInfo.labelResource.id); in InnerProcessCheckPreinstallData()
1265 preInstallBundleInfo.SetModuleName(bundleInfo.applicationInfo.labelResource.moduleName); in InnerProcessCheckPreinstallData()
1266 dataMgr->SavePreInstallBundleInfo(bundleInfo.name, preInstallBundleInfo); in InnerProcessCheckPreinstallData()
1271 auto preinstalledAppPaths = preInstallBundleInfo.GetBundlePaths(); in InnerProcessCheckPreinstallData()
1277 preInstallBundleInfo.SetLabelId(resultBundleInfo.applicationInfo.labelResource.id); in InnerProcessCheckPreinstallData()
1278 preInstallBundleInfo.SetIconId(resultBundleInfo.applicationInfo.iconResource.id); in InnerProcessCheckPreinstallData()
1279 preInstallBundleInfo in InnerProcessCheckPreinstallData()
2770 PreInstallBundleInfo preInstallBundleInfo; DeletePreInfoInDb() local
2931 const auto &preInstallBundleInfo = iter->second; HandlePreInstallAppServiceBundleNamesException() local
2957 const auto &preInstallBundleInfo = iter->second; HandlePreInstallBundleNamesException() local
3732 PreInstallBundleInfo preInstallBundleInfo; UpdatePreinstallDBForUninstalledBundle() local
[all...]
H A Dsystem_bundle_installer.cpp280 PreInstallBundleInfo preInstallBundleInfo; in CheckUninstallSystemHsp() local
281 if ((dataMgr->GetPreInstallBundleInfo(bundleName, preInstallBundleInfo))) { in CheckUninstallSystemHsp()
282 dataMgr->DeletePreInstallBundleInfo(bundleName, preInstallBundleInfo); in CheckUninstallSystemHsp()
H A Dbundle_user_mgr_host_impl.cpp222 PreInstallBundleInfo preInstallBundleInfo; in GetAllDriverBundleInfos() local
223 preInstallBundleInfo.SetBundleName(driverBundleName); in GetAllDriverBundleInfos()
224 preInstallBundleInfo.SetIsNonPreDriverApp(true); in GetAllDriverBundleInfos()
225 preInstallBundleInfos.insert(preInstallBundleInfo); in GetAllDriverBundleInfos()
H A Dbase_bundle_installer.cpp768 PreInstallBundleInfo preInstallBundleInfo; in InnerProcessBundleInstall() local
769 preInstallBundleInfo.SetBundleName(bundleName_); in InnerProcessBundleInstall()
770 dataMgr_->GetPreInstallBundleInfo(bundleName_, preInstallBundleInfo); in InnerProcessBundleInstall()
771 preInstallBundleInfo.SetAppType(newInfos.begin()->second.GetAppType()); in InnerProcessBundleInstall()
772 preInstallBundleInfo.SetVersionCode(newInfos.begin()->second.GetVersionCode()); in InnerProcessBundleInstall()
773 preInstallBundleInfo.SetIsUninstalled(false); in InnerProcessBundleInstall()
775 preInstallBundleInfo.AddBundlePath(item.first); in InnerProcessBundleInstall()
778 preInstallBundleInfo.SetRemovable(installParam.removable); in InnerProcessBundleInstall()
780 preInstallBundleInfo.SetRemovable(newInfos.begin()->second.IsRemovable()); in InnerProcessBundleInstall()
785 preInstallBundleInfo in InnerProcessBundleInstall()
1844 PreInstallBundleInfo preInstallBundleInfo; MarkPreInstallState() local
1964 PreInstallBundleInfo preInstallBundleInfo; InnerProcessInstallByPreInstallInfo() local
[all...]
H A Dbundle_mgr_host_impl.cpp3940 PreInstallBundleInfo preInstallBundleInfo; in GetUninstalledBundleInfo() local
3941 if (!dataMgr->GetPreInstallBundleInfo(bundleName, preInstallBundleInfo)) { in GetUninstalledBundleInfo()
3946 preInstallBundleInfo.GetBundlePaths(), bundleInfo)) { in GetUninstalledBundleInfo()
4016 for (auto &preInstallBundleInfo: preInstallBundleInfos) { in GetAllPreinstalledApplicationInfos()
4018 preinstalledApplicationInfo.bundleName = preInstallBundleInfo.GetBundleName(); in GetAllPreinstalledApplicationInfos()
4019 preinstalledApplicationInfo.moduleName = preInstallBundleInfo.GetModuleName(); in GetAllPreinstalledApplicationInfos()
4020 preinstalledApplicationInfo.labelId = preInstallBundleInfo.GetLabelId(); in GetAllPreinstalledApplicationInfos()
4021 preinstalledApplicationInfo.iconId = preInstallBundleInfo.GetIconId(); in GetAllPreinstalledApplicationInfos()
H A Dbundle_data_mgr.cpp3497 for (auto preInstallBundleInfo: preInstallBundleInfos) { in GetRecoverablePreInstallBundleInfos()
3498 if (!preInstallBundleInfo.IsRemovable()) { in GetRecoverablePreInstallBundleInfos()
3502 auto infoItem = bundleInfos_.find(preInstallBundleInfo.GetBundleName()); in GetRecoverablePreInstallBundleInfos()
3504 recoverablePreInstallBundleInfos.emplace_back(preInstallBundleInfo); in GetRecoverablePreInstallBundleInfos()
3509 recoverablePreInstallBundleInfos.emplace_back(preInstallBundleInfo); in GetRecoverablePreInstallBundleInfos()
4938 const std::string &bundleName, const PreInstallBundleInfo &preInstallBundleInfo) in SavePreInstallBundleInfo()
4945 if (preInstallDataStorage_->SavePreInstallStorageBundleInfo(preInstallBundleInfo)) { in SavePreInstallBundleInfo()
4954 const std::string &bundleName, const PreInstallBundleInfo &preInstallBundleInfo) in DeletePreInstallBundleInfo()
4961 if (preInstallDataStorage_->DeletePreInstallStorageBundleInfo(preInstallBundleInfo)) { in DeletePreInstallBundleInfo()
4970 const std::string &bundleName, PreInstallBundleInfo &preInstallBundleInfo) in GetPreInstallBundleInfo()
4937 SavePreInstallBundleInfo( const std::string &bundleName, const PreInstallBundleInfo &preInstallBundleInfo) SavePreInstallBundleInfo() argument
4953 DeletePreInstallBundleInfo( const std::string &bundleName, const PreInstallBundleInfo &preInstallBundleInfo) DeletePreInstallBundleInfo() argument
4969 GetPreInstallBundleInfo( const std::string &bundleName, PreInstallBundleInfo &preInstallBundleInfo) GetPreInstallBundleInfo() argument
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/
H A Dpreinstall_data_storage_interface.h29 * @param preInstallBundleInfo Indicates the PreInstallBundleInfo object to be save.
32 virtual bool SavePreInstallStorageBundleInfo(const PreInstallBundleInfo &preInstallBundleInfo) = 0;
44 virtual bool DeletePreInstallStorageBundleInfo(const PreInstallBundleInfo &preInstallBundleInfo) = 0;
51 PreInstallBundleInfo &preInstallBundleInfo) = 0;
H A Dpreinstall_data_storage_rdb.h31 bool SavePreInstallStorageBundleInfo(const PreInstallBundleInfo &preInstallBundleInfo) override;
33 bool DeletePreInstallStorageBundleInfo(const PreInstallBundleInfo &preInstallBundleInfo) override;
35 PreInstallBundleInfo &preInstallBundleInfo) override;
H A Dpre_install_bundle_info.h190 bool operator < (const PreInstallBundleInfo &preInstallBundleInfo) const in operator <()
192 if (bundlePaths_.size() == preInstallBundleInfo.GetBundlePaths().size()) { in operator <()
193 return hapTotalSize_ >= preInstallBundleInfo.GetHapTotalSize(); in operator <()
196 return bundlePaths_.size() > preInstallBundleInfo.GetBundlePaths().size(); in operator <()
H A Dbundle_data_mgr.h577 * @param preInstallBundleInfo Indicates information about the PreInstallBundleInfo.
580 bool GetPreInstallBundleInfo(const std::string &bundleName, PreInstallBundleInfo &preInstallBundleInfo);
584 * @param preInstallBundleInfo Indicates the PreInstallBundleInfo object to be save.
587 bool SavePreInstallBundleInfo(const std::string &bundleName, const PreInstallBundleInfo &preInstallBundleInfo);
590 * @param preInstallBundleInfo Indicates information about the PreInstallBundleInfo.
597 * @param preInstallBundleInfo Indicates the PreInstallBundleInfo object to be save.
601 const std::string &bundleName, const PreInstallBundleInfo &preInstallBundleInfo);
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/app_service_fwk/
H A Dapp_service_fwk_installer.cpp90 PreInstallBundleInfo preInstallBundleInfo; in Install() local
91 if (!dataMgr_->GetPreInstallBundleInfo(bundleName_, preInstallBundleInfo) || in Install()
92 preInstallBundleInfo.GetBundlePaths().empty()) { in Install()
93 APP_LOGE("get preInstallBundleInfo failed"); in Install()
104 result = ProcessInstall(preInstallBundleInfo.GetBundlePaths(), reinstallParam); in Install()
148 PreInstallBundleInfo preInstallBundleInfo; in UnInstall() local
149 if (dataMgr_->GetPreInstallBundleInfo(bundleName, preInstallBundleInfo)) { in UnInstall()
150 dataMgr_->DeletePreInstallBundleInfo(bundleName, preInstallBundleInfo); in UnInstall()
340 PreInstallBundleInfo preInstallBundleInfo; in SavePreInstallBundleInfo() local
341 preInstallBundleInfo in SavePreInstallBundleInfo()
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/shared/
H A Dinner_shared_bundle_installer.cpp435 PreInstallBundleInfo preInstallBundleInfo; in SavePreInstallInfo() local
436 if (!dataMgr->GetPreInstallBundleInfo(bundleName_, preInstallBundleInfo)) { in SavePreInstallInfo()
437 preInstallBundleInfo.SetBundleName(bundleName_); in SavePreInstallInfo()
439 preInstallBundleInfo.SetVersionCode(newBundleInfo_.GetBaseBundleInfo().versionCode); in SavePreInstallInfo()
441 preInstallBundleInfo.AddBundlePath(item.first); in SavePreInstallInfo()
444 preInstallBundleInfo.SetRemovable(installParam.removable); in SavePreInstallInfo()
446 preInstallBundleInfo.SetRemovable(newBundleInfo_.IsRemovable()); in SavePreInstallInfo()
450 preInstallBundleInfo.SetLabelId(applicationInfo.labelResource.id); in SavePreInstallInfo()
451 preInstallBundleInfo.SetIconId(applicationInfo.iconResource.id); in SavePreInstallInfo()
452 preInstallBundleInfo in SavePreInstallInfo()
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_rdb_data_manager_test/
H A Dbms_rdb_data_manager_test.cpp348 PreInstallBundleInfo preInstallBundleInfo; in HWTEST_F() local
349 preInstallBundleInfo.SetBundleName(TEST_BUNDLE_NAME); in HWTEST_F()
350 preInstallBundleInfo.SetVersionCode(TEST_VERSION); in HWTEST_F()
351 bool ret = preInstallDataStorage->SavePreInstallStorageBundleInfo(preInstallBundleInfo); in HWTEST_F()
353 ret = preInstallDataStorage->DeletePreInstallStorageBundleInfo(preInstallBundleInfo); in HWTEST_F()
401 PreInstallBundleInfo preInstallBundleInfo; in HWTEST_F() local
402 ret = preInstallDataStorage->LoadPreInstallBundleInfo(bundleName, preInstallBundleInfo); in HWTEST_F()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_manager_test/
H A Dbms_bundle_manager_test.cpp3158 PreInstallBundleInfo preInstallBundleInfo; in HWTEST_F() local
3159 bool res = GetBundleDataMgr()->GetPreInstallBundleInfo("", preInstallBundleInfo); in HWTEST_F()
4461 PreInstallBundleInfo preInstallBundleInfo; in HWTEST_F() local
4462 bool ret = dataMgr->SavePreInstallBundleInfo(BUNDLE_NAME, preInstallBundleInfo); in HWTEST_F()
4465 ret = dataMgr->DeletePreInstallBundleInfo(BUNDLE_NAME, preInstallBundleInfo); in HWTEST_F()
5899 PreInstallBundleInfo preInstallBundleInfo; in HWTEST_F() local
5901 preInstallBundleInfo.SetBundleName(BUNDLE_BACKUP_NAME); in HWTEST_F()
5902 preInstallBundleInfo.SetModuleName(MODULE_NAME); in HWTEST_F()
5903 preInstallBundleInfo.SetLabelId(BUNDLE_BACKUP_LABEL_ID); in HWTEST_F()
5904 preInstallBundleInfo in HWTEST_F()
6007 PreInstallBundleInfo preInstallBundleInfo; HWTEST_F() local
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_installer_test/
H A Dbms_bundle_app_service_fwk_installer.cpp307 PreInstallBundleInfo preInstallBundleInfo; in DeletePreBundleInfo() local
308 bool getRes = dataMgr->GetPreInstallBundleInfo(bundleName, preInstallBundleInfo); in DeletePreBundleInfo()
312 return dataMgr->DeletePreInstallBundleInfo(bundleName, preInstallBundleInfo); in DeletePreBundleInfo()
H A Dbms_bundle_installer_test.cpp6921 PreInstallBundleInfo preInstallBundleInfo; in HWTEST_F() local
6923 preInstallBundleInfo.CalculateHapTotalSize(); in HWTEST_F()
6925 preInstallBundleInfo.SetBundleName("com.acts.example"); in HWTEST_F()
6926 preInstallBundleInfo.SetModuleName("example_example"); in HWTEST_F()
6928 preInstallBundleInfo.ToJson(jsonObject); in HWTEST_F()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_event_handler_test/
H A Dbms_event_handler_test.cpp425 PreInstallBundleInfo preInstallBundleInfo; in HWTEST_F() local
426 handler->loadExistData_.emplace(BUNDLE_NAME, preInstallBundleInfo); in HWTEST_F()

Completed in 61 milliseconds