Home
last modified time | relevance | path

Searched refs:ResourceFile (Results 1 – 19 of 19) sorted by relevance

/aosp14/frameworks/base/tools/aapt2/java/
H A DProguardRules.cpp42 BaseVisitor(const ResourceFile& file, KeepSet* keep_set) : BaseVisitor(file, keep_set, "...") { in BaseVisitor()
45 BaseVisitor(const ResourceFile& file, KeepSet* keep_set, const std::string& ctor_signature) in BaseVisitor()
79 ResourceFile file_;
112 LayoutVisitor(const ResourceFile& file, KeepSet* keep_set) in LayoutVisitor()
152 MenuVisitor(const ResourceFile& file, KeepSet* keep_set) : BaseVisitor(file, keep_set) { in MenuVisitor()
184 XmlResourceVisitor(const ResourceFile& file, KeepSet* keep_set) : BaseVisitor(file, keep_set) { in XmlResourceVisitor()
211 NavigationVisitor(const ResourceFile& file, KeepSet* keep_set, const std::string& package) in NavigationVisitor()
234 TransitionVisitor(const ResourceFile& file, KeepSet* keep_set) : BaseVisitor(file, keep_set) { in TransitionVisitor()
257 ManifestVisitor(const ResourceFile& file, KeepSet* keep_set, bool main_dex_only) in ManifestVisitor()
/aosp14/frameworks/base/tools/aapt2/cmd/
H A DDump.cpp46 static const char* ResourceFileTypeToString(const ResourceFile::Type& type) { in ResourceFileTypeToString()
48 case ResourceFile::Type::kPng: in ResourceFileTypeToString()
50 case ResourceFile::Type::kBinaryXml: in ResourceFileTypeToString()
52 case ResourceFile::Type::kProtoXml: in ResourceFileTypeToString()
60 static void DumpCompiledFile(const ResourceFile& file, const android::Source& source, in DumpCompiledFile()
204 ResourceFile file; in Action()
H A DConvert.cpp100 if (file->type == ResourceFile::Type::kProtoXml) { in SerializeFile()
132 file->type = ResourceFile::Type::kBinaryXml; in SerializeFile()
172 if (file->type == ResourceFile::Type::kBinaryXml) { in SerializeFile()
195 file->type = ResourceFile::Type::kProtoXml; in SerializeFile()
H A DCompile.cpp286 static bool WriteHeaderAndDataToWriter(StringPiece output_path, const ResourceFile& file, in WriteHeaderAndDataToWriter()
379 xmlres->file.type = ResourceFile::Type::kProtoXml; in CompileXml()
463 ResourceFile res_file; in CompilePng()
467 res_file.type = ResourceFile::Type::kPng; in CompilePng()
571 ResourceFile res_file; in CompileFile()
575 res_file.type = ResourceFile::Type::kUnknown; in CompileFile()
H A DLink.cpp507 ResourceFile::Type XmlFileTypeForOutputFormat(OutputFormat format) { in XmlFileTypeForOutputFormat()
510 return ResourceFile::Type::kBinaryXml; in XmlFileTypeForOutputFormat()
512 return ResourceFile::Type::kProtoXml; in XmlFileTypeForOutputFormat()
515 return ResourceFile::Type::kUnknown; in XmlFileTypeForOutputFormat()
562 (file_ref->type == ResourceFile::Type::kBinaryXml || in Flatten()
563 file_ref->type == ResourceFile::Type::kProtoXml)) { in Flatten()
571 if (file_ref->type == ResourceFile::Type::kProtoXml) { in Flatten()
652 const ResourceFile& file = doc->file; in Flatten()
1515 bool MergeCompiledFile(const ResourceFile& compiled_file, io::IFile* file, bool override) { in MergeCompiledFile()
1657 ResourceFile resource_file; in MergeFile()
/aosp14/frameworks/base/tools/aapt2/format/proto/
H A DProtoSerialize.h81 void SerializeCompiledFileToPb(const ResourceFile& file, pb::internal::CompiledFile* out_file);
H A DProtoDeserialize.h60 ResourceFile* out_file, std::string* out_error);
H A DProtoSerialize.cpp521 static pb::FileReference::Type SerializeFileReferenceTypeToPb(const ResourceFile::Type& type) { in SerializeFileReferenceTypeToPb()
523 case ResourceFile::Type::kBinaryXml: in SerializeFileReferenceTypeToPb()
525 case ResourceFile::Type::kProtoXml: in SerializeFileReferenceTypeToPb()
527 case ResourceFile::Type::kPng: in SerializeFileReferenceTypeToPb()
731 void SerializeCompiledFileToPb(const ResourceFile& file, pb::internal::CompiledFile* out_file) { in SerializeCompiledFileToPb()
H A DProtoDeserialize.cpp590 static ResourceFile::Type DeserializeFileReferenceTypeFromPb(const pb::FileReference::Type& type) { in DeserializeFileReferenceTypeFromPb()
593 return ResourceFile::Type::kBinaryXml; in DeserializeFileReferenceTypeFromPb()
595 return ResourceFile::Type::kProtoXml; in DeserializeFileReferenceTypeFromPb()
597 return ResourceFile::Type::kPng; in DeserializeFileReferenceTypeFromPb()
599 return ResourceFile::Type::kUnknown; in DeserializeFileReferenceTypeFromPb()
604 ResourceFile* out_file, std::string* out_error) { in DeserializeCompiledFileFromPb()
/aosp14/frameworks/base/tools/aapt2/link/
H A DTableMerger.h78 bool MergeFile(const ResourceFile& fileDesc, bool overlay, io::IFile* file);
H A DTableMerger_test.cpp94 ResourceFile file_desc; in TEST_F()
114 ResourceFile file_desc; in TEST_F()
H A DTableMerger.cpp344 bool TableMerger::MergeFile(const ResourceFile& file_desc, bool overlay, io::IFile* file) { in MergeFile()
/aosp14/frameworks/base/tools/aapt2/
H A DResourceUtils.h222 std::string BuildResourceFileName(const ResourceFile& res_file,
H A DResourceValues.h266 ResourceFile::Type type = ResourceFile::Type::kUnknown;
H A DResourceUtils.cpp714 std::string BuildResourceFileName(const ResourceFile& res_file, const NameMangler* mangler) { in BuildResourceFileName()
772 file_ref->type = ResourceFile::Type::kUnknown; in ParseBinaryResValue()
774 file_ref->type = ResourceFile::Type::kBinaryXml; in ParseBinaryResValue()
776 file_ref->type = ResourceFile::Type::kPng; in ParseBinaryResValue()
H A DResourceValues.cpp344 case ResourceFile::Type::kBinaryXml: in Print()
347 case ResourceFile::Type::kProtoXml: in Print()
350 case ResourceFile::Type::kPng: in Print()
H A DResource.h211 struct ResourceFile { struct
/aosp14/frameworks/base/tools/aapt2/xml/
H A DXmlDom.h142 ResourceFile file;
H A DXmlDom.cpp220 return util::make_unique<XmlResource>(ResourceFile{{}, {}, ResourceFile::Type::kUnknown, source}, in Inflate()