/ohos5.0/base/web/webview/test/unittest/ohos_adapter/ohos_resource_adapter_test/ |
H A D | ohos_resource_adapter_test.cpp | 99 hapPath.clear(); 100 adapterImpl->Init(hapPath); 166 std::string hapPath = ""; variable 168 hapPath = NWEB_HAP_PATH; 185 fileMap->CreateFileMapper(fileReader, hapPath, 0, hapPath.size(), true); 215 std::string hapPath = ""; variable 217 hapPath = NWEB_HAP_PATH; 273 std::string hapPath = ""; variable 275 hapPath = NWEB_HAP_PATH; 330 std::string hapPath = ""; variable [all …]
|
/ohos5.0/foundation/ability/ability_base/interfaces/kits/native/extractortool/src/ |
H A D | extractor.cpp | 153 bool Extractor::IsSameHap(const std::string& hapPath) const in IsSameHap() 155 return !hapPath_.empty() && !hapPath.empty() && hapPath_ == hapPath; in IsSameHap() 278 loadPath = GetLoadPath(hapPath); in GetLoadFilePath() 280 loadPath = hapPath; in GetLoadFilePath() 288 if (hapPath.empty()) { in GetExtractor() 295 auto mapIter = extractorMap_.find(hapPath); in GetExtractor() 310 extractorMap_.emplace(hapPath, extractor); in GetExtractor() 317 void ExtractorUtil::DeleteExtractor(const std::string &hapPath) in DeleteExtractor() argument 320 if (hapPath.empty()) { in DeleteExtractor() 326 auto mapIter = extractorMap_.find(hapPath); in DeleteExtractor() [all …]
|
/ohos5.0/base/print/print_fwk/test/unittest/extension_test/mock/ |
H A D | mock_runtime.h | 91 const std::string& hapPath, bool isEsMode, const std::string& srcEntrance) in PreloadMainAbility() argument 96 const std::string& hapPath, bool isEsMode, bool useCommonTrunk) in PreloadModule() argument 100 bool RunScript(const std::string& path, const std::string& hapPath, bool useCommonChunk = false) 109 …napi_value LoadJsBundle(const std::string& path, const std::string& hapPath, bool useCommonChunk =… 113 napi_value LoadJsModule(const std::string& path, const std::string& hapPath) in LoadJsModule() argument 138 …void UpdatePkgContextInfoJson(std::string moduleName, std::string hapPath, std::string packageName… in UpdatePkgContextInfoJson() argument 210 const std::string& hapPath, bool isEsMode, const std::string& srcEntrance) in PreloadMainAbility() argument 215 const std::string& hapPath, bool isEsMode, bool useCommonTrunk) in PreloadModule() argument 219 bool RunScript(const std::string& path, const std::string& hapPath, bool useCommonChunk = false) 228 …napi_value LoadJsBundle(const std::string& path, const std::string& hapPath, bool useCommonChunk =… [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/bundle_resource/ |
H A D | bundle_resource_configuration.cpp | 33 const std::string &hapPath, in InitResourceGlobalConfig() argument 58 if (!hapPath.empty() && !resourceManager->AddResource(hapPath.c_str(), in InitResourceGlobalConfig() 60 APP_LOGE("AddResource failed, hapPath: %{private}s", hapPath.c_str()); in InitResourceGlobalConfig() 66 bool BundleResourceConfiguration::InitResourceGlobalConfig(const std::string &hapPath, in InitResourceGlobalConfig() argument 97 if (!resourceManager->AddResource(hapPath.c_str(), selectType)) { in InitResourceGlobalConfig() 98 APP_LOGW("AddResource failed, hapPath: %{public}s", hapPath.c_str()); in InitResourceGlobalConfig() 101 if (!resourceManager->AddResource(hapPath, overlayHaps)) { in InitResourceGlobalConfig() 102 APP_LOGW("AddResource overlay failed, hapPath: %{public}s", hapPath.c_str()); in InitResourceGlobalConfig()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/common/rosen/ |
H A D | rosen_test.cpp | 297 std::string hapPath = "/system/app/com.ohos.photos/Photos.hap"; variable 300 assetProvider->Initialize(hapPath, assetBasePaths); 328 std::string hapPath = "test"; variable 333 std::string result = object.GetAssetPath(hapPath, true); 373 std::string hapPath = "test"; variable 378 assetProvider->Initialize(hapPath, assetBasePaths); 379 assetProvider->GetFileInfo(hapPath, fileInfo); 381 bool result = object.GetFileInfo(hapPath, fileInfo); 423 std::string hapPath = "core/common/test/unittest/rosen/BUILD.gn"; variable 427 assetProvider->GetAsset(hapPath); [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/ohos/ |
H A D | platform_ohos.cpp | 31 plat_.hapPath = createInfo.hapPath; in CORE_BEGIN_NAMESPACE() 39 BASE_NS::string hapPath = plat_.hapPath; in RegisterDefaultPaths() local 43 IFilesystem::Ptr{new Core::OhosFilesystem(hapPath, bundleName, moduleName)}); in RegisterDefaultPaths() 45 hapPath.c_str(), bundleName.c_str(), moduleName.c_str()); in RegisterDefaultPaths()
|
/ohos5.0/foundation/ability/ability_runtime/test/unittest/runtime_test/ |
H A D | mock_js_runtime.h | 48 bool RunScript(const std::string& path, const std::string& hapPath, bool useCommonChunk = false) 60 …napi_value LoadJsBundle(const std::string& path, const std::string& hapPath, bool useCommonChunk =… 65 napi_value LoadJsModule(const std::string& path, const std::string& hapPath) in LoadJsModule() argument 75 const std::string& hapPath, bool isEsMode, const std::string& srcEntrance) override in PreloadMainAbility() argument 80 const std::string& hapPath, bool isEsMode, bool useCommonTrunk)override in PreloadModule() argument 85 …const std::string& moduleName, const std::string& modulePath, const std::string& hapPath, bool esm…
|
H A D | js_module_reader_test.cpp | 88 std::string hapPath = jsModuleReader.GetPresetAppHapPath("", ""); variable 89 EXPECT_TRUE(hapPath.empty()); 100 std::string hapPath = jsModuleReader.GetPresetAppHapPath("", ""); variable 101 EXPECT_TRUE(hapPath.empty());
|
/ohos5.0/foundation/ability/ability_runtime/test/mock/frameworks_kits_runtime_test/ |
H A D | mock_runtime.h | 89 const std::string& hapPath, bool isEsMode, const std::string& srcEntrance) override in PreloadMainAbility() argument 94 const std::string& hapPath, bool isEsMode, bool useCommonTrunk) override in PreloadModule() argument 98 bool RunScript(const std::string& path, const std::string& hapPath, bool useCommonChunk = false) 107 …napi_value LoadJsBundle(const std::string& path, const std::string& hapPath, bool useCommonChunk =… 111 napi_value LoadJsModule(const std::string& path, const std::string& hapPath) in LoadJsModule() argument 132 …void UpdatePkgContextInfoJson(std::string moduleName, std::string hapPath, std::string packageName… in UpdatePkgContextInfoJson() argument
|
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/entrance/ |
H A D | utils.cpp | 68 std::string GetStringFromHap(const std::string& hapPath, const std::string& fileName) in GetStringFromHap() argument 71 std::string loadPath = AbilityBase::ExtractorUtil::GetLoadFilePath(hapPath); in GetStringFromHap() 74 LOGE("read file %{public}s error\n", hapPath.c_str()); in GetStringFromHap() 81 LOGE("read file %{public}s /config.json error\n", hapPath.c_str()); in GetStringFromHap() 88 bool CheckUrlValid(const std::string& url, const std::string& hapPath) in CheckUrlValid() argument 95 auto moduleContent = GetStringFromHap(hapPath, "module.json"); in CheckUrlValid() 101 auto jsonContent = GetStringFromHap(hapPath, jsonPath); in CheckUrlValid()
|
H A D | form_module_preloader.cpp | 100 const std::string& hapPath = hapPathPair.second; in ReadFormModuleList() local 102 RefPtr<AssetManager> assetManager = CreateAssetManager(hapPath); in ReadFormModuleList() 104 …TAG_LOGW(AceLogTag::ACE_FORM, "CreateAssetManager failed, hapPath: %{private}s.", hapPath.c_str()); in ReadFormModuleList() 111 …LogTag::ACE_FORM, "Read component_collection.json failed, hapPath: %{private}s.", hapPath.c_str()); in ReadFormModuleList() 117 …ogTag::ACE_FORM, "Parse component_collection.json failed, hapPath: %{private}s.", hapPath.c_str()); in ReadFormModuleList() 187 RefPtr<AssetManager> FormModulePreloader::CreateAssetManager(const std::string& hapPath) in CreateAssetManager() argument 199 auto assetProvider = CreateAssetProviderImpl(hapPath, basePaths, false); in CreateAssetManager()
|
/ohos5.0/foundation/ability/ability_runtime/interfaces/inner_api/runtime/include/ |
H A D | js_runtime.h | 67 …static bool ReadSourceMapData(const std::string& hapPath, const std::string& sourceMapPath, std::s… 94 bool RunSandboxScript(const std::string& path, const std::string& hapPath); 95 bool RunScript(const std::string& path, const std::string& hapPath, bool useCommonChunk = false, 101 const std::string& hapPath, bool isEsMode, const std::string& srcEntrance) override; 103 const std::string& hapPath, bool isEsMode, bool useCommonTrunk) override; 108 bool LoadRepairPatch(const std::string& hqfFile, const std::string& hapPath) override; 140 const std::string& hapPath, bool esmodule = false, bool useCommonChunk = false, 145 …void UpdatePkgContextInfoJson(std::string moduleName, std::string hapPath, std::string packageName… 153 …napi_value LoadJsBundle(const std::string& path, const std::string& hapPath, bool useCommonChunk =… 154 …napi_value LoadJsModule(const std::string& path, const std::string& hapPath, const std::string& sr…
|
/ohos5.0/base/web/webview/sa/src/ |
H A D | app_fwk_update_service.cpp | 71 std::string hapPath; in OnReceiveEvent() local 79 hapPath = bundleInfo.hapModuleInfos[0].hapPath; in OnReceiveEvent() 80 WVLOG_I("PackagechangeReceiver hapPath is %{public}s.", hapPath.c_str()); in OnReceiveEvent() 82 callback_.OnPackageChangedEvent(bundleName, hapPath); in OnReceiveEvent() 94 const std::string& bundleName, const std::string& hapPath, int32_t& isSuccess) in VerifyPackageInstall() argument 101 if (OHOS::system::GetParameter("persist.arkwebcore.install_path", "") == hapPath) { in VerifyPackageInstall() 106 ret = SetWebInstallPath(hapPath); in VerifyPackageInstall() 267 …pFwkUpdateService::OnPackageChangedEvent(const std::string& bunldeName, const std::string& hapPath) in OnPackageChangedEvent() argument
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/src/bundlemgr/ |
H A D | bundle_mgr_client_impl.cpp | 129 bool isCompressed = !hapModuleInfo.hapPath.empty(); in GetResConfigFile() 147 bool isCompressed = !extensionInfo.hapPath.empty(); in GetResConfigFile() 165 bool isCompressed = !abilityInfo.hapPath.empty(); in GetResConfigFile() 182 bool isCompressed = !extensionInfo.hapPath.empty(); in GetProfileFromExtension() 183 std::string resPath = isCompressed ? extensionInfo.hapPath : extensionInfo.resourcePath; in GetProfileFromExtension() 190 innerExtension.hapPath = resPath; in GetProfileFromExtension() 201 bool isCompressed = !abilityInfo.hapPath.empty(); in GetProfileFromAbility() 202 std::string resPath = isCompressed ? abilityInfo.hapPath : abilityInfo.resourcePath; in GetProfileFromAbility() 209 innerAbilityInfo.hapPath = resPath; in GetProfileFromAbility() 220 bool isCompressed = !hapModuleInfo.hapPath.empty(); in GetProfileFromHap() [all …]
|
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/appkit/app/ |
H A D | native_lib_util.cpp | 23 std::string GetLibPath(const std::string &hapPath, bool isPreInstallApp) in GetLibPath() argument 27 auto pos = hapPath.rfind("/"); in GetLibPath() 28 libPath = hapPath.substr(0, pos); in GetLibPath() 45 libPath = GetLibPath(hapInfo.hapPath, isPreInstallApp); in GetHapSoPath() 63 libPath = GetLibPath(hspInfo.hapPath, isPreInstallApp); in GetHspNativeLibPath()
|
/ohos5.0/base/web/webview/ohos_adapter/ohos_resource_adapter/src/ |
H A D | ohos_resource_adapter_impl.cpp | 292 OhosResourceAdapterImpl::OhosResourceAdapterImpl(const std::string& hapPath) in OhosResourceAdapterImpl() argument 294 Init(hapPath); in OhosResourceAdapterImpl() 297 void OhosResourceAdapterImpl::Init(const std::string& hapPath) in Init() argument 307 if (hapPath.empty()) { in Init() 310 std::string loadPath = ExtractorUtil::GetLoadFilePath(hapPath); in Init() 313 WVLOG_E("RuntimeExtractor create failed for %{public}s", hapPath.c_str()); in Init() 528 for (const auto& hapPath : hapPaths) { in GetArkWebVersion() local 529 OHOS::AbilityBase::Extractor extractor(hapPath); in GetArkWebVersion() 547 WVLOG_E("Failed to parse pack.info from HAP: %{public}s", hapPath.c_str()); in GetArkWebVersion() 565 void OhosResourceAdapterImpl::SetArkWebCoreHapPathOverride(const std::string& hapPath) in SetArkWebCoreHapPathOverride() argument [all …]
|
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/runtime/ |
H A D | js_runtime.cpp | 481 auto hapSafeData = GetSafeData(hapPath, baseFile); in LoadRepairPatch() 487 auto position = hapPath.find(".hap"); in LoadRepairPatch() 492 auto hspPosition = hapPath.find(".hsp"); in LoadRepairPatch() 658 if (options.hapPath.empty()) { in LoadAotFile() 957 if (!RunScript(path, hapPath, useCommonChunk)) { in LoadJsBundle() 1036 if (!hapPath.empty()) { in LoadModule() 1106 if (hapPath.empty()) { in RunScript() 1173 if (!hapPath.empty()) { in RunSandboxScript() 1184 if (!RunScript(fileName, hapPath)) { in RunSandboxScript() 1408 if (hapPath.empty()) { in ReadSourceMapData() [all …]
|
H A D | js_module_reader.cpp | 35 JsModuleReader::JsModuleReader(const std::string& bundleName, const std::string& hapPath, bool isFo… in JsModuleReader() argument 38 if (!hapPath.empty() && hapPath.find(std::string(ABS_DATA_CODE_PATH)) != 0) { in JsModuleReader() 150 presetAppHapPath = info.hapPath; in GetOtherHspPath() 163 presetAppHapPath = info.hapPath; in GetOtherHspPath() 193 presetAppHapPath = hapModuleInfo.hapPath; in GetPresetAppHapPath() 224 hapList.emplace_back(hapModuleInfo.hapPath); in GetHapPathList()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/plugin/ |
H A D | hap_asset_provider.cpp | 23 bool HapAssetProvider::Initialize(const std::string& hapPath, const std::vector<std::string>& asset… in Initialize() argument 26 if (hapPath.empty() || assetBasePaths.empty()) { in Initialize() 31 runtimeExtractor_ = AbilityBase::ExtractorUtil::GetExtractor(hapPath, newCreate); in Initialize() 34 hapPath_ = hapPath; in Initialize()
|
H A D | hap_asset_provider_impl.cpp | 22 bool HapAssetProviderImpl::Initialize(const std::string& hapPath, const std::vector<std::string>& a… in Initialize() argument 25 if (hapPath.empty() || assetBasePaths.empty()) { in Initialize() 31 runtimeExtractor_ = AbilityBase::ExtractorUtil::GetExtractor(hapPath, newCreate); in Initialize() 34 hapPath_ = hapPath; in Initialize()
|
/ohos5.0/base/global/resource_management/frameworks/resmgr/src/ |
H A D | raw_file_manager.cpp | 124 static bool IsLoadHap(const NativeResourceManager *mgr, std::string &hapPath) in IsLoadHap() argument 126 return mgr->resManager->IsLoadHap(hapPath) == RState::SUCCESS ? true : false; in IsLoadHap() 146 std::string hapPath; in OH_ResourceManager_OpenRawDir() local 147 if (IsLoadHap(mgr, hapPath)) { in OH_ResourceManager_OpenRawDir() 198 int zipFd = open(hapPath.c_str(), O_RDONLY); in LoadRawFileFromHap() 216 std::string hapPath; in OH_ResourceManager_OpenRawFile() local 217 if (IsLoadHap(mgr, hapPath)) { in OH_ResourceManager_OpenRawFile() 218 return LoadRawFileFromHap(mgr, fileName, hapPath); in OH_ResourceManager_OpenRawFile() 480 std::string hapPath; in OH_ResourceManager_OpenRawFile64() local 481 if (IsLoadHap(mgr, hapPath)) { in OH_ResourceManager_OpenRawFile64() [all …]
|
/ohos5.0/base/web/webview/test/unittest/napi_web_cookie_manager_test/ |
H A D | napi_web_cookie_manager_test.cpp | 61 std::string hapPath = ""; variable 63 hapPath = MOCK_NWEB_INSTALLATION_DIR; 65 NWebHelper::Instance().SetBundlePath(hapPath);
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/utd/ |
H A D | utd_handler.cpp | 74 return hapInfo.hapPath; in GetEntryHapPath() 81 std::string UtdHandler::GetUtdProfileFromHap(const std::string &hapPath) in GetUtdProfileFromHap() argument 83 if (hapPath.empty()) { in GetUtdProfileFromHap() 87 BundleExtractor bundleExtractor(hapPath); in GetUtdProfileFromHap()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/aot/ |
H A D | aot_executor.cpp | 86 if (aotArgs.compileMode.empty() || aotArgs.hapPath.empty() || aotArgs.outputPath.empty()) { in CheckArgs() 97 bool AOTExecutor::GetAbcFileInfo(const std::string &hapPath, uint32_t &offset, uint32_t &length) co… in GetAbcFileInfo() argument 99 BundleExtractor extractor(hapPath); in GetAbcFileInfo() 120 if (!GetAbcFileInfo(completeArgs.hapPath, completeArgs.offset, completeArgs.length)) { in PrepareArgs() 126 (void)GetAbcFileInfo(hspInfo.hapPath, hspInfo.offset, hspInfo.length); in PrepareArgs() 141 subject[PKG_PATH] = aotArgs.hapPath; in GetSubjectInfo() 164 object[PKG_PATH] = hspInfo.hapPath; in MapArgs() 177 …argsMap.emplace("ABC-Path", aotArgs.hapPath + ServiceConstants::PATH_SEPARATOR + ABC_RELATIVE_PATH… in MapArgs()
|
/ohos5.0/foundation/ability/ability_base/interfaces/kits/native/extractortool/include/ |
H A D | extractor.h | 75 bool IsSameHap(const std::string& hapPath) const; 110 static std::string GetLoadFilePath(const std::string &hapPath); 111 …static std::shared_ptr<Extractor> GetExtractor(const std::string &hapPath, bool &newCreate, bool c… 112 static void DeleteExtractor(const std::string &hapPath);
|