Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/cmd/
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 Source& source, off64_t offset, in DumpCompiledFile()
198 ResourceFile file; in Action()
DConvert.cpp96 if (file->type == ResourceFile::Type::kProtoXml) { in SerializeFile()
128 file->type = ResourceFile::Type::kBinaryXml; in SerializeFile()
167 if (file->type == ResourceFile::Type::kBinaryXml) { in SerializeFile()
190 file->type = ResourceFile::Type::kProtoXml; in SerializeFile()
DCompile.cpp289 static bool WriteHeaderAndDataToWriter(const StringPiece& output_path, const ResourceFile& file, in WriteHeaderAndDataToWriter()
382 xmlres->file.type = ResourceFile::Type::kProtoXml; in CompileXml()
465 ResourceFile res_file; in CompilePng()
469 res_file.type = ResourceFile::Type::kPng; in CompilePng()
572 ResourceFile res_file; in CompileFile()
576 res_file.type = ResourceFile::Type::kUnknown; in CompileFile()
DLink.cpp480 ResourceFile::Type XmlFileTypeForOutputFormat(OutputFormat format) { in XmlFileTypeForOutputFormat()
483 return ResourceFile::Type::kBinaryXml; in XmlFileTypeForOutputFormat()
485 return ResourceFile::Type::kProtoXml; in XmlFileTypeForOutputFormat()
488 return ResourceFile::Type::kUnknown; in XmlFileTypeForOutputFormat()
535 (file_ref->type == ResourceFile::Type::kBinaryXml || in Flatten()
536 file_ref->type == ResourceFile::Type::kProtoXml)) { in Flatten()
544 if (file_ref->type == ResourceFile::Type::kProtoXml) { in Flatten()
624 const ResourceFile& file = doc->file; in Flatten()
1369 bool MergeCompiledFile(const ResourceFile& compiled_file, io::IFile* file, bool override) { in MergeCompiledFile()
1509 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()
178 XmlResourceVisitor(const ResourceFile& file, KeepSet* keep_set) : BaseVisitor(file, keep_set) { in XmlResourceVisitor()
205 NavigationVisitor(const ResourceFile& file, KeepSet* keep_set, const std::string& package) in NavigationVisitor()
228 TransitionVisitor(const ResourceFile& file, KeepSet* keep_set) : BaseVisitor(file, keep_set) { in TransitionVisitor()
251 ManifestVisitor(const ResourceFile& file, KeepSet* keep_set, bool main_dex_only) in ManifestVisitor()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize.h65 void SerializeCompiledFileToPb(const ResourceFile& file, pb::internal::CompiledFile* out_file);
DProtoDeserialize.h61 ResourceFile* out_file, std::string* out_error);
DProtoSerialize.cpp436 static pb::FileReference::Type SerializeFileReferenceTypeToPb(const ResourceFile::Type& type) { in SerializeFileReferenceTypeToPb()
438 case ResourceFile::Type::kBinaryXml: in SerializeFileReferenceTypeToPb()
440 case ResourceFile::Type::kProtoXml: in SerializeFileReferenceTypeToPb()
442 case ResourceFile::Type::kPng: in SerializeFileReferenceTypeToPb()
640 void SerializeCompiledFileToPb(const ResourceFile& file, pb::internal::CompiledFile* out_file) { in SerializeCompiledFileToPb()
DProtoDeserialize.cpp568 static ResourceFile::Type DeserializeFileReferenceTypeFromPb(const pb::FileReference::Type& type) { in DeserializeFileReferenceTypeFromPb()
571 return ResourceFile::Type::kBinaryXml; in DeserializeFileReferenceTypeFromPb()
573 return ResourceFile::Type::kProtoXml; in DeserializeFileReferenceTypeFromPb()
575 return ResourceFile::Type::kPng; in DeserializeFileReferenceTypeFromPb()
577 return ResourceFile::Type::kUnknown; in DeserializeFileReferenceTypeFromPb()
582 ResourceFile* out_file, std::string* out_error) { in DeserializeCompiledFileFromPb()
/frameworks/base/tools/aapt2/link/
DTableMerger.h75 bool MergeFile(const ResourceFile& fileDesc, bool overlay, io::IFile* file);
DTableMerger_test.cpp95 ResourceFile file_desc; in TEST_F()
115 ResourceFile file_desc; in TEST_F()
DTableMerger.cpp332 bool TableMerger::MergeFile(const ResourceFile& file_desc, bool overlay, io::IFile* file) { in MergeFile()
/frameworks/base/tools/aapt2/
DResourceValues.h265 ResourceFile::Type type = ResourceFile::Type::kUnknown;
DResourceUtils.h225 std::string BuildResourceFileName(const ResourceFile& res_file,
DResourceUtils.cpp719 std::string BuildResourceFileName(const ResourceFile& res_file, const NameMangler* mangler) { in BuildResourceFileName()
767 file_ref->type = ResourceFile::Type::kUnknown; in ParseBinaryResValue()
769 file_ref->type = ResourceFile::Type::kBinaryXml; in ParseBinaryResValue()
771 file_ref->type = ResourceFile::Type::kPng; in ParseBinaryResValue()
DResourceValues.cpp372 case ResourceFile::Type::kBinaryXml: in Print()
375 case ResourceFile::Type::kProtoXml: in Print()
378 case ResourceFile::Type::kPng: in Print()
DResource.h167 struct ResourceFile { struct
/frameworks/base/tools/aapt2/xml/
DXmlDom.h148 ResourceFile file;
DXmlDom.cpp219 return util::make_unique<XmlResource>(ResourceFile{{}, {}, ResourceFile::Type::kUnknown, source}, in Inflate()