/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/xml/sax/ |
__init__.py | 19 expatreader -- Driver that allows use of the Expat parser with SAX. 30 parser = make_parser() 31 parser.setContentHandler(handler) 32 parser.setErrorHandler(errorHandler) 33 parser.parse(source) 43 parser = make_parser() 44 parser.setContentHandler(handler) 45 parser.setErrorHandler(errorHandler) 49 parser.parse(inpsrc) 51 # this is the parser list used by the make_parser function if n [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/xml/sax/ |
__init__.py | 19 expatreader -- Driver that allows use of the Expat parser with SAX. 30 parser = make_parser() 31 parser.setContentHandler(handler) 32 parser.setErrorHandler(errorHandler) 33 parser.parse(source) 43 parser = make_parser() 44 parser.setContentHandler(handler) 45 parser.setErrorHandler(errorHandler) 49 parser.parse(inpsrc) 51 # this is the parser list used by the make_parser function if n [all...] |
/external/chromium_org/chrome/test/nacl_test_injection/ |
find_chrome.py | 71 parser = optparse.OptionParser(usage, description=description) 72 parser.add_option('-c', '--config', 77 parser.add_option('-v', '--verbose', action='store_true', 80 options, args = parser.parse_args(args[1:]) 83 parser.error('Expected source directory as first argument.') 90 parser.error('Expected config to be one of [Debug, Release]. '
|
/external/chromium_org/tools/ |
gypv8sh.py | 23 parser = optparse.OptionParser() 24 parser.set_usage( 27 parser.add_option('-v', '--verbose', action='store_true') 28 parser.add_option('-n', '--impotent', action='store_true', 30 (opts, args) = parser.parse_args() 33 parser.error('all arguments are required.')
|
/external/smack/src/org/jivesoftware/smackx/bytestreams/ibb/provider/ |
DataPacketProvider.java | 32 public PacketExtension parseExtension(XmlPullParser parser) throws Exception {
33 String sessionID = parser.getAttributeValue("", "sid");
34 long seq = Long.parseLong(parser.getAttributeValue("", "seq"));
35 String data = parser.nextText();
39 public IQ parseIQ(XmlPullParser parser) throws Exception {
40 DataPacketExtension data = (DataPacketExtension) parseExtension(parser);
|
/external/smack/src/org/jivesoftware/smackx/pubsub/provider/ |
PubSubProvider.java | 32 public IQ parseIQ(XmlPullParser parser) throws Exception
35 String namespace = parser.getNamespace();
41 int eventType = parser.next();
45 PacketExtension ext = PacketParserUtils.parsePacketExtension(parser.getName(), namespace, parser);
54 if (parser.getName().equals("pubsub"))
|
/external/smack/src/org/jivesoftware/smackx/workgroup/ext/forms/ |
WorkgroupForm.java | 61 public IQ parseIQ(XmlPullParser parser) throws Exception {
66 int eventType = parser.next();
69 answer.addExtension(PacketParserUtils.parsePacketExtension(parser.getName(),
70 parser.getNamespace(), parser));
local 73 if (parser.getName().equals(ELEMENT_NAME)) {
|
/external/smack/src/org/jivesoftware/smackx/workgroup/packet/ |
MonitorPacket.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) && ("isMonitor".equals(parser.getName()))) { 97 String value = parser.nextText(); 105 else if (eventType == XmlPullParser.END_TAG && "monitor".equals(parser.getName())) {
|
TranscriptSearch.java | 67 public IQ parseIQ(XmlPullParser parser) throws Exception {
72 int eventType = parser.next();
75 answer.addExtension(PacketParserUtils.parsePacketExtension(parser.getName(), parser.getNamespace(), parser));
local 78 if (parser.getName().equals(ELEMENT_NAME)) {
|
AgentStatus.java | 223 public PacketExtension parseExtension(XmlPullParser parser) throws Exception {
226 agentStatus.workgroupJID = parser.getAttributeValue("", "jid");
230 int eventType = parser.next();
233 if ("chat".equals(parser.getName())) {
234 agentStatus.currentChats.add(parseChatInfo(parser));
236 else if ("max-chats".equals(parser.getName())) {
237 agentStatus.maxChats = Integer.parseInt(parser.nextText());
241 ELEMENT_NAME.equals(parser.getName())) {
248 private ChatInfo parseChatInfo(XmlPullParser parser) {
250 String sessionID = parser.getAttributeValue("", "sessionID"); [all...] |
/external/freetype/src/psaux/ |
psobjs.c | 282 /***** T1 PARSER *****/ 514 ps_parser_skip_PS_token( PS_Parser parser ) 520 FT_Byte* cur = parser->cursor; 521 FT_Byte* limit = parser->limit; 584 /* is handled by the test `cur == parser->cursor' below */ 592 if ( cur < limit && cur == parser->cursor ) 603 parser->error = error; 604 parser->cursor = cur; 609 ps_parser_skip_spaces( PS_Parser parser ) 611 skip_spaces( &parser->cursor, parser->limit ) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_sax.py | 9 # don't try to test this module if we cannot create a parser 165 # Creating a parser should succeed - it should fall back 356 parser = make_parser() 357 parser.setFeature(feature_namespaces, True) 360 parser.setContentHandler(gen) 361 parser.parse(test_xml) 465 parser = create_parser() 469 parser.setContentHandler(xmlgen) 470 parser.parse(open(TEST_XMLFILE)) 480 parser = create_parser( [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_sax.py | 9 # don't try to test this module if we cannot create a parser 165 # Creating a parser should succeed - it should fall back 356 parser = make_parser() 357 parser.setFeature(feature_namespaces, True) 360 parser.setContentHandler(gen) 361 parser.parse(test_xml) 465 parser = create_parser() 469 parser.setContentHandler(xmlgen) 470 parser.parse(open(TEST_XMLFILE)) 480 parser = create_parser( [all...] |
/frameworks/base/core/java/android/preference/ |
GenericInflater.java | 232 * @param parser XML dom node containing the description of the 239 public T inflate(XmlPullParser parser, P root) { 240 return inflate(parser, root, root != null); 261 XmlResourceParser parser = getContext().getResources().getXml(resource); local 263 return inflate(parser, root, attachToRoot); 265 parser.close(); 278 * @param parser XML dom node containing the description of the 290 public T inflate(XmlPullParser parser, P root, 293 final AttributeSet attrs = Xml.asAttributeSet(parser); 300 while ((type = parser.next()) != parser.START_TA [all...] |
/external/chromium_org/native_client_sdk/src/build_tools/sdk_tools/ |
sdk_update_main.py | 173 def CMDinfo(parser, args): 175 options, args = parser.parse_args(args) 177 parser.error('No bundles given') 185 def CMDlist(parser, args): 187 parser.add_option('-r', '--revision', action='store_true', 189 options, args = parser.parse_args(args) 191 parser.error('Unsupported argument(s): %s' % ', '.join(args)) 200 def CMDupdate(parser, args): 202 parser.add_option('-F', '--force', action='store_true', 205 options, args = parser.parse_args(args [all...] |
/external/chromium_org/third_party/freetype/src/psaux/ |
psobjs.c | 282 /***** T1 PARSER *****/ 514 ps_parser_skip_PS_token( PS_Parser parser ) 520 FT_Byte* cur = parser->cursor; 521 FT_Byte* limit = parser->limit; 584 /* is handled by the test `cur == parser->cursor' below */ 592 if ( cur == parser->cursor ) 603 parser->error = error; 604 parser->cursor = cur; 609 ps_parser_skip_spaces( PS_Parser parser ) 611 skip_spaces( &parser->cursor, parser->limit ) [all...] |
/external/chromium_org/third_party/skia/src/svg/ |
SkSVGPaintState.cpp | 52 void SkSVGPaint::addAttribute(SkSVGParser& parser, int attrIndex, 88 int index = parser.findAttribute(this, attrValue, (int) (delimiter - attrValue), true); 91 addAttribute(parser, index, delimiter, (int) (end - delimiter)); 101 bool SkSVGPaint::flush(SkSVGParser& parser, bool isFlushable, bool isDef) { 103 SkSVGPaint* walking = parser.fHead; 117 SkSVGPaint& lastState = parser.fLastFlush; 125 bool itsFound = parser.fIDs.find(id.c_str(), &found); 129 gradient->write(parser, current.f_fill); 130 gradient->write(parser, current.f_stroke); 166 if (parser.fSuppressPaint == false) [all...] |
/external/skia/src/svg/ |
SkSVGPaintState.cpp | 52 void SkSVGPaint::addAttribute(SkSVGParser& parser, int attrIndex, 88 int index = parser.findAttribute(this, attrValue, (int) (delimiter - attrValue), true); 91 addAttribute(parser, index, delimiter, (int) (end - delimiter)); 101 bool SkSVGPaint::flush(SkSVGParser& parser, bool isFlushable, bool isDef) { 103 SkSVGPaint* walking = parser.fHead; 117 SkSVGPaint& lastState = parser.fLastFlush; 125 bool itsFound = parser.fIDs.find(id.c_str(), &found); 129 gradient->write(parser, current.f_fill); 130 gradient->write(parser, current.f_stroke); 166 if (parser.fSuppressPaint == false) [all...] |
/external/smack/src/org/jivesoftware/smackx/workgroup/settings/ |
ChatSettings.java | 132 public IQ parseIQ(XmlPullParser parser) throws Exception {
133 if (parser.getEventType() != XmlPullParser.START_TAG) {
134 throw new IllegalStateException("Parser not in proper position, or bad XML.");
141 int eventType = parser.next();
142 if ((eventType == XmlPullParser.START_TAG) && ("chat-setting".equals(parser.getName()))) {
143 chatSettings.addSetting(parseChatSetting(parser));
146 else if (eventType == XmlPullParser.END_TAG && ELEMENT_NAME.equals(parser.getName())) {
153 private ChatSetting parseChatSetting(XmlPullParser parser) throws Exception {
161 int eventType = parser.next();
162 if ((eventType == XmlPullParser.START_TAG) && ("key".equals(parser.getName()))) { [all...] |
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/ |
SimpleInflater.java | 48 XmlResourceParser parser = null; local 50 parser = mContext.getResources().getLayout(menuRes); 51 AttributeSet attrs = Xml.asAttributeSet(parser); 53 parseMenu(parser, attrs); 59 if (parser != null) parser.close(); 63 private void parseMenu(XmlPullParser parser, AttributeSet attrs) 65 int eventType = parser.getEventType(); 73 tagName = parser.getName(); 76 eventType = parser.next() [all...] |
/external/chromium/net/http/ |
http_util_unittest.cc | 676 void CheckCurrentNameValuePair(HttpUtil::NameValuePairsIterator* parser, 680 ASSERT_EQ(expect_valid, parser->valid()); 688 std::string::const_iterator first_value_begin = parser->value_begin(); 689 std::string::const_iterator first_value_end = parser->value_end(); 691 ASSERT_EQ(expected_name, std::string(parser->name_begin(), 692 parser->name_end())); 693 ASSERT_EQ(expected_name, parser->name()); 694 ASSERT_EQ(expected_value, std::string(parser->value_begin(), 695 parser->value_end())); 696 ASSERT_EQ(expected_value, parser->value()) [all...] |
/external/chromium/chrome/browser/autofill/ |
autofill_xml_parser_unittest.cc | 29 // Create a parser. 32 buzz::XmlParser parser(&parse_handler); 33 parser.Parse(xml.c_str(), xml.length(), true); 57 scoped_ptr<buzz::XmlParser> parser(new buzz::XmlParser(parse_handler.get())); 58 parser->Parse(xml.c_str(), xml.length(), true); 72 parser.reset(new buzz::XmlParser(parse_handler.get())); 73 parser->Parse(xml.c_str(), xml.length(), true); 87 parser.reset(new buzz::XmlParser(parse_handler.get())); 88 parser->Parse(xml.c_str(), xml.length(), true); 111 scoped_ptr<buzz::XmlParser> parser(new buzz::XmlParser(parse_handler.get())) [all...] |
/external/chromium_org/build/android/gyp/ |
create_device_library_links.py | 83 parser = optparse.OptionParser() 84 parser.add_option('--apk', help='Path to the apk.') 85 parser.add_option('--script-host-path', 87 parser.add_option('--script-device-path', 89 parser.add_option('--libraries-json', 91 parser.add_option('--target-dir', 93 parser.add_option('--stamp', help='Path to touch on success.') 94 parser.add_option('--build-device-configuration', 96 options, _ = parser.parse_args() 100 build_utils.CheckOptions(options, parser, required=required_options [all...] |
/external/expat/tests/benchmark/ |
benchmark.c | 27 XML_Parser parser; local 74 parser = XML_ParserCreateNS(NULL, '!'); 76 parser = XML_ParserCreate(NULL); 90 if (!XML_Parse (parser, XMLBufPtr, parseBufferSize, isFinal)) { 93 XML_ErrorString (XML_GetErrorCode (parser)), 94 XML_GetCurrentLineNumber (parser), 95 XML_GetCurrentColumnNumber (parser)); 97 XML_ParserFree (parser); 104 XML_ParserReset(parser, NULL); 108 XML_ParserFree (parser); [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
GlobalKeyManager.java | 91 XmlResourceParser parser = null; local 93 parser = context.getResources().getXml(com.android.internal.R.xml.global_keys); 94 XmlUtils.beginDocument(parser, TAG_GLOBAL_KEYS); 95 int version = parser.getAttributeIntValue(null, ATTR_VERSION, 0); 98 XmlUtils.nextElement(parser); 99 String element = parser.getName(); 104 String keyCodeName = parser.getAttributeValue(null, ATTR_KEY_CODE); 105 String componentName = parser.getAttributeValue(null, ATTR_COMPONENT); 117 Log.w(TAG, "XML parser exception reading global keys file", e); 121 if (parser != null) [all...] |