Lines Matching refs:xml

233     xml::XmlPullParser* parser, std::string* out_raw_string, StyleString* out_style_string,  in FlattenXmlSubtree()
250 while (depth > 0 && xml::XmlPullParser::IsGoodEvent(parser->Next())) { in FlattenXmlSubtree()
251 const xml::XmlPullParser::Event event = parser->event(); in FlattenXmlSubtree()
254 if (event == xml::XmlPullParser::Event::kStartElement in FlattenXmlSubtree()
255 || event == xml::XmlPullParser::Event::kEndElement) { in FlattenXmlSubtree()
269 case xml::XmlPullParser::Event::kText: { in FlattenXmlSubtree()
274 case xml::XmlPullParser::Event::kStartElement: { in FlattenXmlSubtree()
321 case xml::XmlPullParser::Event::kEndElement: { in FlattenXmlSubtree()
383 bool ResourceParser::Parse(xml::XmlPullParser* parser) { in Parse()
386 while (xml::XmlPullParser::NextChildNode(parser, depth)) { in Parse()
387 if (parser->event() != xml::XmlPullParser::Event::kStartElement) { in Parse()
402 if (parser->event() == xml::XmlPullParser::Event::kBadDocument) { in Parse()
410 bool ResourceParser::ParseResources(xml::XmlPullParser* parser) { in ParseResources()
416 while (xml::XmlPullParser::NextChildNode(parser, depth)) { in ParseResources()
417 const xml::XmlPullParser::Event event = parser->event(); in ParseResources()
418 if (event == xml::XmlPullParser::Event::kComment) { in ParseResources()
423 if (event == xml::XmlPullParser::Event::kText) { in ParseResources()
432 CHECK(event == xml::XmlPullParser::Event::kStartElement); in ParseResources()
455 if (Maybe<StringPiece> maybe_product = xml::FindNonEmptyAttribute(parser, "product")) { in ParseResources()
483 bool ResourceParser::ParseResource(xml::XmlPullParser* parser, in ParseResource()
490 using BagParseFunc = std::function<bool(ResourceParser*, xml::XmlPullParser*, in ParseResource()
545 if (Maybe<StringPiece> maybe_type = xml::FindNonEmptyAttribute(parser, "type")) { in ParseResource()
553 if (Maybe<StringPiece> maybe_format = xml::FindNonEmptyAttribute(parser, "format")) { in ParseResource()
569 if (Maybe<StringPiece> maybe_type = xml::FindNonEmptyAttribute(parser, "type")) { in ParseResource()
580 Maybe<StringPiece> maybe_name = xml::FindNonEmptyAttribute(parser, "name"); in ParseResource()
701 bool ResourceParser::ParseItem(xml::XmlPullParser* parser, in ParseItem()
724 std::unique_ptr<Item> ResourceParser::ParseXml(xml::XmlPullParser* parser, in ParseXml()
787 bool ResourceParser::ParseString(xml::XmlPullParser* parser, in ParseString()
791 xml::FindAttribute(parser, "formatted")) { in ParseString()
803 if (Maybe<StringPiece> translatable_attr = xml::FindAttribute(parser, "translatable")) { in ParseString()
843 bool ResourceParser::ParsePublic(xml::XmlPullParser* parser, ParsedResource* out_resource) { in ParsePublic()
855 Maybe<StringPiece> maybe_type = xml::FindNonEmptyAttribute(parser, "type"); in ParsePublic()
872 if (Maybe<StringPiece> maybe_id_str = xml::FindNonEmptyAttribute(parser, "id")) { in ParsePublic()
891 bool ResourceParser::ParsePublicGroup(xml::XmlPullParser* parser, ParsedResource* out_resource) { in ParsePublicGroup()
904 Maybe<StringPiece> maybe_type = xml::FindNonEmptyAttribute(parser, "type"); in ParsePublicGroup()
920 xml::FindNonEmptyAttribute(parser, "first-id"); in ParsePublicGroup()
941 while (xml::XmlPullParser::NextChildNode(parser, depth)) { in ParsePublicGroup()
942 if (parser->event() == xml::XmlPullParser::Event::kComment) { in ParsePublicGroup()
945 } else if (parser->event() != xml::XmlPullParser::Event::kStartElement) { in ParsePublicGroup()
955 xml::FindNonEmptyAttribute(parser, "name"); in ParsePublicGroup()
963 if (xml::FindNonEmptyAttribute(parser, "id")) { in ParsePublicGroup()
970 if (xml::FindNonEmptyAttribute(parser, "type")) { in ParsePublicGroup()
997 bool ResourceParser::ParseSymbolImpl(xml::XmlPullParser* parser, in ParseSymbolImpl()
999 Maybe<StringPiece> maybe_type = xml::FindNonEmptyAttribute(parser, "type"); in ParseSymbolImpl()
1019 bool ResourceParser::ParseSymbol(xml::XmlPullParser* parser, ParsedResource* out_resource) { in ParseSymbol()
1039 bool ResourceParser::ParseOverlayable(xml::XmlPullParser* parser, ParsedResource* out_resource) { in ParseOverlayable()
1046 Maybe<StringPiece> overlayable_name = xml::FindNonEmptyAttribute(parser, "name"); in ParseOverlayable()
1055 Maybe<StringPiece> overlayable_actor = xml::FindNonEmptyAttribute(parser, "actor"); in ParseOverlayable()
1072 while (xml::XmlPullParser::IsGoodEvent(parser->Next())) { in ParseOverlayable()
1073 xml::XmlPullParser::Event event = parser->event(); in ParseOverlayable()
1074 if (event == xml::XmlPullParser::Event::kEndElement && parser->depth() == start_depth) { in ParseOverlayable()
1077 } else if (event == xml::XmlPullParser::Event::kEndElement in ParseOverlayable()
1082 } else if (event == xml::XmlPullParser::Event::kComment) { in ParseOverlayable()
1086 } else if (event != xml::XmlPullParser::Event::kStartElement) { in ParseOverlayable()
1103 Maybe<StringPiece> item_name = xml::FindNonEmptyAttribute(parser, "name"); in ParseOverlayable()
1111 Maybe<StringPiece> item_type = xml::FindNonEmptyAttribute(parser, "type"); in ParseOverlayable()
1145 } else if (Maybe<StringPiece> maybe_type = xml::FindNonEmptyAttribute(parser, "type")) { in ParseOverlayable()
1190 bool ResourceParser::ParseAddResource(xml::XmlPullParser* parser, ParsedResource* out_resource) { in ParseAddResource()
1199 bool ResourceParser::ParseAttr(xml::XmlPullParser* parser, in ParseAttr()
1204 bool ResourceParser::ParseAttrImpl(xml::XmlPullParser* parser, in ParseAttrImpl()
1218 Maybe<StringPiece> maybe_format = xml::FindAttribute(parser, "format"); in ParseAttrImpl()
1230 if (Maybe<StringPiece> maybe_min_str = xml::FindAttribute(parser, "min")) { in ParseAttrImpl()
1247 if (Maybe<StringPiece> maybe_max_str = xml::FindAttribute(parser, "max")) { in ParseAttrImpl()
1282 while (xml::XmlPullParser::NextChildNode(parser, depth)) { in ParseAttrImpl()
1283 if (parser->event() == xml::XmlPullParser::Event::kComment) { in ParseAttrImpl()
1286 } else if (parser->event() != xml::XmlPullParser::Event::kStartElement) { in ParseAttrImpl()
1366 xml::XmlPullParser* parser, const StringPiece& tag) { in ParseEnumOrFlagItem()
1369 Maybe<StringPiece> maybe_name = xml::FindNonEmptyAttribute(parser, "name"); in ParseEnumOrFlagItem()
1376 Maybe<StringPiece> maybe_value = xml::FindNonEmptyAttribute(parser, "value"); in ParseEnumOrFlagItem()
1397 bool ResourceParser::ParseStyleItem(xml::XmlPullParser* parser, Style* style) { in ParseStyleItem()
1400 Maybe<StringPiece> maybe_name = xml::FindNonEmptyAttribute(parser, "name"); in ParseStyleItem()
1425 bool ResourceParser::ParseStyle(const ResourceType type, xml::XmlPullParser* parser, in ParseStyle()
1431 Maybe<StringPiece> maybe_parent = xml::FindAttribute(parser, "parent"); in ParseStyle()
1459 while (xml::XmlPullParser::NextChildNode(parser, depth)) { in ParseStyle()
1460 if (parser->event() != xml::XmlPullParser::Event::kStartElement) { in ParseStyle()
1485 bool ResourceParser::ParseArray(xml::XmlPullParser* parser, ParsedResource* out_resource) { in ParseArray()
1487 if (Maybe<StringPiece> format_attr = xml::FindNonEmptyAttribute(parser, "format")) { in ParseArray()
1498 bool ResourceParser::ParseIntegerArray(xml::XmlPullParser* parser, ParsedResource* out_resource) { in ParseIntegerArray()
1502 bool ResourceParser::ParseStringArray(xml::XmlPullParser* parser, ParsedResource* out_resource) { in ParseStringArray()
1506 bool ResourceParser::ParseArrayImpl(xml::XmlPullParser* parser, in ParseArrayImpl()
1514 if (Maybe<StringPiece> translatable_attr = xml::FindAttribute(parser, "translatable")) { in ParseArrayImpl()
1527 while (xml::XmlPullParser::NextChildNode(parser, depth)) { in ParseArrayImpl()
1528 if (parser->event() != xml::XmlPullParser::Event::kStartElement) { in ParseArrayImpl()
1562 bool ResourceParser::ParsePlural(xml::XmlPullParser* parser, in ParsePlural()
1570 while (xml::XmlPullParser::NextChildNode(parser, depth)) { in ParsePlural()
1571 if (parser->event() != xml::XmlPullParser::Event::kStartElement) { in ParsePlural()
1581 xml::FindNonEmptyAttribute(parser, "quantity"); in ParsePlural()
1644 bool ResourceParser::ParseDeclareStyleable(xml::XmlPullParser* parser, in ParseDeclareStyleable()
1670 while (xml::XmlPullParser::NextChildNode(parser, depth)) { in ParseDeclareStyleable()
1671 if (parser->event() == xml::XmlPullParser::Event::kComment) { in ParseDeclareStyleable()
1674 } else if (parser->event() != xml::XmlPullParser::Event::kStartElement) { in ParseDeclareStyleable()
1683 Maybe<StringPiece> maybe_name = xml::FindNonEmptyAttribute(parser, "name"); in ParseDeclareStyleable()
1702 xml::ResolvePackage(parser, &child_ref); in ParseDeclareStyleable()