/foundation/ability/ability_runtime/test/unittest/file_path_utils_test/ |
H A D | file_path_utils_test.cpp | 246 const std::string& curJsModulePath = "/data/storage/el1/bundle/curJsModulePath"; in HWTEST_F() local 248 std::string newJsModulePath = GetInstallPath(curJsModulePath, module); in HWTEST_F() 260 const std::string& curJsModulePath = "/data/bundle"; in HWTEST_F() local 262 std::string newJsModulePath = GetInstallPath(curJsModulePath, module); in HWTEST_F() 274 const std::string& curJsModulePath = "/data/bundlescurJsModulePath"; in HWTEST_F() local 276 std::string newJsModulePath = GetInstallPath(curJsModulePath, module); in HWTEST_F() 288 const std::string& curJsModulePath = "/data/bundles/curJsModulePath/module"; in HWTEST_F() local 290 std::string newJsModulePath = GetInstallPath(curJsModulePath, modul in HWTEST_F() 302 const std::string& curJsModulePath = "/data/bundles/curJsModulePath/module"; HWTEST_F() local 316 const std::string& curJsModulePath = "/data/storage/el1/bundle/module/curJsModulePath"; HWTEST_F() local 330 const std::string& curJsModulePath = "/data/bundles/curJsModulePath/module"; HWTEST_F() local 344 const std::string& curJsModulePath = "/data/storage/el1/bundle/module/"; HWTEST_F() local 400 const std::string& curJsModulePath = ""; HWTEST_F() local 415 const std::string& curJsModulePath = ""; HWTEST_F() local 430 const std::string& curJsModulePath = "/data/storage/el1/bundle/curJsModulePath"; HWTEST_F() local 445 const std::string& curJsModulePath = ""; HWTEST_F() local 460 const std::string& curJsModulePath = ""; HWTEST_F() local 475 const std::string& curJsModulePath = "/data/storage/el1/bundle/module/curJsModulePath"; HWTEST_F() local 490 const std::string& curJsModulePath = ""; HWTEST_F() local 505 const std::string& curJsModulePath = "/data/bundles/curJsModulePath/module"; HWTEST_F() local 520 const std::string& curJsModulePath = ""; HWTEST_F() local 535 const std::string& curJsModulePath = ""; HWTEST_F() local 550 const std::string& curJsModulePath = ""; HWTEST_F() local 565 const std::string& curJsModulePath = "a"; HWTEST_F() local [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/utils/ |
H A D | jsi_module_searcher.h | 32 std::string operator()(const std::string& curJsModulePath, const std::string& newJsModuleUri) const; 36 std::string GetInstallPath(const std::string& curJsModulePath, bool module = true) const; 37 std::string MakeNewJsModulePath(const std::string& curJsModulePath, const std::string& newJsModuleUri) const; 41 std::string FindNpmPackage(const std::string& curJsModulePath, const std::string& npmPackage) const; 42 std::string ParseOhmUri(const std::string& curJsModulePath, const std::string& newJsModuleUri) const;
|
H A D | jsi_module_searcher.cpp | 129 std::string JsiModuleSearcher::operator()(const std::string& curJsModulePath, const std::string& newJsModuleUri) const in operator ()() argument 133 if (curJsModulePath.empty() || newJsModuleUri.empty()) { in operator ()() 139 newJsModulePath = MakeNewJsModulePath(curJsModulePath, newJsModuleUri); in operator ()() 143 newJsModulePath = ParseOhmUri(curJsModulePath, newJsModuleUri); in operator ()() 145 newJsModulePath = FindNpmPackage(curJsModulePath, newJsModuleUri); in operator ()() 150 newJsModulePath = FindNpmPackage(curJsModulePath, newJsModuleUri); in operator ()() 180 std::string JsiModuleSearcher::GetInstallPath(const std::string& curJsModulePath, bool module) const in GetInstallPath() argument 183 if (StringUtils::StartWith(curJsModulePath, bundleInstallPath_.c_str(), bundleInstallPath_.length())) { in GetInstallPath() 188 pos = curJsModulePath.find(SEPERATOR, pos + 1); in GetInstallPath() 194 return curJsModulePath in GetInstallPath() 197 MakeNewJsModulePath( const std::string& curJsModulePath, const std::string& newJsModuleUri) const MakeNewJsModulePath() argument 295 FindNpmPackage(const std::string& curJsModulePath, const std::string& npmPackage) const FindNpmPackage() argument 308 ParseOhmUri(const std::string& curJsModulePath, const std::string& newJsModuleUri) const ParseOhmUri() argument [all...] |
/foundation/ability/ability_base/interfaces/kits/native/extractortool/src/ |
H A D | file_path_utils.cpp | 138 std::string GetInstallPath(const std::string& curJsModulePath, bool module) in GetInstallPath() argument 141 if (StringStartWith(curJsModulePath, BUNDLE_INSTALL_PATH, std::string(BUNDLE_INSTALL_PATH).length())) { in GetInstallPath() 144 if (!StringStartWith(curJsModulePath, OTHER_BUNDLE_INSTALL_PATH, in GetInstallPath() 149 pos = curJsModulePath.find('/', std::string(OTHER_BUNDLE_INSTALL_PATH).length()); in GetInstallPath() 156 pos = curJsModulePath.find('/', pos + 1); in GetInstallPath() 162 return curJsModulePath.substr(0, pos + 1); in GetInstallPath() 166 const std::string& curJsModulePath, const std::string& newJsModuleUri) in MakeNewJsModulePath() 168 std::string moduleInstallPath = GetInstallPath(curJsModulePath, true); in MakeNewJsModulePath() 174 SplitString(curJsModulePath, pathVector, moduleInstallPath.length()); in MakeNewJsModulePath() 272 std::string FindNpmPackage(const std::string& curJsModulePath, cons argument 165 MakeNewJsModulePath( const std::string& curJsModulePath, const std::string& newJsModuleUri) MakeNewJsModulePath() argument 317 ParseOhmUri( const std::string& originBundleName, const std::string& curJsModulePath, const std::string& newJsModuleUri) ParseOhmUri() argument 375 NormalizeUri( const std::string& bundleName, const std::string& curJsModulePath, const std::string& newJsModuleUri) NormalizeUri() argument [all...] |
/foundation/ability/ability_base/interfaces/kits/native/extractortool/include/ |
H A D | file_path_utils.h | 30 std::string GetInstallPath(const std::string& curJsModulePath, bool module = true); 31 std::string MakeNewJsModulePath(const std::string& curJsModulePath, const std::string& newJsModuleUri); 35 std::string FindNpmPackage(const std::string& curJsModulePath, const std::string& npmPackage); 36 std::string ParseOhmUri(const std::string& originBundleName, const std::string& curJsModulePath, 39 const std::string& bundleName, const std::string& curJsModulePath, const std::string& newJsModuleUri);
|
/foundation/ability/ability_runtime/frameworks/native/runtime/ |
H A D | js_module_searcher.cpp | 27 std::string JsModuleSearcher::operator()(const std::string& curJsModulePath, const std::string& newJsModuleUri) const in operator ()() argument 29 return AbilityBase::NormalizeUri(bundleName_, curJsModulePath, newJsModuleUri); in operator ()()
|
H A D | js_module_searcher.h | 35 std::string operator()(const std::string& curJsModulePath, const std::string& newJsModuleUri) const;
|