| /base/web/webview/test/unittest/ohos_adapter/ohos_resource_adapter_test/ |
| D | ohos_resource_adapter_test.cpp | 85 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/ |
| D | raw_file_manager.cpp | 126 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 …]
|
| D | resource_manager.cpp | 54 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()
|
| D | hap_manager.cpp | 522 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/ |
| D | ohos_resource_adapter_impl.cpp | 137 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/ |
| 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);
|
| /base/global/resource_management/frameworks/resmgr/src/utils/ |
| D | hap_parser.cpp | 258 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 …]
|
| D | utils.cpp | 455 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/ |
| D | ohos_resource_adapter_impl.h | 53 explicit OhosResourceAdapterImpl(const std::string& hapPath); 71 void Init(const std::string& hapPath);
|
| /base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
| D | theme_manager_test.cpp | 59 std::string hapPath; in SetUp() local 63 …this->rm = CreateResourceManager("ohos.global.test.all", "entry", hapPath, overlayPath, *rc, appTy… in SetUp()
|
| 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/web/webview/ohos_adapter/interfaces/ |
| D | ohos_adapter_helper.cpp | 160 …ue_ptr<OhosResourceAdapter> OhosAdapterHelper::GetResourceAdapter(const std::string& hapPath) const in GetResourceAdapter() 162 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 | 69 static bool ContainsTail(std::string hapPath, std::set<std::string> tailSet);
|
| /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/security/appverify/ |
| D | README_zh.md | 76 int32_t res = Security::Verify::HapVerify(hapPath, verifyResult);
|
| D | README.md | 75 int32_t res = Security::Verify::HapVerify(hapPath, verifyResult);
|
| /base/global/resource_management/interfaces/inner_api/include/ |
| D | resource_manager.h | 156 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/ |
| D | README_zh.md | 209 …bool Install(const char *hapPath, const InstallParam *installParam, InstallerCallback installerCal… 211 if ((hapPath == nullptr) || (installerCallback == nullptr) || (installParam == nullptr)) {
|
| D | README.md | 159 …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/ |
| D | js_static_subscriber_extension.cpp | 108 jsObj_ = jsRuntime_.LoadModule(moduleName, srcPath, abilityInfo_->hapPath, in Init()
|
| /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/theme/wallpaper_mgr/frameworks/kits/extension/src/ |
| D | js_wallpaper_extension_ability.cpp | 78 jsObj_ = jsRuntime_.LoadModule(moduleName, srcPath, abilityInfo_->hapPath, in Init()
|