Home
last modified time | relevance | path

Searched refs:hapPath (Results 1 - 25 of 58) sorted by relevance

123

/base/global/resource_management/frameworks/resmgr/test/unittest/common/
H A Dhap_parser_test.cpp251 std::string hapPath = FormatFullPath(HAP_PATH_FA); in HWTEST_F() local
254 RState state = HapParser::ReadRawFileFromHap(hapPath, "", "no_exist_file.txt", len, outValue); in HWTEST_F()
265 std::string hapPath = FormatFullPath(HAP_PATH_FA); in HWTEST_F() local
268 RState state = HapParser::ReadRawFileFromHap(hapPath, "", "test_rawfile.txt", len, outValue); in HWTEST_F()
280 std::string hapPath = FormatFullPath("all_fa_no_exist.hap"); in HWTEST_F() local
283 RState state = HapParser::ReadRawFileFromHap(hapPath, "", "test_rawfile.txt", len, outValue); in HWTEST_F()
294 std::string hapPath = FormatFullPath(HAP_PATH_FA); in HWTEST_F() local
297 RState state = HapParser::ReadRawFileFromHap(hapPath, FormatFullPath("no_patch.hap"), "test_rawfile.txt", len, in HWTEST_F()
309 std::string hapPath = FormatFullPath(HAP_PATH_FA); in HWTEST_F() local
312 RState state = HapParser::ReadRawFileFromHap(hapPath, hapPat in HWTEST_F()
324 std::string hapPath = FormatFullPath(HAP_PATH_FA); HWTEST_F() local
338 std::string hapPath = FormatFullPath(HAP_PATH_FA); HWTEST_F() local
351 std::string hapPath = FormatFullPath(HAP_PATH_FA); HWTEST_F() local
367 std::string hapPath = FormatFullPath("all_fa_no_exist.hap"); HWTEST_F() local
380 std::string hapPath = FormatFullPath(HAP_PATH_FA); HWTEST_F() local
393 std::string hapPath = FormatFullPath(HAP_PATH_FA); HWTEST_F() local
409 std::string hapPath = FormatFullPath(HAP_PATH_FA); HWTEST_F() local
435 std::string hapPath = FormatFullPath(g_hapPath); HWTEST_F() local
449 std::string hapPath = FormatFullPath("no_exist_hap"); HWTEST_F() local
463 std::string hapPath = FormatFullPath(g_hapPath); HWTEST_F() local
477 std::string hapPath = FormatFullPath("no_exist_hap"); HWTEST_F() local
[all...]
/base/web/webview/test/unittest/ohos_adapter/ohos_resource_adapter_test/
H A Dohos_resource_adapter_test.cpp96 std::string hapPath = "/system/app/com.ohos.nweb/NWeb.hap"; in HWTEST_F() local
97 auto adapterImpl = std::make_shared<OhosResourceAdapterImpl>(hapPath); in HWTEST_F()
99 hapPath.clear(); in HWTEST_F()
100 adapterImpl->Init(hapPath); in HWTEST_F()
111 std::string hapPath = "/system/app/com.ohos.nweb/NWeb.hap"; in HWTEST_F() local
112 OhosResourceAdapterImpl adapterImpl(hapPath); in HWTEST_F()
166 std::string hapPath = ""; in HWTEST_F() local
168 hapPath = NWEB_HAP_PATH; in HWTEST_F()
171 hapPath = NWEB_HAP_PATH_1; in HWTEST_F()
175 hapPath in HWTEST_F()
215 std::string hapPath = ""; HWTEST_F() local
273 std::string hapPath = ""; HWTEST_F() local
330 std::string hapPath = ""; HWTEST_F() local
362 std::string hapPath = ""; HWTEST_F() local
[all...]
/base/web/webview/test/unittest/napi_web_cookie_manager_test/
H A Dnapi_web_cookie_manager_test.cpp61 std::string hapPath = ""; in HWTEST_F() local
63 hapPath = MOCK_NWEB_INSTALLATION_DIR; in HWTEST_F()
65 NWebHelper::Instance().SetBundlePath(hapPath); in HWTEST_F()
/base/print/print_fwk/test/unittest/extension_test/mock/
H A Dmock_runtime.h90 bool RunScript(const std::string& path, const std::string& hapPath, bool useCommonChunk = false) in RunScript() argument
99 napi_value LoadJsBundle(const std::string& path, const std::string& hapPath, bool useCommonChunk = false) in LoadJsBundle() argument
103 napi_value LoadJsModule(const std::string& path, const std::string& hapPath) in LoadJsModule() argument
128 void UpdatePkgContextInfoJson(std::string moduleName, std::string hapPath, std::string packageName) override {}
199 bool RunScript(const std::string& path, const std::string& hapPath, bool useCommonChunk = false) in RunScript() argument
208 napi_value LoadJsBundle(const std::string& path, const std::string& hapPath, bool useCommonChunk = false) in LoadJsBundle() argument
212 napi_value LoadJsModule(const std::string& path, const std::string& hapPath) in LoadJsModule() argument
237 void UpdatePkgContextInfoJson(std::string moduleName, std::string hapPath, std::string packageName) override {}
/base/security/code_signature/interfaces/innerkits/code_sign_utils/src/
H A Dcode_sign_utils_in_c.cpp26 extern "C" int EnforceCodeSignForApp(const char *hapPath, const struct EntryMapEntryData *entryMapEntryData, in EnforceCodeSignForApp() argument
29 if (hapPath == nullptr || entryMapEntryData == nullptr) { in EnforceCodeSignForApp()
32 std::string path(hapPath); in EnforceCodeSignForApp()
/base/web/webview/sa/src/
H A Dapp_fwk_update_service.cpp70 std::string hapPath; in OnReceiveEvent() local
78 hapPath = bundleInfo.hapModuleInfos[0].hapPath; in OnReceiveEvent()
79 WVLOG_I("PackagechangeReceiver hapPath is %{public}s.", hapPath.c_str()); in OnReceiveEvent()
81 callback_.OnPackageChangedEvent(bundleName, hapPath); in OnReceiveEvent()
93 const std::string& bundleName, const std::string& hapPath, int32_t& isSuccess) in VerifyPackageInstall()
100 if (OHOS::system::GetParameter("persist.arkwebcore.install_path", "") == hapPath) { in VerifyPackageInstall()
105 ret = SetWebInstallPath(hapPath); in VerifyPackageInstall()
265 void AppFwkUpdateService::OnPackageChangedEvent(const std::string& bunldeName, const std::string& hapPath) in OnPackageChangedEvent() argument
92 VerifyPackageInstall( const std::string& bundleName, const std::string& hapPath, int32_t& isSuccess) VerifyPackageInstall() argument
[all...]
/base/web/webview/sa/include/
H A Dapp_fwk_update_service.h30 std::function<void(const std::string bundleName, const std::string hapPath)> OnPackageChangedEvent;
51 ErrCode VerifyPackageInstall(const std::string& bundleName, const std::string& hapPath, int32_t& success) override;
53 void OnPackageChangedEvent(const std::string& bunldeName, const std::string& hapPath);
H A Dapp_fwk_update_client.h35 int VerifyPackageInstall(const std::string& bundleName, const std::string& hapPath);
/base/global/resource_management/frameworks/resmgr/src/
H A Draw_file_manager.cpp123 static bool IsLoadHap(const NativeResourceManager *mgr, std::string &hapPath) in IsLoadHap() argument
125 return mgr->resManager->IsLoadHap(hapPath) == RState::SUCCESS ? true : false; in IsLoadHap()
145 std::string hapPath; in OH_ResourceManager_OpenRawDir() local
146 if (IsLoadHap(mgr, hapPath)) { in OH_ResourceManager_OpenRawDir()
182 RawFile *LoadRawFileFromHap(const NativeResourceManager *mgr, const char *fileName, const std::string hapPath) in LoadRawFileFromHap() argument
197 int zipFd = open(hapPath.c_str(), O_RDONLY); in LoadRawFileFromHap()
199 RESMGR_HILOGE(RESMGR_RAWFILE_TAG, "failed open file %{public}s", hapPath.c_str()); in LoadRawFileFromHap()
215 std::string hapPath; in OH_ResourceManager_OpenRawFile() local
216 if (IsLoadHap(mgr, hapPath)) { in OH_ResourceManager_OpenRawFile()
217 return LoadRawFileFromHap(mgr, fileName, hapPath); in OH_ResourceManager_OpenRawFile()
447 LoadRawFileFromHap64(const NativeResourceManager *mgr, const char *fileName, const std::string hapPath) LoadRawFileFromHap64() argument
479 std::string hapPath; OH_ResourceManager_OpenRawFile64() local
[all...]
H A Dresource_manager.cpp54 const std::string &hapPath, const std::vector<std::string> &overlayPath, in CreateResourceManagerDef()
58 RESMGR_HILOGE(RESMGR_TAG, "bundleName or hapPath is empty when CreateResourceManagerDef"); in CreateResourceManagerDef()
98 const std::string &hapPath, const std::vector<std::string> &overlayPath, in CreateResourceManager()
102 return CreateResourceManagerDef(bundleName, moduleName, hapPath, overlayPath, resConfig, userId); in CreateResourceManager()
52 CreateResourceManagerDef( const std::string &bundleName, const std::string &moduleName, const std::string &hapPath, const std::vector<std::string> &overlayPath, ResConfig &resConfig, int32_t userId) CreateResourceManagerDef() argument
97 CreateResourceManager(const std::string &bundleName, const std::string &moduleName, const std::string &hapPath, const std::vector<std::string> &overlayPath, ResConfig &resConfig, int32_t appType, int32_t userId) CreateResourceManager() argument
/base/web/webview/ohos_adapter/ohos_resource_adapter/src/
H A Dohos_resource_adapter_impl.cpp292 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()
527 for (const auto& hapPath : hapPaths) { in GetArkWebVersion()
528 OHOS::AbilityBase::Extractor extractor(hapPath); in GetArkWebVersion()
530 WVLOG_E("Failed to initialize extractor for HAP file: %{public}s", hapPath.c_str()); in GetArkWebVersion()
537 WVLOG_E("Failed to extract pack.info from HAP: %{public}s", hapPath in GetArkWebVersion()
564 SetArkWebCoreHapPathOverride(const std::string& hapPath) SetArkWebCoreHapPathOverride() argument
[all...]
/base/global/resource_management/frameworks/resmgr/include/
H A Dhap_parser.h93 * @param hapPath the hap path
100 static RState ReadRawFileFromHap(const std::string &hapPath, const std::string &patchPath,
105 * @param hapPath the hap path
111 static RState ReadRawFileDescriptor(const char *hapPath, const char *patchPath,
116 * @param hapPath the hap path
121 static RState GetRawFileList(const std::string &hapPath, const std::string &rawDirPath,
205 * @param hapPath the hap path
210 static RState IsRawDirFromHap(const char *hapPath, const std::string &pathName, bool &outValue);
/base/web/webview/ohos_adapter/ohos_resource_adapter/include/
H A Dohos_resource_adapter_impl.h53 explicit OhosResourceAdapterImpl(const std::string& hapPath);
75 static void SetArkWebCoreHapPathOverride(const std::string& hapPath);
80 void Init(const std::string& hapPath);
/base/security/code_signature/interfaces/innerkits/code_sign_utils/include/
H A Dcode_sign_utils_in_c.h43 int EnforceCodeSignForApp(const char *hapPath, const struct EntryMapEntryData *entryMapEntryData, enum FileType type);
/base/web/webview/ohos_adapter/ohos_adapter_helper/src/
H A Dohos_adapter_helper_impl.cpp171 std::unique_ptr<OhosResourceAdapter> OhosAdapterHelperImpl::GetResourceAdapter(const std::string& hapPath) in GetResourceAdapter() argument
173 return std::make_unique<OhosResourceAdapterImpl>(hapPath); in GetResourceAdapter()
340 void OhosAdapterHelperImpl::SetArkWebCoreHapPathOverride(const std::string& hapPath) in SetArkWebCoreHapPathOverride() argument
342 OhosResourceAdapterImpl::SetArkWebCoreHapPathOverride(hapPath); in SetArkWebCoreHapPathOverride()
/base/startup/appspawn/interfaces/innerkits/hnp/include/
H A Dhnp_api.h63 char hapPath[HAP_PATH_LENTH]; // hap file path member
/base/startup/appspawn/service/hnp/installer/include/
H A Dhnp_installer.h54 char *hapPath; // hap目录 member
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/
H A Dark_ohos_adapter_helper_wrapper.h55 std::unique_ptr<NWeb::OhosResourceAdapter> GetResourceAdapter(const std::string& hapPath) override;
113 void SetArkWebCoreHapPathOverride(const std::string& hapPath) override;
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/
H A Dark_ohos_adapter_helper_impl.h55 ArkWebRefPtr<ArkOhosResourceAdapter> GetResourceAdapter(const ArkWebString& hapPath) override;
113 void SetArkWebCoreHapPathOverride(const ArkWebString& hapPath) override;
/base/web/webview/ohos_adapter/ohos_adapter_helper/include/
H A Dohos_adapter_helper_impl.h58 std::unique_ptr<OhosResourceAdapter> GetResourceAdapter(const std::string& hapPath = "") override;
116 void SetArkWebCoreHapPathOverride(const std::string& hapPath) override;
/base/web/webview/ohos_interface/include/ohos_adapter/
H A Dohos_adapter_helper.h93 virtual std::unique_ptr<OhosResourceAdapter> GetResourceAdapter(const std::string& hapPath = "") = 0;
151 virtual void SetArkWebCoreHapPathOverride(const std::string& hapPath) = 0;
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/include/
H A Dark_ohos_adapter_helper.h107 virtual ArkWebRefPtr<ArkOhosResourceAdapter> GetResourceAdapter(const ArkWebString& hapPath) = 0;
194 virtual void SetArkWebCoreHapPathOverride(const ArkWebString& hapPath) = 0;
/base/startup/appspawn/modules/sandbox/
H A Dsandbox_expand.c132 static int SetOverlayAppPath(const char *hapPath, void *context) in SetOverlayAppPath() argument
134 APPSPAWN_LOGV("SetOverlayAppPath '%{public}s'", hapPath); in SetOverlayAppPath()
139 char *tmp = GetLastStr(hapPath, "/"); in SetOverlayAppPath()
144 sandboxContext->buffer[0].bufferLen, hapPath, tmp - (char *)hapPath); in SetOverlayAppPath()
175 APPSPAWN_LOGE("Fail to mount overlay path, src is %{public}s.", hapPath); in SetOverlayAppPath()
/base/global/resource_management/frameworks/resmgr/src/utils/
H A Dhap_parser.cpp279 RState HapParser::ReadRawFileFromHap(const std::string &hapPath, const std::string &patchPath, in ReadRawFileFromHap() argument
285 std::string tempPath = patchPath.empty() ? hapPath : patchPath; in ReadRawFileFromHap()
288 RESMGR_HILOGE(RESMGR_TAG, "failed to get extractor hapPath, %{public}s", tempPath.c_str()); in ReadRawFileFromHap()
298 extractor = AbilityBase::ExtractorUtil::GetExtractor(hapPath, isNewExtractor); in ReadRawFileFromHap()
300 RESMGR_HILOGE(RESMGR_TAG, "failed to get extractor hapPath, %{public}s", tempPath.c_str()); in ReadRawFileFromHap()
312 RESMGR_HILOGE(RESMGR_TAG, "failed to get rawfile data rawfilePath, %{public}s, hapPath, %{public}s", in ReadRawFileFromHap()
320 RState HapParser::ReadRawFileDescriptor(const char *hapPath, const char *patchPath, const std::string &rawFileName, in ReadRawFileDescriptor() argument
327 const char *tempPath = sPatchPath.empty() ? hapPath : patchPath; in ReadRawFileDescriptor()
332 RESMGR_HILOGE(RESMGR_TAG, "failed to get extractor in ReadRawFileDescriptor hapPath, %{public}s", outPath); in ReadRawFileDescriptor()
342 Utils::CanonicalizePath(hapPath, outPat in ReadRawFileDescriptor()
373 GetRawFileList(const std::string &hapPath, const std::string &rawDirPath, std::set<std::string>& fileSet) GetRawFileList() argument
877 IsRawDirFromHap(const char *hapPath, const std::string &pathName, bool &outValue) IsRawDirFromHap() argument
[all...]
/base/startup/appspawn/interfaces/innerkits/hnp/src/
H A Dhnp_api.c181 "hnp root path=%{public}s, package name=%{public}s install options=%{public}d\r\n", userId, hapInfo->hapPath, in NativeInstallHnp()
193 argv[index++] = (char *)hapInfo->hapPath; in NativeInstallHnp()

Completed in 12 milliseconds

123