/development/samples/training/network-usage/src/com/example/android/networkusage/ |
D | StackOverflowXmlParser.java | 39 XmlPullParser parser = Xml.newPullParser(); in parse() local 40 parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false); in parse() 41 parser.setInput(in, null); in parse() 42 parser.nextTag(); in parse() 43 return readFeed(parser); in parse() 49 private List<Entry> readFeed(XmlPullParser parser) throws XmlPullParserException, IOException { in readFeed() argument 52 parser.require(XmlPullParser.START_TAG, ns, "feed"); in readFeed() 53 while (parser.next() != XmlPullParser.END_TAG) { in readFeed() 54 if (parser.getEventType() != XmlPullParser.START_TAG) { in readFeed() 57 String name = parser.getName(); in readFeed() [all …]
|
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/net/ |
D | FeedParser.java | 61 XmlPullParser parser = Xml.newPullParser(); in parse() local 62 parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false); in parse() 63 parser.setInput(in, null); in parse() 64 parser.nextTag(); in parse() 65 return readFeed(parser); in parse() 79 private List<Entry> readFeed(XmlPullParser parser) in readFeed() argument 90 parser.require(XmlPullParser.START_TAG, ns, "feed"); in readFeed() 91 while (parser.next() != XmlPullParser.END_TAG) { in readFeed() 92 if (parser.getEventType() != XmlPullParser.START_TAG) { in readFeed() 95 String name = parser.getName(); in readFeed() [all …]
|
/development/testrunner/ |
D | runtest.py | 104 parser = optparse.OptionParser(usage=self._RUNTEST_USAGE) 106 parser.add_option("-l", "--list-tests", dest="only_list_tests", 109 parser.add_option("-b", "--skip-build", dest="skip_build", default=False, 111 parser.add_option("-j", "--jobs", dest="make_jobs", 114 parser.add_option("-n", "--skip_execute", dest="preview", default=False, 117 parser.add_option("-i", "--build-install-only", dest="build_install_only", default=False, 120 parser.add_option("-r", "--raw-mode", dest="raw_mode", default=False, 123 parser.add_option("-a", "--suite-assign", dest="suite_assign_mode", 127 parser.add_option("-v", "--verbose", dest="verbose", default=False, 130 parser.add_option("-w", "--wait-for-debugger", dest="wait_for_debugger", [all …]
|
D | create_test.py | 182 parser = optparse.OptionParser(usage="%s <app_path>" % sys.argv[0]) 183 options, args = parser.parse_args(argv) 186 parser.print_usage()
|
/development/samples/XmlAdapters/src/com/example/android/xmladapters/ |
D | XmlDocumentProvider.java | 176 XmlPullParser parser = null; in query() local 181 parser = getUriXmlPullParser(url); in query() 187 parser = getResourceXmlPullParser(resourceUri); in query() 191 if (parser != null) { in query() 194 xmlCursor.parseWith(parser); in query() 216 XmlPullParser parser = null; in getUriXmlPullParser() local 220 parser = factory.newPullParser(); in getUriXmlPullParser() 243 parser.setInput(inputStream, null); in getUriXmlPullParser() 249 return parser; in getUriXmlPullParser() 379 public void parseWith(XmlPullParser parser) throws IOException, XmlPullParserException { in parseWith() argument [all …]
|
D | Adapters.java | 501 XmlResourceParser parser = null; in loadAdapter() local 503 parser = context.getResources().getXml(id); in loadAdapter() 504 return createAdapterFromXml(context, parser, Xml.asAttributeSet(parser), in loadAdapter() 519 if (parser != null) parser.close(); in loadAdapter() 533 XmlPullParser parser, AttributeSet attrs, int id, Object[] parameters, in createAdapterFromXml() argument 540 int depth = parser.getDepth(); in createAdapterFromXml() 542 while (((type = parser.next()) != XmlPullParser.END_TAG || parser.getDepth() > depth) && in createAdapterFromXml() 549 String name = parser.getName(); in createAdapterFromXml() 557 adapter = createCursorAdapter(c, parser, attrs, id, parameters); in createAdapterFromXml() 559 throw new IllegalArgumentException("Unknown adapter name " + parser.getName() + in createAdapterFromXml() [all …]
|
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/ |
D | LatinKeyboard.java | 66 XmlResourceParser parser) { in createKeyFromXml() argument 67 Key key = new LatinKey(res, parent, x, y, parser); in createKeyFromXml() 74 mSavedModeChangeKey = new LatinKey(res, parent, x, y, parser); in createKeyFromXml() 77 mSavedLanguageSwitchKey = new LatinKey(res, parent, x, y, parser); in createKeyFromXml() 150 XmlResourceParser parser) { in LatinKey() argument 151 super(res, parent, x, y, parser); in LatinKey()
|
/development/testrunner/test_defs/ |
D | xml_suite_helper.py | 54 parser = None 56 parser = InstrumentationParser() 58 parser = NativeParser() 60 parser = HostParser() 64 test_suite = parser.Parse(element)
|
/development/samples/ActionBarCompat/src/com/example/android/actionbarcompat/ |
D | ActionBarHelperBase.java | 252 XmlResourceParser parser = null; in loadActionBarMetadata() local 254 parser = mActivity.getResources().getXml(menuResId); in loadActionBarMetadata() 256 int eventType = parser.getEventType(); in loadActionBarMetadata() 264 if (!parser.getName().equals("item")) { in loadActionBarMetadata() 268 itemId = parser.getAttributeResourceValue(MENU_RES_NAMESPACE, in loadActionBarMetadata() 274 showAsAction = parser.getAttributeIntValue(MENU_RES_NAMESPACE, in loadActionBarMetadata() 287 eventType = parser.next(); in loadActionBarMetadata() 294 if (parser != null) { in loadActionBarMetadata() 295 parser.close(); in loadActionBarMetadata()
|
/development/samples/Home/src/com/example/android/home/ |
D | Home.java | 285 final XmlPullParser parser = Xml.newPullParser(); in bindFavorites() local 286 parser.setInput(favReader); in bindFavorites() 288 beginDocument(parser, TAG_FAVORITES); in bindFavorites() 293 nextElement(parser); in bindFavorites() 295 String name = parser.getName(); in bindFavorites() 300 final String favoritePackage = parser.getAttributeValue(null, TAG_PACKAGE); in bindFavorites() 301 final String favoriteClass = parser.getAttributeValue(null, TAG_CLASS); in bindFavorites() 323 private static void beginDocument(XmlPullParser parser, String firstElementName) in beginDocument() argument 327 while ((type = parser.next()) != XmlPullParser.START_TAG && in beginDocument() 336 if (!parser.getName().equals(firstElementName)) { in beginDocument() [all …]
|
/development/samples/ApiDemos/src/com/example/android/apis/os/ |
D | MmsWapPushReceiver.java | 42 final PduParser parser = new PduParser( in onReceive() local 46 pdu = parser.parse(); in onReceive()
|
/development/ndk/tools/ |
D | headers-diff-bionic-vs-ndk.py | 213 parser = argparse.ArgumentParser(formatter_class = argparse.RawTextHelpFormatter, variable 215 parser.epilog = textwrap.dedent(''' 230 parser.add_argument('--archs', metavar = 'A', nargs = '+', 233 parser.add_argument('--diff', metavar = 'FILE', nargs = 1, 238 args = parser.parse_args()
|
/development/testrunner/coverage/ |
D | coverage.py | 318 parser = optparse.OptionParser(usage="usage: %prog --combine-coverage") 319 parser.add_option( 323 parser.add_option( 327 options, args = parser.parse_args()
|
/development/tools/idegen/src/com/android/idegen/ |
D | MakeFileParser.java | 268 MakeFileParser parser = new MakeFileParser(new File(args[0])); 270 parser.parse(); in parser.parse() 274 System.out.println(parser.toString()); in parser.toString()
|
/development/samples/BluetoothHDP/ |
D | _index.jd | 14 … data sent from the device. Note that in order to interpret the data, a parser that conforms to t…
|
/development/tools/idegen/ |
D | README | 59 use Java's regular expression parser (see java.util.regex.Parser).
|
/development/perftests/panorama/feature_mos/doc/ |
D | feature_mos_API_doxyfile | 220 # Doxygen selects the parser to use depending on the extension of the files it parses. 221 # With this tag you can assign which parser to use for a given extension. 1193 # which can be used by a validating XML parser to check the 1199 # which can be used by a validating XML parser to check the 1318 # the parser if not removed.
|
/development/perftests/panorama/feature_stab/doc/ |
D | dbreg_API_doxyfile | 220 # Doxygen selects the parser to use depending on the extension of the files it parses. 221 # With this tag you can assign which parser to use for a given extension. 1193 # which can be used by a validating XML parser to check the 1199 # which can be used by a validating XML parser to check the 1318 # the parser if not removed.
|
/development/sdk/ |
D | sdk_files_NOTICE.txt | 8894 Stanislav Karchebny (options parser) 8901 Samuel Thibault (TASM parser and frontend)
|