Home
last modified time | relevance | path

Searched refs:Xml (Results 1 – 25 of 256) sorted by relevance

1234567891011

/frameworks/base/core/tests/coretests/src/android/util/
DBinaryXmlTest.java64 final TypedXmlSerializer out = Xml.newBinarySerializer(); in testLargeInterned_Binary()
74 final TypedXmlPullParser in = Xml.newBinaryPullParser(); in testLargeInterned_Binary()
83 doTranscode(Xml.newFastSerializer(), Xml.newFastPullParser(), in testTranscode_FastToBinary()
84 Xml.newBinarySerializer(), Xml.newBinaryPullParser()); in testTranscode_FastToBinary()
89 doTranscode(Xml.newBinarySerializer(), Xml.newBinaryPullParser(), in testTranscode_BinaryToFast()
90 Xml.newFastSerializer(), Xml.newFastPullParser()); in testTranscode_BinaryToFast()
107 Xml.copy(firstIn, secondOut); in doTranscode()
120 TypedXmlSerializer xml = Xml.newFastSerializer(); in testResolve_File()
125 doVerifyRead(Xml.resolvePullParser(is)); in testResolve_File()
131 TypedXmlSerializer xml = Xml.newBinarySerializer(); in testResolve_File()
[all …]
DXmlTest.java47 doLargeValues(XmlUtils.makeTyped(Xml.newSerializer()), in testLargeValues_Normal()
48 XmlUtils.makeTyped(Xml.newPullParser())); in testLargeValues_Normal()
53 doLargeValues(Xml.newFastSerializer(), in testLargeValues_Fast()
54 Xml.newFastPullParser()); in testLargeValues_Fast()
59 final TypedXmlSerializer out = Xml.newFastSerializer(); in testLargeValues_FastIndenting()
62 Xml.newFastPullParser()); in testLargeValues_FastIndenting()
67 doLargeValues(Xml.newBinarySerializer(), in testLargeValues_Binary()
68 Xml.newBinaryPullParser()); in testLargeValues_Binary()
102 doPersistableBundle(XmlUtils.makeTyped(Xml.newSerializer()), in testPersistableBundle_Normal()
103 XmlUtils.makeTyped(Xml.newPullParser())); in testPersistableBundle_Normal()
[all …]
/frameworks/base/cmds/abx/src/com/android/commands/abx/
DAbx.java19 import android.util.Xml;
72 in = Xml.newBinaryPullParser(); in mainInternal()
73 out = Xml.newSerializer(); in mainInternal()
75 in = Xml.newPullParser(); in mainInternal()
76 out = Xml.newBinarySerializer(); in mainInternal()
90 Xml.copy(in, out); in mainInternal()
/frameworks/base/sax/tests/saxtests/src/android/sax/
DSafeSaxTest.java22 import android.util.Xml;
99 Xml.parse(xml, root.getContentHandler()); in testListener()
116 Xml.parse(xml, root.getContentHandler()); in testMissingRequiredChild()
134 Xml.parse(xml, root.getContentHandler()); in testMixedContent()
171 Xml.parse(inputStream, Xml.Encoding.UTF_8, new YouTubeContentHandler(videoAdapter)); in pureSaxTest()
179 Xml.parse(inputStream, Xml.Encoding.UTF_8, newContentHandler(videoAdapter)); in saxyModelTest()
187 Xml.parse(inputStream, Xml.Encoding.UTF_8, contentHandler); in saxyModelTest()
/frameworks/base/apct-tests/perftests/core/src/android/util/
DXmlPerfTest.java59 doWrite(() -> Xml.newFastSerializer()); in timeWrite_Fast()
64 doWrite(() -> Xml.newBinarySerializer()); in timeWrite_Binary()
94 doRead(() -> Xml.newFastSerializer(), () -> Xml.newFastPullParser()); in timeRead_Fast()
99 doRead(() -> Xml.newBinarySerializer(), () -> Xml.newBinaryPullParser()); in timeRead_Binary()
/frameworks/base/services/core/java/com/android/server/input/
DConfigurationProcessor.java21 import android.util.Xml;
40 TypedXmlPullParser parser = Xml.resolvePullParser(xml); in processExcludedDeviceNames()
91 TypedXmlPullParser parser = Xml.resolvePullParser(xml); in processInputPortAssociations()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DXmlUtilsTest.java22 import android.util.Xml;
62 TypedXmlSerializer serializer = Xml.newFastSerializer(); in testreadWriteXmlByteArrayValue()
69 TypedXmlPullParser pullParser = Xml.newFastPullParser(); in testreadWriteXmlByteArrayValue()
/frameworks/base/apct-tests/perftests/core/src/android/libcore/
DXmlSerializerPerfTest.java21 import android.util.Xml;
53 XmlSerializer serializer = Xml.newFastSerializer(); in timeFastSerializer_nonIndent_depth100()
62 XmlSerializer serializer = Xml.newFastSerializer(); in timeFastSerializer_indent_depth100()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationAssistantsTest.java51 import android.util.Xml;
167 TypedXmlSerializer serializer = Xml.newFastSerializer(); in testWriteXml_userTurnedOffNAS()
177 final TypedXmlPullParser parser = Xml.newFastPullParser(); in testWriteXml_userTurnedOffNAS()
203 final TypedXmlPullParser parser = Xml.newFastPullParser(); in testReadXml_userDisabled()
226 final TypedXmlPullParser parser = Xml.newFastPullParser(); in testReadXml_userDisabled_restore()
253 final TypedXmlPullParser parser = Xml.newFastPullParser(); in testReadXml_upgradeUserSet()
273 final TypedXmlPullParser parser = Xml.newFastPullParser(); in testReadXml_upgradeUserSet_preS_VersionThree()
294 final TypedXmlPullParser parser = Xml.newFastPullParser(); in testReadXml_upgradeUserSet_preS_VersionOne()
314 final TypedXmlPullParser parser = Xml.newFastPullParser(); in testReadXml_upgradeUserSet_preS_noUserSet()
334 final TypedXmlPullParser parser = Xml.newFastPullParser(); in testReadXml_upgradeUserSet_preS_noUserSet_diffDefault()
[all …]
/frameworks/base/core/java/android/os/vibrator/persistence/
DVibrationXmlSerializer.java25 import android.util.Xml;
78 private static final String XML_ENCODING = Xml.Encoding.UTF_8.name();
113 TypedXmlSerializer xmlSerializer = Xml.newFastSerializer(); in serialize()
/frameworks/base/core/java/android/content/
DDefaultDataHandler.java20 import android.util.Xml;
90 Xml.parse(in, Xml.Encoding.UTF_8, this); in insert()
96 Xml.parse(in, this); in insert()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsXml.java20 import android.util.Xml;
36 XmlPullParser parser = Xml.newPullParser(); in read()
/frameworks/base/services/core/java/com/android/server/integrity/parser/
DRuleMetadataParser.java20 import android.util.Xml;
45 TypedXmlPullParser xmlPullParser = Xml.resolvePullParser(inputStream); in parse()
/frameworks/base/services/core/java/com/android/server/integrity/serializer/
DRuleMetadataSerializer.java22 import android.util.Xml;
38 TypedXmlSerializer xmlSerializer = Xml.resolveSerializer(outputStream); in serialize()
/frameworks/base/core/java/com/android/internal/os/
DMonotonicClock.java23 import android.util.Xml;
97 return readXml(new ByteArrayInputStream(mFile.readFully()), Xml.newBinaryPullParser()); in read()
116 writeXml(out, Xml.newBinarySerializer()); in write()
/frameworks/base/services/core/java/com/android/server/graphics/fonts/
DPersistentSystemFontConfig.java24 import android.util.Xml;
59 TypedXmlPullParser parser = Xml.resolvePullParser(is); in loadFromXml()
99 TypedXmlSerializer out = Xml.resolveSerializer(os); in writeToXml()
/frameworks/base/core/tests/coretests/src/android/security/
DCredentialManagementAppTest.java24 import android.util.Xml;
118 XmlSerializer xml = Xml.newSerializer(); in writeToXml()
133 final XmlPullParser parser = Xml.newPullParser(); in readFromXml()
/frameworks/base/services/core/java/com/android/server/sensorprivacy/
DAllSensorStateController.java24 import android.util.Xml;
72 TypedXmlPullParser parser = Xml.resolvePullParser(inputStream); in AllSensorStateController()
133 TypedXmlSerializer serializer = Xml.resolveSerializer(outputStream); in persist()
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DWatchlistSettings.java23 import android.util.Xml;
97 TypedXmlPullParser parser = Xml.resolvePullParser(stream); in reloadSettings()
149 TypedXmlSerializer out = Xml.resolveSerializer(stream); in saveSettings()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DFactoryResetProtectionPolicyTest.java26 import android.util.Xml;
103 TypedXmlPullParser parser = Xml.newFastPullParser(); in testSerializationAndDeserialization()
125 final TypedXmlSerializer outXml = Xml.newFastSerializer(); in serialize()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest4.java28 import android.util.Xml;
114 Assume.assumeFalse(Xml.ENABLE_BINARY_DEFAULT); in testPersistingWeirdCharacters()
/frameworks/base/core/java/android/app/
DAliasActivity.java25 import android.util.Xml;
88 AttributeSet attrs = Xml.asAttributeSet(parser); in parseAlias()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/controller/
DControlsFavoritePersistenceWrapper.kt23 import android.util.Xml in <lambda>()
105 Xml.newSerializer().apply { in <lambda>()
168 val parser = Xml.newPullParser() in <lambda>()
/frameworks/base/services/tests/servicestests/src/com/android/server/graphics/fonts/
DPersistentSystemFontConfigTest.java23 import android.util.Xml;
89 XmlPullParser parser = Xml.newPullParser(); in parseFontFamily()
/frameworks/base/services/core/java/com/android/server/locales/
DSystemAppUpdateTracker.java31 import android.util.Xml;
130 final TypedXmlPullParser parser = Xml.newFastPullParser(); in readFromXml()
214 final TypedXmlSerializer xml = Xml.newFastSerializer(); in writeToXmlLocked()

1234567891011