HomeSort by relevance Sort by last modified time
    Searched refs:parser (Results 176 - 200 of 2171) sorted by null

1 2 3 4 5 6 78 91011>>

  /external/smack/src/org/jivesoftware/smackx/bytestreams/socks5/provider/
BytestreamsProvider.java 28 public IQ parseIQ(XmlPullParser parser) throws Exception {
33 String id = parser.getAttributeValue("", "sid");
34 String mode = parser.getAttributeValue("", "mode");
44 eventType = parser.next();
45 elementName = parser.getName();
48 JID = parser.getAttributeValue("", "jid");
49 host = parser.getAttributeValue("", "host");
50 port = parser.getAttributeValue("", "port");
53 toReturn.setUsedHost(parser.getAttributeValue("", "jid"));
56 toReturn.setToActivate(parser.getAttributeValue("", "jid"));
    [all...]
  /external/smack/src/org/jivesoftware/smackx/workgroup/packet/
OfferRevokeProvider.java 33 public IQ parseIQ (XmlPullParser parser) throws Exception {
34 // The parser will be positioned on the opening IQ tag, so get the JID attribute.
35 String userJID = parser.getAttributeValue("", "jid");
43 int eventType = parser.next();
45 if ((eventType == XmlPullParser.START_TAG) && parser.getName().equals("reason")) {
46 reason = parser.nextText();
49 && parser.getName().equals(SessionID.ELEMENT_NAME)) {
50 sessionID = parser.getAttributeValue("", "id");
53 && parser.getName().equals(UserID.ELEMENT_NAME)) {
54 userID = parser.getAttributeValue("", "id");
    [all...]
AgentStatusRequest.java 121 public IQ parseIQ(XmlPullParser parser) throws Exception {
124 if (parser.getEventType() != XmlPullParser.START_TAG) {
125 throw new IllegalStateException("Parser not in proper position, or bad XML.");
130 int eventType = parser.next();
131 if ((eventType == XmlPullParser.START_TAG) && ("agent".equals(parser.getName()))) {
132 statusRequest.agents.add(parseAgent(parser));
135 "agent-status-request".equals(parser.getName()))
143 private Item parseAgent(XmlPullParser parser) throws Exception {
146 String jid = parser.getAttributeValue("", "jid");
147 String type = parser.getAttributeValue("", "type");
    [all...]
QueueOverview.java 120 public PacketExtension parseExtension (XmlPullParser parser) throws Exception {
121 int eventType = parser.getEventType();
129 eventType = parser.next();
131 || (!ELEMENT_NAME.equals(parser.getName())))
133 if ("count".equals(parser.getName())) {
134 queueOverview.setUserCount(Integer.parseInt(parser.nextText()));
136 else if ("time".equals(parser.getName())) {
137 queueOverview.setAverageWaitTime(Integer.parseInt(parser.nextText()));
139 else if ("oldest".equals(parser.getName())) {
140 queueOverview.setOldestEntry((dateFormat.parse(parser.nextText())));
    [all...]
QueueDetails.java 144 public PacketExtension parseExtension(XmlPullParser parser) throws Exception {
149 int eventType = parser.getEventType();
151 "notify-queue-details".equals(parser.getName()))
153 eventType = parser.next();
154 while ((eventType == XmlPullParser.START_TAG) && "user".equals(parser.getName())) {
160 uid = parser.getAttributeValue("", "jid");
166 eventType = parser.next();
168 || (! "user".equals(parser.getName())))
170 if ("position".equals(parser.getName())) {
171 position = Integer.parseInt(parser.nextText());
    [all...]
  /external/smack/src/org/jivesoftware/smackx/workgroup/settings/
WorkgroupProperties.java 96 public IQ parseIQ(XmlPullParser parser) throws Exception {
97 if (parser.getEventType() != XmlPullParser.START_TAG) {
98 throw new IllegalStateException("Parser not in proper position, or bad XML.");
107 int eventType = parser.next();
108 if ((eventType == XmlPullParser.START_TAG) && ("authRequired".equals(parser.getName()))) {
109 props.setAuthRequired(new Boolean(parser.nextText()).booleanValue());
111 else if ((eventType == XmlPullParser.START_TAG) && ("email".equals(parser.getName()))) {
112 props.setEmail(parser.nextText());
114 else if ((eventType == XmlPullParser.START_TAG) && ("name".equals(parser.getName()))) {
115 props.setFullName(parser.nextText())
    [all...]
  /frameworks/base/core/java/android/view/animation/
AnimationUtils.java 69 XmlResourceParser parser = null; local
71 parser = context.getResources().getAnimation(id);
72 return createAnimationFromXml(context, parser);
84 if (parser != null) parser.close();
88 private static Animation createAnimationFromXml(Context c, XmlPullParser parser)
91 return createAnimationFromXml(c, parser, null, Xml.asAttributeSet(parser));
94 private static Animation createAnimationFromXml(Context c, XmlPullParser parser,
101 int depth = parser.getDepth()
147 XmlResourceParser parser = null; local
268 XmlResourceParser parser = null; local
    [all...]
  /external/replicaisland/src/com/replica/replicaisland/
LevelTree.java 82 XmlResourceParser parser = context.getResources().getXml(resource); local
91 int eventType = parser.getEventType();
94 if (parser.getName().equals("group")) {
101 if (parser.getName().equals("level") && currentGroup != null) {
108 for(int i=0; i < parser.getAttributeCount(); i++) {
109 if (parser.getAttributeName(i).equals("past")) {
110 if (parser.getAttributeValue(i).equals("true")) {
113 } else if (parser.getAttributeName(i).equals("restartable")) {
114 if (parser.getAttributeValue(i).equals("false")) {
117 } else if (parser.getAttributeName(i).equals("waitmessage"))
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_pyexpat.py 15 self.parser = expat.ParserCreate(namespace_separator='!')
25 self.parser.returns_unicode = x
26 self.assertEqual(self.parser.returns_unicode, y)
30 self.parser.ordered_attributes = x
31 self.assertEqual(self.parser.ordered_attributes, y)
35 self.parser.specified_attributes = x
36 self.assertEqual(self.parser.specified_attributes, y)
136 parser = expat.ParserCreate(namespace_separator='!')
138 setattr(parser, name, getattr(out, name))
139 parser.returns_unicode =
    [all...]
test_optparse.py 63 (options, positional_args) = self.parser.parse_args(args)
141 Assert the parser fails with the expected message. Caller
142 must ensure that self.parser is an InterceptingOptionParser.
145 self.parser.parse_args(cmdline_args)
156 """Assert the parser prints the expected output on stdout."""
164 self.parser.parse_args(cmdline_args)
181 self.assertFalse("expected parser.exit()")
187 def assertHelp(self, parser, expected_help):
188 actual_help = parser.format_help()
198 # parser.parse_args() section deal with those, because they're neede
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_pyexpat.py 15 self.parser = expat.ParserCreate(namespace_separator='!')
25 self.parser.returns_unicode = x
26 self.assertEqual(self.parser.returns_unicode, y)
30 self.parser.ordered_attributes = x
31 self.assertEqual(self.parser.ordered_attributes, y)
35 self.parser.specified_attributes = x
36 self.assertEqual(self.parser.specified_attributes, y)
136 parser = expat.ParserCreate(namespace_separator='!')
138 setattr(parser, name, getattr(out, name))
139 parser.returns_unicode =
    [all...]
test_optparse.py 63 (options, positional_args) = self.parser.parse_args(args)
141 Assert the parser fails with the expected message. Caller
142 must ensure that self.parser is an InterceptingOptionParser.
145 self.parser.parse_args(cmdline_args)
156 """Assert the parser prints the expected output on stdout."""
164 self.parser.parse_args(cmdline_args)
181 self.assertFalse("expected parser.exit()")
187 def assertHelp(self, parser, expected_help):
188 actual_help = parser.format_help()
198 # parser.parse_args() section deal with those, because they're neede
    [all...]
  /external/chromium_org/chrome/utility/media_galleries/
itunes_library_parser_unittest.cc 34 void CompareTrack(const parser::Track& a, const parser::Track& b) {
39 void CompareAlbum(const parser::Album& a, const parser::Album& b) {
42 parser::Album::const_iterator a_it;
43 parser::Album::const_iterator b_it;
51 void CompareAlbums(const parser::Albums& a, const parser::Albums& b) {
54 parser::Albums::const_iterator a_it;
55 parser::Albums::const_iterator b_it
82 ITunesLibraryParser parser; local
    [all...]
  /external/chromium_org/third_party/WebKit/Source/bindings/scripts/
idl_compiler.py 37 IDL lexer => IDL parser => Python object builder =>
56 parser = optparse.OptionParser()
57 parser.add_option('--additional-idl-files')
61 parser.add_option('--dump-json-and-pickle', action='store_true', default=False)
62 parser.add_option('--idl-attributes-file')
63 parser.add_option('--include', dest='idl_directories', action='append')
64 parser.add_option('--output-directory')
65 parser.add_option('--interface-dependencies-file')
66 parser.add_option('--verbose', action='store_true', default=False)
67 parser.add_option('--write-file-only-if-changed', type='int'
    [all...]
  /external/chromium_org/third_party/freetype/src/psaux/
psobjs.h 71 /***** T1 PARSER *****/
78 ps_parser_skip_spaces( PS_Parser parser ); variable
81 ps_parser_skip_PS_token( PS_Parser parser ); variable
84 ps_parser_to_token( PS_Parser parser,
88 ps_parser_to_token_array( PS_Parser parser,
94 ps_parser_load_field( PS_Parser parser,
101 ps_parser_load_field_table( PS_Parser parser,
108 ps_parser_to_int( PS_Parser parser ); variable
112 ps_parser_to_bytes( PS_Parser parser,
120 ps_parser_to_fixed( PS_Parser parser,
143 ps_parser_done( PS_Parser parser ); variable
    [all...]
  /external/freetype/src/psaux/
psobjs.h 71 /***** T1 PARSER *****/
78 ps_parser_skip_spaces( PS_Parser parser ); variable
81 ps_parser_skip_PS_token( PS_Parser parser ); variable
84 ps_parser_to_token( PS_Parser parser,
88 ps_parser_to_token_array( PS_Parser parser,
94 ps_parser_load_field( PS_Parser parser,
101 ps_parser_load_field_table( PS_Parser parser,
108 ps_parser_to_int( PS_Parser parser ); variable
112 ps_parser_to_bytes( PS_Parser parser,
120 ps_parser_to_fixed( PS_Parser parser,
143 ps_parser_done( PS_Parser parser ); variable
    [all...]
  /external/jsilver/src/com/google/streamhtmlparser/
HtmlParserFactory.java 31 * and the specialized parser creation methods will throw
71 * Indicates that the parser is inside a quoted {@code String}. Only
128 * @param mode the mode to reset the parser with
142 HtmlParser parser = new HtmlParserImpl();
143 parser.resetMode(mode);
144 return parser;
150 * proceed with parsing in-lieu of the supplied parser.
165 * A very specialized {@code HtmlParser} accessor that returns a parser
167 * of an HTML tag. This is only useful when the parser has not seen a
171 * <p>For example, to create a parser in a state akin to tha
197 HtmlParser parser; local
    [all...]
  /cts/tests/SignatureTest/src/android/tests/sigtest/
SignatureTest.java 133 private void beginDocument(XmlPullParser parser, String firstElementName)
136 while ((type=parser.next()) != XmlPullParser.START_TAG
143 if (!parser.getName().equals(firstElementName)) {
144 throw new XmlPullParserException("Unexpected start tag: found " + parser.getName() +
152 private void start(XmlPullParser parser) throws XmlPullParserException, IOException {
157 beginDocument(parser, TAG_ROOT);
161 while ((type=parser.next()) != XmlPullParser.START_TAG
168 if (TAG_CLASS.equals(parser.getName())
169 || TAG_INTERFACE.equals(parser.getName())) {
171 } else if (TAG_PACKAGE.equals(parser.getName()))
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
PaintDrawableTest.java 105 XmlResourceParser parser = getParser(); local
106 AttributeSet attr = getAtrributeSet(parser);
108 gotoTag(parser, "padding");
117 assertTrue(paintDrawable.inflateTag("padding", getContext().getResources(), parser, attr));
121 parser = getParser();
122 attr = getAtrributeSet(parser);
124 assertFalse(new MyPaintDrawable().inflateTag("", getContext().getResources(), parser,
130 new MyPaintDrawable().inflateTag(null, getContext().getResources(), parser, attr);
138 gotoTag(parser, "padding");
139 new MyPaintDrawable().inflateTag("padding", null, parser, attr)
    [all...]
  /frameworks/base/core/java/com/android/internal/util/
XmlUtils.java 40 public static void skipCurrentTag(XmlPullParser parser)
42 int outerDepth = parser.getDepth();
44 while ((type=parser.next()) != XmlPullParser.END_DOCUMENT
46 || parser.getDepth() > outerDepth)) {
488 XmlPullParser parser = Xml.newPullParser(); local
489 parser.setInput(in, null);
490 return (HashMap)readValueXml(parser, new String[1]);
509 XmlPullParser parser = Xml.newPullParser(); local
510 parser.setInput(in, null);
511 return (ArrayList)readValueXml(parser, new String[1])
532 XmlPullParser parser = Xml.newPullParser(); local
    [all...]
  /cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/testtype/
TestPackageXmlParserTest.java 71 TestPackageXmlParser parser = new TestPackageXmlParser(true); local
72 parser.parse(getStringAsStream(INSTR_TEST_DATA));
73 TestPackageDef def = parser.getTestPackageDef();
83 TestPackageXmlParser parser = new TestPackageXmlParser(true); local
84 parser.parse(getStringAsStream(HOST_TEST_DATA));
85 TestPackageDef def = parser.getTestPackageDef();
106 TestPackageXmlParser parser = new TestPackageXmlParser(false); local
107 parser.parse(getStringAsStream(HOST_TEST_DATA));
108 TestPackageDef def = parser.getTestPackageDef();
128 TestPackageXmlParser parser = new TestPackageXmlParser(true) local
143 TestPackageXmlParser parser = new TestPackageXmlParser(true); local
153 TestPackageXmlParser parser = new TestPackageXmlParser(true); local
    [all...]
  /external/antlr/antlr-3.4/runtime/Python/tests/
t022scopes.py 29 parser = self.getParser(tStream)
30 parser.a()
37 parser = self.getParser(tStream)
40 parser.b(False)
50 parser = self.getParser(tStream)
51 parser.b(True)
66 parser = self.getParser(tStream)
67 symbols = parser.c()
88 parser = self.getParser(tStream)
91 parser.c(
    [all...]
  /cts/tools/signature-tools/test/signature/converter/dex/
GenericSignatureParserTest.java 42 private GenericSignatureParser parser; field in class:GenericSignatureParserTest
48 parser = new GenericSignatureParser(new TypePool(), converter);
58 parser.parseForClass(sigClass, DexUtil.getGenericSignature(dexClass));
60 assertEquals(1, parser.formalTypeParameters.size());
61 assertEquals("T", parser.formalTypeParameters.get(0).getName());
63 assertSame(sigClass, parser.formalTypeParameters.get(0).getGenericDeclaration());
65 assertEquals(1, parser.formalTypeParameters.get(0).getUpperBounds().size());
66 // IType type = parser.formalTypeParameters.get(0).getUpperBounds().get(0);
  /external/chromium_org/build/android/
adb_reverse_forwarder.py 23 parser = optparse.OptionParser(usage='Usage: %prog [options] device_port '
26 parser.add_option('-v',
32 parser.add_option('--device',
34 parser.add_option('--debug', action='store_const', const='Debug',
38 options, args = parser.parse_args(argv)
42 parser.error('Need even number of port pairs')
49 parser.error('Bad port number')
  /external/chromium_org/build/android/gyp/
create_standalone_apk.py 41 parser = optparse.OptionParser()
42 parser.add_option('--libraries-top-dir',
46 parser.add_option('--input-apk-path', help='Path to incomplete APK.')
47 parser.add_option('--output-apk-path', help='Path for standalone APK.')
48 parser.add_option('--stamp', help='Path to touch on success.')
49 options, _ = parser.parse_args()
52 build_utils.CheckOptions(options, parser, required=required_options)

Completed in 3527 milliseconds

1 2 3 4 5 6 78 91011>>