/external/chromium_org/chrome/tools/build/ |
appid.py | 36 parser = optparse.OptionParser() 37 parser.add_option('-a', '--appid', 39 parser.add_option('-o', '--output_file', 42 (opts, args) = parser.parse_args() 45 parser.print_help()
|
/external/chromium_org/native_client_sdk/src/tools/tests/ |
chrome_mock.py | 16 parser = optparse.OptionParser(usage='%prog [options] <URL to load>') 17 parser.add_option('--post', help='POST to URL.', dest='post', 19 parser.add_option('--get', help='GET to URL.', dest='get', 21 parser.add_option('--sleep', 24 parser.add_option('--expect-to-be-killed', help='If set, the script will warn' 27 options, args = parser.parse_args(args) 29 parser.error('Expected URL to load.')
|
/external/chromium_org/third_party/freetype/src/psaux/ |
afmparse.h | 5 /* AFM parser (specification). */ 31 afm_parser_init( AFM_Parser parser, 38 afm_parser_done( AFM_Parser parser ); variable 42 afm_parser_parse( AFM_Parser parser ); variable 73 afm_parser_read_vals( AFM_Parser parser, 79 afm_parser_next_key( AFM_Parser parser,
|
psobjs.h | 71 /***** T1 PARSER *****/ 78 ps_parser_skip_spaces( PS_Parser parser ); variable 81 ps_parser_skip_PS_token( PS_Parser parser ); variable 84 ps_parser_to_token( PS_Parser parser, 88 ps_parser_to_token_array( PS_Parser parser, 94 ps_parser_load_field( PS_Parser parser, 101 ps_parser_load_field_table( PS_Parser parser, 108 ps_parser_to_int( PS_Parser parser ); variable 112 ps_parser_to_bytes( PS_Parser parser, 120 ps_parser_to_fixed( PS_Parser parser, 143 ps_parser_done( PS_Parser parser ); variable [all...] |
/external/chromium_org/third_party/skia/src/svg/ |
SkSVGPolyline.cpp | 36 void SkSVGPolyline::translate(SkSVGParser& parser, bool defState) { 37 parser._startElement("polyline"); 38 INHERITED::translate(parser, defState); 41 parser._addAttribute("fillType", f_fillRule.equals("evenodd") ? "evenOdd" : "winding"); 42 parser._endElement();
|
/external/chromium_org/tools/gyp/test/win/linker-flags/ |
update_pgd.py | 12 parser = OptionParser() variable 13 parser.add_option('--exe', dest='exe') 14 parser.add_option('--vcbindir', dest='vcbindir') 15 parser.add_option('--pgd', dest='pgd') 16 (options, args) = parser.parse_args()
|
/external/clang/bindings/python/examples/cindex/ |
cindex-includes.py | 23 parser = OptionParser("usage: %prog [options] {filename} [clang-args*]") 24 parser.disable_interspersed_args() 25 (opts, args) = parser.parse_args() 27 parser.error('invalid number arguments') 35 parser.error("unable to load input")
|
/external/freetype/src/psaux/ |
afmparse.h | 5 /* AFM parser (specification). */ 31 afm_parser_init( AFM_Parser parser, 38 afm_parser_done( AFM_Parser parser ); variable 42 afm_parser_parse( AFM_Parser parser ); variable 73 afm_parser_read_vals( AFM_Parser parser, 79 afm_parser_next_key( AFM_Parser parser,
|
psobjs.h | 71 /***** T1 PARSER *****/ 78 ps_parser_skip_spaces( PS_Parser parser ); variable 81 ps_parser_skip_PS_token( PS_Parser parser ); variable 84 ps_parser_to_token( PS_Parser parser, 88 ps_parser_to_token_array( PS_Parser parser, 94 ps_parser_load_field( PS_Parser parser, 101 ps_parser_load_field_table( PS_Parser parser, 108 ps_parser_to_int( PS_Parser parser ); variable 112 ps_parser_to_bytes( PS_Parser parser, 120 ps_parser_to_fixed( PS_Parser parser, 143 ps_parser_done( PS_Parser parser ); variable [all...] |
/external/skia/src/svg/ |
SkSVGPolyline.cpp | 36 void SkSVGPolyline::translate(SkSVGParser& parser, bool defState) { 37 parser._startElement("polyline"); 38 INHERITED::translate(parser, defState); 41 parser._addAttribute("fillType", f_fillRule.equals("evenodd") ? "evenOdd" : "winding"); 42 parser._endElement();
|
/external/chromium_org/chrome_frame/ |
combine_libs.py | 72 parser = optparse.OptionParser(USAGE) 73 parser.add_option('-o', '--output', dest = 'output', 75 parser.add_option('-r', '--remove', dest = 'remove', 78 return parser 83 parser = GetOptionParser() 84 (opt, args) = parser.parse_args() 88 parser.error('You must specify an output file') 91 parser.error('You must specify at least one object or library') 100 parser.error('%s is not a valid regular expression' % opt.remove) 105 parser.error('this script only works on Windows for now' [all...] |
/external/chromium_org/components/policy/tools/ |
make_policy_zip.py | 54 parser = optparse.OptionParser() 55 parser.add_option("--output", dest="output") 56 parser.add_option("--basedir", dest="basedir") 57 parser.add_option("--grit_info", dest="grit_info") 58 parser.add_option("--grd_input", dest="grd_input") 59 parser.add_option("--grd_strip_path_prefix", dest="grd_strip_path_prefix") 60 parser.add_option("--extra_input", action="append", dest="extra_input", 62 parser.add_option("-D", action="append", dest="grit_defines", default=[]) 63 parser.add_option("-E", action="append", dest="grit_build_env", default=[]) 64 options, args = parser.parse_args(argv[1:] [all...] |
/external/smack/src/org/jivesoftware/smackx/bytestreams/socks5/provider/ |
BytestreamsProvider.java | 28 public IQ parseIQ(XmlPullParser parser) throws Exception {
33 String id = parser.getAttributeValue("", "sid");
34 String mode = parser.getAttributeValue("", "mode");
44 eventType = parser.next();
45 elementName = parser.getName();
48 JID = parser.getAttributeValue("", "jid");
49 host = parser.getAttributeValue("", "host");
50 port = parser.getAttributeValue("", "port");
53 toReturn.setUsedHost(parser.getAttributeValue("", "jid"));
56 toReturn.setToActivate(parser.getAttributeValue("", "jid")); [all...] |
/external/smack/src/org/jivesoftware/smackx/workgroup/packet/ |
OfferRevokeProvider.java | 33 public IQ parseIQ (XmlPullParser parser) throws Exception {
34 // The parser will be positioned on the opening IQ tag, so get the JID attribute.
35 String userJID = parser.getAttributeValue("", "jid");
43 int eventType = parser.next();
45 if ((eventType == XmlPullParser.START_TAG) && parser.getName().equals("reason")) {
46 reason = parser.nextText();
49 && parser.getName().equals(SessionID.ELEMENT_NAME)) {
50 sessionID = parser.getAttributeValue("", "id");
53 && parser.getName().equals(UserID.ELEMENT_NAME)) {
54 userID = parser.getAttributeValue("", "id"); [all...] |
AgentStatusRequest.java | 121 public IQ parseIQ(XmlPullParser parser) throws Exception {
124 if (parser.getEventType() != XmlPullParser.START_TAG) {
125 throw new IllegalStateException("Parser not in proper position, or bad XML.");
130 int eventType = parser.next();
131 if ((eventType == XmlPullParser.START_TAG) && ("agent".equals(parser.getName()))) {
132 statusRequest.agents.add(parseAgent(parser));
135 "agent-status-request".equals(parser.getName()))
143 private Item parseAgent(XmlPullParser parser) throws Exception {
146 String jid = parser.getAttributeValue("", "jid");
147 String type = parser.getAttributeValue("", "type"); [all...] |
QueueOverview.java | 120 public PacketExtension parseExtension (XmlPullParser parser) throws Exception {
121 int eventType = parser.getEventType();
129 eventType = parser.next();
131 || (!ELEMENT_NAME.equals(parser.getName())))
133 if ("count".equals(parser.getName())) {
134 queueOverview.setUserCount(Integer.parseInt(parser.nextText()));
136 else if ("time".equals(parser.getName())) {
137 queueOverview.setAverageWaitTime(Integer.parseInt(parser.nextText()));
139 else if ("oldest".equals(parser.getName())) {
140 queueOverview.setOldestEntry((dateFormat.parse(parser.nextText()))); [all...] |
/external/smack/src/org/jivesoftware/smackx/workgroup/settings/ |
WorkgroupProperties.java | 96 public IQ parseIQ(XmlPullParser parser) throws Exception { 97 if (parser.getEventType() != XmlPullParser.START_TAG) { 98 throw new IllegalStateException("Parser not in proper position, or bad XML."); 107 int eventType = parser.next(); 108 if ((eventType == XmlPullParser.START_TAG) && ("authRequired".equals(parser.getName()))) { 109 props.setAuthRequired(new Boolean(parser.nextText()).booleanValue()); 111 else if ((eventType == XmlPullParser.START_TAG) && ("email".equals(parser.getName()))) { 112 props.setEmail(parser.nextText()); 114 else if ((eventType == XmlPullParser.START_TAG) && ("name".equals(parser.getName()))) { 115 props.setFullName(parser.nextText()) [all...] |
/frameworks/base/core/java/android/view/animation/ |
AnimationUtils.java | 69 XmlResourceParser parser = null; local 71 parser = context.getResources().getAnimation(id); 72 return createAnimationFromXml(context, parser); 84 if (parser != null) parser.close(); 88 private static Animation createAnimationFromXml(Context c, XmlPullParser parser) 91 return createAnimationFromXml(c, parser, null, Xml.asAttributeSet(parser)); 94 private static Animation createAnimationFromXml(Context c, XmlPullParser parser, 101 int depth = parser.getDepth() 147 XmlResourceParser parser = null; local 268 XmlResourceParser parser = null; local [all...] |
/external/replicaisland/src/com/replica/replicaisland/ |
LevelTree.java | 82 XmlResourceParser parser = context.getResources().getXml(resource); local 91 int eventType = parser.getEventType(); 94 if (parser.getName().equals("group")) { 101 if (parser.getName().equals("level") && currentGroup != null) { 108 for(int i=0; i < parser.getAttributeCount(); i++) { 109 if (parser.getAttributeName(i).equals("past")) { 110 if (parser.getAttributeValue(i).equals("true")) { 113 } else if (parser.getAttributeName(i).equals("restartable")) { 114 if (parser.getAttributeValue(i).equals("false")) { 117 } else if (parser.getAttributeName(i).equals("waitmessage")) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_pyexpat.py | 15 self.parser = expat.ParserCreate(namespace_separator='!') 25 self.parser.returns_unicode = x 26 self.assertEqual(self.parser.returns_unicode, y) 30 self.parser.ordered_attributes = x 31 self.assertEqual(self.parser.ordered_attributes, y) 35 self.parser.specified_attributes = x 36 self.assertEqual(self.parser.specified_attributes, y) 136 parser = expat.ParserCreate(namespace_separator='!') 138 setattr(parser, name, getattr(out, name)) 139 parser.returns_unicode = [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_pyexpat.py | 15 self.parser = expat.ParserCreate(namespace_separator='!') 25 self.parser.returns_unicode = x 26 self.assertEqual(self.parser.returns_unicode, y) 30 self.parser.ordered_attributes = x 31 self.assertEqual(self.parser.ordered_attributes, y) 35 self.parser.specified_attributes = x 36 self.assertEqual(self.parser.specified_attributes, y) 136 parser = expat.ParserCreate(namespace_separator='!') 138 setattr(parser, name, getattr(out, name)) 139 parser.returns_unicode = [all...] |
/external/chromium_org/chrome/utility/media_galleries/ |
itunes_library_parser_unittest.cc | 34 void CompareTrack(const parser::Track& a, const parser::Track& b) { 39 void CompareAlbum(const parser::Album& a, const parser::Album& b) { 42 parser::Album::const_iterator a_it; 43 parser::Album::const_iterator b_it; 51 void CompareAlbums(const parser::Albums& a, const parser::Albums& b) { 54 parser::Albums::const_iterator a_it; 55 parser::Albums::const_iterator b_it 82 ITunesLibraryParser parser; local [all...] |
/external/jsilver/src/com/google/streamhtmlparser/ |
HtmlParserFactory.java | 31 * and the specialized parser creation methods will throw 71 * Indicates that the parser is inside a quoted {@code String}. Only 128 * @param mode the mode to reset the parser with 142 HtmlParser parser = new HtmlParserImpl(); 143 parser.resetMode(mode); 144 return parser; 150 * proceed with parsing in-lieu of the supplied parser. 165 * A very specialized {@code HtmlParser} accessor that returns a parser 167 * of an HTML tag. This is only useful when the parser has not seen a 171 * <p>For example, to create a parser in a state akin to tha 197 HtmlParser parser; local [all...] |
/cts/tests/SignatureTest/src/android/tests/sigtest/ |
SignatureTest.java | 133 private void beginDocument(XmlPullParser parser, String firstElementName) 136 while ((type=parser.next()) != XmlPullParser.START_TAG 143 if (!parser.getName().equals(firstElementName)) { 144 throw new XmlPullParserException("Unexpected start tag: found " + parser.getName() + 152 private void start(XmlPullParser parser) throws XmlPullParserException, IOException { 157 beginDocument(parser, TAG_ROOT); 161 while ((type=parser.next()) != XmlPullParser.START_TAG 168 if (TAG_CLASS.equals(parser.getName()) 169 || TAG_INTERFACE.equals(parser.getName())) { 171 } else if (TAG_PACKAGE.equals(parser.getName())) [all...] |
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
PaintDrawableTest.java | 105 XmlResourceParser parser = getParser(); local 106 AttributeSet attr = getAtrributeSet(parser); 108 gotoTag(parser, "padding"); 117 assertTrue(paintDrawable.inflateTag("padding", getContext().getResources(), parser, attr)); 121 parser = getParser(); 122 attr = getAtrributeSet(parser); 124 assertFalse(new MyPaintDrawable().inflateTag("", getContext().getResources(), parser, 130 new MyPaintDrawable().inflateTag(null, getContext().getResources(), parser, attr); 138 gotoTag(parser, "padding"); 139 new MyPaintDrawable().inflateTag("padding", null, parser, attr) [all...] |