Home
last modified time | relevance | path

Searched refs:parser (Results 1 – 25 of 27) sorted by relevance

12

/development/samples/training/network-usage/src/com/example/android/networkusage/
DStackOverflowXmlParser.java39 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/
DFeedParser.java61 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/
Druntest.py104 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 …]
Dcreate_test.py182 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/
DXmlDocumentProvider.java176 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 …]
DAdapters.java501 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/Support4Demos/src/com/example/android/supportv4/media/
DPackageValidator.java57 private Map<String, ArrayList<CallerInfo>> readValidCertificates(XmlResourceParser parser) { in readValidCertificates() argument
60 int eventType = parser.next(); in readValidCertificates()
63 && parser.getName().equals("signing_certificate")) { in readValidCertificates()
65 String name = parser.getAttributeValue(null, "name"); in readValidCertificates()
66 String packageName = parser.getAttributeValue(null, "package"); in readValidCertificates()
67 boolean isRelease = parser.getAttributeBooleanValue(null, "release", false); in readValidCertificates()
68 String certificate = parser.nextText().replaceAll("\\s|\\n", ""); in readValidCertificates()
82 eventType = parser.next(); in readValidCertificates()
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
DPackageValidator.java55 private Map<String, ArrayList<CallerInfo>> readValidCertificates(XmlResourceParser parser) { in readValidCertificates() argument
58 int eventType = parser.next(); in readValidCertificates()
61 && parser.getName().equals("signing_certificate")) { in readValidCertificates()
63 String name = parser.getAttributeValue(null, "name"); in readValidCertificates()
64 String packageName = parser.getAttributeValue(null, "package"); in readValidCertificates()
65 boolean isRelease = parser.getAttributeBooleanValue(null, "release", false); in readValidCertificates()
66 String certificate = parser.nextText().replaceAll("\\s|\\n", ""); in readValidCertificates()
80 eventType = parser.next(); in readValidCertificates()
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/
DLatinKeyboard.java66 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/
Dxml_suite_helper.py55 parser = None
57 parser = InstrumentationParser()
59 parser = NativeParser()
61 parser = HostParser()
65 test_suite = parser.Parse(element)
/development/samples/Home/src/com/example/android/home/
DHome.java285 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/scripts/
Dgdbclient.py37 parser = gdbrunner.ArgumentParser()
39 group = parser.add_argument_group(title="attach target")
51 parser.add_argument(
54 parser.add_argument(
58 return parser.parse_args()
/development/tools/checkstyle/
Dcheckstyle.py274 parser = argparse.ArgumentParser()
275 parser.add_argument('--file', '-f', nargs='+')
276 parser.add_argument('--sha', '-s')
277 parser.add_argument('--config_xml', '-c')
278 args = parser.parse_args()
Dcheckstyle.jarMETA-INF/MANIFEST.MF META-INF/ checkstyle_packages.xml sun_checks.xml com/ ...
/development/samples/ApiDemos/src/com/example/android/apis/os/
DMmsWapPushReceiver.java42 final PduParser parser = new PduParser( in onReceive() local
46 pdu = parser.parse(); in onReceive()
/development/ndk/tools/
Dheaders-diff-bionic-vs-ndk.py213 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/
Dcoverage.py318 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/
DMakeFileParser.java268 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.jd14 … data sent from the device. Note that in order to interpret the data, a parser that conforms to t…
/development/samples/training/testingfun/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/development/samples/devbytes/telephony/SmsSampleProject/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/development/samples/SupportLeanbackShowcase/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/development/tools/idegen/
DREADME59 use Java's regular expression parser (see java.util.regex.Parser).
/development/perftests/panorama/feature_mos/doc/
Dfeature_mos_API_doxyfile220 # 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/
Ddbreg_API_doxyfile220 # 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.

12