Home
last modified time | relevance | path

Searched refs:extractor (Results 1 – 8 of 8) sorted by relevance

/base/web/webview/test/unittest/ohos_adapter/ohos_resource_adapter_test/
Dohos_resource_adapter_test.cpp90 std::shared_ptr<Extractor> extractor = std::make_shared<Extractor>(rawFile); variable
91 result = adapterImpl.GetRawFileData(extractor, rawFile, len, dest);
107 result = adapterImpl.HasEntry(extractor, rawFile);
114 result = adapterImpl.GetRawFileMapper(extractor, rawFile, mapper);
138 std::shared_ptr<Extractor> extractor = std::make_shared<Extractor>(hapPath); variable
139 EXPECT_NE(extractor, nullptr);
146 OhosFileMapperImpl apperImpl(std::move(fileMap), extractor);
184 std::shared_ptr<Extractor> extractor = ExtractorUtil::GetExtractor(hapPath, newCreate); variable
185 EXPECT_NE(extractor, nullptr);
210 result = adapterImpl.ParseModuleName(extractor);
/base/global/resource_management/frameworks/resmgr/src/utils/
Dhap_parser.cpp202 std::string HapParser::ParseModuleName(std::shared_ptr<AbilityBase::Extractor> &extractor) in ParseModuleName() argument
204 if (extractor == nullptr) { in ParseModuleName()
209 bool ret = extractor->ExtractToBufByName("config.json", configBuf, len); in ParseModuleName()
223 std::string GetRawFilePathFromFA(std::shared_ptr<AbilityBase::Extractor> &extractor, in GetRawFilePathFromFA() argument
226 std::string moduleName = HapParser::ParseModuleName(extractor); in GetRawFilePathFromFA()
241 std::string HapParser::GetRawFilePath(std::shared_ptr<AbilityBase::Extractor> &extractor, in GetRawFilePath() argument
245 if (extractor->IsStageModel()) { in GetRawFilePath()
248 rawfilePath = GetRawFilePathFromFA(extractor, rawFileName); in GetRawFilePath()
259 auto extractor = AbilityBase::ExtractorUtil::GetExtractor(hapPath, isNewExtractor); in ReadRawFileFromHap() local
260 if (extractor == nullptr) { in ReadRawFileFromHap()
[all …]
/base/security/code_signature/interfaces/innerkits/code_sign_utils/src/
Dcode_sign_utils.cpp72 …std::unique_ptr<AbilityBase::Extractor> extractor = std::make_unique<AbilityBase::Extractor>(signa… in EnforceCodeSignForApp() local
74 NOT_SATISFIED_RETURN(extractor->Init(), CS_ERR_EXTRACT_FILES, "Init extractor failed."); in EnforceCodeSignForApp()
76 extractor->GetSpecifiedTypeFiles(signatureFileList, Constants::FSV_SIG_SUFFIX); in EnforceCodeSignForApp()
92 …NOT_SATISFIED_RETURN(extractor->ExtractToBufByName(signatureEntry, signatureBuffer, signatureSize), in EnforceCodeSignForApp()
/base/global/resource_management/frameworks/resmgr/src/
Dhap_manager.cpp512 std::string GetFilePathFromHap(std::shared_ptr<AbilityBase::Extractor> &extractor, in GetFilePathFromHap() argument
523 if (extractor->IsStageModel()) { in GetFilePathFromHap()
544 auto extractor = AbilityBase::ExtractorUtil::GetExtractor(hapPath, isNewExtractor); in GetAbilityExtractor() local
545 return extractor; in GetAbilityExtractor()
553 auto extractor = GetAbilityExtractor(qd); in GetProfileData() local
554 if (extractor == nullptr) { in GetProfileData()
558 std::string filePath = GetFilePathFromHap(extractor, qd, ResType::PROF); in GetProfileData()
563 bool ret = extractor->ExtractToBufByName(filePath, outValue, len); in GetProfileData()
589 auto extractor = GetAbilityExtractor(qd); in GetMediaDataFromHap() local
590 if (extractor == nullptr) { in GetMediaDataFromHap()
[all …]
Dhap_resource.cpp166 std::string GetIndexFilePath(std::shared_ptr<AbilityBase::Extractor> &extractor) in GetIndexFilePath() argument
168 std::string mName = HapParser::ParseModuleName(extractor); in GetIndexFilePath()
180 …std::shared_ptr<AbilityBase::Extractor> extractor = AbilityBase::ExtractorUtil::GetExtractor(path,… in GetIndexData() local
181 if (extractor == nullptr) { in GetIndexData()
185 if (extractor->IsStageModel()) { in GetIndexData()
188 indexFilePath = GetIndexFilePath(extractor); in GetIndexData()
190 bool ret = extractor->ExtractToBufByName(indexFilePath, tmpBuf, len); in GetIndexData()
/base/global/resource_management/frameworks/resmgr/include/
Dhap_parser.h78 static std::string ParseModuleName(std::shared_ptr<AbilityBase::Extractor> &extractor);
86 static std::string GetRawFilePath(std::shared_ptr<AbilityBase::Extractor> &extractor,
/base/web/webview/ohos_adapter/ohos_resource_adapter/include/
Dohos_resource_adapter_impl.h27 const std::shared_ptr<OHOS::AbilityBase::Extractor>& extractor);
/base/web/webview/ohos_adapter/ohos_resource_adapter/src/
Dohos_resource_adapter_impl.cpp88 … const std::shared_ptr<Extractor>& extractor): extractor_(extractor), fileMap_(std::move(fileMap)) in OhosFileMapperImpl() argument