Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/cmd/
DDump.cpp45 static const char* ResourceFileTypeToString(const ResourceFile::Type& type) { in ResourceFileTypeToString()
47 case ResourceFile::Type::kPng: in ResourceFileTypeToString()
49 case ResourceFile::Type::kBinaryXml: in ResourceFileTypeToString()
51 case ResourceFile::Type::kProtoXml: in ResourceFileTypeToString()
59 static void DumpCompiledFile(const ResourceFile& file, const android::Source& source, in DumpCompiledFile()
204 ResourceFile file; in Action()
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()
DCompile.cpp343 static bool WriteHeaderAndDataToWriter(StringPiece output_path, const ResourceFile& file, in WriteHeaderAndDataToWriter()
475 xmlres->file.type = ResourceFile::Type::kProtoXml; in CompileXml()
575 ResourceFile res_file; in CompilePng()
579 res_file.type = ResourceFile::Type::kPng; in CompilePng()
707 ResourceFile res_file; in CompileFile()
711 res_file.type = ResourceFile::Type::kUnknown; in CompileFile()
DLink.cpp522 ResourceFile::Type XmlFileTypeForOutputFormat(OutputFormat format) { in XmlFileTypeForOutputFormat()
525 return ResourceFile::Type::kBinaryXml; in XmlFileTypeForOutputFormat()
527 return ResourceFile::Type::kProtoXml; in XmlFileTypeForOutputFormat()
530 return ResourceFile::Type::kUnknown; in XmlFileTypeForOutputFormat()
577 (file_ref->type == ResourceFile::Type::kBinaryXml || in Flatten()
578 file_ref->type == ResourceFile::Type::kProtoXml)) { in Flatten()
586 if (file_ref->type == ResourceFile::Type::kProtoXml) { in Flatten()
680 const ResourceFile& file = doc->file; in Flatten()
1546 bool MergeCompiledFile(const ResourceFile& compiled_file, io::IFile* file, bool override) { in MergeCompiledFile()
1691 ResourceFile resource_file; in MergeFile()
/frameworks/base/tools/aapt2/java/
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()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize.h81 void SerializeCompiledFileToPb(const ResourceFile& file, pb::internal::CompiledFile* out_file);
DProtoDeserialize.h60 ResourceFile* out_file, std::string* out_error);
DProtoDeserialize.cpp617 static ResourceFile::Type DeserializeFileReferenceTypeFromPb(const pb::FileReference::Type& type) { in DeserializeFileReferenceTypeFromPb()
620 return ResourceFile::Type::kBinaryXml; in DeserializeFileReferenceTypeFromPb()
622 return ResourceFile::Type::kProtoXml; in DeserializeFileReferenceTypeFromPb()
624 return ResourceFile::Type::kPng; in DeserializeFileReferenceTypeFromPb()
626 return ResourceFile::Type::kUnknown; in DeserializeFileReferenceTypeFromPb()
631 ResourceFile* out_file, std::string* out_error) { in DeserializeCompiledFileFromPb()
DProtoSerialize.cpp529 static pb::FileReference::Type SerializeFileReferenceTypeToPb(const ResourceFile::Type& type) { in SerializeFileReferenceTypeToPb()
531 case ResourceFile::Type::kBinaryXml: in SerializeFileReferenceTypeToPb()
533 case ResourceFile::Type::kProtoXml: in SerializeFileReferenceTypeToPb()
535 case ResourceFile::Type::kPng: in SerializeFileReferenceTypeToPb()
760 void SerializeCompiledFileToPb(const ResourceFile& file, pb::internal::CompiledFile* out_file) { in SerializeCompiledFileToPb()
/frameworks/base/tools/aapt2/link/
DTableMerger.h78 bool MergeFile(const ResourceFile& fileDesc, bool overlay, io::IFile* file);
DTableMerger_test.cpp94 ResourceFile file_desc; in TEST_F()
114 ResourceFile file_desc; in TEST_F()
DTableMerger.cpp373 bool TableMerger::MergeFile(const ResourceFile& file_desc, bool overlay, io::IFile* file) { in MergeFile()
/frameworks/base/tools/aapt2/
DResourceUtils.h222 std::string BuildResourceFileName(const ResourceFile& res_file,
DResourceValues.h291 ResourceFile::Type type = ResourceFile::Type::kUnknown;
DResourceUtils.cpp738 std::string BuildResourceFileName(const ResourceFile& res_file, const NameMangler* mangler) { in BuildResourceFileName()
796 file_ref->type = ResourceFile::Type::kUnknown; in ParseBinaryResValue()
798 file_ref->type = ResourceFile::Type::kBinaryXml; in ParseBinaryResValue()
800 file_ref->type = ResourceFile::Type::kPng; in ParseBinaryResValue()
DResourceValues.cpp344 case ResourceFile::Type::kBinaryXml: in Print()
347 case ResourceFile::Type::kProtoXml: in Print()
350 case ResourceFile::Type::kPng: in Print()
DResource.h224 struct ResourceFile { struct
/frameworks/base/tools/aapt2/xml/
DXmlDom.h142 ResourceFile file;
DXmlDom.cpp220 return util::make_unique<XmlResource>(ResourceFile{{}, {}, ResourceFile::Type::kUnknown, source}, in Inflate()