Home
last modified time | relevance | path

Searched refs:readXml (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/storage/
DBubbleXmlHelperTest.kt101 val actual = readXml(ByteArrayInputStream(src.toByteArray(Charsets.UTF_8))) in testReadXml()
116 val actual = readXml(ByteArrayInputStream(src.toByteArray(Charsets.UTF_8))) in testUpgradeFromV0DropsPreviousData()
143 val actual = readXml(ByteArrayInputStream(src.toByteArray(Charsets.UTF_8))) in testReadXMLWithoutTaskId()
167 val actual = readXml(ByteArrayInputStream(src.toByteArray(Charsets.UTF_8))) in testXMLWithoutLocusToLocus()
190 val actual = readXml(ByteArrayInputStream(src.toByteArray(Charsets.UTF_8))) in testUpgradeToV2SavesPreviousData()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DPackageSignaturesTest.java143 mPackageSetting.getSignatures().readXml(parser, signatures); in testReadXmlFromTwoSigsTagsWithSameSigner()
147 mPackageSetting.getSignatures().readXml(parser, signatures); in testReadXmlFromTwoSigsTagsWithSameSigner()
171 mPackageSetting.getSignatures().readXml(parser, signatures); in testReadXmlWithInvalidPublicKeyInCertKey()
357 mPackageSetting.getSignatures().readXml(parser, signatures); in testReadXmlWithPastSignerWithNoCapabilities()
383 mPackageSetting.getSignatures().readXml(parser, signatures); in verifyReadXmlReturnsExpectedSignatures()
400 mPackageSetting.getSignatures().readXml(parser, signatures); in verifyReadXmlReturnsExpectedSignaturesAndLineage()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationAssistantsTest.java185 mAssistants.readXml(parser, allowedManagedServicePackages, false, UserHandle.USER_ALL); in testWriteXml_userTurnedOffNAS()
210 mAssistants.readXml(parser, allowedManagedServicePackages, false, UserHandle.USER_ALL); in testReadXml_userDisabled()
233 mAssistants.readXml(parser, allowedManagedServicePackages, true, in testReadXml_userDisabled_restore()
260 mAssistants.readXml(parser, allowedManagedServicePackages, false, UserHandle.USER_ALL); in testReadXml_upgradeUserSet()
280 mAssistants.readXml(parser, allowedManagedServicePackages, false, UserHandle.USER_ALL); in testReadXml_upgradeUserSet_preS_VersionThree()
301 mAssistants.readXml(parser, allowedManagedServicePackages, false, UserHandle.USER_ALL); in testReadXml_upgradeUserSet_preS_VersionOne()
321 mAssistants.readXml(parser, allowedManagedServicePackages, false, UserHandle.USER_ALL); in testReadXml_upgradeUserSet_preS_noUserSet()
341 mAssistants.readXml(parser, allowedManagedServicePackages, false, UserHandle.USER_ALL); in testReadXml_upgradeUserSet_preS_noUserSet_diffDefault()
364 mAssistants.readXml(parser, null, false, UserHandle.USER_ALL); in testReadXml_multiApproved()
381 mAssistants.readXml(parser, null, false, UserHandle.USER_ALL); in testXmlUpgradeExistingApprovedComponents()
DSnoozeHelperTest.java112 mSnoozeHelper.readXml(parser, 1); in testWriteXMLformattedCorrectly_testReadingCorrectTime()
131 mSnoozeHelper.readXml(parser, 1); in testWriteXML_afterReading_noNPE()
154 mSnoozeHelper.readXml(parser, 1); in testWriteXMLformattedCorrectly_testCorrectContextURI()
176 mSnoozeHelper.readXml(parser, 1); in testReadValidSnoozedFromCorrectly_timeDeadline()
200 mSnoozeHelper.readXml(parser, 2); in testReadExpiredSnoozedNotification()
233 mSnoozeHelper.readXml(parser, 4); in testScheduleRepostsForPersistedNotifications()
268 mSnoozeHelper.readXml(parser, 4); in testLongTagPersistedNotification()
362 mSnoozeHelper.readXml(parser, 1);
DZenModeHelperTest.java1109 mZenModeHelper.readXml(parser, false, UserHandle.USER_ALL); in testWriteXml()
1185 mZenModeHelper.readXml(parser, false, UserHandle.USER_ALL); in testProtoWithDefaultAutoRules()
1416 mZenModeHelper.readXml(parser, true, 10); in testWriteXml_onlyBackupsTargetUser()
1417 mZenModeHelper.readXml(parser, true, 11); in testWriteXml_onlyBackupsTargetUser()
1442 mZenModeHelper.readXml(parser, true, UserHandle.USER_SYSTEM); in testReadXmlRestore_forSystemUser()
1463 mZenModeHelper.readXml(parser, true, 10); in testReadXmlRestore_forNonSystemUser()
1517 mZenModeHelper.readXml(parser, false, UserHandle.USER_ALL); in testWriteXmlWithZenPolicy()
1561 mZenModeHelper.readXml(parser, true, UserHandle.USER_SYSTEM); in testReadXmlRestoreWithZenPolicy_forSystemUser()
1593 mZenModeHelper.readXml(parser, false, UserHandle.USER_ALL); in testReadXmlRulesNotOverridden()
1613 mZenModeHelper.readXml(parser, false, UserHandle.USER_ALL); in testMigrateSuppressedVisualEffects_oneExistsButOff()
[all …]
DManagedServicesTest.java399 service.readXml(parser, null, true, 10); in testReadXml_onlyRestoresForTargetUser()
421 service.readXml(parser, null, true, 0); in testReadXml_restoresUserSet()
429 service.readXml(parser, null, true, 0); in testReadXml_restoresUserSet()
464 service2.readXml(parser, null, false, 0); in testWriteReadXml_writeReadDefaults()
617 service.readXml(parser, null, false, UserHandle.USER_ALL); in testWriteXml_onlyBackupsForTargetUser()
637 service.readXml(restoreParser, null, true, 10); in testWriteXml_onlyBackupsForTargetUser()
699 service.readXml(parser, null, true, userInfo.id); in testWriteXml_trimsMissingServices()
786 service.readXml(parser, null, true, userInfo.id); in testWriteXml_writesUserSet()
2109 service.readXml(parser, null, false, UserHandle.USER_ALL); in loadXml()
DPreferencesHelperTest.java411 mXmlHelper.readXml(parser, forRestore, userId); in loadByteArrayXml()
1824 mHelper.readXml(parser, true, USER_SYSTEM); in testChannelXml_backup()
1881 mHelper.readXml(parser, false, UserHandle.USER_ALL); in testChannelXml_upgradeCreateDefaultChannel()
4089 mHelper.readXml(parser, false, UserHandle.USER_ALL); in testBubblePreference_upgradeWithSAWPermission()
4110 mHelper.readXml(parser, false, UserHandle.USER_ALL); in testBubblePreference_upgradeWithSAWThenUserOverride()
4140 mXmlHelper.readXml(parser, false, UserHandle.USER_ALL); in testBubblePrefence_noSAWCheckForUnknownUid()
4580 mHelper.readXml(parser, true, USER_SYSTEM); in testChannelXml_backupDefaultApp()
4654 mHelper.readXml(parser, false, UserHandle.USER_ALL); in testTooManyChannels_xml()
4712 mHelper.readXml(parser, false, UserHandle.USER_ALL); in testTooManyGroups_xml()
4745 mHelper.readXml(parser, true, 0); in testRestoreMultiUser()
[all …]
DNotificationManagerServiceTest.java5754 verify(mListeners, times(1)).readXml(any(), any(), anyBoolean(), anyInt()); in testReadPolicyXml_readApprovedServicesFromXml()
5755 verify(mConditionProviders, times(1)).readXml(any(), any(), anyBoolean(), anyInt()); in testReadPolicyXml_readApprovedServicesFromXml()
5756 verify(mAssistants, times(1)).readXml(any(), any(), anyBoolean(), anyInt()); in testReadPolicyXml_readApprovedServicesFromXml()
5774 verify(mSnoozeHelper, times(1)).readXml(any(TypedXmlPullParser.class), anyLong()); in testReadPolicyXml_readSnoozedNotificationsFromXml()
5786 verify(mListeners, never()).readXml(any(), any(), anyBoolean(), anyInt()); in testReadPolicyXml_readApprovedServicesFromSettings()
5787 verify(mConditionProviders, never()).readXml(any(), any(), anyBoolean(), anyInt()); in testReadPolicyXml_readApprovedServicesFromSettings()
5788 verify(mAssistants, never()).readXml(any(), any(), anyBoolean(), anyInt()); in testReadPolicyXml_readApprovedServicesFromSettings()
5818 verify(mListeners, never()).readXml(any(), any(), eq(true), eq(10)); in testReadPolicyXml_doesNotRestoreManagedServicesForCloneUser()
5819 verify(mConditionProviders, never()).readXml(any(), any(), eq(true), eq(10)); in testReadPolicyXml_doesNotRestoreManagedServicesForCloneUser()
5820 verify(mAssistants, never()).readXml(any(), any(), eq(true), eq(10)); in testReadPolicyXml_doesNotRestoreManagedServicesForCloneUser()
[all …]
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
DDomainVerificationLegacySettingsTest.kt22 import com.android.server.pm.test.verify.domain.DomainVerificationPersistenceTest.Companion.readXml
73 val newSettings = file.readXml { in writeAndReadBackNormal()
DDomainVerificationPersistenceTest.kt73 internal fun <T> File.readXml(block: (parser: TypedXmlPullParser) -> T) = in <lambda>() method
125 val (readActive, readRestored) = file.readXml { in <lambda>()
144 val (readActive, readRestored) = file.readXml { in <lambda>()
171 val (readActive, readRestored) = file.readXml { in <lambda>()
/frameworks/base/core/java/com/android/internal/os/
DMonotonicClock.java97 return readXml(new ByteArrayInputStream(mFile.readFully()), Xml.newBinaryPullParser()); in read()
127 private long readXml(InputStream inputStream, TypedXmlPullParser parser) throws IOException { in readXml() method in MonotonicClock
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DPowerStatsStoreTest.java66 return TestSection.readXml(parser); in setup()
158 public static TestSection readXml(TypedXmlPullParser parser) throws XmlPullParserException { in readXml() method in PowerStatsStoreTest.TestSection
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/storage/
DBubblePersistentRepository.kt54 try { return bubbleFile.openRead().use(::readXml) } catch (e: Throwable) { in readFromDisk()
DBubbleXmlHelper.kt98 fun readXml(stream: InputStream): SparseArray<List<BubbleEntity>> { in readXml() method
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
DSliceFullAccessListTest.java102 mAccessList.readXml(parser); in testDeSerialization()
/frameworks/base/services/core/java/com/android/server/slice/
DSliceFullAccessList.java101 public void readXml(XmlPullParser parser) throws XmlPullParserException, IOException { in readXml() method in SliceFullAccessList
/frameworks/base/services/tests/PackageManagerServiceTests/server/assets/PackageSignaturesTest/xml/
DREADME38 The PackageSignatures#readXml and writeXml methods read and write everything within the sigs tag.
/frameworks/base/services/core/java/com/android/server/pm/
DPackageSignatures.java108 void readXml(TypedXmlPullParser parser, ArrayList<Signature> readSignatures) in readXml() method in PackageSignatures
DSettings.java4310 packageSetting.getSignatures().readXml(parser, readSignatures);
4351 signatures.readXml(parser, readSignatures);
4567 su.signatures.readXml(parser, readSignatures);
/frameworks/base/services/core/java/com/android/server/notification/
DSnoozeHelper.java529 protected void readXml(TypedXmlPullParser parser, long currentTime) in readXml() method in SnoozeHelper
DZenModeHelper.java1640 public void readXml(TypedXmlPullParser parser, boolean forRestore, int userId) in readXml() method in ZenModeHelper
1642 ZenModeConfig config = ZenModeConfig.readXml(parser); in readXml()
2325 final ZenModeConfig config = ZenModeConfig.readXml(XmlUtils.makeTyped(parser)); in readDefaultConfig()
DManagedServices.java641 public void readXml( in readXml() method in ManagedServices
DNotificationManagerService.java1076 mZenModeHelper.readXml(parser, forRestore, userId); in readPolicyXml()
1078 mPreferencesHelper.readXml(parser, forRestore, userId); in readPolicyXml()
1084 mListeners.readXml(parser, mAllowedManagedServicePackages, forRestore, userId); in readPolicyXml()
1090 mAssistants.readXml(parser, mAllowedManagedServicePackages, forRestore, userId); in readPolicyXml()
1096 mConditionProviders.readXml( in readPolicyXml()
1100 mSnoozeHelper.readXml(parser, System.currentTimeMillis()); in readPolicyXml()
DPreferencesHelper.java250 public void readXml(TypedXmlPullParser parser, boolean forRestore, int userId) in readXml() method in PreferencesHelper
/frameworks/base/core/java/android/service/notification/
DZenModeConfig.java932 public static ZenModeConfig readXml(TypedXmlPullParser parser) in readXml() method in ZenModeConfig

12