/cts/tests/tests/widget/src/android/widget/cts/ |
TableRow_LayoutParamsTest.java | 243 XmlResourceParser parser = null; local 246 parser = mTargetContext.getResources() 250 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT 253 String nodeName = parser.getName(); 257 int outerDepth = parser.getDepth(); 258 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT 259 && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) { 263 nodeName = parser.getName(); 265 outerDepth = parser.getDepth(); 266 while ((type = parser.next()) != XmlPullParser.END_DOCUMEN [all...] |
/external/dbus/bus/ |
activation-helper.c | 31 #include "config-parser-trivial.h" 47 desktop_file_for_name (BusConfigParser *parser, 82 service_dirs = bus_config_parser_get_service_dirs (parser); 402 get_correct_parser (BusConfigParser **parser, DBusError *error) 453 *parser = bus_config_load (&config_file, TRUE, NULL, error); 454 if (*parser == NULL) 469 launch_bus_name (const char *bus_name, BusConfigParser *parser, DBusError *error) 480 desktop_file = desktop_file_for_name (parser, bus_name, error); 506 check_dbus_user (BusConfigParser *parser, DBusError *error) 510 dbus_user = bus_config_parser_get_user (parser); 529 BusConfigParser *parser; local [all...] |
bus.c | 31 #include "config-parser.h" 283 BusConfigParser *parser, 310 pidfile = bus_config_parser_get_pidfile (parser); 351 context->type = _dbus_strdup (bus_config_parser_get_type (parser)); 352 if (bus_config_parser_get_type (parser) != NULL && context->type == NULL) 355 user = bus_config_parser_get_user (parser); 392 auth_mechanisms_list = bus_config_parser_get_mechanisms (parser); 441 addresses = bus_config_parser_get_addresses (parser); 467 context->fork = bus_config_parser_get_fork (parser); 468 context->syslog = bus_config_parser_get_syslog (parser); 690 BusConfigParser *parser; local 947 BusConfigParser *parser; local [all...] |
/frameworks/base/core/java/android/animation/ |
AnimatorInflater.java | 69 XmlResourceParser parser = null; local 71 parser = context.getResources().getAnimation(id); 72 return createAnimatorFromXml(context, parser); 86 if (parser != null) parser.close(); 90 private static Animator createAnimatorFromXml(Context c, XmlPullParser parser) 93 return createAnimatorFromXml(c, parser, Xml.asAttributeSet(parser), null, 0); 96 private static Animator createAnimatorFromXml(Context c, XmlPullParser parser, 105 int depth = parser.getDepth() [all...] |
/external/chromium/chrome/browser/safe_browsing/ |
protocol_parser_unittest.cc | 18 SafeBrowsingProtocolParser parser; local 21 bool result = parser.ParseChunk( 71 SafeBrowsingProtocolParser parser; local 74 bool result = parser.ParseChunk( 102 SafeBrowsingProtocolParser parser; local 105 bool result = parser.ParseChunk( 164 SafeBrowsingProtocolParser parser; local 167 bool result = parser.ParseChunk( 192 SafeBrowsingProtocolParser parser; local 195 bool result = parser.ParseChunk(add_chunk 208 SafeBrowsingProtocolParser parser; local 248 SafeBrowsingProtocolParser parser; local 309 SafeBrowsingProtocolParser parser; local 339 SafeBrowsingProtocolParser parser; local 388 SafeBrowsingProtocolParser parser; local 423 SafeBrowsingProtocolParser parser; local 450 SafeBrowsingProtocolParser parser; local 476 SafeBrowsingProtocolParser parser; local 549 SafeBrowsingProtocolParser parser; local 568 SafeBrowsingProtocolParser parser; local 602 SafeBrowsingProtocolParser parser; local 615 SafeBrowsingProtocolParser parser; local 630 SafeBrowsingProtocolParser parser; local 646 SafeBrowsingProtocolParser parser; local 666 SafeBrowsingProtocolParser parser; local 713 SafeBrowsingProtocolParser parser; local 762 SafeBrowsingProtocolParser parser; local 813 SafeBrowsingProtocolParser parser; local 840 SafeBrowsingProtocolParser parser; local 878 SafeBrowsingProtocolParser parser; local 903 SafeBrowsingProtocolParser parser; local [all...] |
/cts/tests/src/android/widget/cts/ |
WidgetTestUtils.java | 74 * @param parser XmlPullParser will be parsed. 77 * @throws XmlPullParserException if XML Pull Parser related faults occur. 80 public static final void beginDocument(XmlPullParser parser, String firstElementName) 82 Assert.assertNotNull(parser); 86 while ((type = parser.next()) != XmlPullParser.START_TAG 91 if (!parser.getName().equals(firstElementName)) { 92 throw new XmlPullParserException("Unexpected start tag: found " + parser.getName()
|
/external/llvm/examples/OCaml-Kaleidoscope/Chapter2/ |
parser.ml | 2 * Parser 16 let rec parse_primary = parser 27 let rec parse_args accumulator = parser 29 begin parser 35 let rec parse_ident id = parser 87 and parse_expr = parser 93 let rec parse_args accumulator = parser 98 parser 110 let parse_definition = parser 115 let parse_toplevel = parser [all...] |
/external/llvm/examples/OCaml-Kaleidoscope/Chapter3/ |
parser.ml | 2 * Parser 16 let rec parse_primary = parser 27 let rec parse_args accumulator = parser 29 begin parser 35 let rec parse_ident id = parser 87 and parse_expr = parser 93 let rec parse_args accumulator = parser 98 parser 110 let parse_definition = parser 115 let parse_toplevel = parser [all...] |
/external/llvm/examples/OCaml-Kaleidoscope/Chapter4/ |
parser.ml | 2 * Parser 16 let rec parse_primary = parser 27 let rec parse_args accumulator = parser 29 begin parser 35 let rec parse_ident id = parser 87 and parse_expr = parser 93 let rec parse_args accumulator = parser 98 parser 110 let parse_definition = parser 115 let parse_toplevel = parser [all...] |
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/ |
TestPackageResult.java | 162 * @param parser the {@link XmlPullParser}. Expected to be pointing at start 166 void parse(XmlPullParser parser) throws XmlPullParserException, IOException { 167 if (!parser.getName().equals(TAG)) { 169 "invalid XML: Expected %s tag but received %s", TAG, parser.getName())); 171 setAppPackageName(getAttribute(parser, APP_PACKAGE_NAME_ATTR)); 172 setName(getAttribute(parser, NAME_ATTR)); 173 setDigest(getAttribute(parser, DIGEST_ATTR)); 174 int eventType = parser.getEventType(); 176 if (eventType == XmlPullParser.START_TAG && parser.getName().equals(TestSuite.TAG)) { 178 suite.parse(parser); [all...] |
TestSuite.java | 158 * @param parser the {@link XmlPullParser}. Expected to be pointing at start 162 void parse(XmlPullParser parser) throws XmlPullParserException, IOException { 163 if (!parser.getName().equals(TAG)) { 165 "invalid XML: Expected %s tag but received %s", TAG, parser.getName())); 167 setName(getAttribute(parser, "name")); 168 int eventType = parser.next(); 170 if (eventType == XmlPullParser.START_TAG && parser.getName().equals(TestSuite.TAG)) { 172 suite.parse(parser); 174 } else if (eventType == XmlPullParser.START_TAG && parser.getName().equals( 177 testCase.parse(parser); [all...] |
/external/webkit/Tools/Scripts/webkitpy/style/ |
optparser.py | 301 parser = OptionParser(usage=usage, epilog=_EPILOG) 309 parser.add_option("-f", "--filter-rules", metavar="RULES", 314 parser.add_option("-g", "--git-diff", "--git-commit", 318 parser.add_option("--diff-files", action="store_true", dest="diff_files", default=False, help=diff_files_help) 323 parser.add_option("-m", "--min-confidence", metavar="INT", 331 parser.add_option("-o", "--output-format", metavar="FORMAT", 337 parser.add_option("-v", "--verbose", dest="is_verbose", default=False, 343 parser.error = self._parse_error 347 print_help = parser.print_help 348 parser.print_help = lambda: print_help(file=stderr [all...] |
/external/apache-http/src/org/apache/http/impl/io/ |
AbstractMessageParser.java | 51 * Message parser base class. 66 final LineParser parser, 80 this.lineParser = (parser != null) ? parser : BasicLineParser.DEFAULT; 103 LineParser parser) 109 if (parser == null) 110 parser = BasicLineParser.DEFAULT; 160 headers[i] = parser.parseHeader(buffer);
|
/external/chromium/chrome/browser/chromeos/ |
system_access.cc | 191 NameValuePairsParser parser(&machine_info_); 192 if (!parser.GetSingleValueFromTool(arraysize(kHardwareClassTool), 196 parser.AddNameValuePair(kHardwareClassKey, kUnknownHardwareClass); 198 parser.ParseNameValuePairsFromTool(arraysize(kMachineHardwareInfoTool), 202 parser.ParseNameValuePairsFromTool(arraysize(kMachineOSInfoTool), 206 parser.GetSingleValueFromTool(arraysize(kHwidTool), kHwidTool, kHwidKey); 207 parser.ParseNameValuePairsFromTool(
|
/packages/apps/Email/tests/src/com/android/email/mail/store/ |
Pop3StoreUnitTests.java | 85 * Test various sunny-day operations of UIDL parser for multi-line responses 90 Pop3Store.Pop3Folder.UidlParser parser = mFolder.new UidlParser(); local 93 parser.parseMultiLine("101 " + UNIQUE_ID_1); 94 assertEquals(101, parser.mMessageNumber); 95 assertEquals(UNIQUE_ID_1, parser.mUniqueId); 96 assertFalse(parser.mEndOfMessage); 97 assertFalse(parser.mErr); 100 parser.parseMultiLine("."); 101 assertTrue(parser.mEndOfMessage); 102 assertFalse(parser.mErr) 111 Pop3Store.Pop3Folder.UidlParser parser = mFolder.new UidlParser(); local 130 Pop3Store.Pop3Folder.UidlParser parser = mFolder.new UidlParser(); local 148 Pop3Store.Pop3Folder.UidlParser parser = mFolder.new UidlParser(); local 166 Pop3Store.Pop3Folder.UidlParser parser = mFolder.new UidlParser(); local [all...] |
/external/srec/srec/Semproc/src/ |
ExpressionParser.c | 29 * These are handlers for tokens. They modify state of the parser 100 ESR_ReturnCode EP_parse(ExpressionParser* parser, LexicalAnalyzer* lexAnalyzer, 111 CHKLOG(rc, handle_NewStatement(parser)); 115 CHKLOG(rc, LA_nextToken(lexAnalyzer, parser->ptokenBuf, &tokenLen)); 119 switch (parser->ptokenBuf[0]) 122 CHKLOG(rc, handle_OpAssign(parser)); 125 CHKLOG(rc, handle_OpConcat(parser)); 128 CHKLOG(rc, handle_LBracket(parser)); 131 CHKLOG(rc, handle_ParamDelim(parser)); 134 CHKLOG(rc, handle_RBracket(parser)); [all...] |
/frameworks/base/core/java/android/content/pm/ |
PackageParser.java | 414 XmlResourceParser parser = null; local 425 parser = assmgr.openXmlResourceParser(cookie, ANDROID_MANIFEST_FILENAME); 444 pkg = parsePackage(res, parser, flags, errorText); 459 + parser.getPositionDescription() 466 parser.close(); 471 parser.close(); 634 final XmlResourceParser parser; local 649 parser = assmgr.openXmlResourceParser(cookie, ANDROID_MANIFEST_FILENAME); 657 final AttributeSet attrs = parser; 661 packageLite = parsePackageLite(res, parser, attrs, flags, errors) [all...] |
/external/llvm/examples/OCaml-Kaleidoscope/Chapter5/ |
parser.ml | 2 * Parser 18 let rec parse_primary = parser 29 let rec parse_args accumulator = parser 31 begin parser 37 let rec parse_ident id = parser 61 begin parser 68 begin parser 73 begin parser 123 and parse_expr = parser 129 let rec parse_args accumulator = parser [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
AnimationDrawable.java | 224 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs) 230 super.inflateWithAttributes(r, parser, a, 243 final int innerDepth = parser.getDepth()+1; 245 while ((type=parser.next()) != XmlPullParser.END_DOCUMENT && 246 ((depth = parser.getDepth()) >= innerDepth || type != XmlPullParser.END_TAG)) { 251 if (depth > innerDepth || !parser.getName().equals("item")) { 260 parser.getPositionDescription() 272 while ((type=parser.next()) == XmlPullParser.TEXT) { 276 throw new XmlPullParserException(parser.getPositionDescription() + 280 dr = Drawable.createFromXmlInner(r, parser, attrs) [all...] |
/libcore/xml/src/main/java/org/kxml2/kdom/ |
Node.java | 219 /** Recursively builds the child elements from the given parser 223 public void parse(XmlPullParser parser) 229 int type = parser.getEventType(); 231 // System.out.println(parser.getPositionDescription()); 239 parser.getNamespace(), 240 parser.getName()); 247 child.parse(parser); 257 if (parser.getText() != null) 260 parser.getText()); 263 && parser.getName() != null) [all...] |
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
AnimationDrawableTest.java | 376 XmlResourceParser parser = getResourceParser(R.xml.anim_list_correct); local 377 mAnimationDrawable.inflate(mResources, parser, Xml.asAttributeSet(parser)); 389 parser = getResourceParser(R.xml.anim_list_missing_list_attrs); 390 mAnimationDrawable.inflate(mResources, parser, Xml.asAttributeSet(parser)); 406 parser = getResourceParser(R.xml.anim_list_missing_item_drawable); 408 mAnimationDrawable.inflate(mResources, parser, Xml.asAttributeSet(parser)); 423 + "when param r, parser or attrs is null" 425 XmlResourceParser parser = getResourceParser(R.drawable.animationdrawable); local 464 XmlResourceParser parser = mResources.getXml(resId); local [all...] |
/external/freetype/include/freetype/internal/ |
psaux.h | 216 FT_Pointer parser ); 331 /***** T1 PARSER *****/ 341 (*init)( PS_Parser parser, 347 (*done)( PS_Parser parser ); 350 (*skip_spaces)( PS_Parser parser ); 352 (*skip_PS_token)( PS_Parser parser ); 355 (*to_int)( PS_Parser parser ); 357 (*to_fixed)( PS_Parser parser, 361 (*to_bytes)( PS_Parser parser, 368 (*to_coord_array)( PS_Parser parser, [all...] |
/external/emma/core/java12/com/vladium/emma/instr/ |
instrCommand.java | 53 final IOptsParser parser = getOptParser (loader); local 54 final IOptsParser.IOpts parsedopts = parser.parse (m_args); 62 usageexit (parser, usageRequestLevel, null); 72 usageexit (parser, IOptsParser.SHORT_USAGE, null); 114 usageexit (parser, IOptsParser.SHORT_USAGE, 142 usageexit (parser, IOptsParser.SHORT_USAGE,
|
/external/icu4c/i18n/ |
rbt.cpp | 40 TransliteratorParser parser(status); 41 parser.parse(rules, direction, parseError, status); 46 if (parser.idBlockVector.size() != 0 || 47 parser.compoundFilter != NULL || 48 parser.dataVector.size() == 0) { 53 fData = (TransliterationRuleData*)parser.dataVector.orphanElementAt(0);
|
/external/webkit/Source/WebCore/html/parser/ |
HTMLTreeBuilder.h | 58 static PassOwnPtr<HTMLTreeBuilder> create(HTMLDocumentParser* parser, HTMLDocument* document, bool reportErrors, bool usePreHTML5ParserQuirks) 60 return adoptPtr(new HTMLTreeBuilder(parser, document, reportErrors, usePreHTML5ParserQuirks)); 62 static PassOwnPtr<HTMLTreeBuilder> create(HTMLDocumentParser* parser, DocumentFragment* fragment, Element* contextElement, FragmentScriptingPermission scriptingPermission, bool usePreHTML5ParserQuirks) 64 return adoptPtr(new HTMLTreeBuilder(parser, fragment, contextElement, scriptingPermission, usePreHTML5ParserQuirks)); 79 // Must be called when parser is paused before calling the parser again. 119 HTMLTreeBuilder(HTMLDocumentParser* parser, HTMLDocument*, bool reportErrors, bool usePreHTML5ParserQuirks); 120 HTMLTreeBuilder(HTMLDocumentParser* parser, DocumentFragment*, Element* contextElement, FragmentScriptingPermission, bool usePreHTML5ParserQuirks); 223 // FragmentScriptingNotAllowed causes the Parser to remove children 246 // We access parser because HTML5 spec requires that we be able to change the state of the tokenize [all...] |