HomeSort by relevance Sort by last modified time
    Searched refs:XmlPullParser (Results 1 - 25 of 620) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /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() {
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...]
KxmlPullParserDtdTest.java 20 import org.xmlpull.v1.XmlPullParser;
24 @Override XmlPullParser newPullParser() throws XmlPullParserException {
26 result.setFeature(XmlPullParser.FEATURE_PROCESS_DOCDECL, true);
  /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/tools/aapt2/
ResourceParser.h 31 #include "xml/XmlPullParser.h"
58 bool Parse(xml::XmlPullParser* parser);
70 bool FlattenXmlSubtree(xml::XmlPullParser* parser, std::string* out_raw_string,
81 std::unique_ptr<Item> ParseXml(xml::XmlPullParser* parser, const uint32_t type_mask,
84 bool ParseResources(xml::XmlPullParser* parser);
85 bool ParseResource(xml::XmlPullParser* parser, ParsedResource* out_resource);
87 bool ParseItem(xml::XmlPullParser* parser, ParsedResource* out_resource, uint32_t format);
88 bool ParseString(xml::XmlPullParser* parser, ParsedResource* out_resource);
90 bool ParsePublic(xml::XmlPullParser* parser, ParsedResource* out_resource);
91 bool ParsePublicGroup(xml::XmlPullParser* parser, ParsedResource* out_resource)
    [all...]
  /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 {
  /frameworks/base/tools/aapt2/xml/
XmlPullParser_test.cpp 17 #include "xml/XmlPullParser.h"
34 xml::XmlPullParser parser(&input);
37 ASSERT_TRUE(xml::XmlPullParser::NextChildNode(&parser, depth_outer));
39 EXPECT_EQ(xml::XmlPullParser::Event::kStartElement, parser.event());
43 ASSERT_TRUE(xml::XmlPullParser::NextChildNode(&parser, depth_a));
44 EXPECT_EQ(xml::XmlPullParser::Event::kStartElement, parser.event());
48 ASSERT_TRUE(xml::XmlPullParser::NextChildNode(&parser, depth_b));
49 EXPECT_EQ(xml::XmlPullParser::Event::kStartElement, parser.event());
52 ASSERT_TRUE(xml::XmlPullParser::NextChildNode(&parser, depth_b));
53 EXPECT_EQ(xml::XmlPullParser::Event::kStartElement, parser.event())
    [all...]
XmlPullParser.cpp 22 #include "xml/XmlPullParser.h"
33 XmlPullParser::XmlPullParser(InputStream* in) : in_(in), empty_(), depth_(0) {
44 XmlPullParser::~XmlPullParser() {
48 XmlPullParser::Event XmlPullParser::Next() {
103 XmlPullParser::Event XmlPullParser::event() const {
107 const std::string& XmlPullParser::error() const { return error_;
    [all...]
XmlPullParser.h 42 class XmlPullParser : public IPackageDeclStack {
64 static bool NextChildNode(XmlPullParser* parser, size_t start_depth);
65 static bool SkipCurrentElement(XmlPullParser* parser);
68 explicit XmlPullParser(io::InputStream* in);
69 ~XmlPullParser();
79 * Note, unlike XmlPullParser, the first call to next() will return
152 DISALLOW_COPY_AND_ASSIGN(XmlPullParser);
191 Maybe<android::StringPiece> FindAttribute(const XmlPullParser* parser,
199 Maybe<android::StringPiece> FindNonEmptyAttribute(const XmlPullParser* parser,
207 XmlPullParser::Event event)
    [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/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);
  /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/layoutlib/bridge/src/android/util/
Xml_Delegate.java 23 import org.xmlpull.v1.XmlPullParser;
38 /*package*/ static XmlPullParser newPullParser() {
  /developers/build/prebuilts/gradle/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/net/
FeedParser.java 22 import org.xmlpull.v1.XmlPullParser;
61 XmlPullParser parser = Xml.newPullParser();
62 parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false);
72 * Decode a feed attached to an XmlPullParser.
79 private List<Entry> readFeed(XmlPullParser parser)
90 parser.require(XmlPullParser.START_TAG, ns, "feed");
91 while (parser.next() != XmlPullParser.END_TAG) {
92 if (parser.getEventType() != XmlPullParser.START_TAG) {
126 private Entry readEntry(XmlPullParser parser)
128 parser.require(XmlPullParser.START_TAG, ns, "entry")
    [all...]
  /developers/samples/android/connectivity/sync/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/net/
FeedParser.java 22 import org.xmlpull.v1.XmlPullParser;
61 XmlPullParser parser = Xml.newPullParser();
62 parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false);
72 * Decode a feed attached to an XmlPullParser.
79 private List<Entry> readFeed(XmlPullParser parser)
90 parser.require(XmlPullParser.START_TAG, ns, "feed");
91 while (parser.next() != XmlPullParser.END_TAG) {
92 if (parser.getEventType() != XmlPullParser.START_TAG) {
126 private Entry readEntry(XmlPullParser parser)
128 parser.require(XmlPullParser.START_TAG, ns, "entry")
    [all...]
  /development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/net/
FeedParser.java 22 import org.xmlpull.v1.XmlPullParser;
61 XmlPullParser parser = Xml.newPullParser();
62 parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false);
72 * Decode a feed attached to an XmlPullParser.
79 private List<Entry> readFeed(XmlPullParser parser)
90 parser.require(XmlPullParser.START_TAG, ns, "feed");
91 while (parser.next() != XmlPullParser.END_TAG) {
92 if (parser.getEventType() != XmlPullParser.START_TAG) {
126 private Entry readEntry(XmlPullParser parser)
128 parser.require(XmlPullParser.START_TAG, ns, "entry")
    [all...]
  /packages/apps/Dialer/java/com/android/voicemail/impl/utils/
XmlUtils.java 23 import org.xmlpull.v1.XmlPullParser;
29 XmlPullParser parser, String endTag, String[] name, ReadMapCallback callback)
35 if (eventType == XmlPullParser.START_TAG) {
38 } else if (eventType == XmlPullParser.END_TAG) {
45 } while (eventType != XmlPullParser.END_DOCUMENT);
51 * Read an ArrayList object from an XmlPullParser. The XML data could previously have been
52 * generated by writeListXml(). The XmlPullParser must be positioned <em>after</em> the tag that
55 * @param parser The XmlPullParser from which to read the list data.
61 XmlPullParser parser,
71 if (eventType == XmlPullParser.START_TAG)
    [all...]
  /frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
SimpleInflater.java 27 import org.xmlpull.v1.XmlPullParser;
83 * use inflater with an XmlPullParser over a plain XML file at runtime.
88 public T inflate(XmlPullParser parser) {
95 while ((type = parser.next()) != XmlPullParser.START_TAG
96 && type != XmlPullParser.END_DOCUMENT) {
100 if (type != XmlPullParser.START_TAG) {
144 private void rInflate(XmlPullParser parser, T parent, final AttributeSet attrs)
149 while (((type = parser.next()) != XmlPullParser.END_TAG
150 || parser.getDepth() > depth) && type != XmlPullParser.END_DOCUMENT) {
152 if (type != XmlPullParser.START_TAG)
    [all...]

Completed in 1886 milliseconds

1 2 3 4 5 6 7 8 91011>>