/libcore/luni/src/test/java/libcore/xml/ |
PullParserDtdTest.java | 22 import org.xmlpull.v1.XmlPullParser; 40 XmlPullParser parser = newPullParser(xml); 41 while (parser.next() != XmlPullParser.END_DOCUMENT) { 63 XmlPullParser parser = newPullParser(xml); 64 assertEquals(XmlPullParser.START_TAG, parser.next()); 65 assertEquals(XmlPullParser.TEXT, parser.next()); 67 assertEquals(XmlPullParser.END_TAG, parser.next()); 68 assertEquals(XmlPullParser.END_DOCUMENT, parser.next()); 75 XmlPullParser parser = newPullParser(xml); 76 assertEquals(XmlPullParser.START_TAG, parser.next()) [all...] |
KxmlPullParserTest.java | 20 import org.xmlpull.v1.XmlPullParser; 24 @Override XmlPullParser newPullParser() {
|
KxmlPullParserDtdTest.java | 20 import org.xmlpull.v1.XmlPullParser; 24 @Override XmlPullParser newPullParser() throws XmlPullParserException { 26 result.setFeature(XmlPullParser.FEATURE_PROCESS_DOCDECL, true);
|
PullParserTest.java | 22 import org.xmlpull.v1.XmlPullParser; 28 XmlPullParser parser = newPullParser(); 31 assertEquals(XmlPullParser.START_TAG, parser.next()); 38 XmlPullParser parser = newPullParser(); 41 assertEquals(XmlPullParser.START_TAG, parser.next()); 48 XmlPullParser parser = newPullParser(); 51 assertEquals(XmlPullParser.START_TAG, parser.next()); 55 assertEquals(XmlPullParser.TEXT, parser.next()); 60 XmlPullParser parser = newPullParser(); 68 XmlPullParser parser = newPullParser() [all...] |
/packages/apps/Messaging/src/android/support/v7/mms/ |
MmsXmlResourceParser.java | 21 import org.xmlpull.v1.XmlPullParser; 47 protected final XmlPullParser mInputParser; 49 protected MmsXmlResourceParser(XmlPullParser parser) { 56 if (advanceToNextEvent(XmlPullParser.START_TAG) != XmlPullParser.START_TAG) { 68 while ((nextEvent = mInputParser.next()) == XmlPullParser.TEXT); 69 if (nextEvent == XmlPullParser.START_TAG) { 72 } else if (nextEvent == XmlPullParser.END_TAG) { 98 || nextEvent == XmlPullParser.END_DOCUMENT) { 113 if (eventType == XmlPullParser.START_TA [all...] |
CarrierConfigXmlParser.java | 19 import org.xmlpull.v1.XmlPullParser; 36 CarrierConfigXmlParser(final XmlPullParser parser, final KeyValueProcessor keyValueProcessor) { 50 if (nextEvent == XmlPullParser.TEXT) { 54 if (nextEvent != XmlPullParser.END_TAG) {
|
/frameworks/base/core/java/android/content/res/ |
XmlResourceParser.java | 19 import org.xmlpull.v1.XmlPullParser; 25 * XmlPullParser interface, as well as an extended AttributeSet interface and 29 public interface XmlResourceParser extends XmlPullParser, AttributeSet, AutoCloseable {
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
DrawableTestUtils.java | 25 import org.xmlpull.v1.XmlPullParser; 33 public static void skipCurrentTag(XmlPullParser parser) 37 while ((type=parser.next()) != XmlPullParser.END_DOCUMENT 38 && (type != XmlPullParser.END_TAG 46 * @param parser the XmlPullParser to use for the xml parsing. 56 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT 57 && type != XmlPullParser.START_TAG) { 64 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT 65 && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) { 66 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) [all...] |
/development/samples/training/network-usage/src/com/example/android/networkusage/ |
StackOverflowXmlParser.java | 19 import org.xmlpull.v1.XmlPullParser; 39 XmlPullParser parser = Xml.newPullParser(); 40 parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false); 49 private List<Entry> readFeed(XmlPullParser parser) throws XmlPullParserException, IOException { 52 parser.require(XmlPullParser.START_TAG, ns, "feed"); 53 while (parser.next() != XmlPullParser.END_TAG) { 54 if (parser.getEventType() != XmlPullParser.START_TAG) { 85 private Entry readEntry(XmlPullParser parser) throws XmlPullParserException, IOException { 86 parser.require(XmlPullParser.START_TAG, ns, "entry"); 90 while (parser.next() != XmlPullParser.END_TAG) [all...] |
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/ |
StackOverflowXmlParser.java | 19 import org.xmlpull.v1.XmlPullParser; 39 XmlPullParser parser = Xml.newPullParser(); 40 parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false); 49 private List<Entry> readFeed(XmlPullParser parser) throws XmlPullParserException, IOException { 52 parser.require(XmlPullParser.START_TAG, ns, "feed"); 53 while (parser.next() != XmlPullParser.END_TAG) { 54 if (parser.getEventType() != XmlPullParser.START_TAG) { 85 private Entry readEntry(XmlPullParser parser) throws XmlPullParserException, IOException { 86 parser.require(XmlPullParser.START_TAG, ns, "entry"); 90 while (parser.next() != XmlPullParser.END_TAG) [all...] |
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/android/ |
BridgeXmlBlockParserTest.java | 26 import org.xmlpull.v1.XmlPullParser; 43 XmlPullParser parser = ParserFactory.create( 49 assertEquals(XmlPullParser.START_DOCUMENT, parser.next()); 51 assertEquals(XmlPullParser.START_TAG, parser.next()); 54 assertEquals(XmlPullParser.TEXT, parser.next()); 56 assertEquals(XmlPullParser.START_TAG, parser.next()); 58 assertEquals(XmlPullParser.TEXT, parser.next()); 59 assertEquals(XmlPullParser.END_TAG, parser.next()); 61 assertEquals(XmlPullParser.TEXT, parser.next()); 63 assertEquals(XmlPullParser.START_TAG, parser.next()) [all...] |
/pdk/apps/TestingCamera2/src/com/android/testingcamera2/ |
BurstControlPane.java | 21 import org.xmlpull.v1.XmlPullParser; 41 public BurstControlPane(TestingCamera21 tc, XmlPullParser configParser, StatusListener listener) 47 configParser.require(XmlPullParser.START_TAG, 48 XmlPullParser.NO_NAMESPACE, PANE_NAME); 51 configParser.require(XmlPullParser.END_TAG, 52 XmlPullParser.NO_NAMESPACE, PANE_NAME);
|
UtilControlPane.java | 21 import org.xmlpull.v1.XmlPullParser; 40 public UtilControlPane(TestingCamera21 tc, XmlPullParser configParser, StatusListener listener) 46 configParser.require(XmlPullParser.START_TAG, 47 XmlPullParser.NO_NAMESPACE, PANE_NAME); 50 configParser.require(XmlPullParser.END_TAG, 51 XmlPullParser.NO_NAMESPACE, PANE_NAME);
|
/frameworks/base/tools/aapt2/ |
BindingXmlPullParser_test.cpp | 38 std::shared_ptr<XmlPullParser> sourceParser = std::make_shared<SourceXmlPullParser>(input); 41 ASSERT_EQ(XmlPullParser::Event::kStartNamespace, parser.next()); 45 ASSERT_EQ(XmlPullParser::Event::kStartElement, parser.next()); 48 while (parser.next() == XmlPullParser::Event::kText) {} 50 ASSERT_EQ(XmlPullParser::Event::kStartElement, parser.getEvent()); 59 while (parser.next() == XmlPullParser::Event::kText) {} 61 ASSERT_EQ(XmlPullParser::Event::kEndElement, parser.getEvent()); 63 while (parser.next() == XmlPullParser::Event::kText) {} 65 ASSERT_EQ(XmlPullParser::Event::kEndElement, parser.getEvent()); 66 ASSERT_EQ(XmlPullParser::Event::kEndNamespace, parser.next()) [all...] |
XmlPullParser.h | 29 class XmlPullParser { 44 static void skipCurrentElement(XmlPullParser* parser); 47 virtual ~XmlPullParser() {} 57 * Note, unlike XmlPullParser, the first call to next() will return 134 inline ::std::ostream& operator<<(::std::ostream& out, XmlPullParser::Event event) { 136 case XmlPullParser::Event::kBadDocument: return out << "BadDocument"; 137 case XmlPullParser::Event::kStartDocument: return out << "StartDocument"; 138 case XmlPullParser::Event::kEndDocument: return out << "EndDocument"; 139 case XmlPullParser::Event::kStartNamespace: return out << "StartNamespace"; 140 case XmlPullParser::Event::kEndNamespace: return out << "EndNamespace" [all...] |
ManifestParser.cpp | 21 #include "XmlPullParser.h" 27 bool ManifestParser::parse(const Source& source, std::shared_ptr<XmlPullParser> parser, 32 while (XmlPullParser::isGoodEvent(parser->next())) { 33 XmlPullParser::Event event = parser->getEvent(); 34 if (event == XmlPullParser::Event::kEndElement) { 37 } else if (event != XmlPullParser::Event::kStartElement) { 58 XmlPullParser::skipCurrentElement(parser.get()); 62 if (parser->getEvent() == XmlPullParser::Event::kBadDocument) { 73 bool ManifestParser::parseManifest(SourceLogger& logger, std::shared_ptr<XmlPullParser> parser,
|
ManifestParser.h | 23 #include "XmlPullParser.h" 36 bool parse(const Source& source, std::shared_ptr<XmlPullParser> parser, AppInfo* outInfo); 39 bool parseManifest(SourceLogger& logger, std::shared_ptr<XmlPullParser> parser,
|
XliffXmlPullParser_test.cpp | 33 std::shared_ptr<XmlPullParser> sourceParser = std::make_shared<SourceXmlPullParser>(input); 35 EXPECT_EQ(XmlPullParser::Event::kStartDocument, parser.getEvent()); 37 EXPECT_EQ(XmlPullParser::Event::kStartNamespace, parser.next()); 41 EXPECT_EQ(XmlPullParser::Event::kStartElement, parser.next()); 44 EXPECT_EQ(XmlPullParser::Event::kText, parser.next()); // Account for newline/whitespace. 46 EXPECT_EQ(XmlPullParser::Event::kStartElement, parser.next()); 50 EXPECT_EQ(XmlPullParser::Event::kText, parser.next()); 53 EXPECT_EQ(XmlPullParser::Event::kText, parser.next()); 56 EXPECT_EQ(XmlPullParser::Event::kText, parser.next()); 59 EXPECT_EQ(XmlPullParser::Event::kEndElement, parser.next()) [all...] |
ResourceParser.h | 26 #include "XmlPullParser.h" 145 const ConfigDescription& config, const std::shared_ptr<XmlPullParser>& parser); 158 bool flattenXmlSubtree(XmlPullParser* parser, std::u16string* outRawString,\ 167 std::unique_ptr<Item> parseXml(XmlPullParser* parser, uint32_t typeMask, bool allowRawValue); 169 bool parseResources(XmlPullParser* parser); 170 bool parseString(XmlPullParser* parser, const ResourceNameRef& resourceName); 171 bool parseColor(XmlPullParser* parser, const ResourceNameRef& resourceName); 172 bool parsePrimitive(XmlPullParser* parser, const ResourceNameRef& resourceName); 173 bool parsePublic(XmlPullParser* parser, const StringPiece16& name); 174 bool parseAttr(XmlPullParser* parser, const ResourceNameRef& resourceName) [all...] |
ScopedXmlPullParser_test.cpp | 32 EXPECT_EQ(XmlPullParser::Event::kStartElement, sourceParser.next()); 35 EXPECT_EQ(XmlPullParser::Event::kStartElement, sourceParser.next()); 40 EXPECT_EQ(XmlPullParser::Event::kEndElement, scopedParser.next()); 43 EXPECT_EQ(XmlPullParser::Event::kEndDocument, scopedParser.next()); 46 EXPECT_EQ(XmlPullParser::Event::kEndElement, sourceParser.next()); 49 EXPECT_EQ(XmlPullParser::Event::kEndDocument, sourceParser.next()); 58 EXPECT_EQ(XmlPullParser::Event::kStartElement, sourceParser.next()); 61 EXPECT_EQ(XmlPullParser::Event::kStartElement, sourceParser.next()); 69 EXPECT_EQ(XmlPullParser::Event::kEndElement, sourceParser.next()); 72 EXPECT_EQ(XmlPullParser::Event::kEndDocument, sourceParser.next()) [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
XmlParseUtils.java | 21 import org.xmlpull.v1.XmlPullParser; 33 public ParseException(final String msg, final XmlPullParser parser) { 40 public IllegalStartTag(final XmlPullParser parser, final String tag, final String parent) { 47 public IllegalEndTag(final XmlPullParser parser, final String tag, final String parent) { 54 public IllegalAttribute(final XmlPullParser parser, final String tag, 62 public NonEmptyTag(final XmlPullParser parser, final String tag) { 67 public static void checkEndTag(final String tag, final XmlPullParser parser) 69 if (parser.next() == XmlPullParser.END_TAG && tag.equals(parser.getName())) 75 final String attrName, final String tag, final XmlPullParser parser)
|
/frameworks/base/core/java/android/content/pm/ |
XmlSerializerAndParser.java | 20 import org.xmlpull.v1.XmlPullParser; 28 T createFromXml(XmlPullParser parser) throws IOException, XmlPullParserException;
|
/frameworks/base/services/core/java/com/android/server/firewall/ |
FilterFactory.java | 19 import org.xmlpull.v1.XmlPullParser; 38 public abstract Filter newFilter(XmlPullParser parser)
|
/frameworks/base/tools/layoutlib/bridge/src/android/util/ |
Xml_Delegate.java | 23 import org.xmlpull.v1.XmlPullParser; 38 /*package*/ static XmlPullParser newPullParser() {
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/ |
AbstractXmlPullParser.java | 21 import org.xmlpull.v1.XmlPullParser; 29 * Helper abstract class for XmlPullParser 44 XmlPullParser parser = fact.newPullParser(); 54 abstract void parse(XmlPullParser parser) throws XmlPullParserException, IOException; 59 * @param parser the {@link XmlPullParser} 63 protected int parseIntAttr(XmlPullParser parser, String name) { 78 protected boolean parseBooleanAttr(XmlPullParser parser, String name) { 87 * @param parser the XmlPullParser 91 protected String getAttribute(XmlPullParser parser, String name) {
|