Home
last modified time | relevance | path

Searched refs:XmlPullParser (Results 1 – 25 of 87) sorted by relevance

1234

/cts/tests/tests/telephony/current/mockmodem/src/android/telephony/mockmodem/
DMockNetworkConfig.java33 import org.xmlpull.v1.XmlPullParser;
60 MockCellProperty(XmlPullParser parser) { in MockCellProperty()
68 private void loadCellProperty(XmlPullParser parser) in loadCellProperty()
73 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT in loadCellProperty()
74 && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) { in loadCellProperty()
76 if (parameter == null || type == XmlPullParser.END_TAG) { in loadCellProperty()
108 MockNetworkProfile(XmlPullParser parser) { in MockNetworkProfile()
127 private void loadLteCellIdentity(XmlPullParser parser, CellInfoLte lte) in loadLteCellIdentity()
137 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT in loadLteCellIdentity()
138 && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) { in loadLteCellIdentity()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DUrlReplacement.java21 import org.xmlpull.v1.XmlPullParser;
56 XmlPullParser parser = XmlPullParserFactory.newInstance().newPullParser();
60 parser.require(XmlPullParser.START_TAG, NS, URL_REPLACEMENT_TAG); in parser.require()
63 parser.require(XmlPullParser.START_TAG, NS, DYNAMIC_CONFIG_URL_TAG); in parser.require()
66 parser.require(XmlPullParser.END_TAG, NS, DYNAMIC_CONFIG_URL_TAG); in parser.require()
68 while (parser.nextTag() == XmlPullParser.START_TAG) {
69 parser.require(XmlPullParser.START_TAG, NS, ENTRY_TAG); in parser.require()
72 parser.require(XmlPullParser.START_TAG, NS, REPLACEMENT_TAG); in parser.require()
74 parser.require(XmlPullParser.END_TAG, NS, REPLACEMENT_TAG); in parser.require()
76 parser.require(XmlPullParser.END_TAG, NS, ENTRY_TAG); in parser.require()
[all …]
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableTestUtils.java37 import org.xmlpull.v1.XmlPullParser;
61 public static void skipCurrentTag(XmlPullParser parser) in skipCurrentTag()
65 while ((type=parser.next()) != XmlPullParser.END_DOCUMENT in skipCurrentTag()
66 && (type != XmlPullParser.END_TAG in skipCurrentTag()
84 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT in getAttributeSet()
85 && type != XmlPullParser.START_TAG) { in getAttributeSet()
92 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT in getAttributeSet()
93 && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) { in getAttributeSet()
94 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) { in getAttributeSet()
100 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT in getAttributeSet()
[all …]
DPaintDrawableTest.java41 import org.xmlpull.v1.XmlPullParser;
204 while (type != XmlPullParser.START_TAG && type != XmlPullParser.END_DOCUMENT) { in getAttributeSet()
207 if (type != XmlPullParser.START_TAG) { in getAttributeSet()
220 while (parser.nextTag() != XmlPullParser.END_TAG) { in gotoTag()
231 protected boolean inflateTag(String name, Resources r, XmlPullParser parser, in inflateTag()
DCustomDrawableTest.java39 import org.xmlpull.v1.XmlPullParser;
61 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme) in inflate()
DAnimatedVectorDrawableTest.java56 import org.xmlpull.v1.XmlPullParser;
92 XmlPullParser parser = mResources.getXml(mResId); in testInflate()
96 while ((type=parser.next()) != XmlPullParser.START_TAG && in testInflate()
97 type != XmlPullParser.END_DOCUMENT) { in testInflate()
101 if (type != XmlPullParser.START_TAG) { in testInflate()
124 XmlPullParser parser = mResources.getXml(mResId); in testGetOpticalInsets()
/cts/tests/tests/mediatranscoding/src/android/media/mediatranscoding/cts/
DApplicationMediaCapabilitiesTest.java33 import org.xmlpull.v1.XmlPullParser;
113 final XmlPullParser parser = Xml.newPullParser(); in testReadFromCorrectXmlWithInputStreamInAssets()
136 final XmlPullParser parser = Xml.newPullParser(); in testReadMediaCapabilitiesXmlWithSupportAllHdr()
164 final XmlPullParser parser = Xml.newPullParser(); in testReadFromWrongMediaCapabilityXml()
180 final XmlPullParser parser = Xml.newPullParser(); in testReadFromWrongMediaCapabilityXml2()
195 final XmlPullParser parser = Xml.newPullParser(); in testReadFromXmlWithWrongBoolean()
210 final XmlPullParser parser = Xml.newPullParser(); in testReadXmlSupportHdrWithoutSupportHevc()
226 final XmlPullParser parser = Xml.newPullParser(); in testReadXmlConflictSupportedValue()
241 final XmlPullParser parser = Xml.newPullParser(); in testReadXmlWithEmptyFormat()
256 final XmlPullParser parser = Xml.newPullParser(); in testReadXmlFormatWithoutSupported()
[all …]
/cts/tests/signature/lib/android/src/android/signature/cts/
DXmlApiParser.java34 import org.xmlpull.v1.XmlPullParser;
138 JDiffClassDescription currentClass, XmlPullParser parser) { in loadFieldInfo()
234 private static JDiffMethod loadMethodInfo(String className, XmlPullParser parser) { in loadMethodInfo()
251 XmlPullParser parser, JDiffClassDescription currentClass) { in loadConstructorInfo()
269 XmlPullParser parser, boolean isInterface, String pkg) { in loadClassInfo()
304 private static int jdiffModifierToReflectionFormat(String name, XmlPullParser parser) { in jdiffModifierToReflectionFormat()
363 XmlPullParser parser; in parseAsStream()
384 private final XmlPullParser parser;
392 ClassDescriptionSpliterator(XmlPullParser parser) in ClassDescriptionSpliterator()
435 private void beginDocument(XmlPullParser parser) in beginDocument()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DTableLayout_LayoutParamsTest.java38 import org.xmlpull.v1.XmlPullParser;
176 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT in getAttrs()
177 && type != XmlPullParser.START_TAG) { in getAttrs()
184 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT in getAttrs()
185 && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) { in getAttrs()
186 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) { in getAttrs()
192 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT in getAttrs()
193 && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) { in getAttrs()
194 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) { in getAttrs()
DTableRow_LayoutParamsTest.java46 import org.xmlpull.v1.XmlPullParser;
209 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT in getAttrs()
210 && type != XmlPullParser.START_TAG) { in getAttrs()
217 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT in getAttrs()
218 && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) { in getAttrs()
219 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) { in getAttrs()
225 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT in getAttrs()
226 && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) { in getAttrs()
227 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) { in getAttrs()
DButtonTest.java30 import org.xmlpull.v1.XmlPullParser;
38 XmlPullParser parser = context.getResources().getXml(R.layout.togglebutton_layout); in testConstructor()
DRadioGroup_LayoutParamsTest.java38 import org.xmlpull.v1.XmlPullParser;
161 XmlPullParser parser = mContext.getResources().getLayout(resId); in getAttributeSet()
165 while ((type = parser.next()) != XmlPullParser.START_TAG in getAttributeSet()
166 && type != XmlPullParser.END_DOCUMENT) { in getAttributeSet()
175 assertEquals("No RadioGroup element found", XmlPullParser.START_TAG, type); in getAttributeSet()
DAbsoluteLayout_LayoutParamsTest.java37 import org.xmlpull.v1.XmlPullParser;
53 XmlPullParser parser = mContext.getResources().getLayout(R.layout.absolute_layout); in getAttributeSet()
DAbsListView_LayoutParamsTest.java36 import org.xmlpull.v1.XmlPullParser;
47 XmlPullParser parser = mContext.getResources().getXml(R.layout.abslistview_layout); in setup()
DViewSwitcherTest.java41 import org.xmlpull.v1.XmlPullParser;
62 XmlPullParser parser = mContext.getResources().getXml(R.layout.viewswitcher_layout); in testConstructor()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DXmlTest.java26 import org.xmlpull.v1.XmlPullParser;
72 XmlPullParser xmlParser = Xml.newPullParser(); in serializeAndDeserialize()
75 assertThat(xmlParser.next()).isEqualTo(XmlPullParser.START_TAG); in serializeAndDeserialize()
79 while ((type = xmlParser.next()) != XmlPullParser.END_DOCUMENT && in serializeAndDeserialize()
80 type != XmlPullParser.END_TAG) { in serializeAndDeserialize()
/cts/tests/tests/content/src/android/content/cts/util/
DXmlUtils.java21 import org.xmlpull.v1.XmlPullParser;
50 public static void skipCurrentTag(XmlPullParser parser) in skipCurrentTag()
54 while ((type=parser.next()) != XmlPullParser.END_DOCUMENT in skipCurrentTag()
55 && (type != XmlPullParser.END_TAG in skipCurrentTag()
737 XmlPullParser parser = Xml.newPullParser(); in readMapXml()
758 XmlPullParser parser = Xml.newPullParser(); in readListXml()
781 XmlPullParser parser = Xml.newPullParser(); in readSetXml()
800 public static final HashMap<String, ?> readThisMapXml(XmlPullParser parser, String endTag, in readThisMapXml()
820 public static final HashMap<String, ?> readThisMapXml(XmlPullParser parser, String endTag, in readThisMapXml()
849 public static final ArrayMap<String, ?> readThisArrayMapXml(XmlPullParser parser, String endTag, in readThisArrayMapXml()
[all …]
/cts/tests/tests/view/src/android/view/cts/util/
DXmlUtils.java27 import org.xmlpull.v1.XmlPullParser;
47 public static void skipCurrentTag(XmlPullParser parser) in skipCurrentTag()
51 while ((type=parser.next()) != XmlPullParser.END_DOCUMENT in skipCurrentTag()
52 && (type != XmlPullParser.END_TAG in skipCurrentTag()
709 XmlPullParser parser = Xml.newPullParser(); in readMapXml()
730 XmlPullParser parser = Xml.newPullParser(); in readListXml()
753 XmlPullParser parser = Xml.newPullParser(); in readSetXml()
772 public static final HashMap<String, ?> readThisMapXml(XmlPullParser parser, String endTag, in readThisMapXml()
792 public static final HashMap<String, ?> readThisMapXml(XmlPullParser parser, String endTag, in readThisMapXml()
821 public static final ArrayMap<String, ?> readThisArrayMapXml(XmlPullParser parser, String endTag, in readThisArrayMapXml()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/util/
DXmlUtils.java19 import org.xmlpull.v1.XmlPullParser;
48 public static void skipCurrentTag(XmlPullParser parser) in skipCurrentTag()
52 while ((type=parser.next()) != XmlPullParser.END_DOCUMENT in skipCurrentTag()
53 && (type != XmlPullParser.END_TAG in skipCurrentTag()
710 XmlPullParser parser = Xml.newPullParser(); in readMapXml()
731 XmlPullParser parser = Xml.newPullParser(); in readListXml()
754 XmlPullParser parser = Xml.newPullParser(); in readSetXml()
773 public static final HashMap<String, ?> readThisMapXml(XmlPullParser parser, String endTag, in readThisMapXml()
793 public static final HashMap<String, ?> readThisMapXml(XmlPullParser parser, String endTag, in readThisMapXml()
822 public static final ArrayMap<String, ?> readThisArrayMapXml(XmlPullParser parser, String endTag, in readThisArrayMapXml()
[all …]
/cts/tests/tests/resourcesloader/src/android/content/res/loader/cts/
DUtils.kt26 import org.xmlpull.v1.XmlPullParser in <lambda>()
47 fun XmlPullParser.advanceToRoot() = apply { in dpToPx() method
48 while (next() != XmlPullParser.START_TAG) { in dpToPx()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DVintfFilesCollector.java29 import org.xmlpull.v1.XmlPullParser;
82 XmlPullParser parser = XmlPullParserFactory.newInstance().newPullParser(); in guessFileName()
85 for (int eventType = parser.getEventType(); eventType != XmlPullParser.END_DOCUMENT; in guessFileName()
88 if (eventType == XmlPullParser.START_TAG) { in guessFileName()
/cts/tests/tests/content/src/android/content/res/cts/
DAssetManagerTest.java39 import org.xmlpull.v1.XmlPullParser;
215 private void beginDocument(final XmlPullParser parser, final String firstElementName) in beginDocument()
218 while ((type = parser.next()) != XmlPullParser.START_TAG) { in beginDocument()
221 if (type != XmlPullParser.START_TAG) { in beginDocument()
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DFontScaleActivity.java30 import org.xmlpull.v1.XmlPullParser;
49 while (parser.next() != XmlPullParser.START_TAG) { } in dumpFontSize()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DWidgetTestUtils.java41 import org.xmlpull.v1.XmlPullParser;
98 public static final void beginDocument(XmlPullParser parser, String firstElementName) in beginDocument()
104 while ((type = parser.next()) != XmlPullParser.START_TAG in beginDocument()
105 && type != XmlPullParser.END_DOCUMENT) { in beginDocument()
/cts/hostsidetests/media/bitstreams/src/android/media/cts/bitstreams/
DMediaBitstreamsTest.java40 import org.xmlpull.v1.XmlPullParser;
161 XmlPullParser parser = XmlPullParserFactory.newInstance().newPullParser(); in bitstreams()
164 parser.require(XmlPullParser.START_TAG, null, MediaBitstreams.DYNAMIC_CONFIG); in bitstreams()
165 while (parser.next() != XmlPullParser.END_DOCUMENT) { in bitstreams()
166 if (parser.getEventType() != XmlPullParser.START_TAG in bitstreams()
175 while (parser.next() != XmlPullParser.END_DOCUMENT) { in bitstreams()
176 if (parser.getEventType() != XmlPullParser.START_TAG) { in bitstreams()

1234