Home
last modified time | relevance | path

Searched refs:bundlePaths (Results 1 - 25 of 38) sorted by relevance

12

/foundation/bundlemanager/bundle_framework/test/systemtest/common/bms/bms_overlay_install_test/
H A Dbms_overlay_internal_install_test.cpp290 std::vector<std::string> bundlePaths = { INTERNAL_OVERLAY_TEST1_PATH }; in HWTEST_F() local
291 ErrCode ret = InstallOverlayBundle(bundlePaths); in HWTEST_F()
309 std::vector<std::string> bundlePaths = { INTERNAL_OVERLAY_TEST2_PATH1 }; in HWTEST_F() local
310 ErrCode ret = InstallOverlayBundle(bundlePaths); in HWTEST_F()
326 std::vector<std::string> bundlePaths = { INTERNAL_OVERLAY_TEST2_PATH2 }; in HWTEST_F() local
327 ErrCode ret = InstallOverlayBundle(bundlePaths); in HWTEST_F()
343 std::vector<std::string> bundlePaths = { INTERNAL_OVERLAY_TEST3_PATH }; in HWTEST_F() local
344 ErrCode ret = InstallOverlayBundle(bundlePaths); in HWTEST_F()
360 std::vector<std::string> bundlePaths = { INTERNAL_OVERLAY_TEST4_PATH }; in HWTEST_F() local
361 ErrCode ret = InstallOverlayBundle(bundlePaths); in HWTEST_F()
384 std::vector<std::string> bundlePaths = { INTERNAL_OVERLAY_TEST5_PATH }; HWTEST_F() local
407 std::vector<std::string> bundlePaths = { INTERNAL_OVERLAY_TEST6_PATH }; HWTEST_F() local
431 std::vector<std::string> bundlePaths = { TARGET_MODULE_ENTRY_PATH }; HWTEST_F() local
460 std::vector<std::string> bundlePaths = { INTERNAL_OVERLAY_TEST8_PATH }; HWTEST_F() local
488 std::vector<std::string> bundlePaths = { INTERNAL_OVERLAY_TEST9_PATH }; HWTEST_F() local
516 std::vector<std::string> bundlePaths = { INTERNAL_OVERLAY_TEST10_PATH }; HWTEST_F() local
544 std::vector<std::string> bundlePaths = { INTERNAL_OVERLAY_TEST12_PATH1 }; HWTEST_F() local
571 std::vector<std::string> bundlePaths = { INTERNAL_OVERLAY_TEST14_PATH1 }; HWTEST_F() local
601 std::vector<std::string> bundlePaths = { TARGET_MODULE_ENTRY_PATH }; HWTEST_F() local
625 std::vector<std::string> bundlePaths = { INTERNAL_OVERLAY_TEST16_PATH }; HWTEST_F() local
645 std::vector<std::string> bundlePaths = { INTERNAL_OVERLAY_TEST17_PATH1 }; HWTEST_F() local
675 std::vector<std::string> bundlePaths = { INTERNAL_OVERLAY_TEST18_PATH1 }; HWTEST_F() local
703 std::vector<std::string> bundlePaths = { INTERNAL_OVERLAY_TEST19_PATH1, INTERNAL_OVERLAY_TEST19_PATH2 }; HWTEST_F() local
750 std::vector<std::string> bundlePaths = { INTERNAL_OVERLAY_TEST19_PATH1 }; HWTEST_F() local
797 std::vector<std::string> bundlePaths = { INTERNAL_OVERLAY_TEST19_PATH1 }; HWTEST_F() local
836 std::vector<std::string> bundlePaths = { INTERNAL_OVERLAY_TEST19_PATH1 }; HWTEST_F() local
880 std::vector<std::string> bundlePaths = { INTERNAL_OVERLAY_TEST19_PATH1 }; HWTEST_F() local
924 std::vector<std::string> bundlePaths = { INTERNAL_OVERLAY_TEST24_PATH1 }; HWTEST_F() local
965 std::vector<std::string> bundlePaths = { TARGET_MODULE_ENTRY_PATH }; HWTEST_F() local
1010 std::vector<std::string> bundlePaths = { TARGET_MODULE_ENTRY_PATH }; HWTEST_F() local
1055 std::vector<std::string> bundlePaths = { INTERNAL_OVERLAY_TEST27_PATH }; HWTEST_F() local
[all...]
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_application/bundlefileutil_fuzzer/
H A Dbundlefileutil_fuzzer.cpp30 std::vector<std::string> bundlePaths; in DoSomethingInterestingWithMyAPI() local
31 bundlePaths.push_back(bundlePath); in DoSomethingInterestingWithMyAPI()
35 fileUtil.CheckFilePath(bundlePaths, realPaths); in DoSomethingInterestingWithMyAPI()
/foundation/bundlemanager/bundle_framework/common/utils/src/
H A Dbundle_file_util.cpp78 bool BundleFileUtil::CheckFilePath(const std::vector<std::string> &bundlePaths, std::vector<std::string> &realPaths) in CheckFilePath() argument
80 // there are three cases for bundlePaths: in CheckFilePath()
81 // 1. one bundle direction in the bundlePaths, some hap files under this bundle direction. in CheckFilePath()
82 // 2. one hap direction in the bundlePaths. in CheckFilePath()
83 // 3. some hap file directions in the bundlePaths. in CheckFilePath()
85 if (bundlePaths.empty()) { in CheckFilePath()
90 if (bundlePaths.size() == 1) { in CheckFilePath()
91 APP_LOGD("bundlePaths only has one element"); in CheckFilePath()
92 const std::string& bundlePath = bundlePaths.front(); in CheckFilePath()
95 if (CheckFilePath(bundlePaths in CheckFilePath()
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/quick_fix/state/src/
H A Dquick_fix_deploy_state.cpp34 std::vector<std::string> bundlePaths; in Process() local
35 std::unique_ptr<QuickFixDeployer> deployer = std::make_unique<QuickFixDeployer>(bundlePaths); in Process()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/basebundleinstallercheckmultiplehapssigninfo_fuzzer/
H A Dbasebundleinstallercheckmultiplehapssigninfo_fuzzer.cpp31 std::vector<std::string> bundlePaths; in DoSomethingInterestingWithMyAPI() local
34 auto ret1 = basebundleinstall.CheckMultipleHapsSignInfo(bundlePaths, installParam, hapVerifyRes); in DoSomethingInterestingWithMyAPI()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/basebundleinstallerchecksyscap_fuzzer/
H A Dbasebundleinstallerchecksyscap_fuzzer.cpp31 std::vector<std::string> bundlePaths; in DoSomethingInterestingWithMyAPI() local
32 auto ret1 = basebundleinstall.CheckSysCap(bundlePaths); in DoSomethingInterestingWithMyAPI()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/basebundleinstallerinstallbundlevector_fuzzer/
H A Dbasebundleinstallerinstallbundlevector_fuzzer.cpp31 std::vector<std::string> bundlePaths; in DoSomethingInterestingWithMyAPI() local
34 auto ret1 = basebundleinstall.InstallBundle(bundlePaths, installParam, appType); in DoSomethingInterestingWithMyAPI()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/basebundleinstallerprocessbundleinstall_fuzzer/
H A Dbasebundleinstallerprocessbundleinstall_fuzzer.cpp31 std::vector<std::string> bundlePaths; in DoSomethingInterestingWithMyAPI() local
35 auto ret1 = basebundleinstall.ProcessBundleInstall(bundlePaths, installParam, appType, uid); in DoSomethingInterestingWithMyAPI()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/quickfixdeployer_fuzzer/
H A Dquickfixdeployer_fuzzer.cpp65 std::vector<std::string> bundlePaths; in DoSomethingInterestingWithMyAPI() local
66 QuickFixDeployer quickFixDeployer(bundlePaths, false, targetPath); in DoSomethingInterestingWithMyAPI()
110 std::vector<std::string> bundlePaths; in DoSomething2() local
112 QuickFixDeployer quickFixDeployer(bundlePaths, false, hqfSoPath); in DoSomething2()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/shared/
H A Dinner_shared_bundle_installer.cpp63 std::vector<std::string> bundlePaths; in ParseFiles() local
64 result = ObtainHspFileAndSignatureFilePath(inBundlePaths, bundlePaths, signatureFileDir_); in ParseFiles()
68 result = bundleInstallChecker_->CheckSysCap(bundlePaths); in ParseFiles()
75 result = bundleInstallChecker_->CheckMultipleHapsSignInfo(bundlePaths, hapVerifyResults); in ParseFiles()
79 result = bundleInstallChecker_->ParseHapFiles(bundlePaths, checkParam, hapVerifyResults, parsedBundles_); in ParseFiles()
533 ErrCode InnerSharedBundleInstaller::CopyHspToSecurityDir(std::vector<std::string> &bundlePaths) in CopyHspToSecurityDir() argument
535 for (size_t index = 0; index < bundlePaths.size(); ++index) { in CopyHspToSecurityDir()
536 auto destination = BundleUtil::CopyFileToSecurityDir(bundlePaths[index], DirType::STREAM_INSTALL_DIR, in CopyHspToSecurityDir()
539 APP_LOGE("copy file %{public}s to security dir failed", bundlePaths[index].c_str()); in CopyHspToSecurityDir()
542 bundlePaths[inde in CopyHspToSecurityDir()
547 ObtainHspFileAndSignatureFilePath(const std::vector<std::string> &inBundlePaths, std::vector<std::string> &bundlePaths, std::string &signatureFilePath) ObtainHspFileAndSignatureFilePath() argument
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_data_group_test/
H A Dbms_bundle_data_group_test.cpp298 std::vector<std::string> bundlePaths; in HWTEST_F() local
299 bundlePaths.emplace_back(TEST_HAP_PATH); in HWTEST_F()
301 installer.ProcessDataGroupInfo(bundlePaths, infos, USERID, hapVerifyRes); in HWTEST_F()
316 std::vector<std::string> bundlePaths; in HWTEST_F() local
317 bundlePaths.emplace_back(TEST_HAP_PATH); in HWTEST_F()
319 installer.ProcessDataGroupInfo(bundlePaths, infos, USERID, hapVerifyRes); in HWTEST_F()
335 std::vector<std::string> bundlePaths; in HWTEST_F() local
336 bundlePaths.emplace_back(TEST_HAP_PATH); in HWTEST_F()
341 installer.ProcessDataGroupInfo(bundlePaths, infos, USERID, hapVerifyRes); in HWTEST_F()
/foundation/bundlemanager/bundle_tool/test/unittest/bm/
H A Dbm_command_test.cpp1359 std::vector<std::string> bundlePaths; in HWTEST_F() local
1360 auto res = cmd.GetBundlePath(param, bundlePaths); in HWTEST_F()
1364 res = cmd.GetBundlePath(param, bundlePaths); in HWTEST_F()
1368 res = cmd.GetBundlePath(param, bundlePaths); in HWTEST_F()
1372 res = cmd.GetBundlePath(param, bundlePaths); in HWTEST_F()
1376 res = cmd.GetBundlePath(param, bundlePaths); in HWTEST_F()
1380 res = cmd.GetBundlePath(param, bundlePaths); in HWTEST_F()
1384 res = cmd.GetBundlePath(param, bundlePaths); in HWTEST_F()
1388 res = cmd.GetBundlePath(param, bundlePaths); in HWTEST_F()
1392 res = cmd.GetBundlePath(param, bundlePaths); in HWTEST_F()
[all...]
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/quickfixchecker_fuzzer/
H A Dquickfixchecker_fuzzer.cpp61 std::vector<std::string> bundlePaths; in DoSomethingInterestingWithMyAPI() local
63 quickFixChecker.CheckMultipleHqfsSignInfo(bundlePaths, hapVerifyRes); in DoSomethingInterestingWithMyAPI()
/foundation/bundlemanager/bundle_framework/common/utils/include/
H A Dbundle_file_util.h27 static bool CheckFilePath(const std::vector<std::string> &bundlePaths, std::vector<std::string> &realPaths);
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/shared/
H A Dinner_shared_bundle_installer.h108 ErrCode CopyHspToSecurityDir(std::vector<std::string> &bundlePaths);
110 std::vector<std::string> &bundlePaths, std::string &signatureFilePath);
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_event_handler_test/
H A Dmock_system_bundle_installer.cpp194 std::vector<std::string> bundlePaths{}; in InstallSystemSharedBundle()
195 ErrCode result = InstallBundle(bundlePaths, installParam, appType); in InstallSystemSharedBundle()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/quick_fix/
H A Dquick_fix_checker.h33 const std::vector<std::string> &bundlePaths,
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/
H A Dbundle_install_checker.h59 * @param bundlePaths Indicates the file paths of all HAP packages.
62 ErrCode CheckSysCap(const std::vector<std::string> &bundlePaths);
66 * @param bundlePaths Indicates the file paths of all HAP packages.
71 const std::vector<std::string> &bundlePaths,
110 * @param bundlePaths Indicates the file paths of all HAP packages.
117 const std::vector<std::string> &bundlePaths,
H A Dbase_bundle_installer.h91 * @param bundlePaths Indicates the paths for storing the HAP file sof the application
97 ErrCode InstallBundle(const std::vector<std::string> &bundlePaths, const InstallParam &installParam,
201 ErrCode ProcessBundleInstall(const std::vector<std::string> &bundlePaths, const InstallParam &installParam,
359 * @param bundlePaths Indicates the file paths of all HAP packages.
362 ErrCode CheckSysCap(const std::vector<std::string> &bundlePaths);
365 * @param bundlePaths Indicates the file paths of all HAP packages.
371 const std::vector<std::string> &bundlePaths,
376 * @param bundlePaths Indicates the file paths of all HAP packages.
384 const std::vector<std::string> &bundlePaths,
635 ErrCode CopyHapsToSecurityDir(const InstallParam &installParam, std::vector<std::string> &bundlePaths);
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_app_provision_info_test/
H A Dbms_bundle_app_provision_info_test.cpp983 std::vector<std::string> bundlePaths = {"stream_install"}; in HWTEST_F() local
984 auto ret = installer.CopyHspToSecurityDir(bundlePaths); in HWTEST_F()
987 bundlePaths.clear(); in HWTEST_F()
988 bundlePaths.emplace_back(HSP_FILE_PATH1); in HWTEST_F()
989 ret = installer.CopyHspToSecurityDir(bundlePaths); in HWTEST_F()
1002 std::vector<std::string> bundlePaths; in HWTEST_F() local
1004 auto ret = installer.ObtainHspFileAndSignatureFilePath(inBundlePaths, bundlePaths, signatureFilePath); in HWTEST_F()
1008 ret = installer.ObtainHspFileAndSignatureFilePath(inBundlePaths, bundlePaths, signatureFilePath); in HWTEST_F()
1021 std::vector<std::string> bundlePaths; in HWTEST_F() local
1023 auto ret = installer.ObtainHspFileAndSignatureFilePath(inBundlePaths, bundlePaths, signatureFilePat in HWTEST_F()
1040 std::vector<std::string> bundlePaths; HWTEST_F() local
[all...]
/foundation/bundlemanager/bundle_tool/frameworks/include/
H A Dbundle_command.h276 int32_t InstallOperation(const std::vector<std::string> &bundlePaths, InstallParam &installParam,
285 ErrCode GetBundlePath(const std::string& param, std::vector<std::string>& bundlePaths) const;
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Dbundle_util.cpp99 ErrCode BundleUtil::CheckFilePath(const std::vector<std::string> &bundlePaths, std::vector<std::string> &realPaths) in CheckFilePath() argument
102 // there are three cases for bundlePaths: in CheckFilePath()
103 // 1. one bundle direction in the bundlePaths, some hap files under this bundle direction. in CheckFilePath()
104 // 2. one hap direction in the bundlePaths. in CheckFilePath()
105 // 3. some hap file directions in the bundlePaths. in CheckFilePath()
107 if (bundlePaths.empty()) { in CheckFilePath()
113 if (bundlePaths.size() == 1) { in CheckFilePath()
115 std::string bundlePath = bundlePaths.front(); in CheckFilePath()
120 APP_LOGE("GetHapFilesFromBundlePath failed with bundlePath:%{public}s", bundlePaths.front().c_str()); in CheckFilePath()
124 if ((s.st_mode & S_IFREG) && (ret = CheckFilePath(bundlePaths in CheckFilePath()
[all...]
H A Dbundle_install_checker.cpp145 ErrCode BundleInstallChecker::CheckSysCap(const std::vector<std::string> &bundlePaths) in CheckSysCap() argument
148 if (bundlePaths.empty()) { in CheckSysCap()
149 LOG_NOFUNC_E(BMS_TAG_INSTALLER, "empty bundlePaths check hap syscaps fail"); in CheckSysCap()
155 for (const auto &bundlePath : bundlePaths) { in CheckSysCap()
178 const std::vector<std::string> &bundlePaths, in CheckMultipleHapsSignInfo()
182 if (bundlePaths.empty()) { in CheckMultipleHapsSignInfo()
183 LOG_E(BMS_TAG_INSTALLER, "check hap sign info failed due to empty bundlePaths"); in CheckMultipleHapsSignInfo()
186 for (const std::string &bundlePath : bundlePaths) { in CheckMultipleHapsSignInfo()
339 const std::vector<std::string> &bundlePaths, in ParseHapFiles()
346 for (uint32_t i = 0; i < bundlePaths in ParseHapFiles()
177 CheckMultipleHapsSignInfo( const std::vector<std::string> &bundlePaths, std::vector<Security::Verify::HapVerifyResult>& hapVerifyRes) CheckMultipleHapsSignInfo() argument
338 ParseHapFiles( const std::vector<std::string> &bundlePaths, const InstallCheckParam &checkParam, std::vector<Security::Verify::HapVerifyResult> &hapVerifyRes, std::unordered_map<std::string, InnerBundleInfo> &infos) ParseHapFiles() argument
[all...]
H A Dsystem_bundle_installer.cpp57 std::vector<std::string> bundlePaths{}; in InstallSystemSharedBundle()
58 ErrCode result = InstallBundle(bundlePaths, installParam, appType); in InstallSystemSharedBundle()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/quick_fix/
H A Dquick_fix_checker.cpp26 const std::vector<std::string> &bundlePaths, in CheckMultipleHqfsSignInfo()
31 return checker.CheckMultipleHapsSignInfo(bundlePaths, hapVerifyRes); in CheckMultipleHqfsSignInfo()
25 CheckMultipleHqfsSignInfo( const std::vector<std::string> &bundlePaths, std::vector<Security::Verify::HapVerifyResult> &hapVerifyRes) CheckMultipleHqfsSignInfo() argument

Completed in 18 milliseconds

12