Home
last modified time | relevance | path

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

12

/frameworks/layoutlib/bridge/bridge_client/src/com/android/ide/common/resources/deprecated/
DResourceFolder.java66 public ResourceFile processFile(TestFileWrapper file, ResourceDeltaKind kind, in processFile()
69 ResourceFile resFile = getFile(file, context); in processFile()
87 private ResourceFile createResourceFile(TestFileWrapper file) { in createResourceFile()
93 ResourceFile resFile; in createResourceFile()
133 private ResourceFile getFile(TestFileWrapper file, ScanningContext context) { in getFile()
139 ResourceFile resFile = createResourceFile(file); in getFile()
DResourceItem.java37 private final List<ResourceFile> mFiles = new ArrayList<>();
74 ResourceFile match = referenceConfig.findMatchingConfigurable(mFiles); in getResourceValue()
88 protected void add(ResourceFile file) { in add()
96 protected void removeFile(ResourceFile file) { in removeFile()
DResourceFile.java29 public abstract class ResourceFile implements Configurable { class
34 protected ResourceFile(TestFileWrapper file, ResourceFolder folder) { in ResourceFile() method in ResourceFile
DResourceRepository.java319 @NotNull ResourceFile file) { in removeFile()
327 private void removeFile(@NotNull ResourceType type, @NotNull ResourceFile file) { in removeFile()
DSingleResourceFile.java40 public class SingleResourceFile extends ResourceFile {
DMultiResourceFile.java45 public final class MultiResourceFile extends ResourceFile implements IValueResourceRepository {
DIdGeneratingResourceFile.java43 public final class IdGeneratingResourceFile extends ResourceFile
/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.cpp310 static bool WriteHeaderAndDataToWriter(StringPiece output_path, const ResourceFile& file, in WriteHeaderAndDataToWriter()
403 xmlres->file.type = ResourceFile::Type::kProtoXml; in CompileXml()
487 ResourceFile res_file; in CompilePng()
491 res_file.type = ResourceFile::Type::kPng; in CompilePng()
597 ResourceFile res_file; in CompileFile()
601 res_file.type = ResourceFile::Type::kUnknown; in CompileFile()
DLink.cpp510 ResourceFile::Type XmlFileTypeForOutputFormat(OutputFormat format) { in XmlFileTypeForOutputFormat()
513 return ResourceFile::Type::kBinaryXml; in XmlFileTypeForOutputFormat()
515 return ResourceFile::Type::kProtoXml; in XmlFileTypeForOutputFormat()
518 return ResourceFile::Type::kUnknown; in XmlFileTypeForOutputFormat()
565 (file_ref->type == ResourceFile::Type::kBinaryXml || in Flatten()
566 file_ref->type == ResourceFile::Type::kProtoXml)) { in Flatten()
574 if (file_ref->type == ResourceFile::Type::kProtoXml) { in Flatten()
655 const ResourceFile& file = doc->file; in Flatten()
1518 bool MergeCompiledFile(const ResourceFile& compiled_file, io::IFile* file, bool override) { in MergeCompiledFile()
1660 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);
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()
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()
/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.cpp344 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.h266 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()
/frameworks/base/tools/aapt2/xml/
DXmlDom.h142 ResourceFile file;
DXmlDom.cpp220 return util::make_unique<XmlResource>(ResourceFile{{}, {}, ResourceFile::Type::kUnknown, source}, in Inflate()

12