| /base/web/webview/test/unittest/ohos_adapter/ohos_resource_adapter_test/ |
| D | ohos_resource_adapter_test.cpp | 68 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/ |
| D | resource_manager.cpp | 54 …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()
|
| D | raw_file_manager.cpp | 116 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()
|
| D | hap_manager.cpp | 521 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/ |
| D | ohos_resource_adapter_impl.cpp | 70 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/ |
| D | hap_parser.h | 98 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,
|
| D | hap_manager.h | 210 bool IsLoadHap(std::string &hapPath); 217 int32_t GetValidHapPath(std::string& hapPath);
|
| D | resource_manager_impl.h | 458 virtual RState IsLoadHap(std::string &hapPath);
|
| /base/global/resource_management/frameworks/resmgr/src/utils/ |
| D | hap_parser.cpp | 254 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 …]
|
| D | utils.cpp | 456 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/ |
| D | ohos_resource_adapter_impl.h | 53 explicit OhosResourceAdapterImpl(const std::string& hapPath); 71 void Init(const std::string& hapPath);
|
| /base/web/webview/ohos_adapter/interfaces/ |
| D | ohos_adapter_helper.cpp | 131 …ue_ptr<OhosResourceAdapter> OhosAdapterHelper::GetResourceAdapter(const std::string& hapPath) const in GetResourceAdapter() 133 return std::make_unique<OhosResourceAdapterImpl>(hapPath); in GetResourceAdapter()
|
| D | ohos_adapter_helper.h | 87 std::unique_ptr<OhosResourceAdapter> GetResourceAdapter(const std::string& hapPath = "") const;
|
| /base/global/resource_management/frameworks/resmgr/include/utils/ |
| D | utils.h | 67 static bool ContainsTail(std::string hapPath, std::set<std::string> tailSet);
|
| /base/security/appverify/ |
| D | README_zh.md | 76 int32_t res = Security::Verify::HapVerify(hapPath, verifyResult);
|
| /base/telephony/core_service/frameworks/native/src/ |
| D | resource_utils.cpp | 384 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/ |
| D | hap_resource_test.cpp | 258 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/ |
| D | hap_resource_test.cpp | 263 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/ |
| D | resource_manager.h | 155 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/ |
| D | js_enterprise_admin_extension.cpp | 64 jsObj_ = jsRuntime_.LoadModule(moduleName, srcPath, abilityInfo_->hapPath, in Init()
|
| /base/notification/common_event_service/frameworks/extension/src/ |
| D | js_static_subscriber_extension.cpp | 108 jsObj_ = jsRuntime_.LoadModule(moduleName, srcPath, abilityInfo_->hapPath, in Init()
|
| /base/security/permission_lite/ |
| D | README_zh.md | 209 …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/ |
| D | js_wallpaper_extension_ability.cpp | 85 jsObj_ = jsRuntime_.LoadModule(moduleName, srcPath, abilityInfo_->hapPath, in Init()
|
| /base/startup/appspawn/util/src/ |
| D | sandbox_utils.cpp | 1019 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/ |
| D | js_inputmethod_extension.cpp | 106 … moduleName, srcPath, abilityInfo_->hapPath, abilityInfo_->compileMode == CompileMode::ES_MODULE); in Init()
|