/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...] |
/frameworks/base/core/java/com/android/internal/util/ |
XmlUtils.java | 51 public static void skipCurrentTag(XmlPullParser parser) 53 int outerDepth = parser.getDepth(); 55 while ((type=parser.next()) != XmlPullParser.END_DOCUMENT 57 || parser.getDepth() > outerDepth)) { 738 XmlPullParser parser = Xml.newPullParser(); local 739 parser.setInput(in, StandardCharsets.UTF_8.name()); 740 return (HashMap<String, ?>) readValueXml(parser, new String[1]); 759 XmlPullParser parser = Xml.newPullParser(); local 760 parser.setInput(in, StandardCharsets.UTF_8.name()); 761 return (ArrayList)readValueXml(parser, new String[1]) 782 XmlPullParser parser = Xml.newPullParser(); local [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...] |
/frameworks/base/core/java/com/android/server/ |
SystemConfig.java | 301 XmlPullParser parser = Xml.newPullParser(); local 302 parser.setInput(permReader); 305 while ((type=parser.next()) != parser.START_TAG 306 && type != parser.END_DOCUMENT) { 310 if (type != parser.START_TAG) { 314 if (!parser.getName().equals("permissions") && !parser.getName().equals("config")) { 316 + ": found " + parser.getName() + ", expected 'permissions' or 'config'"); 326 XmlUtils.nextElement(parser); [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/parser/ |
test_parser.py | 6 import parser, traceback
14 st = parser.suite(t)
15 tup = parser.st2tuple(st)
19 new = parser.tuple2st(tup)
20 except parser.ParserError, err:
22 print 'parser module raised exception on input file', fileName + ':'
26 if tup != parser.st2tuple(new):
28 print 'parser module failed on input file', fileName
|
/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/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/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/libcxx/utils/ |
sym_extract.py | 18 parser = ArgumentParser( 20 parser.add_argument('library', metavar='shared-lib', type=str, 22 parser.add_argument('-o', '--output', dest='output', 25 parser.add_argument('--names-only', dest='names_only', 28 parser.add_argument('--only-stdlib-symbols', dest='only_stdlib', 31 args = parser.parse_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();
|
/external/webrtc/webrtc/modules/rtp_rtcp/source/ |
rtcp_sender_unittest.cc | 251 test::RtcpPacketParser* parser() { return &test_transport_.parser_; } function in class:webrtc::RtcpSenderTest 292 EXPECT_EQ(1, parser()->sender_report()->num_packets()); 293 EXPECT_EQ(kSenderSsrc, parser()->sender_report()->Ssrc()); 294 EXPECT_EQ(ntp_secs, parser()->sender_report()->NtpSec()); 295 EXPECT_EQ(ntp_frac, parser()->sender_report()->NtpFrac()); 296 EXPECT_EQ(kPacketCount, parser()->sender_report()->PacketCount()); 297 EXPECT_EQ(kOctetCount, parser()->sender_report()->OctetCount()); 298 EXPECT_EQ(0, parser()->report_block()->num_packets()); 304 EXPECT_EQ(1, parser()->receiver_report()->num_packets()); 305 EXPECT_EQ(kSenderSsrc, parser()->receiver_report()->Ssrc()) [all...] |
/external/libchrome/base/json/ |
json_parser_unittest.cc | 21 JSONParser* parser = new JSONParser(JSON_PARSE_RFC); local 22 parser->start_pos_ = input.data(); 23 parser->pos_ = parser->start_pos_; 24 parser->end_pos_ = parser->start_pos_ + input.length(); 25 return parser; 28 void TestLastThree(JSONParser* parser) { 29 EXPECT_EQ(',', *parser->NextChar()); 30 EXPECT_EQ('|', *parser->NextChar()) [all...] |
/development/vndk/tools/definition-tool/tests/ |
run.py | 8 parser = argparse.ArgumentParser() 9 parser.add_argument('--verbose', '-v', action='store_true') 10 args = parser.parse_args()
|
/external/autotest/client/bin/ |
autologin.py | 24 parser = argparse.ArgumentParser(description=__doc__) 25 parser.add_argument('-a', '--arc', action='store_true', 27 args = parser.parse_args(args)
|
/external/pdfium/testing/libfuzzer/ |
pdf_css_fuzzer.cc | 12 #include "xfa/fxfa/parser/cxfa_widetextread.h" 22 CFDE_CSSSyntaxParser parser; 23 parser.Init(input.c_str(), input.GetLength()); 27 status = parser.DoSyntaxParse();
|
/external/skia/infra/bots/assets/skimage/ |
create.py | 31 parser = argparse.ArgumentParser() 32 parser.add_argument('--target_dir', '-t', required=True) 33 args = parser.parse_args()
|
/external/toolchain-utils/mem_tests/ |
clean_data.py | 16 parser = argparse.ArgumentParser() variable 17 parser.add_argument('filename') 18 args = parser.parse_args()
|
/tools/loganalysis/tests/src/com/android/loganalysis/ |
FuncTests.java | 18 import com.android.loganalysis.parser.BugreportParserFuncTest; 19 import com.android.loganalysis.parser.LogcatParserFuncTest; 20 import com.android.loganalysis.parser.MonkeyLogParserFuncTest;
|
/cts/tests/tests/content/src/android/content/cts/util/ |
XmlUtils.java | 50 public static void skipCurrentTag(XmlPullParser parser) 52 int outerDepth = parser.getDepth(); 54 while ((type=parser.next()) != XmlPullParser.END_DOCUMENT 56 || parser.getDepth() > outerDepth)) { 737 XmlPullParser parser = Xml.newPullParser(); local 738 parser.setInput(in, StandardCharsets.UTF_8.name()); 739 return (HashMap<String, ?>) readValueXml(parser, new String[1]); 758 XmlPullParser parser = Xml.newPullParser(); local 759 parser.setInput(in, StandardCharsets.UTF_8.name()); 760 return (ArrayList)readValueXml(parser, new String[1]) 781 XmlPullParser parser = Xml.newPullParser(); local [all...] |
/cts/tests/tests/view/src/android/view/cts/util/ |
XmlUtils.java | 47 public static void skipCurrentTag(XmlPullParser parser) 49 int outerDepth = parser.getDepth(); 51 while ((type=parser.next()) != XmlPullParser.END_DOCUMENT 53 || parser.getDepth() > outerDepth)) { 709 XmlPullParser parser = Xml.newPullParser(); local 710 parser.setInput(in, StandardCharsets.UTF_8.name()); 711 return (HashMap<String, ?>) readValueXml(parser, new String[1]); 730 XmlPullParser parser = Xml.newPullParser(); local 731 parser.setInput(in, StandardCharsets.UTF_8.name()); 732 return (ArrayList)readValueXml(parser, new String[1]) 753 XmlPullParser parser = Xml.newPullParser(); local [all...] |