/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | preinstall_data_storage_rdb.cpp | 69 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() argument 121 if (preInstallBundleInfo.GetBundleName().empty()) { in SavePreInstallStorageBundleInfo() 127 preInstallBundleInfo.GetBundleName(), preInstallBundleInfo.ToString()); in SavePreInstallStorageBundleInfo() 133 const PreInstallBundleInfo &preInstallBundleInfo) in DeletePreInstallStorageBundleInfo() argument 140 if (preInstallBundleInfo.GetBundleName().empty()) { in DeletePreInstallStorageBundleInfo() [all …]
|
H A D | bundle_mgr_service_event_handler.cpp | 1241 for (auto &preInstallBundleInfo : preInstallBundleInfos) { in InnerProcessCheckPreinstallData() local 1478 … dataMgr->SavePreInstallBundleInfo(preInstallBundleInfo.GetBundleName(), preInstallBundleInfo); in InnerProcessCheckRecoverableApplicationInfo() 1501 … dataMgr->SavePreInstallBundleInfo(preInstallBundleInfo.GetBundleName(), preInstallBundleInfo); in InnerProcessCheckRecoverableApplicationInfo() 2260 PreInstallBundleInfo preInstallBundleInfo; in DeletePreInfoInDb() local 2261 preInstallBundleInfo.SetBundleName(bundleName); in DeletePreInfoInDb() 2271 preInstallBundleInfo.DeleteBundlePath(bundlePath); in DeletePreInfoInDb() 2272 if (preInstallBundleInfo.GetBundlePaths().empty()) { in DeletePreInfoInDb() 2347 const auto &preInstallBundleInfo = iter->second; in HandlePreInstallException() local 3166 PreInstallBundleInfo preInstallBundleInfo; in UpdatePreinstallDBForNotUpdatedBundle() local 3172 preInstallBundleInfo.ClearBundlePath(); in UpdatePreinstallDBForNotUpdatedBundle() [all …]
|
H A D | system_bundle_installer.cpp | 272 PreInstallBundleInfo preInstallBundleInfo; in CheckUninstallSystemHsp() local 273 if ((dataMgr->GetPreInstallBundleInfo(bundleName, preInstallBundleInfo))) { in CheckUninstallSystemHsp() 274 dataMgr->DeletePreInstallBundleInfo(bundleName, preInstallBundleInfo); in CheckUninstallSystemHsp()
|
H A D | base_bundle_installer.cpp | 759 PreInstallBundleInfo preInstallBundleInfo; in InnerProcessBundleInstall() local 760 preInstallBundleInfo.SetBundleName(bundleName_); in InnerProcessBundleInstall() 764 preInstallBundleInfo.SetIsUninstalled(false); in InnerProcessBundleInstall() 1497 PreInstallBundleInfo preInstallBundleInfo; in ProcessBundleUninstall() local 1835 PreInstallBundleInfo preInstallBundleInfo; in MarkPreInstallState() local 1836 preInstallBundleInfo.SetBundleName(bundleName); in MarkPreInstallState() 1842 preInstallBundleInfo.SetIsUninstalled(isUninstalled); in MarkPreInstallState() 1947 PreInstallBundleInfo preInstallBundleInfo; in InnerProcessInstallByPreInstallInfo() local 1948 preInstallBundleInfo.SetBundleName(bundleName); in InnerProcessInstallByPreInstallInfo() 1962 pathVec = preInstallBundleInfo.GetBundlePaths(); in InnerProcessInstallByPreInstallInfo() [all …]
|
H A D | bundle_mgr_host_impl.cpp | 3972 PreInstallBundleInfo preInstallBundleInfo; in GetUninstalledBundleInfo() local 3973 if (!dataMgr->GetPreInstallBundleInfo(bundleName, preInstallBundleInfo)) { in GetUninstalledBundleInfo() 3978 preInstallBundleInfo.GetBundlePaths(), bundleInfo)) { in GetUninstalledBundleInfo() 4048 for (auto &preInstallBundleInfo: preInstallBundleInfos) { in GetAllPreinstalledApplicationInfos() local 4050 preinstalledApplicationInfo.bundleName = preInstallBundleInfo.GetBundleName(); in GetAllPreinstalledApplicationInfos() 4051 preinstalledApplicationInfo.moduleName = preInstallBundleInfo.GetModuleName(); in GetAllPreinstalledApplicationInfos() 4052 preinstalledApplicationInfo.labelId = preInstallBundleInfo.GetLabelId(); in GetAllPreinstalledApplicationInfos() 4053 preinstalledApplicationInfo.iconId = preInstallBundleInfo.GetIconId(); in GetAllPreinstalledApplicationInfos()
|
H A D | bundle_data_mgr.cpp | 3434 for (auto preInstallBundleInfo: preInstallBundleInfos) { in GetRecoverablePreInstallBundleInfos() local 3435 if (!preInstallBundleInfo.IsRemovable()) { in GetRecoverablePreInstallBundleInfos() 3439 auto infoItem = bundleInfos_.find(preInstallBundleInfo.GetBundleName()); in GetRecoverablePreInstallBundleInfos() 3441 recoverablePreInstallBundleInfos.emplace_back(preInstallBundleInfo); in GetRecoverablePreInstallBundleInfos() 3446 recoverablePreInstallBundleInfos.emplace_back(preInstallBundleInfo); in GetRecoverablePreInstallBundleInfos() 4927 const std::string &bundleName, const PreInstallBundleInfo &preInstallBundleInfo) in SavePreInstallBundleInfo() argument 4934 if (preInstallDataStorage_->SavePreInstallStorageBundleInfo(preInstallBundleInfo)) { in SavePreInstallBundleInfo() 4943 const std::string &bundleName, const PreInstallBundleInfo &preInstallBundleInfo) in DeletePreInstallBundleInfo() argument 4950 if (preInstallDataStorage_->DeletePreInstallStorageBundleInfo(preInstallBundleInfo)) { in DeletePreInstallBundleInfo() 4959 const std::string &bundleName, PreInstallBundleInfo &preInstallBundleInfo) in GetPreInstallBundleInfo() argument [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ |
H A D | preinstall_data_storage_interface.h | 32 …virtual bool SavePreInstallStorageBundleInfo(const PreInstallBundleInfo &preInstallBundleInfo) = 0; 44 …virtual bool DeletePreInstallStorageBundleInfo(const PreInstallBundleInfo &preInstallBundleInfo) =… 51 PreInstallBundleInfo &preInstallBundleInfo) = 0;
|
H A D | preinstall_data_storage_rdb.h | 31 bool SavePreInstallStorageBundleInfo(const PreInstallBundleInfo &preInstallBundleInfo) override; 33 … bool DeletePreInstallStorageBundleInfo(const PreInstallBundleInfo &preInstallBundleInfo) override; 35 PreInstallBundleInfo &preInstallBundleInfo) override;
|
H A D | pre_install_bundle_info.h | 190 bool operator < (const PreInstallBundleInfo &preInstallBundleInfo) const 192 if (bundlePaths_.size() == preInstallBundleInfo.GetBundlePaths().size()) { 193 return hapTotalSize_ >= preInstallBundleInfo.GetHapTotalSize(); 196 return bundlePaths_.size() > preInstallBundleInfo.GetBundlePaths().size();
|
H A D | bundle_data_mgr.h | 578 …GetPreInstallBundleInfo(const std::string &bundleName, PreInstallBundleInfo &preInstallBundleInfo); 585 …InstallBundleInfo(const std::string &bundleName, const PreInstallBundleInfo &preInstallBundleInfo); 599 const std::string &bundleName, const PreInstallBundleInfo &preInstallBundleInfo);
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/app_service_fwk/ |
H A D | app_service_fwk_installer.cpp | 90 PreInstallBundleInfo preInstallBundleInfo; in Install() local 92 preInstallBundleInfo.GetBundlePaths().empty()) { in Install() 148 PreInstallBundleInfo preInstallBundleInfo; in UnInstall() local 259 PreInstallBundleInfo preInstallBundleInfo; in SavePreInstallBundleInfo() local 260 preInstallBundleInfo.SetBundleName(bundleName_); in SavePreInstallBundleInfo() 262 preInstallBundleInfo.SetAppType(Constants::AppType::SYSTEM_APP); in SavePreInstallBundleInfo() 263 preInstallBundleInfo.SetVersionCode(versionCode_); in SavePreInstallBundleInfo() 264 preInstallBundleInfo.SetIsUninstalled(false); in SavePreInstallBundleInfo() 267 preInstallBundleInfo.DeleteBundlePath(bundlePath); in SavePreInstallBundleInfo() 270 preInstallBundleInfo.AddBundlePath(item.first); in SavePreInstallBundleInfo() [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/shared/ |
H A D | inner_shared_bundle_installer.cpp | 432 PreInstallBundleInfo preInstallBundleInfo; in SavePreInstallInfo() local 433 if (!dataMgr->GetPreInstallBundleInfo(bundleName_, preInstallBundleInfo)) { in SavePreInstallInfo() 434 preInstallBundleInfo.SetBundleName(bundleName_); in SavePreInstallInfo() 438 preInstallBundleInfo.AddBundlePath(item.first); in SavePreInstallInfo() 441 preInstallBundleInfo.SetRemovable(installParam.removable); in SavePreInstallInfo() 443 preInstallBundleInfo.SetRemovable(newBundleInfo_.IsRemovable()); in SavePreInstallInfo() 447 preInstallBundleInfo.SetLabelId(applicationInfo.labelResource.id); in SavePreInstallInfo() 448 preInstallBundleInfo.SetIconId(applicationInfo.iconResource.id); in SavePreInstallInfo() 450 preInstallBundleInfo.SetSystemApp(applicationInfo.isSystemApp); in SavePreInstallInfo() 451 preInstallBundleInfo.SetBundleType(BundleType::SHARED); in SavePreInstallInfo() [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_rdb_data_manager_test/ |
H A D | bms_rdb_data_manager_test.cpp | 231 PreInstallBundleInfo preInstallBundleInfo; variable 232 preInstallBundleInfo.SetBundleName(TEST_BUNDLE_NAME); 233 preInstallBundleInfo.SetVersionCode(TEST_VERSION); 234 bool ret = preInstallDataStorage->SavePreInstallStorageBundleInfo(preInstallBundleInfo); 236 ret = preInstallDataStorage->DeletePreInstallStorageBundleInfo(preInstallBundleInfo);
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_manager_test/ |
H A D | bms_bundle_manager_test.cpp | 3180 PreInstallBundleInfo preInstallBundleInfo; variable 4483 PreInstallBundleInfo preInstallBundleInfo; variable 5921 PreInstallBundleInfo preInstallBundleInfo; variable 5923 preInstallBundleInfo.SetBundleName(BUNDLE_BACKUP_NAME); 5924 preInstallBundleInfo.SetModuleName(MODULE_NAME); 5925 preInstallBundleInfo.SetLabelId(BUNDLE_BACKUP_LABEL_ID); 5926 preInstallBundleInfo.SetIconId(BUNDLE_BACKUP_ICON_ID); 5927 preInstallBundleInfo.SetSystemApp(true); 5928 preInstallBundleInfo.SetBundleType(BundleType::APP); 5930 preInstallBundleInfo.AddBundlePath(bundlePath); [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_installer_test/ |
H A D | bms_bundle_app_service_fwk_installer.cpp | 306 PreInstallBundleInfo preInstallBundleInfo; in DeletePreBundleInfo() local 307 bool getRes = dataMgr->GetPreInstallBundleInfo(bundleName, preInstallBundleInfo); in DeletePreBundleInfo() 311 return dataMgr->DeletePreInstallBundleInfo(bundleName, preInstallBundleInfo); in DeletePreBundleInfo()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_event_handler_test/ |
H A D | bms_event_handler_test.cpp | 425 PreInstallBundleInfo preInstallBundleInfo; variable 426 handler->loadExistData_.emplace(BUNDLE_NAME, preInstallBundleInfo);
|