HomeSort by relevance Sort by last modified time
    Searched refs:parser (Results 126 - 150 of 2894) sorted by null

1 2 3 4 56 7 8 91011>>

  /external/smack/src/org/jivesoftware/smackx/provider/
DiscoverItemsProvider.java 35 public IQ parseIQ(XmlPullParser parser) throws Exception {
43 discoverItems.setNode(parser.getAttributeValue("", "node"));
45 int eventType = parser.next();
47 if (eventType == XmlPullParser.START_TAG && "item".equals(parser.getName())) {
49 jid = parser.getAttributeValue("", "jid");
50 name = parser.getAttributeValue("", "name");
51 node = parser.getAttributeValue("", "node");
52 action = parser.getAttributeValue("", "action");
54 else if (eventType == XmlPullParser.END_TAG && "item".equals(parser.getName())) {
62 else if (eventType == XmlPullParser.END_TAG && "query".equals(parser.getName()))
    [all...]
MultipleAddressesProvider.java 43 public PacketExtension parseExtension(XmlPullParser parser) throws Exception {
47 int eventType = parser.next();
49 if (parser.getName().equals("address")) {
50 String type = parser.getAttributeValue("", "type");
51 String jid = parser.getAttributeValue("", "jid");
52 String node = parser.getAttributeValue("", "node");
53 String desc = parser.getAttributeValue("", "desc");
54 boolean delivered = "true".equals(parser.getAttributeValue("", "delivered"));
55 String uri = parser.getAttributeValue("", "uri");
60 if (parser.getName().equals(multipleAddresses.getElementName()))
    [all...]
  /cts/tools/tradefed-host/src/com/android/cts/tradefed/result/
TestSummaryXml.java 103 void parse(XmlPullParser parser) throws XmlPullParserException, IOException {
104 int eventType = parser.getEventType();
106 if (eventType == XmlPullParser.START_TAG && parser.getName().equals(
108 mPlan = getAttribute(parser, CtsXmlResultReporter.PLAN_ATTR);
109 mStartTime = getAttribute(parser, CtsXmlResultReporter.STARTTIME_ATTR);
110 } else if (eventType == XmlPullParser.START_TAG && parser.getName().equals(
112 mDeviceSerials = getAttribute(parser, DeviceInfoConstants.SERIAL_NUMBER);
113 } else if (eventType == XmlPullParser.START_TAG && parser.getName().equals(
115 mNumFailed = parseIntAttr(parser, TestResults.FAILED_ATTR) +
116 parseIntAttr(parser, TestResults.TIMEOUT_ATTR)
    [all...]
  /cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/result/
TestResultsTest.java 55 TestResults parser = new TestResults(); local
56 parser.parse(new StringReader("<Empty/>"));
57 assertEquals(0, parser.getPackages().size());
64 TestResults parser = new TestResults(); local
65 parser.parse(new StringReader(TEST_PACKAGE_FULL));
66 assertEquals(1, parser.getPackages().size());
67 TestPackageResult pkg = parser.getPackages().iterator().next();
77 TestResults parser = new TestResults(); local
80 parser.parse(new StringReader(RESULT_START + TEST_PACKAGE_START + RESULT_END));
91 TestResults parser = new TestResults() local
    [all...]
  /external/ksoap2/ksoap2-base/src/main/java/org/ksoap2/
SoapFault.java 58 public void parse(XmlPullParser parser) throws IOException, XmlPullParserException {
59 parser.require(XmlPullParser.START_TAG, SoapEnvelope.ENV, "Fault");
60 while (parser.nextTag() == XmlPullParser.START_TAG) {
61 String name = parser.getName();
64 detail.parse(parser);
66 if (parser.getNamespace().equals(SoapEnvelope.ENV)
67 && parser.getName().equals("Fault")) {
72 faultcode = parser.nextText();
74 faultstring = parser.nextText();
76 faultactor = parser.nextText()
    [all...]
  /external/tagsoup/src/org/ccil/cowan/tagsoup/jaxp/
SAXParserImpl.java 22 import org.ccil.cowan.tagsoup.Parser;
34 final org.ccil.cowan.tagsoup.Parser parser; field in class:SAXParserImpl
39 parser = new org.ccil.cowan.tagsoup.Parser();
45 SAXParserImpl parser = new SAXParserImpl(); local
50 parser.setFeature((String) entry.getKey(), ((Boolean) entry.getValue()).booleanValue());
53 return parser;
62 public org.xml.sax.Parser getParser()
65 return new SAX1ParserAdapter(parser);
    [all...]
  /frameworks/base/services/core/java/com/android/server/pm/
PersistentPreferredActivity.java 46 PersistentPreferredActivity(XmlPullParser parser) throws XmlPullParserException, IOException {
47 String shortComponent = parser.getAttributeValue(null, ATTR_NAME);
53 " at " + parser.getPositionDescription());
55 int outerDepth = parser.getDepth();
56 String tagName = parser.getName();
58 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT
59 && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) {
60 tagName = parser.getName();
69 " at " + parser.getPositionDescription());
70 XmlUtils.skipCurrentTag(parser);
    [all...]
  /external/smack/src/org/jivesoftware/smack/util/
PacketParserUtils.java 69 * @param parser the XML parser, positioned at the start of a message packet.
73 public static Packet parseMessage(XmlPullParser parser) throws Exception {
75 String id = parser.getAttributeValue("", "id");
77 message.setTo(parser.getAttributeValue("", "to"));
78 message.setFrom(parser.getAttributeValue("", "from"));
79 message.setType(Message.Type.fromString(parser.getAttributeValue("", "type")));
80 String language = getLanguageAttribute(parser);
99 int eventType = parser.next();
101 String elementName = parser.getName()
489 parser)); local
    [all...]
  /external/smack/src/org/jivesoftware/smack/
SmackConfiguration.java 91 XmlPullParser parser = XmlPullParserFactory.newInstance().newPullParser(); typedefs
92 parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, true);
93 parser.setInput(systemStream, "UTF-8");
94 int eventType = parser.getEventType();
97 if (parser.getName().equals("className")) {
99 parseClassToLoad(parser); typedefs
101 else if (parser.getName().equals("packetReplyTimeout")) {
102 packetReplyTimeout = parseIntProperty(parser, packetReplyTimeout);
104 else if (parser.getName().equals("mechName")) {
105 defaultMechs.add(parser.nextText())
    [all...]
  /frameworks/base/services/core/java/com/android/server/
SystemConfig.java 183 XmlPullParser parser = Xml.newPullParser(); local
184 parser.setInput(permReader);
187 while ((type=parser.next()) != parser.START_TAG
188 && type != parser.END_DOCUMENT) {
192 if (type != parser.START_TAG) {
196 if (!parser.getName().equals("permissions") && !parser.getName().equals("config")) {
197 throw new XmlPullParserException("Unexpected start tag: found " + parser.getName() +
202 XmlUtils.nextElement(parser);
    [all...]
  /external/antlr/antlr-3.4/runtime/Ruby/test/functional/parser/
nuances.rb 29 parser = EmptyAlt::Parser.new lexer
30 events = parser.r
43 @parser::members {
59 parser = Subrule::Parser.new lexer
60 events = parser.a
96 parser = SpecialStates::Parser.new lexer
97 parser.
    [all...]
  /external/chromium_org/third_party/libyuv/tools/valgrind-libyuv/
libyuv_tests.py 74 parser = optparse.OptionParser('usage: %prog -b <dir> -t <test> <test args>')
75 parser.disable_interspersed_args()
76 parser.add_option('-b', '--build-dir',
79 parser.add_option("--target", help="Debug or Release")
80 parser.add_option('-t', '--test', help='Test to run.')
81 parser.add_option('', '--baseline', action='store_true', default=False,
83 parser.add_option('', '--gtest_filter',
85 parser.add_option('', '--gtest_repeat',
87 parser.add_option("--gtest_shuffle", action="store_true", default=False,
89 parser.add_option('-v', '--verbose', action='store_true', default=False
    [all...]
  /external/chromium_org/third_party/webrtc/tools/
compare_videos.py 27 parser = optparse.OptionParser(usage=usage)
29 parser.add_option('--label', type='string', default='MY_TEST',
32 parser.add_option('--ref_video', type='string',
34 parser.add_option('--test_video', type='string',
37 parser.add_option('--frame_analyzer', type='string',
39 parser.add_option('--barcode_decoder', type='string',
43 parser.add_option('--ffmpeg_path', type='string',
47 parser.add_option('--zxing_path', type='string',
51 parser.add_option('--stats_file', type='string', default='stats.txt',
54 parser.add_option('--yuv_frame_width', type='int', default=640
    [all...]
  /frameworks/base/core/java/android/app/
AliasActivity.java 56 XmlResourceParser parser = null; local
60 parser = ai.loadXmlMetaData(getPackageManager(),
62 if (parser == null) {
67 Intent intent = parseAlias(parser);
83 if (parser != null) parser.close();
87 private Intent parseAlias(XmlPullParser parser)
89 AttributeSet attrs = Xml.asAttributeSet(parser);
94 while ((type=parser.next()) != XmlPullParser.END_DOCUMENT
98 String nodeName = parser.getName()
    [all...]
  /external/antlr/antlr-3.4/runtime/Python/tests/
t021hoist.py 17 parser = self.getParser(tStream)
18 parser.enableEnum = True
19 enumIs = parser.stat()
28 parser = self.getParser(tStream)
29 parser.enableEnum = False
30 enumIs = parser.stat()
t050decorate.py 14 parser = self.getParser(tStream)
15 parser.document()
17 assert parser.events == ['before', 'after']
  /external/chromium_org/tools/cr/cr/commands/
install.py 25 parser = super(InstallCommand, self).AddArguments(subparsers)
26 cr.Builder.AddArguments(self, parser)
27 cr.Installer.AddArguments(self, parser)
28 cr.Target.AddArguments(self, parser, allow_multiple=True)
29 self.ConsumeArgs(parser, 'the installer')
30 return parser
  /frameworks/base/services/core/java/com/android/server/firewall/
FilterList.java 29 public FilterList readFromXml(XmlPullParser parser) throws IOException, XmlPullParserException {
30 int outerDepth = parser.getDepth();
31 while (XmlUtils.nextElementWithin(parser, outerDepth)) {
32 readChild(parser);
37 protected void readChild(XmlPullParser parser) throws IOException, XmlPullParserException {
38 Filter filter = IntentFirewall.parseFilter(parser);
  /libcore/xml/src/main/java/org/xmlpull/v1/
XmlPullParserException.java 7 * This exception is thrown to signal XML Pull Parser related faults.
36 public XmlPullParserException(String msg, XmlPullParser parser, Throwable chain) {
38 + (parser == null ? "" : "(position:"+parser.getPositionDescription()+") ")
41 if (parser != null) {
42 this.row = parser.getLineNumber();
43 this.column = parser.getColumnNumber();
  /external/expat/tests/
runtests.c 31 static XML_Parser parser; variable
37 parser = XML_ParserCreate(NULL);
38 if (parser == NULL)
39 fail("Parser not created.");
45 if (parser != NULL)
46 XML_ParserFree(parser);
49 /* Generate a failure using the parser state to create an error message;
50 this should be used when the parser reports an error we weren't
54 _xml_failure(XML_Parser parser, const char *file, int line)
57 enum XML_Error err = XML_GetErrorCode(parser);
    [all...]
  /external/chromium_org/base/json/
json_parser_unittest.cc 18 JSONParser* parser = new JSONParser(JSON_PARSE_RFC); local
19 parser->start_pos_ = input.data();
20 parser->pos_ = parser->start_pos_;
21 parser->end_pos_ = parser->start_pos_ + input.length();
22 return parser;
25 void TestLastThree(JSONParser* parser) {
26 EXPECT_EQ(',', *parser->NextChar());
27 EXPECT_EQ('|', *parser->NextChar())
    [all...]
  /external/chromium_org/chrome/test/logging/win/
mof_data_parser_unittest.cc 11 // A test fixture for Mof parser tests.
68 logging_win::MofDataParser parser(event);
69 EXPECT_FALSE(parser.empty());
70 EXPECT_TRUE(parser.ReadDWORD(&value));
72 EXPECT_TRUE(parser.empty());
79 logging_win::MofDataParser parser(event);
80 EXPECT_FALSE(parser.empty());
81 EXPECT_FALSE(parser.ReadDWORD(&value));
98 logging_win::MofDataParser parser(event);
99 EXPECT_FALSE(parser.empty())
    [all...]
  /external/chromium-trace/trace-viewer/third_party/pywebsocket/src/test/
endtoend_with_external_server.py 55 parser = optparse.OptionParser() variable in class:EndToEndTestWithExternalServer
56 parser.add_option('-p', '--port', dest='port', type='int',
59 (options, args) = parser.parse_args()
  /external/chromium_org/chrome/browser/parsers/
metadata_parser_jpeg_factory.cc 28 JpegMetadataParser* parser; local
29 parser = new JpegMetadataParser(path);
30 return parser;
  /frameworks/base/tools/layoutlib/bridge/src/android/util/
Xml_Delegate.java 40 KXmlParser parser = new KXmlParser(); local
42 // parser.setFeature(XmlPullParser.FEATURE_PROCESS_DOCDECL, true);
43 parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, true);
44 return parser;

Completed in 2220 milliseconds

1 2 3 4 56 7 8 91011>>