/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
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_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...] |
/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...] |
/external/smack/src/org/jivesoftware/smackx/workgroup/packet/ |
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...] |
AgentInfo.java | 108 public IQ parseIQ(XmlPullParser parser) throws Exception {
113 int eventType = parser.next();
115 if (parser.getName().equals("jid")) {
116 answer.setJid(parser.nextText());
118 else if (parser.getName().equals("name")) {
119 answer.setName(parser.nextText());
123 if (parser.getName().equals(ELEMENT_NAME)) {
|
/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 | 40 parser = optparse.OptionParser() 41 parser.add_option('--libraries-top-dir', 45 parser.add_option('--input-apk-path', help='Path to incomplete APK.') 46 parser.add_option('--output-apk-path', help='Path for standalone APK.') 47 parser.add_option('--stamp', help='Path to touch on success.') 48 options, _ = parser.parse_args() 51 build_utils.CheckOptions(options, parser, required=required_options)
|
jar.py | 42 parser = optparse.OptionParser() 43 parser.add_option('--classes-dir', help='Directory containing .class files.') 44 parser.add_option('--jar-path', help='Jar output path.') 45 parser.add_option('--excluded-classes', 47 parser.add_option('--stamp', help='Path to touch on success.') 50 parser.add_option('--ignore', help='Ignored.') 52 options, _ = parser.parse_args()
|
javac.py | 73 parser = optparse.OptionParser() 74 parser.add_option('--src-dirs', help='Directories containing java files.') 75 parser.add_option('--javac-includes', 78 parser.add_option('--classpath', help='Classpath for javac.') 79 parser.add_option('--output-dir', help='Directory for javac output.') 80 parser.add_option('--stamp', help='Path to touch on success.') 81 parser.add_option('--chromium-code', type='int', help='Whether code being ' 86 parser.add_option('--ignore', help='Ignored.') 88 options, _ = parser.parse_args()
|
push_libraries.py | 55 parser = optparse.OptionParser() 56 parser.add_option('--libraries-dir', 58 parser.add_option('--device-dir', 60 parser.add_option('--libraries-json', 62 parser.add_option('--stamp', help='Path to touch on success.') 63 parser.add_option('--build-device-configuration', 65 parser.add_option('--configuration-name', 67 options, _ = parser.parse_args() 70 build_utils.CheckOptions(options, parser, required=required_options)
|
/external/chromium_org/build/ |
env_dump.py | 18 parser = optparse.OptionParser() 19 parser.add_option('-f', '--output-json', 21 parser.add_option( 25 parser.disable_interspersed_args() 26 options, args = parser.parse_args() 29 parser.error('Cannot specify args or --output-json with --dump-mode.') 33 parser.error('Requires --output-json option.')
|
/external/chromium_org/native_client_sdk/src/build_tools/ |
dsc_info.py | 37 parser = optparse.OptionParser(usage='%prog: [OPTIONS] TARGET') 39 parser.prog = 'dsc_info' 40 parser.add_option('-s', '--sources', 43 parser.add_option('-l', '--libdir', 46 options, args = parser.parse_args(argv) 48 parser.error('Expecting exactly one argument.') 54 parser.error('No action specified')
|
nacl-mono-archive.py | 15 parser = optparse.OptionParser() 16 parser.add_option('--install-dir', 20 parser.add_option('--tar-path', 24 parser.add_option('--upload-path', 28 parser.add_option('--pepper-revision', 32 parser.add_option('--skip-upload', 36 (options, args) = parser.parse_args(args[1:])
|
/external/chromium_org/tools/compile_test/ |
compile_test.py | 22 parser = optparse.OptionParser() 23 parser.add_option('--code') 24 parser.add_option('--run-linker', action='store_true') 25 parser.add_option('--on-success', default='') 26 parser.add_option('--on-failure', default='') 28 options, args = parser.parse_args(argv) 31 parser.error('Missing required --code switch.')
|
/external/chromium_org/tools/cr/cr/commands/ |
debug.py | 22 parser = super(DebugCommand, self).AddArguments(subparsers) 23 cr.Builder.AddArguments(self, parser) 24 cr.Installer.AddArguments(self, parser) 25 cr.Debugger.AddArguments(self, parser) 26 cr.Target.AddArguments(self, parser) 27 self.ConsumeArgs(parser, 'the binary') 28 return parser
|
run.py | 24 parser = super(RunCommand, self).AddArguments(subparsers) 25 cr.Builder.AddArguments(self, parser) 26 cr.Installer.AddArguments(self, parser) 27 cr.Runner.AddArguments(self, parser) 28 cr.Target.AddArguments(self, parser, allow_multiple=True) 29 self.ConsumeArgs(parser, 'the binary') 30 return parser
|
/external/smack/src/org/jivesoftware/smackx/provider/ |
PEPProvider.java | 64 * @param parser the XML parser, positioned at the starting element of the extension. 68 public PacketExtension parseExtension(XmlPullParser parser) throws Exception { 72 int eventType = parser.next(); 74 if (parser.getName().equals("event")) { 75 } else if (parser.getName().equals("items")) { 77 String node = parser.getAttributeValue("", "node"); 78 // Get the parser for this kind of node, and if found then parse the node. 81 pepItem = nodeParser.parseExtension(parser); 85 if (parser.getName().equals("event")) [all...] |
/libcore/dom/src/test/java/org/w3c/domts/ |
LSDocumentBuilderFactory.java | 24 * This class implements the generic parser and configuation 32 private final Object parser; field in class:LSDocumentBuilderFactory 53 * @param parser parser 54 * @throws DOMTestIncompatibleException if parser does not support setting 57 Object parser) throws 61 * Gets state of setting for parser 63 * @param parser parser 66 public abstract boolean hasSetting(Object parser); [all...] |
/external/chromium_org/ppapi/native_client/tools/browser_tester/ |
browser_tester.py | 32 parser = optparse.OptionParser(usage) 34 parser.add_option('-p', '--port', dest='port', action='store', type='int', 37 parser.add_option('--browser_path', dest='browser_path', action='store', 40 parser.add_option('--map_file', dest='map_files', action='append', 45 parser.add_option('--serving_dir', dest='serving_dirs', action='append', 50 parser.add_option('--output_dir', dest='output_dir', action='store', 56 parser.add_option('--test_arg', dest='test_args', action='append', 60 parser.add_option('--redirect_url', dest='map_redirects', action='append', 65 parser.add_option('-f', '--file', dest='files', action='append', 72 parser.add_option('--mime_type', dest='mime_types', action='append' [all...] |
/external/smack/src/org/jivesoftware/smackx/workgroup/settings/ |
GenericSettings.java | 84 public IQ parseIQ(XmlPullParser parser) throws Exception { 85 if (parser.getEventType() != XmlPullParser.START_TAG) { 86 throw new IllegalStateException("Parser not in proper position, or bad XML."); 95 int eventType = parser.next(); 96 if ((eventType == XmlPullParser.START_TAG) && ("entry".equals(parser.getName()))) { 97 eventType = parser.next(); 98 String name = parser.nextText(); 99 eventType = parser.next(); 100 String value = parser.nextText(); 103 else if (eventType == XmlPullParser.END_TAG && ELEMENT_NAME.equals(parser.getName())) [all...] |
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/ |
Interp.java | 48 * the parser ignore. 77 Grammar parser = new Grammar(tool, grammarFileName, composite); local 78 composite.setDelegationRoot(parser); 81 parser.parseAndBuildAST(br); 84 parser.composite.assignTokenTypes(); 85 parser.composite.defineGrammarSymbols(); 86 parser.composite.createNFAs(); 88 List leftRecursiveRules = parser.checkAllRulesForLeftRecursion(); 93 if ( parser.getRule(startRule)==null ) { 98 String lexerGrammarText = parser.getLexerGrammar() [all...] |
/external/bison/examples/calc++/ |
calc++-driver.cc | 3 #include "calc++-parser.hh" 21 yy::calcxx_parser parser (*this); 22 parser.set_debug_level (trace_parsing); 23 int res = parser.parse ();
|