/foundation/ability/ability_base/test/unittest/extractor/ |
H A D | extractor_test.cpp | 88 std::string loadPath; in HWTEST_F() local 89 std::shared_ptr<Extractor> extractor1 = std::make_shared<Extractor>(loadPath); in HWTEST_F() 107 std::string loadPath; in HWTEST_F() local 108 std::shared_ptr<Extractor> extractor1 = ExtractorUtil::GetExtractor(loadPath, newCreate); in HWTEST_F() 112 loadPath = ERROR_HAP_PATH; in HWTEST_F() 113 std::shared_ptr<Extractor> extractor2 = ExtractorUtil::GetExtractor(loadPath, newCreate); in HWTEST_F() 120 loadPath = TEST_THIRD_HAP_PATH; in HWTEST_F() 121 std::shared_ptr<Extractor> extractor4 = ExtractorUtil::GetExtractor(loadPath, newCreate); in HWTEST_F() 136 std::string loadPath; in HWTEST_F() local 137 std::string loadFilePath = ExtractorUtil::GetLoadFilePath(loadPath); in HWTEST_F() [all...] |
/foundation/arkui/napi/module_manager/ |
H A D | native_module_manager.cpp | 231 std::string loadPath; in GetModuleFileName() local 237 return loadPath; in GetModuleFileName() 245 return loadPath; in GetModuleFileName() 247 loadPath = nativeModulePath[0]; in GetModuleFileName() 250 loadPath = std::string(appLibPathMap_[pathKey]) + "/" + nativeModulePath[0]; in GetModuleFileName() 253 return loadPath; in GetModuleFileName() 1001 char* loadPath = nativeModulePath[0]; in FindNativeModuleByDisk() local 1002 HILOG_DEBUG("moduleName is %{public}s. get primary module path is %{public}s", moduleName, loadPath); in FindNativeModuleByDisk() 1005 LIBHANDLE lib = LoadModuleLibrary(moduleKey, loadPath, path, isAppModule, errInfo, errReason0); in FindNativeModuleByDisk() 1008 loadPath in FindNativeModuleByDisk() [all...] |
/foundation/ability/ability_runtime/frameworks/native/appkit/app/ |
H A D | context_container.cpp | 337 std::string loadPath; in LoadResources() local 339 loadPath = hapModuleInfo.hapPath; in LoadResources() 341 loadPath = hapModuleInfo.resourcePath; in LoadResources() 343 if (loadPath.empty()) { in LoadResources() 346 loadPath = std::regex_replace(loadPath, pattern, AbilityBase::Constants::LOCAL_BUNDLES); in LoadResources() 347 TAG_LOGD(AAFwkTag::APPKIT, "loadPath: %{private}s", loadPath.c_str()); in LoadResources() 348 if (!resourceManager->AddResource(loadPath.c_str())) { in LoadResources()
|
H A D | main_thread.cpp | 1047 std::string loadPath = in OnStartAbility() local 1049 if (!loadPath.empty()) { in OnStartAbility() 1050 loadPath = std::regex_replace(loadPath, pattern, std::string(LOCAL_CODE_PATH)); in OnStartAbility() 1051 TAG_LOGD(AAFwkTag::APPKIT, "ModuleResPath: %{public}s", loadPath.c_str()); in OnStartAbility() 1054 if (!resourceManager->AddResource(loadPath.c_str())) { in OnStartAbility() 1060 if (!resourceManager->AddResource(loadPath, overlayPaths)) { in OnStartAbility() 1063 SubscribeOverlayChange(bundleName, loadPath, resourceManager, entryHapModuleInfo); in OnStartAbility() 1069 loadPath.c_str(), hqfPath.c_str()); in OnStartAbility() 1070 if (!resourceManager->AddPatchResource(loadPath in OnStartAbility() 1096 SubscribeOverlayChange(const std::string &bundleName, const std::string &loadPath, std::shared_ptr<Global::Resource::ResourceManager> &resourceManager, const AppExecFwk::HapModuleInfo &entryHapModuleInfo) SubscribeOverlayChange() argument 1121 OnOverlayChanged(const EventFwk::CommonEventData &data, const std::shared_ptr<Global::Resource::ResourceManager> &resourceManager, const std::string &bundleName, const std::string &moduleName, const std::string &loadPath) OnOverlayChanged() argument 1143 HandleOnOverlayChanged(const EventFwk::CommonEventData &data, const std::shared_ptr<Global::Resource::ResourceManager> &resourceManager, const std::string &bundleName, const std::string &moduleName, const std::string &loadPath) HandleOnOverlayChanged() argument 1680 std::string loadPath = HandleLaunchApplication() local [all...] |
/foundation/ability/ability_runtime/frameworks/native/appkit/ability_runtime/context/ |
H A D | context_impl.cpp | 873 std::string loadPath = in InitResourceManagerInner() local 875 if (loadPath.empty()) { in InitResourceManagerInner() 876 TAG_LOGD(AAFwkTag::APPKIT, "loadPath is empty"); in InitResourceManagerInner() 880 loadPath = std::regex_replace(loadPath, inner_pattern, LOCAL_CODE_PATH); in InitResourceManagerInner() 882 loadPath = std::regex_replace(loadPath, hsp_pattern, hsp_sandbox); in InitResourceManagerInner() 886 loadPath = std::regex_replace(loadPath, outer_pattern, LOCAL_BUNDLES); in InitResourceManagerInner() 889 TAG_LOGD(AAFwkTag::APPKIT, "loadPath in InitResourceManagerInner() 900 AddPatchResource(std::shared_ptr<Global::Resource::ResourceManager> &resourceManager, const std::string &loadPath, const std::string &hqfPath, bool isDebug, std::shared_ptr<Context> inputContext) AddPatchResource() argument 915 GetOverlayPath(std::shared_ptr<Global::Resource::ResourceManager> &resourceManager, const std::string &bundleName, const std::string &moduleName, std::string &loadPath, bool currentBundle, std::shared_ptr<Context> inputContext) GetOverlayPath() argument 954 SubscribeToOverlayEvents(std::shared_ptr<Global::Resource::ResourceManager> &resourceManager, const std::string &name, const std::string &hapModuleName, std::string &loadPath, std::vector<AppExecFwk::OverlayModuleInfo> overlayModuleInfos) SubscribeToOverlayEvents() argument 1369 OnOverlayChanged(const EventFwk::CommonEventData &data, const std::shared_ptr<Global::Resource::ResourceManager> &resourceManager, const std::string &bundleName, const std::string &moduleName, const std::string &loadPath) OnOverlayChanged() argument [all...] |
/foundation/ability/ability_base/interfaces/kits/native/extractortool/src/ |
H A D | extractor.cpp | 252 std::string loadPath; in GetLoadFilePath() local 254 loadPath = GetLoadPath(hapPath); in GetLoadFilePath() 256 loadPath = hapPath; in GetLoadFilePath() 258 return loadPath; in GetLoadFilePath()
|
H A D | file_path_utils.cpp | 445 std::string loadPath = std::regex_replace(hapPath, hapPattern, ""); in GetLoadPath() local 446 loadPath = std::string(Constants::LOCAL_CODE_PATH) + std::string(Constants::FILE_SEPARATOR) + in GetLoadPath() 447 loadPath.substr(loadPath.find(std::string(Constants::FILE_SEPARATOR)) + 1); in GetLoadPath() 448 return loadPath; in GetLoadPath()
|
/foundation/arkui/ace_engine/adapter/ohos/entrance/ |
H A D | utils.cpp | 67 std::string loadPath = AbilityBase::ExtractorUtil::GetLoadFilePath(hapPath); in GetStringFromHap() local 68 std::shared_ptr<AbilityBase::Extractor> extractor = AbilityBase::ExtractorUtil::GetExtractor(loadPath, newCreate); in GetStringFromHap()
|
/foundation/ability/ability_runtime/frameworks/native/runtime/ |
H A D | js_worker.cpp | 398 std::string loadPath = ExtractorUtil::GetLoadFilePath(newHapPath); in ReadFilePathData() local 399 std::shared_ptr<Extractor> extractor = ExtractorUtil::GetExtractor(loadPath, newCreate); in ReadFilePathData() 401 TAG_LOGE(AAFwkTag::JSRUNTIME, "LoadPath %{private}s GetExtractor failed", loadPath.c_str()); in ReadFilePathData() 469 std::string loadPath = ExtractorUtil::GetLoadFilePath((workerInfo_->hapPath).GetOriginString()); in GetAmi() local 471 std::shared_ptr<Extractor> extractor = ExtractorUtil::GetExtractor(loadPath, newCreate); in GetAmi() 473 TAG_LOGE(AAFwkTag::JSRUNTIME, "loadPath %{private}s GetExtractor failed", loadPath.c_str()); in GetAmi()
|
H A D | js_runtime_lite.cpp | 295 std::string loadPath = ExtractorUtil::GetLoadFilePath(options.hapPath); in LoadAotFile() local 296 std::shared_ptr<Extractor> extractor = ExtractorUtil::GetExtractor(loadPath, newCreate, true); in LoadAotFile()
|
H A D | js_runtime.cpp | 632 std::string loadPath = ExtractorUtil::GetLoadFilePath(options.hapPath); in LoadAotFile() local 633 std::shared_ptr<Extractor> extractor = ExtractorUtil::GetExtractor(loadPath, newCreate, true); in LoadAotFile() 1079 std::string loadPath = ExtractorUtil::GetLoadFilePath(hapPath); in RunScript() local 1080 std::shared_ptr<Extractor> extractor = ExtractorUtil::GetExtractor(loadPath, newCreate, true); in RunScript() 1089 resourceManager->AddResource(loadPath.c_str()); in RunScript()
|
/foundation/ability/ability_runtime/interfaces/kits/native/appkit/ability_runtime/context/ |
H A D | context_impl.h | 438 const std::string &moduleName, const std::string &loadPath); 461 const std::string &bundleName, const std::string &moduleName, std::string &loadPath, bool currentBundle, 464 const std::string &loadPath, const std::string &hqfPath, bool isDebug, 467 const std::string &name, const std::string &hapModuleName, std::string &loadPath,
|
/foundation/ability/ability_runtime/interfaces/kits/native/appkit/app/ |
H A D | main_thread.h | 602 const std::string &moduleName, const std::string &loadPath); 606 const std::string &moduleName, const std::string &loadPath); 713 void SubscribeOverlayChange(const std::string &bundleName, const std::string &loadPath,
|
/foundation/ability/ability_runtime/test/unittest/appkit/main_thread_test/ |
H A D | main_thread_test.cpp | 1509 std::string loadPath = "test"; in HWTEST_F() local 1515 bundleName, moduleName, loadPath, overlayPaths, *resConfig, appType)); in HWTEST_F() 2183 std::string loadPath = "test"; in HWTEST_F() local 2198 mainThread_->OnOverlayChanged(data, resourceManager, bundleName, moduleName, loadPath); in HWTEST_F() 2214 std::string loadPath = "test"; in HWTEST_F() local 2229 mainThread_->HandleOnOverlayChanged(data, resourceManager, bundleName, moduleName, loadPath); in HWTEST_F()
|
/foundation/ability/ability_runtime/services/abilitymgr/src/ |
H A D | ability_record.cpp | 1021 std::string loadPath; in CreateResourceManager() local 1023 loadPath = abilityInfo_.hapPath; in CreateResourceManager() 1025 loadPath = abilityInfo_.resourcePath; in CreateResourceManager() 1028 if (loadPath.empty()) { in CreateResourceManager() 1033 if (!resourceMgr->AddResource(loadPath.c_str())) { in CreateResourceManager()
|
/foundation/ability/ability_runtime/test/unittest/frameworks_kits_appkit_native_test/ |
H A D | context_impl_test.cpp | 1304 std::string loadPath = "test"; in HWTEST_F() local 1319 contextImpl->OnOverlayChanged(data, resourceManager, bundleName, moduleName, loadPath); in HWTEST_F()
|
/foundation/window/window_manager/window_scene/session_manager/src/ |
H A D | scene_session_manager.cpp | 3367 std::string loadPath; in GetResourceManager() local 3369 loadPath = abilityInfo.hapPath; in GetResourceManager() 3371 loadPath = abilityInfo.resourcePath; in GetResourceManager() 3374 if (!resourceMgr->AddResource(loadPath.c_str(), Global::Resource::SELECT_COLOR | Global::Resource::SELECT_MEDIA)) { in GetResourceManager() 3375 WLOGFW("Add resource %{private}s failed.", loadPath.c_str()); in GetResourceManager() 6704 std::string loadPath = abilityInfo.hapPath.empty() ? abilityInfo.resourcePath : abilityInfo.hapPath; in GetOrientationFromResourceManager() local 6705 if (!resourceMgr->AddResource(loadPath.c_str(), Global::Resource::SELECT_STRING)) { in GetOrientationFromResourceManager() 6706 TLOGE(WmsLogTag::DEFAULT, "Add resource %{private}s failed.", loadPath.c_str()); in GetOrientationFromResourceManager()
|