/base/web/webview/test/unittest/ohos_adapter/ohos_resource_adapter_test/ |
D | ohos_resource_adapter_test.cpp | 90 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/ |
D | hap_parser.cpp | 202 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/ |
D | code_sign_utils.cpp | 72 …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/ |
D | hap_manager.cpp | 512 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 …]
|
D | hap_resource.cpp | 166 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/ |
D | hap_parser.h | 78 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/ |
D | ohos_resource_adapter_impl.h | 27 const std::shared_ptr<OHOS::AbilityBase::Extractor>& extractor);
|
/base/web/webview/ohos_adapter/ohos_resource_adapter/src/ |
D | ohos_resource_adapter_impl.cpp | 88 … const std::shared_ptr<Extractor>& extractor): extractor_(extractor), fileMap_(std::move(fileMap)) in OhosFileMapperImpl() argument
|