Home
last modified time | relevance | path

Searched refs:pb_node (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/tools/aapt2/
DLoadedApk.cpp53 pb::XmlNode pb_node; in DetermineApkFormat() local
55 if (proto_reader.ReadMessage(&pb_node)) { in DetermineApkFormat()
136 pb::XmlNode pb_node; in LoadProtoApkFromFileCollection() local
138 if (!proto_reader.ReadMessage(&pb_node)) { in LoadProtoApkFromFileCollection()
144 std::unique_ptr<xml::XmlResource> manifest = DeserializeXmlResourceFromPb(pb_node, &error); in LoadProtoApkFromFileCollection()
326 pb::XmlNode pb_node; in LoadXml() local
328 if (!proto_reader.ReadMessage(&pb_node)) { in LoadXml()
334 doc = DeserializeXmlResourceFromPb(pb_node, &err); in LoadXml()
/frameworks/base/tools/aapt2/format/proto/
DProtoDeserialize.h47 std::unique_ptr<xml::XmlResource> DeserializeXmlResourceFromPb(const pb::XmlNode& pb_node,
50 bool DeserializeXmlFromPb(const pb::XmlNode& pb_node, xml::Element* out_el, StringPool* value_pool,
DProtoDeserialize.cpp1000 std::unique_ptr<xml::XmlResource> DeserializeXmlResourceFromPb(const pb::XmlNode& pb_node, in DeserializeXmlResourceFromPb() argument
1002 if (!pb_node.has_element()) { in DeserializeXmlResourceFromPb()
1008 if (!DeserializeXmlFromPb(pb_node, resource->root.get(), &resource->string_pool, out_error)) { in DeserializeXmlResourceFromPb()
1014 bool DeserializeXmlFromPb(const pb::XmlNode& pb_node, xml::Element* out_el, StringPool* value_pool, in DeserializeXmlFromPb() argument
1016 const pb::XmlElement& pb_el = pb_node.element(); in DeserializeXmlFromPb()
1019 out_el->line_number = pb_node.source().line_number(); in DeserializeXmlFromPb()
1020 out_el->column_number = pb_node.source().column_number(); in DeserializeXmlFromPb()
/frameworks/base/tools/aapt2/cmd/
DConvert.cpp104 pb::XmlNode pb_node; in SerializeFile() local
106 if (!proto_reader.ReadMessage(&pb_node)) { in SerializeFile()
113 unique_ptr<xml::XmlResource> xml = DeserializeXmlResourceFromPb(pb_node, &error); in SerializeFile()
154 pb::XmlNode pb_node; in SerializeXml() local
155 SerializeXmlResourceToPb(*xml, &pb_node); in SerializeXml()
156 return io::CopyProtoToArchive(context_, &pb_node, path, compression_flags, writer); in SerializeXml()
DLink.cpp268 pb::XmlNode pb_node; in FlattenXml() local
272 SerializeXmlResourceToPb(xml_res, &pb_node); in FlattenXml()
273 return io::CopyProtoToArchive(context, &pb_node, path.to_string(), ArchiveEntry::kCompress, in FlattenXml()