/ohos5.0/foundation/ability/ability_base/test/unittest/extractor/ |
H A D | extractor_test.cpp | 88 std::string loadPath; variable 107 std::string loadPath; variable 112 loadPath = ERROR_HAP_PATH; 120 loadPath = TEST_THIRD_HAP_PATH; 136 std::string loadPath; variable 138 EXPECT_TRUE(loadPath == loadFilePath); 140 loadPath = ERROR_HAP_PATH; 142 EXPECT_TRUE(loadPath == loadFilePath); 144 loadPath = testPath_; 148 loadPath = TEST_THIRD_HAP_PATH; [all …]
|
/ohos5.0/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() 253 return loadPath; in GetModuleFileName() 1001 char* loadPath = nativeModulePath[0]; in FindNativeModuleByDisk() local 1008 loadPath = nativeModulePath[1]; in FindNativeModuleByDisk() 1026 loadPath = nativeModulePath[2]; // 2 : Element index value in FindNativeModuleByDisk() 1028 abcBuffer = GetFileBuffer(loadPath, moduleKey, len); in FindNativeModuleByDisk() 1045 tailNativeModule_->systemFilePath = strdup(loadPath); in FindNativeModuleByDisk() [all …]
|
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/appkit/app/ |
H A D | context_container.cpp | 333 std::string loadPath; in LoadResources() local 335 loadPath = hapModuleInfo.hapPath; in LoadResources() 337 loadPath = hapModuleInfo.resourcePath; in LoadResources() 339 if (loadPath.empty()) { in LoadResources() 342 loadPath = std::regex_replace(loadPath, pattern, AbilityBase::Constants::LOCAL_BUNDLES); in LoadResources() 343 TAG_LOGD(AAFwkTag::APPKIT, "loadPath: %{private}s", loadPath.c_str()); in LoadResources() 344 if (!resourceManager->AddResource(loadPath.c_str())) { in LoadResources()
|
H A D | main_thread.cpp | 1066 std::string loadPath = in OnStartAbility() local 1068 if (!loadPath.empty()) { in OnStartAbility() 1069 loadPath = std::regex_replace(loadPath, pattern, std::string(LOCAL_CODE_PATH)); in OnStartAbility() 1073 if (!resourceManager->AddResource(loadPath.c_str())) { in OnStartAbility() 1079 if (!resourceManager->AddResource(loadPath, overlayPaths)) { in OnStartAbility() 1117 loadPath](const EventFwk::CommonEventData &data) { in SubscribeOverlayChange() 1133 const std::string &moduleName, const std::string &loadPath) in OnOverlayChanged() argument 1155 const std::string &moduleName, const std::string &loadPath) in HandleOnOverlayChanged() argument 1177 if (loadPath.empty() || overlayModuleInfos.size() == 0) { in HandleOnOverlayChanged() 1680 std::string loadPath = in HandleLaunchApplication() local [all …]
|
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/appkit/ability_runtime/context/ |
H A D | context_impl.cpp | 866 std::string loadPath = in InitResourceManagerInner() local 868 if (loadPath.empty()) { in InitResourceManagerInner() 873 loadPath = std::regex_replace(loadPath, inner_pattern, LOCAL_CODE_PATH); in InitResourceManagerInner() 875 loadPath = std::regex_replace(loadPath, hsp_pattern, hsp_sandbox); in InitResourceManagerInner() 879 loadPath = std::regex_replace(loadPath, outer_pattern, LOCAL_BUNDLES); in InitResourceManagerInner() 902 if (!resourceManager->AddResource(loadPath.c_str())) { in GetOverlayPath() 920 if (!resourceManager->AddResource(loadPath, overlayPaths)) { in GetOverlayPath() 944 hapModuleName, loadPath](const EventFwk::CommonEventData &data) { in SubscribeToOverlayEvents() 1347 const std::string &moduleName, const std::string &loadPath) in OnOverlayChanged() argument 1378 if (loadPath.empty() || overlayModuleInfos.size() == 0) { in OnOverlayChanged() [all …]
|
/ohos5.0/foundation/ability/ability_base/interfaces/kits/native/extractortool/src/ |
H A D | extractor.cpp | 276 std::string loadPath; in GetLoadFilePath() local 278 loadPath = GetLoadPath(hapPath); in GetLoadFilePath() 280 loadPath = hapPath; in GetLoadFilePath() 282 return loadPath; in GetLoadFilePath()
|
H A D | file_path_utils.cpp | 444 std::string loadPath = std::regex_replace(hapPath, hapPattern, ""); in GetLoadPath() local 445 loadPath = std::string(Constants::LOCAL_CODE_PATH) + std::string(Constants::FILE_SEPARATOR) + in GetLoadPath() 446 loadPath.substr(loadPath.find(std::string(Constants::FILE_SEPARATOR)) + 1); in GetLoadPath() 447 return loadPath; in GetLoadPath()
|
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/runtime/ |
H A D | js_worker.cpp | 397 std::string loadPath = ExtractorUtil::GetLoadFilePath(newHapPath); in ReadFilePathData() local 398 std::shared_ptr<Extractor> extractor = ExtractorUtil::GetExtractor(loadPath, newCreate); in ReadFilePathData() 400 TAG_LOGE(AAFwkTag::JSRUNTIME, "LoadPath %{private}s GetExtractor failed", loadPath.c_str()); in ReadFilePathData() 468 std::string loadPath = ExtractorUtil::GetLoadFilePath((workerInfo_->hapPath).GetOriginString()); in GetAmi() local 470 std::shared_ptr<Extractor> extractor = ExtractorUtil::GetExtractor(loadPath, newCreate); in GetAmi() 472 TAG_LOGE(AAFwkTag::JSRUNTIME, "loadPath %{private}s GetExtractor failed", loadPath.c_str()); in GetAmi()
|
H A D | js_runtime.cpp | 663 std::string loadPath = ExtractorUtil::GetLoadFilePath(options.hapPath); in LoadAotFile() local 664 std::shared_ptr<Extractor> extractor = ExtractorUtil::GetExtractor(loadPath, newCreate, true); in LoadAotFile() 766 std::string loadPath = ExtractorUtil::GetLoadFilePath(options.hapPath); in Initialize() local 768 std::shared_ptr<Extractor> extractor = ExtractorUtil::GetExtractor(loadPath, newCreate); in Initialize() 771 … TAG_LOGE(AAFwkTag::JSRUNTIME, "Get extractor failed. hapPath[%{private}s]", loadPath.c_str()); in Initialize() 1115 std::string loadPath = ExtractorUtil::GetLoadFilePath(hapPath); in RunScript() local 1116 std::shared_ptr<Extractor> extractor = ExtractorUtil::GetExtractor(loadPath, newCreate, true); in RunScript() 1125 resourceManager->AddResource(loadPath.c_str()); in RunScript()
|
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()
|
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/entrance/ |
H A D | utils.cpp | 71 std::string loadPath = AbilityBase::ExtractorUtil::GetLoadFilePath(hapPath); in GetStringFromHap() local 72 …<AbilityBase::Extractor> extractor = AbilityBase::ExtractorUtil::GetExtractor(loadPath, newCreate); in GetStringFromHap()
|
/ohos5.0/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 currentB… 464 const std::string &name, const std::string &hapModuleName, std::string &loadPath,
|
/ohos5.0/foundation/ability/ability_runtime/interfaces/kits/native/appkit/app/ |
H A D | main_thread.h | 611 const std::string &moduleName, const std::string &loadPath); 615 const std::string &moduleName, const std::string &loadPath); 731 void SubscribeOverlayChange(const std::string &bundleName, const std::string &loadPath,
|
/ohos5.0/base/web/webview/ohos_adapter/ohos_resource_adapter/src/ |
H A D | ohos_resource_adapter_impl.cpp | 310 std::string loadPath = ExtractorUtil::GetLoadFilePath(hapPath); in Init() local 311 extractor_ = ExtractorUtil::GetExtractor(loadPath, newCreate); in Init()
|
/ohos5.0/foundation/ability/ability_runtime/test/unittest/appkit/main_thread_test/ |
H A D | main_thread_test.cpp | 2153 std::string loadPath = "test"; variable 2168 mainThread_->OnOverlayChanged(data, resourceManager, bundleName, moduleName, loadPath); 2184 std::string loadPath = "test"; variable 2199 mainThread_->HandleOnOverlayChanged(data, resourceManager, bundleName, moduleName, loadPath);
|
/ohos5.0/foundation/ability/ability_runtime/test/unittest/frameworks_kits_appkit_native_test/ |
H A D | context_impl_test.cpp | 1286 std::string loadPath = "test"; variable 1301 contextImpl->OnOverlayChanged(data, resourceManager, bundleName, moduleName, loadPath);
|
/ohos5.0/foundation/ability/ability_runtime/services/abilitymgr/src/ |
H A D | ability_record.cpp | 1027 std::string loadPath; in CreateResourceManager() local 1029 loadPath = abilityInfo_.hapPath; in CreateResourceManager() 1031 loadPath = abilityInfo_.resourcePath; in CreateResourceManager() 1034 if (loadPath.empty()) { in CreateResourceManager() 1039 if (!resourceMgr->AddResource(loadPath.c_str())) { in CreateResourceManager()
|
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/src/ |
H A D | scene_session_manager.cpp | 3614 std::string loadPath; in GetResourceManager() local 3616 loadPath = abilityInfo.hapPath; in GetResourceManager() 3618 loadPath = abilityInfo.resourcePath; in GetResourceManager() 3621 …if (!resourceMgr->AddResource(loadPath.c_str(), Global::Resource::SELECT_COLOR | Global::Resource:… in GetResourceManager() 3622 WLOGFW("Add resource %{private}s failed.", loadPath.c_str()); in GetResourceManager() 7013 …std::string loadPath = abilityInfo.hapPath.empty() ? abilityInfo.resourcePath : abilityInfo.hapPat… in GetOrientationFromResourceManager() local 7014 if (!resourceMgr->AddResource(loadPath.c_str(), Global::Resource::SELECT_STRING)) { in GetOrientationFromResourceManager() 7015 TLOGE(WmsLogTag::DEFAULT, "Add resource %{private}s failed.", loadPath.c_str()); in GetOrientationFromResourceManager()
|