/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | pre_install_exception_mgr.cpp | 144 const std::string &bundleDir) in SavePreInstallExceptionPath() argument 147 if (bundleDir.empty()) { in SavePreInstallExceptionPath() 152 if (exceptionPaths_.find(bundleDir) != exceptionPaths_.end()) { in SavePreInstallExceptionPath() 153 APP_LOGE("bundleDir %{public}s saved", bundleDir.c_str()); in SavePreInstallExceptionPath() 157 exceptionPaths_.insert(bundleDir); in SavePreInstallExceptionPath() 162 void PreInstallExceptionMgr::DeletePreInstallExceptionPath(const std::string &bundleDir) in DeletePreInstallExceptionPath() argument 165 if (bundleDir.empty()) { in DeletePreInstallExceptionPath() 170 if (exceptionPaths_.find(bundleDir) == exceptionPaths_.end()) { in DeletePreInstallExceptionPath() 171 APP_LOGE("bundleDir %{public}s deleted", bundleDir.c_str()); in DeletePreInstallExceptionPath() 181 exceptionPaths_.erase(bundleDir); in DeletePreInstallExceptionPath() [all …]
|
H A D | pre_bundle_profile.cpp | 88 preScanInfo.bundleDir, in TransformTo() 102 (preScanInfo.bundleDir.find(RESOURCES_PATH_1) != preScanInfo.bundleDir.npos) || in TransformTo() 103 (preScanInfo.bundleDir.find(RESOURCES_PATH_2) != preScanInfo.bundleDir.npos); in TransformTo() 118 APP_LOGD("Replace old preScanInfo(%{public}s)", preScanInfo.bundleDir.c_str()); in TransformTo()
|
H A D | bundle_exception_handler.cpp | 46 bool BundleExceptionHandler::RemoveBundleAndDataDir(const std::string &bundleDir, in RemoveBundleAndDataDir() argument 49 ErrCode result = InstalldClient::GetInstance()->RemoveDir(bundleDir); in RemoveBundleAndDataDir() 51 … APP_LOGE("fail to remove bundle dir %{public}s, error is %{public}d", bundleDir.c_str(), result); in RemoveBundleAndDataDir()
|
H A D | bundle_mgr_service_event_handler.cpp | 682 bundleDirs.emplace_back(installInfo.bundleDir); in GetPreInstallDirFromLoadProFile() 708 for (const auto &bundleDir : bundleDirs) { in AnalyzeHaps() local 920 ErrCode ret = installer.Install({preScanInfo.bundleDir}, installParam); in ProcessSystemHspInstall() 939 hspDirs.emplace_back(installInfo.bundleDir); in InnerProcessBootPreBundleProFileInstall() 1033 SavePreInstallException(preScanInfo.bundleDir); in ProcessSystemBundleInstall() 1054 SavePreInstallException(bundleDir); in ProcessSystemBundleInstall() 1638 sharedBundleDirs.emplace_back(installInfo.bundleDir); in ProcessReBootPreBundleProFileInstall() 1640 bundleDirs.emplace_back(installInfo.bundleDir); in ProcessReBootPreBundleProFileInstall() 1646 systemHspDirs.emplace_back(systemHspScanInfo.bundleDir); in ProcessReBootPreBundleProFileInstall() 2300 preInstallExceptionMgr->SavePreInstallExceptionPath(bundleDir); in SavePreInstallException() [all …]
|
H A D | installd_client.cpp | 30 ErrCode InstalldClient::CreateBundleDir(const std::string &bundleDir) in CreateBundleDir() argument 32 if (bundleDir.empty()) { in CreateBundleDir() 37 return CallService(&IInstalld::CreateBundleDir, bundleDir); in CreateBundleDir() 171 ErrCode InstalldClient::CleanBundleDataDir(const std::string &bundleDir) in CleanBundleDataDir() argument 173 if (bundleDir.empty()) { in CleanBundleDataDir() 178 return CallService(&IInstalld::CleanBundleDataDir, bundleDir); in CleanBundleDataDir()
|
H A D | bundle_util.cpp | 347 std::string bundleDir = configPath + ServiceConstants::PATH_SEPARATOR + bundleName; in MakeFsConfig() local 348 if (access(bundleDir.c_str(), F_OK) != 0) { in MakeFsConfig() 350 if (mkdir(bundleDir.c_str(), S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH) != 0) { in MakeFsConfig() 357 if (!PathToRealPath(bundleDir, realBundleDir)) { in MakeFsConfig() 376 std::string bundleDir = configPath + ServiceConstants::PATH_SEPARATOR + bundleName; in RemoveFsConfig() local 378 if (!PathToRealPath(bundleDir, realBundleDir)) { in RemoveFsConfig()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/ |
H A D | bundle_dir.cpp | 37 BundleDir *bundleDir = new (std::nothrow) BundleDir(); in Unmarshalling() local 38 if (bundleDir && !bundleDir->ReadFromParcel(parcel)) { in Unmarshalling() 40 delete bundleDir; in Unmarshalling() 41 bundleDir = nullptr; in Unmarshalling() 43 return bundleDir; in Unmarshalling()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ |
H A D | pre_scan_info.h | 102 std::string bundleDir; member 108 if (bundleDir == preScanInfo.bundleDir) { 117 return oldPreScanInfo.bundleDir == newPreScanInfo.bundleDir; 122 bundleDir.clear(); in Reset() 129 return "[ bundleDir = " + bundleDir in ToString()
|
H A D | bundle_exception_handler.h | 41 bool RemoveBundleAndDataDir(const std::string &bundleDir, const std::string &bundleOrMoudleDir,
|
H A D | installd_client.h | 42 ErrCode CreateBundleDir(const std::string &bundleDir); 102 ErrCode CleanBundleDataDir(const std::string &bundleDir);
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/overlay/ |
H A D | overlay_bundle_info.cpp | 36 bundleDir = Str16ToStr8(parcel.ReadString16()); in ReadFromParcel() 45 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String16, parcel, Str8ToStr16(bundleDir)); in Marshalling() 66 {BUNDLE_OVERLAY_BUNDLE_DIR, overlayBundleInfo.bundleDir}, in to_json() 87 overlayBundleInfo.bundleDir, in from_json()
|
/ohos5.0/foundation/filemanagement/dfs_service/utils/preference/src/ |
H A D | cloud_pref_impl.cpp | 36 std::string bundleDir = userIdDir + "/" + bundleName; in CloudPrefImpl() local 37 if (access(bundleDir.c_str(), F_OK) != 0) { in CloudPrefImpl() 38 if (mkdir(bundleDir.c_str(), STAT_MODE_DIR) != 0) { in CloudPrefImpl() 42 fileName_ = bundleDir + "/" + tableName; in CloudPrefImpl()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/overlay/ |
H A D | bundle_overlay_data_manager.cpp | 123 std::string bundleDir; in UpdateExternalOverlayInfo() local 125 GetBundleDir(moduleHapPath, bundleDir); in UpdateExternalOverlayInfo() 128 overlayBundleInfo.bundleDir = bundleDir; in UpdateExternalOverlayInfo() 194 ErrCode OverlayDataMgr::GetBundleDir(const std::string &moduleHapPath, std::string &bundleDir) const in GetBundleDir() 196 bundleDir = moduleHapPath; in GetBundleDir() 198 bundleDir = moduleHapPath.substr(0, moduleHapPath.length() - 1); in GetBundleDir() 200 size_t pos = bundleDir.find_last_of(ServiceConstants::PATH_SEPARATOR); in GetBundleDir() 205 bundleDir = bundleDir.substr(0, pos); in GetBundleDir() 206 APP_LOGD("bundleDir is %{public}s", bundleDir.c_str()); in GetBundleDir()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/app_service_fwk/ |
H A D | app_service_fwk_installer.cpp | 133 std::string bundleDir = in UnInstall() local 478 std::string bundleDir = in ExtractModule() local 480 result = MkdirIfNotExist(bundleDir); in ExtractModule() 483 newInfo.SetAppCodePath(bundleDir); in ExtractModule() 485 std::string versionDir = bundleDir in ExtractModule() 538 std::string bundleDir = in ExtractModule() local 540 result = MkdirIfNotExist(bundleDir); in ExtractModule() 543 oldInfo.SetAppCodePath(bundleDir); in ExtractModule() 545 std::string versionDir = bundleDir in ExtractModule() 984 std::string bundleDir = in RemoveLowerVersionSoDir() local [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_overlay_test/ |
H A D | bms_bundle_overlay_info_test.cpp | 43 "bundleDir": "testBundleDir", 93 EXPECT_EQ(info.bundleDir, TEST_BUNDLE_OVERLAY_BUNDLE_DIR); in CheckOverlayBundleInfo() 139 overlayBundleInfo.bundleDir = TEST_BUNDLE_OVERLAY_BUNDLE_DIR; 183 overlayBundleInfo.bundleDir = TEST_BUNDLE_OVERLAY_BUNDLE_DIR;
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/mock/src/ |
H A D | installd_client.cpp | 25 ErrCode InstalldClient::CreateBundleDir(const std::string &bundleDir) in CreateBundleDir() argument 27 if (bundleDir.empty()) { in CreateBundleDir() 32 return CallService(&IInstalld::CreateBundleDir, bundleDir); in CreateBundleDir() 151 ErrCode InstalldClient::CleanBundleDataDir(const std::string &bundleDir) in CleanBundleDataDir() argument 153 if (bundleDir.empty()) { in CleanBundleDataDir() 158 return CallService(&IInstalld::CleanBundleDataDir, bundleDir); in CleanBundleDataDir()
|
H A D | bundle_mgr_service_event_handler.cpp | 249 for (const auto& bundleDir : bundleDirs) { in AnalyzeHaps() local 251 if (!CheckAndParseHapFiles(bundleDir, isPreInstallApp, hapInfos) || hapInfos.empty()) { in AnalyzeHaps() 395 const std::string& bundleDir, Constants::AppType appType, int32_t userId) in ProcessSystemBundleInstall() argument 552 void BMSEventHandler::SavePreInstallException(const std::string& bundleDir) {} in SavePreInstallException() argument
|
H A D | mock_install_client.cpp | 20 ErrCode InstalldClient::CreateBundleDir(const std::string &bundleDir) in CreateBundleDir() argument 114 ErrCode InstalldClient::CleanBundleDataDir(const std::string &bundleDir) in CleanBundleDataDir() argument
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_event_handler_test/ |
H A D | bms_event_handler_test.cpp | 278 std::string bundleDir = CALL_MOCK_BUNDLE_DIR_SUCCESS; variable 281 handler->ProcessSystemBundleInstall(bundleDir, appType, userId); 282 EXPECT_TRUE(bundleDir.compare(RETURN_MOCK_BUNDLE_DIR_SUCCESS) == 0); 293 std::string bundleDir = CALL_MOCK_BUNDLE_DIR_FAILED; variable 296 handler->ProcessSystemBundleInstall(bundleDir, appType, userId); 297 EXPECT_TRUE(bundleDir.compare(RETURN_MOCK_BUNDLE_DIR_FAILED) == 0); 309 preScanInfo.bundleDir = CALL_MOCK_BUNDLE_DIR_SUCCESS; 325 preScanInfo.bundleDir = CALL_MOCK_BUNDLE_DIR_FAILED; 808 std::string bundleDir = CALL_MOCK_BUNDLE_DIR_FAILED; variable 810 handler->ProcessSystemSharedBundleInstall(bundleDir, appType); [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ipc/ |
H A D | installd_interface.h | 43 virtual ErrCode CreateBundleDir(const std::string &bundleDir) in CreateBundleDir() argument 141 virtual ErrCode RemoveBundleDataDir(const std::string &bundleDir, const int32_t userId, 180 virtual ErrCode CleanBundleDataDir(const std::string &bundleDir) in CleanBundleDataDir() argument
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_installd_client_test/ |
H A D | bms_installd_client_test.cpp | 95 std::string bundleDir = EMPTY_STRING; variable 96 ErrCode result = installClient_->CreateBundleDir(bundleDir); 109 std::string bundleDir = BUNDLE_DIR; variable 110 ErrCode result = installClient_->CreateBundleDir(bundleDir); 111 EXPECT_EQ(result, installClient_->CallService(&IInstalld::CreateBundleDir, bundleDir)); 573 std::string bundleDir = EMPTY_STRING; variable 574 ErrCode result = installClient_->CleanBundleDataDir(bundleDir); 587 std::string bundleDir = BUNDLE_DIR; variable 588 ErrCode result = installClient_->CleanBundleDataDir(bundleDir); 589 EXPECT_EQ(result, installClient_->CallService(&IInstalld::CleanBundleDataDir, bundleDir));
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/overlay/ |
H A D | overlay_bundle_info.h | 34 std::string bundleDir; member
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_install_daemon_test/ |
H A D | bms_install_daemon_test.cpp | 69 int CreateBundleDir(const std::string &bundleDir) const; 70 …int CreateBundleDataDir(const std::string &bundleDir, const int32_t userid, const int32_t uid, con… 72 int RemoveBundleDir(const std::string &bundleDir) const; 122 int BmsInstallDaemonTest::CreateBundleDir(const std::string &bundleDir) const in CreateBundleDir() 127 return InstalldClient::GetInstance()->CreateBundleDir(bundleDir); in CreateBundleDir() 146 int BmsInstallDaemonTest::RemoveBundleDir(const std::string &bundleDir) const in RemoveBundleDir() 151 return InstalldClient::GetInstance()->RemoveDir(bundleDir); in RemoveBundleDir()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/shared/ |
H A D | inner_shared_bundle_installer.cpp | 325 …std::string bundleDir = Constants::BUNDLE_CODE_DIR + ServiceConstants::PATH_SEPARATOR + bundleName… in ExtractSharedBundles() local 326 result = MkdirIfNotExist(bundleDir); in ExtractSharedBundles() 328 newInfo.SetAppCodePath(bundleDir); in ExtractSharedBundles() 331 std::string versionDir = bundleDir + ServiceConstants::PATH_SEPARATOR + HSP_VERSION_PREFIX in ExtractSharedBundles()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/installd/ |
H A D | installd_host_impl.h | 36 virtual ErrCode CreateBundleDir(const std::string &bundleDir) override; 122 virtual ErrCode CleanBundleDataDir(const std::string &bundleDir) override;
|