Home
last modified time | relevance | path

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

12

/developers/build/prebuilts/gradle/BasicSyncAdapter/Application/src/main/java/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 …]
/developers/samples/android/connectivity/sync/BasicSyncAdapter/Application/src/main/java/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 …]
/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/rich/
DChannelXMLParser.java72 public static TvInput parseTvInput(XmlPullParser parser) in parseTvInput() argument
74 parser.nextTag(); in parseTvInput()
75 parser.require(XmlPullParser.START_TAG, null, TAG_TVINPUTS); in parseTvInput()
76 return parseTvInputDetail(parser); in parseTvInput()
79 private static TvInput parseTvInputDetail(XmlPullParser parser) { in parseTvInputDetail() argument
85 for (int i = 0; i < parser.getAttributeCount(); ++i) { in parseTvInputDetail()
86 String attr = parser.getAttributeName(i); in parseTvInputDetail()
87 String value = parser.getAttributeValue(i); in parseTvInputDetail()
103 public static List<ChannelInfo> parseChannelXML(XmlPullParser parser) in parseChannelXML() argument
106 parser.nextTag(); in parseChannelXML()
[all …]
DRichFeedUtil.java74 XmlPullParser parser = Xml.newPullParser(); in getRichChannels() local
75 parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false); in getRichChannels()
76 parser.setInput(inputStream, null); in getRichChannels()
77 sTvInput = ChannelXMLParser.parseTvInput(parser); in getRichChannels()
78 sSampleChannels = ChannelXMLParser.parseChannelXML(parser); in getRichChannels()
/developers/samples/android/ui/text/TextStyling-Java/app/src/main/java/com/android/example/text/styling/renderer/
DMarkdownBuilder.java29 import com.android.example.text.styling.parser.Element;
30 import com.android.example.text.styling.parser.Parser;
31 import com.android.example.text.styling.parser.TextMarkdown;
50 private final Parser parser; field in MarkdownBuilder
55 @NonNull final Parser parser) { in MarkdownBuilder() argument
59 this.parser = parser; in MarkdownBuilder()
63 TextMarkdown markdown = parser.parse(string); in markdownToSpans()
/developers/samples/android/input/autofill/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/
DMyAutofillService.kt48 val parser = StructureParser(structure) in onFillRequest() constant
49 parser.parseForFill() in onFillRequest()
50 val autofillFields = parser.autofillFields in onFillRequest()
84 val parser = StructureParser(structure) in onSaveRequest() constant
85 parser.parseForSave() in onSaveRequest()
87 parser.filledAutofillFieldCollection) in onSaveRequest()
DAuthActivity.kt90 val parser = StructureParser(structure) in <lambda>() constant
91 parser.parseForFill() in <lambda>()
92 val autofillFields = parser.autofillFields in <lambda>()
/developers/build/prebuilts/gradle/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/
DMyAutofillService.kt48 val parser = StructureParser(structure) in onFillRequest() constant
49 parser.parseForFill() in onFillRequest()
50 val autofillFields = parser.autofillFields in onFillRequest()
84 val parser = StructureParser(structure) in onSaveRequest() constant
85 parser.parseForSave() in onSaveRequest()
87 parser.filledAutofillFieldCollection) in onSaveRequest()
DAuthActivity.kt90 val parser = StructureParser(structure) in <lambda>() constant
91 parser.parseForFill() in <lambda>()
92 val autofillFields = parser.autofillFields in <lambda>()
/developers/samples/android/ui/text/TextStyling-Kotlin/app/src/main/java/com/android/example/text/styling/renderer/
DMarkdownBuilder.kt27 import com.android.example.text.styling.parser.Element in <lambda>()
28 import com.android.example.text.styling.parser.Parser in <lambda>()
39 private val parser: Parser in <lambda>() constant in com.android.example.text.styling.renderer.MarkdownBuilder
43 val markdown = parser.parse(string) in <lambda>()
/developers/samples/android/ui/text/TextStyling-Java/app/src/test/java/com/android/example/text/styling/parser/
DParserTest.java16 package com.android.example.text.styling.parser;
18 import static com.android.example.text.styling.parser.Element.Type.BULLET_POINT;
19 import static com.android.example.text.styling.parser.Element.Type.CODE_BLOCK;
20 import static com.android.example.text.styling.parser.Element.Type.QUOTE;
21 import static com.android.example.text.styling.parser.Element.Type.TEXT;
/developers/samples/android/ui/text/TextStyling-Kotlin/app/src/main/java/com/android/example/text/styling/parser/
DMarkdown.kt16 package com.android.example.text.styling.parser
DParser.kt16 package com.android.example.text.styling.parser
/developers/samples/android/ui/text/TextStyling-Java/app/src/main/java/com/android/example/text/styling/parser/
DTextMarkdown.java16 package com.android.example.text.styling.parser;
DElement.java16 package com.android.example.text.styling.parser;
DParser.java16 package com.android.example.text.styling.parser;
20 import com.android.example.text.styling.parser.Element.Type;
/developers/build/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/
DMyAutofillService.java107 ClientParser parser = new ClientParser(structures); in onFillRequest() local
117 DatasetAdapter datasetAdapter = new DatasetAdapter(parser); in onFillRequest()
119 new ClientViewMetadataBuilder(parser, fieldTypesByAutofillHint); in onFillRequest()
198 ClientParser parser = new ClientParser(structures); in onSaveRequest() local
205 fieldTypesByAutofillHint, getPackageName(), parser); in onSaveRequest()
207 new ClientViewMetadataBuilder(parser, fieldTypesByAutofillHint); in onSaveRequest()
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/
DMyAutofillService.java107 ClientParser parser = new ClientParser(structures); in onFillRequest() local
117 DatasetAdapter datasetAdapter = new DatasetAdapter(parser); in onFillRequest()
119 new ClientViewMetadataBuilder(parser, fieldTypesByAutofillHint); in onFillRequest()
198 ClientParser parser = new ClientParser(structures); in onSaveRequest() local
205 fieldTypesByAutofillHint, getPackageName(), parser); in onSaveRequest()
207 new ClientViewMetadataBuilder(parser, fieldTypesByAutofillHint); in onSaveRequest()
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/
DClientViewMetadataBuilder.java38 public ClientViewMetadataBuilder(ClientParser parser, in ClientViewMetadataBuilder() argument
40 mClientParser = parser; in ClientViewMetadataBuilder()
/developers/build/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/
DClientViewMetadataBuilder.java38 public ClientViewMetadataBuilder(ClientParser parser, in ClientViewMetadataBuilder() argument
40 mClientParser = parser; in ClientViewMetadataBuilder()
/developers/samples/android/ui/text/TextStyling-Kotlin/app/src/main/java/com/android/example/text/styling/
DMainActivity.kt21 import com.android.example.text.styling.parser.Parser
/developers/samples/android/ui/text/TextStyling-Java/app/src/main/java/com/android/example/text/styling/
DMainActivity.java25 import com.android.example.text.styling.parser.Parser;
/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/player/
DTvInputPlayer.java196 HlsPlaylistParser parser = new HlsPlaylistParser(); in prepare() local
198 new ManifestFetcher<>(parser, uri.toString(), uri.toString(), userAgent); in prepare()
233 MediaPresentationDescriptionParser parser = new MediaPresentationDescriptionParser(); in prepare() local
235 new ManifestFetcher<>(parser, uri.toString(), uri.toString(), userAgent); in prepare()
/developers/samples/android/ui/text/TextStyling-Java/
DREADME.md16 …ster/TextStyling-Java/app/src/main/java/com/android/example/text/styling/parser/Parser.java#L62) m…
20 …ster/TextStyling-Java/app/src/test/java/com/android/example/text/styling/parser/ParserTest.java). …
/developers/samples/android/ui/text/TextStyling-Kotlin/app/src/androidTest/java/com/android/example/text/styling/renderer/
DMarkdownBuilderTest.kt25 import com.android.example.text.styling.parser.Parser

12