Home
last modified time | relevance | path

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

12

/base/web/webview/test/unittest/ohos_adapter/ohos_resource_adapter_test/
Dohos_resource_adapter_test.cpp85 std::string hapPath = "/system/app/com.ohos.nweb/NWeb.hap"; variable
86 auto adapterImpl = std::make_shared<OhosResourceAdapterImpl>(hapPath);
88 hapPath.clear();
89 adapterImpl->Init(hapPath);
100 std::string hapPath = "/system/app/com.ohos.nweb/NWeb.hap"; variable
101 OhosResourceAdapterImpl adapterImpl(hapPath);
152 std::string hapPath = ""; variable
154 hapPath = NWEB_HAP_PATH;
157 hapPath = NWEB_HAP_PATH_1;
159 std::shared_ptr<Extractor> extractor = std::make_shared<Extractor>(hapPath);
[all …]
/base/global/resource_management/frameworks/resmgr/src/
Draw_file_manager.cpp126 static bool IsLoadHap(const NativeResourceManager *mgr, std::string &hapPath) in IsLoadHap() argument
128 return mgr->resManager->IsLoadHap(hapPath) == RState::SUCCESS ? true : false; in IsLoadHap()
148 std::string hapPath; in OH_ResourceManager_OpenRawDir() local
149 if (IsLoadHap(mgr, hapPath)) { in OH_ResourceManager_OpenRawDir()
185 …adRawFileFromHap(const NativeResourceManager *mgr, const char *fileName, const std::string hapPath) in LoadRawFileFromHap() argument
200 int zipFd = open(hapPath.c_str(), O_RDONLY); in LoadRawFileFromHap()
202 HiLog::Error(LABEL, "failed open file %{public}s", hapPath.c_str()); in LoadRawFileFromHap()
218 std::string hapPath; in OH_ResourceManager_OpenRawFile() local
219 if (IsLoadHap(mgr, hapPath)) { in OH_ResourceManager_OpenRawFile()
220 return LoadRawFileFromHap(mgr, fileName, hapPath); in OH_ResourceManager_OpenRawFile()
[all …]
Dresource_manager.cpp54 const std::string &hapPath, const std::vector<std::string> &overlayPath, in CreateResourceManagerDef() argument
91 const std::string &hapPath, const std::vector<std::string> &overlayPath, in CreateResourceManager() argument
95 return CreateResourceManagerDef(bundleName, moduleName, hapPath, overlayPath, resConfig); in CreateResourceManager()
Dhap_manager.cpp522 std::string hapPath = qd->GetIndexPath(); in GetFilePathFromHap() local
524 idItem == nullptr ? -1 : idItem->resType_, resType, hapPath.c_str()); in GetFilePathFromHap()
546 std::string hapPath = qd->GetIndexPath(); in GetAbilityExtractor() local
548 auto extractor = AbilityBase::ExtractorUtil::GetExtractor(hapPath, isNewExtractor); in GetAbilityExtractor()
669 int32_t HapManager::GetValidHapPath(std::string &hapPath) in GetValidHapPath() argument
677 hapPath = tempPath; in GetValidHapPath()
771 bool HapManager::IsLoadHap(std::string &hapPath) in IsLoadHap() argument
773 return HapManager::GetValidHapPath(hapPath) == OK ? true : false; in IsLoadHap()
890 std::string hapPath = (*resIter)->GetIndexPath(); in RemoveResource() local
891 if (hapPath == outPath) { in RemoveResource()
/base/web/webview/ohos_adapter/ohos_resource_adapter/src/
Dohos_resource_adapter_impl.cpp137 WVLOG_D("get hap module info success. %{public}s", hapModuleInfo.hapPath.c_str()); in GetNWebHapPath()
138 return hapModuleInfo.hapPath; in GetNWebHapPath()
197 OhosResourceAdapterImpl::OhosResourceAdapterImpl(const std::string& hapPath) in OhosResourceAdapterImpl() argument
199 Init(hapPath); in OhosResourceAdapterImpl()
202 void OhosResourceAdapterImpl::Init(const std::string& hapPath) in Init() argument
212 if (hapPath.empty()) { in Init()
215 std::string loadPath = ExtractorUtil::GetLoadFilePath(hapPath); in Init()
218 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);
/base/global/resource_management/frameworks/resmgr/src/utils/
Dhap_parser.cpp258 RState HapParser::ReadRawFileFromHap(const std::string &hapPath, const std::string &rawFileName, si… in ReadRawFileFromHap() argument
264 auto extractor = AbilityBase::ExtractorUtil::GetExtractor(hapPath, isNewExtractor); in ReadRawFileFromHap()
266 HILOG_ERROR("failed to get extractor hapPath, %{public}s", hapPath.c_str()); in ReadRawFileFromHap()
271 …UG("the rawfile file %{public}s is not exist in %{public}s", rawfilePath.c_str(), hapPath.c_str()); in ReadRawFileFromHap()
277 rawfilePath.c_str(), hapPath.c_str()); in ReadRawFileFromHap()
284 RState HapParser::ReadRawFileDescriptor(const char *hapPath, const std::string &rawFileName, in ReadRawFileDescriptor() argument
290 Utils::CanonicalizePath(hapPath, outPath, PATH_MAX); in ReadRawFileDescriptor()
299 …ILOG_DEBUG("the rawfile file %{public}s is not exist in %{public}s", rawfilePath.c_str(), hapPath); in ReadRawFileDescriptor()
320 RState HapParser::GetRawFileList(const std::string &hapPath, const std::string &rawDirPath, in GetRawFileList() argument
326 auto extractor = AbilityBase::ExtractorUtil::GetExtractor(hapPath, isNewExtractor); in GetRawFileList()
[all …]
Dutils.cpp455 bool Utils::ContainsTail(std::string hapPath, std::set<std::string> tailSet) in ContainsTail() argument
458 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/global/resource_management/frameworks/resmgr/test/unittest/common/
Dtheme_manager_test.cpp59 std::string hapPath; in SetUp() local
63 …this->rm = CreateResourceManager("ohos.global.test.all", "entry", hapPath, overlayPath, *rc, appTy… in SetUp()
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/web/webview/ohos_adapter/interfaces/
Dohos_adapter_helper.cpp160 …ue_ptr<OhosResourceAdapter> OhosAdapterHelper::GetResourceAdapter(const std::string& hapPath) const in GetResourceAdapter()
162 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.h69 static bool ContainsTail(std::string hapPath, std::set<std::string> tailSet);
/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/security/appverify/
DREADME_zh.md76 int32_t res = Security::Verify::HapVerify(hapPath, verifyResult);
DREADME.md75 int32_t res = Security::Verify::HapVerify(hapPath, verifyResult);
/base/global/resource_management/interfaces/inner_api/include/
Dresource_manager.h156 virtual RState IsLoadHap(std::string &hapPath) = 0;
236 …const std::string &moduleName, const std::string &hapPath, const std::vector<std::string> &overlay…
/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)) {
DREADME.md159 …bool Install(const char *hapPath, const InstallParam *installParam, InstallerCallback installerCal…
161 if ((hapPath == nullptr) || (installerCallback == nullptr) || (installParam == nullptr)) {
/base/notification/common_event_service/frameworks/extension/src/
Djs_static_subscriber_extension.cpp108 jsObj_ = jsRuntime_.LoadModule(moduleName, srcPath, abilityInfo_->hapPath, in Init()
/base/customization/enterprise_device_management/framework/extension/src/
Djs_enterprise_admin_extension.cpp64 jsObj_ = jsRuntime_.LoadModule(moduleName, srcPath, abilityInfo_->hapPath, in Init()
/base/theme/wallpaper_mgr/frameworks/kits/extension/src/
Djs_wallpaper_extension_ability.cpp78 jsObj_ = jsRuntime_.LoadModule(moduleName, srcPath, abilityInfo_->hapPath, in Init()

12