| /prebuilts/python/linux-x86/2.7.5/lib/python2.7/xml/sax/ |
| expatreader.py | 34 # weak references to avoid cycles between the parser and content 51 This uses a weak reference to the parser object to avoid creating 52 a circular reference between the parser and the content handler. 54 def __init__(self, parser): 55 self._ref = _mkproxy(parser) 58 parser = self._ref 59 if parser._parser is None: 61 return parser._parser.ErrorColumnNumber 64 parser = self._ref 65 if parser._parser is None [all...] |
| /cts/tests/tests/content/src/android/content/res/cts/ |
| AssetManagerTest.java | 69 XmlResourceParser parser = mAssets.openXmlResourceParser("AndroidManifest.xml"); local 70 assertNotNull(parser); 71 XmlUtils.beginDocument(parser, "manifest"); 72 parser = mAssets.openXmlResourceParser(0, "AndroidManifest.xml"); 73 assertNotNull(parser); 74 beginDocument(parser, "manifest"); 127 private void beginDocument(final XmlPullParser parser,final String firstElementName) 130 while ((type = parser.next()) != XmlPullParser.START_TAG) { 135 assertEquals(firstElementName, parser.getName());
|
| /cts/tests/tests/view/src/android/view/cts/ |
| LayoutInflaterTest.java | 98 XmlResourceParser parser = null; local 106 parser = ai.loadXmlMetaData(mContext.getPackageManager(), 109 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT 112 String nodeName = parser.getName(); 116 int outerDepth = parser.getDepth(); 117 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT 118 && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) { 122 nodeName = parser.getName(); 124 attrs = Xml.asAttributeSet(parser); 126 XmlUtils.skipCurrentTag(parser); 267 XmlResourceParser parser = getContext().getResources().getLayout( local 312 XmlResourceParser parser = getContext().getResources().getLayout( local 431 XmlResourceParser parser = null; local [all...] |
| /cts/tools/tradefed-host/src/com/android/cts/tradefed/result/ |
| TestCase.java | 102 * @param parser the {@link XmlPullParser}. Expected to be pointing at start 106 void parse(XmlPullParser parser) throws XmlPullParserException, IOException { 107 if (!parser.getName().equals(TAG)) { 109 "invalid XML: Expected %s tag but received %s", TAG, parser.getName())); 111 setName(getAttribute(parser, "name")); 112 int eventType = parser.next(); 114 if (eventType == XmlPullParser.START_TAG && parser.getName().equals(Test.TAG)) { 116 test.parse(parser); 118 } else if (eventType == XmlPullParser.END_TAG && parser.getName().equals(TAG)) { 121 eventType = parser.next() [all...] |
| Test.java | 329 * @param parser the {@link XmlPullParser}. Expected to be pointing at start 333 void parse(XmlPullParser parser) throws XmlPullParserException, IOException { 334 if (!parser.getName().equals(TAG)) { 336 "invalid XML: Expected %s tag but received %s", TAG, parser.getName())); 338 setName(getAttribute(parser, NAME_ATTR)); 339 mResult = CtsTestStatus.getStatus(getAttribute(parser, RESULT_ATTR)); 340 mStartTime = getAttribute(parser, STARTTIME_ATTR); 341 mEndTime = getAttribute(parser, ENDTIME_ATTR); 343 int eventType = parser.next(); 345 if (eventType == XmlPullParser.START_TAG && parser.getName().equals(SCENE_TAG)) [all...] |
| /frameworks/base/services/core/java/com/android/server/policy/ |
| ShortcutManager.java | 98 XmlResourceParser parser = mContext.getResources().getXml( local 100 XmlUtils.beginDocument(parser, TAG_BOOKMARKS); 103 XmlUtils.nextElement(parser); 105 if (parser.getEventType() == XmlPullParser.END_DOCUMENT) { 109 if (!TAG_BOOKMARK.equals(parser.getName())) { 113 String packageName = parser.getAttributeValue(null, ATTRIBUTE_PACKAGE); 114 String className = parser.getAttributeValue(null, ATTRIBUTE_CLASS); 115 String shortcutName = parser.getAttributeValue(null, ATTRIBUTE_SHORTCUT); 116 String categoryName = parser.getAttributeValue(null, ATTRIBUTE_CATEGORY);
|
| /external/antlr/antlr-3.4/runtime/Ruby/test/functional/parser/ |
| properties.rb | 12 @parser::members { 42 parser = RuleProperties::Parser.new lexer 43 start, stop, text = parser.a.bla 59 @parser::members { 88 parser = Labels::Parser.new lexer 89 ids, w = parser.a 114 @parser::members { 163 parser = TokenLabels::Parser.new lexe [all...] |
| rule-methods.rb | 14 @parser::members { 47 parser = Parameters::Parser.new lexer 48 r = parser.a( 'foo', 'bar' ) 60 @parser::members { 101 parser = MultipleReturnValues::Parser.new lexer 102 ret = parser.a 128 RuleVisibility::Parser.public_instance_methods.should include( mname[ 'a' ] ) 129 RuleVisibility::Parser.protected_instance_methods.should include( mname[ 'c' ] [all...] |
| /libcore/luni/src/test/java/libcore/xml/ |
| SimpleParserTest.java | 39 private SAXParser parser; field in class:SimpleParserTest 60 parser = factory.newSAXParser(); 61 parser.getXMLReader().setContentHandler(contentHandler); 76 parser = null; 152 SAXParser parser = factory.newSAXParser(); local 153 parser.getXMLReader().setContentHandler(contentHandler); 155 parser.parse(getClass().getResourceAsStream("/SimpleParserTest.xml"), 179 SAXParser parser = factory.newSAXParser(); local 180 parser.getXMLReader().setContentHandler(contentHandler); 181 parser.parse(getClass().getResourceAsStream("/SimpleParserTest.xml") [all...] |
| /packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/ |
| Builder.java | 26 import org.apache.james.mime4j.field.address.parser.ASTaddr_spec; 27 import org.apache.james.mime4j.field.address.parser.ASTaddress; 28 import org.apache.james.mime4j.field.address.parser.ASTaddress_list; 29 import org.apache.james.mime4j.field.address.parser.ASTangle_addr; 30 import org.apache.james.mime4j.field.address.parser.ASTdomain; 31 import org.apache.james.mime4j.field.address.parser.ASTgroup_body; 32 import org.apache.james.mime4j.field.address.parser.ASTlocal_part; 33 import org.apache.james.mime4j.field.address.parser.ASTmailbox; 34 import org.apache.james.mime4j.field.address.parser.ASTname_addr; 35 import org.apache.james.mime4j.field.address.parser.ASTphrase [all...] |
| /packages/services/Telephony/src/org/apache/james/mime4j/field/address/ |
| Builder.java | 26 import org.apache.james.mime4j.field.address.parser.ASTaddr_spec; 27 import org.apache.james.mime4j.field.address.parser.ASTaddress; 28 import org.apache.james.mime4j.field.address.parser.ASTaddress_list; 29 import org.apache.james.mime4j.field.address.parser.ASTangle_addr; 30 import org.apache.james.mime4j.field.address.parser.ASTdomain; 31 import org.apache.james.mime4j.field.address.parser.ASTgroup_body; 32 import org.apache.james.mime4j.field.address.parser.ASTlocal_part; 33 import org.apache.james.mime4j.field.address.parser.ASTmailbox; 34 import org.apache.james.mime4j.field.address.parser.ASTname_addr; 35 import org.apache.james.mime4j.field.address.parser.ASTphrase [all...] |
| /frameworks/base/tools/aapt2/ |
| ResourceParser.cpp | 481 const std::shared_ptr<XmlPullParser>& parser) : 483 mParser(std::make_shared<XliffXmlPullParser>(parser)) { 489 bool ResourceParser::flattenXmlSubtree(XmlPullParser* parser, std::u16string* outRawString, 497 while (XmlPullParser::isGoodEvent(parser->next())) { 498 const XmlPullParser::Event event = parser->getEvent(); 511 outRawString->append(parser->getText()); 512 builder.append(parser->getText()); 515 if (parser->getElementNamespace().size() > 0) { 516 mLogger.warn(parser->getLineNumber()) 518 << parser->getElementName( [all...] |
| XmlDom.cpp | 57 static void addToStack(Stack* stack, XML_Parser parser, std::unique_ptr<Node> node) { 58 node->lineNumber = XML_GetCurrentLineNumber(parser); 59 node->columnNumber = XML_GetCurrentColumnNumber(parser); 74 XML_Parser parser = reinterpret_cast<XML_Parser>(userData); local 75 Stack* stack = reinterpret_cast<Stack*>(XML_GetUserData(parser)); 86 addToStack(stack, parser, std::move(ns)); 90 XML_Parser parser = reinterpret_cast<XML_Parser>(userData); local 91 Stack* stack = reinterpret_cast<Stack*>(XML_GetUserData(parser)); 103 XML_Parser parser = reinterpret_cast<XML_Parser>(userData); local 104 Stack* stack = reinterpret_cast<Stack*>(XML_GetUserData(parser)); 125 XML_Parser parser = reinterpret_cast<XML_Parser>(userData); local 134 XML_Parser parser = reinterpret_cast<XML_Parser>(userData); local 160 XML_Parser parser = reinterpret_cast<XML_Parser>(userData); local 172 XML_Parser parser = XML_ParserCreateNS(nullptr, kXmlNamespaceSep); local [all...] |
| /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/ |
| main.py | 144 # Set up option parser 145 parser = optparse.OptionParser(usage="2to3 [options] file|dir ...") 146 parser.add_option("-d", "--doctests_only", action="store_true", 148 parser.add_option("-f", "--fix", action="append", default=[], 150 parser.add_option("-j", "--processes", action="store", default=1, 152 parser.add_option("-x", "--nofix", action="append", default=[], 154 parser.add_option("-l", "--list-fixes", action="store_true", 156 parser.add_option("-p", "--print-function", action="store_true", 158 parser.add_option("-v", "--verbose", action="store_true", 160 parser.add_option("--no-diffs", action="store_true" [all...] |
| /prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/ |
| main.py | 144 # Set up option parser 145 parser = optparse.OptionParser(usage="2to3 [options] file|dir ...") 146 parser.add_option("-d", "--doctests_only", action="store_true", 148 parser.add_option("-f", "--fix", action="append", default=[], 150 parser.add_option("-j", "--processes", action="store", default=1, 152 parser.add_option("-x", "--nofix", action="append", default=[], 154 parser.add_option("-l", "--list-fixes", action="store_true", 156 parser.add_option("-p", "--print-function", action="store_true", 158 parser.add_option("-v", "--verbose", action="store_true", 160 parser.add_option("--no-diffs", action="store_true" [all...] |
| /external/apache-http/src/org/apache/http/message/ |
| BasicHeaderElementIterator.java | 59 private final HeaderValueParser parser; field in class:BasicHeaderElementIterator 70 final HeaderValueParser parser) { 74 if (parser == null) { 75 throw new IllegalArgumentException("Parser may not be null"); 78 this.parser = parser; 120 HeaderElement e = this.parser.parseHeaderElement(this.buffer, this.cursor);
|
| /external/clang/tools/scan-build/ |
| set-xcode-analyzer | 64 parser = OptionParser('usage: %prog [options]') 65 parser.set_description(__doc__) 66 parser.add_option("--use-checker-build", dest="path", 68 parser.add_option("--use-xcode-clang", action="store_const", 71 (options, args) = parser.parse_args() 73 parser.error("You must specify a version of Clang to use for static analysis. Specify '-h' for details")
|
| /external/lldb/utils/test/ |
| run-until-faulted.py | 74 parser = OptionParser(usage="""\ 79 parser.add_option('-l', '--lldb-command', 83 parser.add_option('-e', '--executable', 87 parser.add_option('-o', '--options', 92 opts, args = parser.parse_args() 97 parser.print_help()
|
| /external/mesa3d/src/glsl/glcpp/ |
| glcpp-lex.l | 45 if (parser->has_new_line_number) \ 46 yylineno = parser->new_line_number; \ 47 if (parser->has_new_source_number) \ 48 yylloc->source = parser->new_source_number; \ 52 parser->has_new_line_number = 0; \ 53 parser->has_new_source_number = 0; \ 81 parser just doesn't care about. Since flex regular expressions that 98 glcpp_parser_t *parser = yyextra; 100 if (parser->lexing_if || parser->skip_stack == NULL || parser->skip_stack->type == SKIP_NO_SKIP) [all...] |
| /external/sepolicy/tools/ |
| post_process_mac_perms | 92 parser = argparse.ArgumentParser(description=__doc__) 94 parser.add_argument('-s', '--seinfo', dest='seinfo', required=True, 96 parser.add_argument('-d', '--dir', dest='dir', required=True, 98 parser.add_argument('-f', '--file', dest='policy', required=True, 101 parser.set_defaults(func=add_leftover_certs) 102 args = parser.parse_args()
|
| /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
| ParserFactory.java | 69 XmlPullParser parser = instantiateParser(name); local 73 parser.setInput(stream, ENCODING); 74 return parser; 83 XmlPullParser parser = sParserFactory.createParser(name); local 84 parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, true); 85 return parser;
|
| /frameworks/data-binding/compiler/src/main/java/android/databinding/tool/ |
| ExpressionParser.java | 27 import android.databinding.parser.BindingExpressionLexer; 28 import android.databinding.parser.BindingExpressionParser; 51 final BindingExpressionParser parser = new BindingExpressionParser(tokenStream); local 52 BindingExpressionParser.BindingSyntaxContext root = parser.bindingSyntax(); 75 ctx.toInfoString(parser), 76 mStack.get(mStack.size() - 1).toInfoString(parser));
|
| /ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/test/utils/runtime/cla/ |
| parser.hpp | 12 // Description : defines parser - public interface for CLA parsing and accessing 40 // ************** runtime::cla::parser ************** // 48 global_mod_parser( parser& p, Modifier const& m ) 66 parser& m_parser; 73 // ************** runtime::cla::parser ************** // 76 class parser { class in namespace:boost::BOOST_RT_PARAM_NAMESPACE::cla 81 explicit parser( cstring program_name = cstring() ); 84 parser& operator<<( parameter_ptr param ); 86 // parser and global parameters modifiers 149 # include <boost/test/utils/runtime/cla/parser.ipp [all...] |
| /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
| test_argparse.py | 142 """Adds parser tests using the class attributes. 148 failures -- a list of args lists that should cause the parser 161 # default parser signature is empty 170 def no_groups(parser, argument_signatures): 171 """Add all arguments directly to the parser""" 173 parser.add_argument(*sig.args, **sig.kwargs) 175 def one_group(parser, argument_signatures): 176 """Add all arguments under a single group in the parser""" 177 group = parser.add_argument_group('foo') 181 def many_groups(parser, argument_signatures) [all...] |
| /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
| test_argparse.py | 142 """Adds parser tests using the class attributes. 148 failures -- a list of args lists that should cause the parser 161 # default parser signature is empty 170 def no_groups(parser, argument_signatures): 171 """Add all arguments directly to the parser""" 173 parser.add_argument(*sig.args, **sig.kwargs) 175 def one_group(parser, argument_signatures): 176 """Add all arguments under a single group in the parser""" 177 group = parser.add_argument_group('foo') 181 def many_groups(parser, argument_signatures) [all...] |