/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/ |
UiElementPullParserTest.java | 167 // wrap the parser around the ui element node, and start parsing 168 UiElementPullParser parser = new UiElementPullParser( local 176 assertEquals(XmlPullParser.START_DOCUMENT, parser.getEventType()); 179 assertEquals(XmlPullParser.START_TAG, parser.next()); 180 assertEquals("LinearLayout", parser.getName()); 181 assertEquals(1, parser.getAttributeCount()); 182 assertEquals("orientation", parser.getAttributeName(0)); 183 assertEquals(SdkConstants.NS_RESOURCES, parser.getAttributeNamespace(0)); 184 assertEquals("android", parser.getAttributePrefix(0)); 185 assertEquals("vertical", parser.getAttributeValue(0)) [all...] |
/external/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/src/type42/ |
t42parse.c | 5 /* Type 42 font parser (body). */ 136 t42_parser_init( T42_Parser parser, 145 psaux->ps_parser_funcs->init( &parser->root, NULL, NULL, memory ); 147 parser->stream = stream; 148 parser->base_len = 0; 149 parser->base_dict = NULL; 150 parser->in_memory = 0; 156 /* When creating a new Type 42 parser, we try to locate and load */ 163 /* parser->in_memory is set if we have a memory stream. */ 189 parser->base_dict = (FT_Byte*)stream->base + stream->pos 246 T42_Parser parser = &loader->parser; local 297 T42_Parser parser = &loader->parser; local 532 T42_Parser parser = &loader->parser; local 777 T42_Parser parser = &loader->parser; local 1129 T42_Parser parser = &loader->parser; local 1274 T42_Parser parser = &loader->parser; local [all...] |
/external/chromium-trace/catapult/telemetry/third_party/webpagereplay/ |
replay_test.py | 35 parser = replay.GetOptionParser() 36 options, args = parser.parse_args([]) 37 options = replay.OptionsWrapper(options, parser) 43 parser = replay.GetOptionParser() 44 options, args = parser.parse_args(['--shaping=proxy']) 45 options = replay.OptionsWrapper(options, parser) 51 parser = replay.GetOptionParser() 52 options, args = parser.parse_args(['--shaping=proxy', '--net=cable']) 53 options = replay.OptionsWrapper(options, parser) 62 parser = replay.GetOptionParser( [all...] |
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/ |
AbstractXmlPullParser.java | 44 XmlPullParser parser = fact.newPullParser(); local 45 parser.setInput (xmlReader); 46 parse(parser); 54 abstract void parse(XmlPullParser parser) throws XmlPullParserException, IOException; 59 * @param parser the {@link XmlPullParser} 63 protected int parseIntAttr(XmlPullParser parser, String name) { 65 String value = parser.getAttributeValue(null, name); 78 protected boolean parseBooleanAttr(XmlPullParser parser, String name) { 79 String stringValue = parser.getAttributeValue(null, name); 87 * @param parser the XmlPullParse [all...] |
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...] |
/external/antlr/antlr-3.4/runtime/Python/tests/ |
t030specialStates.py | 15 parser = self.getParser(tStream) 16 events = parser.r() 23 parser = self.getParser(tStream) 24 events = parser.r() 31 parser = self.getParser(tStream) 32 parser.cond = False 33 events = parser.r() 40 parser = self.getParser(tStream) 41 parser.cond = False 42 events = parser.r( [all...] |
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()
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/bin/ |
bundle_image | 5 parser = OptionParser(version="%prog 1.0", usage="Usage: %prog [options] instance-id [instance-id-2]") variable 8 parser.add_option("-b", "--bucket", help="Destination Bucket", dest="bucket", default=None) 9 parser.add_option("-p", "--prefix", help="AMI Prefix", dest="prefix", default=None) 10 parser.add_option("-k", "--key", help="Private Key File", dest="key_file", default=None) 11 parser.add_option("-c", "--cert", help="Public Certificate File", dest="cert_file", default=None) 12 parser.add_option("-s", "--size", help="AMI Size", dest="size", default=None) 13 parser.add_option("-i", "--ssh-key", help="SSH Keyfile", dest="ssh_key", default=None) 14 parser.add_option("-u", "--user-name", help="SSH Username", dest="uname", default="root") 15 parser.add_option("-n", "--name", help="Name of Image", dest="name") 16 (options, args) = parser.parse_args( [all...] |
/external/dbus/bus/ |
config-parser-trivial.h | 2 /* config-parser-trivial.h XML-library-agnostic configuration file parser 40 BusConfigParser* bus_config_parser_ref (BusConfigParser *parser); 41 void bus_config_parser_unref (BusConfigParser *parser); 42 dbus_bool_t bus_config_parser_check_doctype (BusConfigParser *parser, 45 dbus_bool_t bus_config_parser_start_element (BusConfigParser *parser, 50 dbus_bool_t bus_config_parser_end_element (BusConfigParser *parser, 53 dbus_bool_t bus_config_parser_content (BusConfigParser *parser, 56 dbus_bool_t bus_config_parser_finished (BusConfigParser *parser, 60 const char* bus_config_parser_get_user (BusConfigParser *parser); [all...] |
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/ |
TypedArrayUtils.java | 23 public static boolean hasAttribute(XmlPullParser parser, String attrName) { 24 return parser.getAttributeValue(NAMESPACE, attrName) != null; 27 public static float getNamedFloat(TypedArray a, XmlPullParser parser, String attrName, 29 final boolean hasAttr = hasAttribute(parser, attrName); 37 public static boolean getNamedBoolean(TypedArray a, XmlPullParser parser, String attrName, 39 final boolean hasAttr = hasAttribute(parser, attrName); 47 public static int getNamedInt(TypedArray a, XmlPullParser parser, String attrName, 49 final boolean hasAttr = hasAttribute(parser, attrName); 57 public static int getNamedColor(TypedArray a, XmlPullParser parser, String attrName, 59 final boolean hasAttr = hasAttribute(parser, attrName) [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/compiler-rt/lib/sanitizer_common/tests/ |
sanitizer_flags_test.cc | 31 FlagParser parser; local 32 RegisterFlag(&parser, kFlagName, kFlagDesc, &flag); 34 parser.ParseString(env); 44 FlagParser parser; local 45 RegisterFlag(&parser, kFlagName, kFlagDesc, &flag); 47 parser.ParseString(env); 92 FlagParser parser; local 93 RegisterFlag(&parser, name1, kFlagDesc, &flag1); 94 RegisterFlag(&parser, name2, kFlagDesc, &flag2); 96 parser.ParseString(env) 123 FlagParser parser; 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/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/webrtc/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/autotest/server/ |
autoserv_parser_unittest.py | 23 """Get the parser class. 31 """Test the parser can parse args and unknown args correctly. 34 parser = self._get_parser() 35 parser.parse_args() 37 parser.args) 41 parser = self._get_parser() 42 parser.parse_args() 44 parser.args)
|
/external/autotest/site_utils/deploy_autotest/ |
common_util.py | 10 Specifically it contains shared constants and their shared arg parser. 36 parser = argparse.ArgumentParser() 37 parser.add_argument('operation', 40 parser.add_argument('servers', nargs='+', 43 parsed_args = parser.parse_args(argv) 47 parser.error('Invalid operation specified. Must be one of: %s' % 51 parser.error('All servers must be one of %s' % ' '.join(VALID_TARGETS))
|
/external/chromium-trace/catapult/perf_insights/perf_insights/ |
corpus_driver_cmdline.py | 24 def AddArguments(parser): 25 parser.add_argument( 32 parser_group = parser.add_argument_group(k) 37 def GetCorpusDriver(parser, args): 49 parser.exit('Valid drivers:\n\n%s\n' % corpus_descriptions) 52 init_args = cls.CheckAndCreateInitArguments(parser, args)
|
/external/chromium-trace/catapult/telemetry/telemetry/util/ |
command_line.py | 19 def AddCommandLineArgs(cls, parser, environment): 24 def ProcessCommandLineArgs(cls, parser, options, extra_args, environment): 35 parser = cls.CreateParser() 36 cls.AddCommandLineArgs(parser, None) 37 options, extra_args = parser.parse_known_args(args=args) 38 cls.ProcessCommandLineArgs(parser, options, extra_args, None)
|
/external/chromium-trace/catapult/third_party/typ/typ/tests/ |
arg_parser_test.py | 24 parser = optparse.OptionParser() 25 ArgumentParser.add_option_group(parser, 'foo', 30 options, _ = parser.parse_args(['-j', '1']) 36 parser = ArgumentParser() 37 args = parser.parse_args(argv) 38 actual_argv = parser.argv_from_args(args)
|
/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();
|