Home
last modified time | relevance | path

Searched refs:hapPath (Results 1 – 25 of 34) sorted by relevance

12

/base/web/webview/test/unittest/ohos_adapter/ohos_resource_adapter_test/
Dohos_resource_adapter_test.cpp68 std::string hapPath = "/system/app/com.ohos.nweb/NWeb.hap"; variable
69 auto adapterImpl = std::make_shared<OhosResourceAdapterImpl>(hapPath);
71 hapPath.clear();
72 adapterImpl->Init(hapPath);
83 std::string hapPath = "/system/app/com.ohos.nweb/NWeb.hap"; variable
84 OhosResourceAdapterImpl adapterImpl(hapPath);
131 std::string hapPath = ""; variable
133 hapPath = NWEB_HAP_PATH;
136 hapPath = NWEB_HAP_PATH_1;
138 std::shared_ptr<Extractor> extractor = std::make_shared<Extractor>(hapPath);
[all …]
/base/global/resource_management/frameworks/resmgr/src/
Dresource_manager.cpp54 …const std::string &moduleName, const std::string &hapPath, const std::vector<std::string> &overlay… in CreateResourceManagerDef() argument
57 if (bundleName.empty() || hapPath.empty()) { in CreateResourceManagerDef()
77 result = resourceManagerImpl->AddResource(hapPath, overlayPath); in CreateResourceManagerDef()
79 result = resourceManagerImpl->AddResource(hapPath.c_str()); in CreateResourceManagerDef()
108 …const std::string &hapPath, const std::vector<std::string> &overlayPath, ResConfig &resConfig, int… in CreateResourceManager() argument
111 return CreateResourceManagerDef(bundleName, moduleName, hapPath, overlayPath, resConfig); in CreateResourceManager()
Draw_file_manager.cpp116 static bool IsLoadHap(const NativeResourceManager *mgr, std::string &hapPath) in IsLoadHap() argument
118 return mgr->resManager->IsLoadHap(hapPath) == RState::SUCCESS ? true : false; in IsLoadHap()
137 std::string hapPath; in OH_ResourceManager_OpenRawDir() local
138 if (IsLoadHap(mgr, hapPath)) { in OH_ResourceManager_OpenRawDir()
174 …adRawFileFromHap(const NativeResourceManager *mgr, const char *fileName, const std::string hapPath) in LoadRawFileFromHap() argument
195 int zipFd = open(hapPath.c_str(), O_RDONLY); in LoadRawFileFromHap()
197 HiLog::Error(LABEL, "failed open file %{public}s", hapPath.c_str()); in LoadRawFileFromHap()
212 std::string hapPath; in OH_ResourceManager_OpenRawFile() local
213 if (IsLoadHap(mgr, hapPath)) { in OH_ResourceManager_OpenRawFile()
214 return LoadRawFileFromHap(mgr, fileName, hapPath); in OH_ResourceManager_OpenRawFile()
Dhap_manager.cpp521 std::string hapPath = qd->GetHapResource()->GetIndexPath(); in GetFilePathFromHap() local
523 idItem == nullptr ? -1 : idItem->resType_, resType, hapPath.c_str()); in GetFilePathFromHap()
545 std::string hapPath = qd->GetHapResource()->GetIndexPath(); in GetAbilityExtractor() local
547 auto extractor = AbilityBase::ExtractorUtil::GetExtractor(hapPath, isNewExtractor); in GetAbilityExtractor()
667 int32_t HapManager::GetValidHapPath(std::string &hapPath) in GetValidHapPath() argument
675 hapPath = tempPath; in GetValidHapPath()
740 std::string hapPath; in GetRawFileList() local
741 …return HapManager::GetValidHapPath(hapPath) == OK ? HapParser::GetRawFileList(hapPath, rawDirPath,… in GetRawFileList()
745 bool HapManager::IsLoadHap(std::string &hapPath) in IsLoadHap() argument
747 return HapManager::GetValidHapPath(hapPath) == OK ? true : false; in IsLoadHap()
[all …]
/base/web/webview/ohos_adapter/ohos_resource_adapter/src/
Dohos_resource_adapter_impl.cpp70 WVLOG_D("get hap module info success. %{public}s", hapModuleInfo.hapPath.c_str()); in GetNWebHapPath()
71 return hapModuleInfo.hapPath; in GetNWebHapPath()
130 OhosResourceAdapterImpl::OhosResourceAdapterImpl(const std::string& hapPath) in OhosResourceAdapterImpl() argument
132 Init(hapPath); in OhosResourceAdapterImpl()
135 void OhosResourceAdapterImpl::Init(const std::string& hapPath) in Init() argument
145 if (hapPath.empty()) { in Init()
148 std::string loadPath = ExtractorUtil::GetLoadFilePath(hapPath); in Init()
151 WVLOG_E("RuntimeExtractor create failed for %{public}s", hapPath.c_str()); in Init()
/base/global/resource_management/frameworks/resmgr/include/
Dhap_parser.h98 static RState ReadRawFileFromHap(const std::string &hapPath, const std::string &rawFileName,
108 static RState ReadRawFileDescriptor(const char *hapPath, const std::string &rawFileName,
118 static RState GetRawFileList(const std::string &hapPath, const std::string &rawDirPath,
Dhap_manager.h210 bool IsLoadHap(std::string &hapPath);
217 int32_t GetValidHapPath(std::string& hapPath);
Dresource_manager_impl.h458 virtual RState IsLoadHap(std::string &hapPath);
/base/global/resource_management/frameworks/resmgr/src/utils/
Dhap_parser.cpp254 RState HapParser::ReadRawFileFromHap(const std::string &hapPath, const std::string &rawFileName, si… in ReadRawFileFromHap() argument
259 auto extractor = AbilityBase::ExtractorUtil::GetExtractor(hapPath, isNewExtractor); in ReadRawFileFromHap()
261 HILOG_ERROR("failed to get extractor hapPath, %{public}s", hapPath.c_str()); in ReadRawFileFromHap()
266 …OR("the rawfile file %{public}s is not exist in %{public}s", rawfilePath.c_str(), hapPath.c_str()); in ReadRawFileFromHap()
272 rawfilePath.c_str(), hapPath.c_str()); in ReadRawFileFromHap()
279 RState HapParser::ReadRawFileDescriptor(const char *hapPath, const std::string &rawFileName, in ReadRawFileDescriptor() argument
284 Utils::CanonicalizePath(hapPath, outPath, PATH_MAX); in ReadRawFileDescriptor()
298 …ILOG_ERROR("the rawfile file %{public}s is not exist in %{public}s", rawfilePath.c_str(), hapPath); in ReadRawFileDescriptor()
314 RState HapParser::GetRawFileList(const std::string &hapPath, const std::string &rawDirPath, in GetRawFileList() argument
319 auto extractor = AbilityBase::ExtractorUtil::GetExtractor(hapPath, isNewExtractor); in GetRawFileList()
[all …]
Dutils.cpp456 bool Utils::ContainsTail(std::string hapPath, std::set<std::string> tailSet) in ContainsTail() argument
459 if (Utils::endWithTail(hapPath, tail)) { in ContainsTail()
/base/web/webview/ohos_adapter/ohos_resource_adapter/include/
Dohos_resource_adapter_impl.h53 explicit OhosResourceAdapterImpl(const std::string& hapPath);
71 void Init(const std::string& hapPath);
/base/web/webview/ohos_adapter/interfaces/
Dohos_adapter_helper.cpp131 …ue_ptr<OhosResourceAdapter> OhosAdapterHelper::GetResourceAdapter(const std::string& hapPath) const in GetResourceAdapter()
133 return std::make_unique<OhosResourceAdapterImpl>(hapPath); in GetResourceAdapter()
Dohos_adapter_helper.h87 std::unique_ptr<OhosResourceAdapter> GetResourceAdapter(const std::string& hapPath = "") const;
/base/global/resource_management/frameworks/resmgr/include/utils/
Dutils.h67 static bool ContainsTail(std::string hapPath, std::set<std::string> tailSet);
/base/security/appverify/
DREADME_zh.md76 int32_t res = Security::Verify::HapVerify(hapPath, verifyResult);
/base/telephony/core_service/frameworks/native/src/
Dresource_utils.cpp384 std::string hapPath; in Init() local
387 hapPath = bundleInfo.hapModuleInfos[0].hapPath; in Init()
393 if (IsFileExist(hapPath)) { in Init()
394 beSourceAdd_ = resourceManager_->AddResource(hapPath.c_str()); in Init()
396 …"ResourceUtils add hap path %{public}s %{public}d", hapPath.c_str(), static_cast<int32_t>(beSource… in Init()
/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
Dhap_resource_test.cpp258 ResDesc *LoadFromHap(const char *hapPath, const ResConfigImpl *defaultConfig) in LoadFromHap() argument
263 int32_t out = HapParser::ReadIndexFromFile(hapPath, in LoadFromHap()
/base/global/resource_management/frameworks/resmgr/test/unittest/common/
Dhap_resource_test.cpp263 ResDesc *LoadFromHap(const char *hapPath, const ResConfigImpl *defaultConfig) in LoadFromHap() argument
267 int32_t out = HapParser::ReadIndexFromFile(hapPath, buf, bufLen); in LoadFromHap()
/base/global/resource_management/interfaces/inner_api/include/
Dresource_manager.h155 virtual RState IsLoadHap(std::string &hapPath) = 0;
212 …const std::string &moduleName, const std::string &hapPath, const std::vector<std::string> &overlay…
/base/customization/enterprise_device_management/framework/extension/src/
Djs_enterprise_admin_extension.cpp64 jsObj_ = jsRuntime_.LoadModule(moduleName, srcPath, abilityInfo_->hapPath, in Init()
/base/notification/common_event_service/frameworks/extension/src/
Djs_static_subscriber_extension.cpp108 jsObj_ = jsRuntime_.LoadModule(moduleName, srcPath, abilityInfo_->hapPath, in Init()
/base/security/permission_lite/
DREADME_zh.md209 …bool Install(const char *hapPath, const InstallParam *installParam, InstallerCallback installerCal…
211 if ((hapPath == nullptr) || (installerCallback == nullptr) || (installParam == nullptr)) {
/base/theme/wallpaper_mgr/frameworks/kits/extension/src/
Djs_wallpaper_extension_ability.cpp85 jsObj_ = jsRuntime_.LoadModule(moduleName, srcPath, abilityInfo_->hapPath, in Init()
/base/startup/appspawn/util/src/
Dsandbox_utils.cpp1019 for (auto hapPath : splits) { in SetOverlayAppSandboxProperty() local
1020 size_t pathIndex = hapPath.find_last_of(g_fileSeparator); in SetOverlayAppSandboxProperty()
1024 std::string srcPath = hapPath.substr(0, pathIndex); in SetOverlayAppSandboxProperty()
1035 APPSPAWN_LOGE("fail to mount overlay path, src is %s.", hapPath.c_str()); in SetOverlayAppSandboxProperty()
/base/inputmethod/imf/frameworks/kits/extension/src/
Djs_inputmethod_extension.cpp106 … moduleName, srcPath, abilityInfo_->hapPath, abilityInfo_->compileMode == CompileMode::ES_MODULE); in Init()

12