/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/ |
D | GrantTimeXmlHelper.java | 68 XmlSerializer serializer = Xml.newSerializer(); in serializeGrantTimes() local 69 serializer.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeGrantTimes() 70 serializer.startDocument(/* encoding= */ null, /* standalone= */ true); in serializeGrantTimes() 71 GrantTimeXmlHelper.writeGrantTimes(serializer, userGrantTimeState); in serializeGrantTimes() 73 serializer.endDocument(); in serializeGrantTimes() 128 @NonNull XmlSerializer serializer, @NonNull UserGrantTimeState userGrantTimeState) in writeGrantTimes() 130 serializer.startTag(/* namespace= */ null, TAG_FIRST_GRANT_TIMES); in writeGrantTimes() 131 serializer.attribute( in writeGrantTimes() 141 serializer.startTag(/* namespace= */ null, TAG_PACKAGE); in writeGrantTimes() 142 serializer.attribute(/* namespace= */ null, ATTRIBUTE_NAME, packageName); in writeGrantTimes() [all …]
|
/packages/modules/Permission/service/java/com/android/permission/persistence/ |
D | RuntimePermissionsPersistenceImpl.java | 223 XmlSerializer serializer = Xml.newSerializer(); in writeForUser() local 224 serializer.setOutput(outputStream, StandardCharsets.UTF_8.name()); in writeForUser() 225 serializer.startDocument(null, true); in writeForUser() 227 serializeRuntimePermissions(serializer, runtimePermissions); in writeForUser() 229 serializer.endDocument(); in writeForUser() 258 private static void serializeRuntimePermissions(@NonNull XmlSerializer serializer, in serializeRuntimePermissions() argument 260 serializer.startTag(null, TAG_RUNTIME_PERMISSIONS); in serializeRuntimePermissions() 263 serializer.attribute(null, ATTRIBUTE_VERSION, Integer.toString(version)); in serializeRuntimePermissions() 266 serializer.attribute(null, ATTRIBUTE_FINGERPRINT, fingerprint); in serializeRuntimePermissions() 274 serializer.startTag(null, TAG_PACKAGE); in serializeRuntimePermissions() [all …]
|
/packages/modules/Permission/service/java/com/android/role/persistence/ |
D | RolesPersistenceImpl.java | 199 XmlSerializer serializer = Xml.newSerializer(); in writeForUser() local 200 serializer.setOutput(outputStream, StandardCharsets.UTF_8.name()); in writeForUser() 201 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in writeForUser() 202 serializer.startDocument(null, true); in writeForUser() 204 serializeRoles(serializer, roles); in writeForUser() 206 serializer.endDocument(); in writeForUser() 235 private static void serializeRoles(@NonNull XmlSerializer serializer, in serializeRoles() argument 237 serializer.startTag(null, TAG_ROLES); in serializeRoles() 240 serializer.attribute(null, ATTRIBUTE_VERSION, Integer.toString(version)); in serializeRoles() 243 serializer.attribute(null, ATTRIBUTE_PACKAGES_HASH, packagesHash); in serializeRoles() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/ |
D | BackupHelper.java | 322 private static void writePkgsAsXml(@NonNull XmlSerializer serializer, in writePkgsAsXml() argument 324 serializer.startDocument(null, true); in writePkgsAsXml() 326 serializer.startTag(null, TAG_PERMISSION_BACKUP); in writePkgsAsXml() 327 serializer.attribute(null, ATTR_PLATFORM_VERSION, in writePkgsAsXml() 330 serializer.startTag(null, TAG_ALL_GRANTS); in writePkgsAsXml() 337 packageState.writeAsXml(serializer); in writePkgsAsXml() 341 serializer.endTag(null, TAG_ALL_GRANTS); in writePkgsAsXml() 342 serializer.endTag(null, TAG_PERMISSION_BACKUP); in writePkgsAsXml() 344 serializer.endDocument(); in writePkgsAsXml() 361 XmlSerializer serializer = newSerializer(); in writeDelayedStorePkgsLocked() local [all …]
|
D | PermissionControllerServiceImpl.java | 389 XmlSerializer serializer = newSerializer(); in onGetRuntimePermissionsBackup() local 390 serializer.setOutput(backup, UTF_8.name()); in onGetRuntimePermissionsBackup() 392 backupHelper.writeState(serializer); in onGetRuntimePermissionsBackup() 393 serializer.flush(); in onGetRuntimePermissionsBackup()
|
/packages/modules/Permission/SafetyCenter/Persistence/java/com/android/safetycenter/persistence/ |
D | SafetyCenterIssuesPersistence.java | 248 XmlSerializer serializer = Xml.newSerializer(); in write() local 249 serializer.setOutput(outputStream, StandardCharsets.UTF_8.name()); in write() 250 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in write() 251 serializer.startDocument(null, true); in write() 253 serializeIssues(serializer, persistedSafetyCenterIssues); in write() 255 serializer.endDocument(); in write() 270 XmlSerializer serializer, List<PersistedSafetyCenterIssue> persistedSafetyCenterIssues) in serializeIssues() argument 272 serializer.startTag(null, TAG_ISSUES); in serializeIssues() 273 serializer.attribute(null, ATTRIBUTE_VERSION, Integer.toString(CURRENT_VERSION)); in serializeIssues() 279 serializer.startTag(null, TAG_ISSUE); in serializeIssues() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | XmlUtils.java | 104 final XmlSerializer serializer = Xml.newSerializer(); in writeMapXml() local 105 serializer.setOutput(out, StandardCharsets.UTF_8.name()); in writeMapXml() 107 serializer.startDocument(/* encoding */ null, /* standalone */ true); in writeMapXml() 108 serializer.setFeature(FEATURE_NAME, /* state */ true); in writeMapXml() 111 serializer.startTag(/* namespace */ null, TAG_NAME_MAP_ENTRY); in writeMapXml() 112 serializer.attribute(/* namespace */ null, ATTRIBUTE_NAME_MAP_ENTRY_KEY, e.getKey()); in writeMapXml() 116 serializer.text(val); in writeMapXml() 119 serializer.endTag(/* namespace */ null, TAG_NAME_MAP_ENTRY); in writeMapXml() 122 serializer.endDocument(); in writeMapXml()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | PhoneAccountRegistrar.java | 2046 XmlSerializer serializer = Xml.resolveSerializer(os); in write() local 2047 writeToXml(mState, serializer, mContext, mTelephonyFeatureFlags); in write() 2048 serializer.flush(); in write() 2103 private static void writeToXml(State state, XmlSerializer serializer, Context context, 2105 sStateXml.writeToXml(state, serializer, context, telephonyFeatureFlags); 2179 public abstract void writeToXml(T o, XmlSerializer serializer, Context context, 2194 protected void writeTextIfNonNull(String tagName, Object value, XmlSerializer serializer) 2197 serializer.startTag(null, tagName); 2198 serializer.text(Objects.toString(value)); 2199 serializer.endTag(null, tagName); [all …]
|
/packages/modules/DeviceLock/service/java/com/android/server/devicelock/ |
D | DeviceLockPersistentStore.java | 93 XmlSerializer serializer = Xml.newSerializer(); in writeState() local 94 serializer.setOutput(fileOutputStream, Xml.Encoding.UTF_16.name()); in writeState() 95 serializer.startDocument(Xml.Encoding.UTF_16.name(), true /* standalone */); in writeState() 96 writeToXml(serializer, finalized); in writeState() 97 serializer.endDocument(); in writeState() 110 private void writeToXml(XmlSerializer serializer, boolean finalized) throws IOException { in writeToXml() argument 111 serializer.startTag(null /* namespace */, TAG_DEVICE_STATE); in writeToXml() 112 serializer.attribute(null /* namespace */, in writeToXml() 114 serializer.endTag(null /* namespace */, TAG_DEVICE_STATE); in writeToXml()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/interactacrossprofiles/ |
D | CrossProfileAppsSnapshot.java | 96 XmlSerializer serializer = new FastXmlSerializer(); in writeCrossProfileApps() local 97 serializer.setOutput(stream, "utf-8"); in writeCrossProfileApps() 98 serializer.startDocument(null, true); in writeCrossProfileApps() 99 serializer.startTag(null, TAG_CROSS_PROFILE_APPS); in writeCrossProfileApps() 101 serializer.startTag(null, TAG_PACKAGE_LIST_ITEM); in writeCrossProfileApps() 102 serializer.attribute(null, ATTR_VALUE, packageName); in writeCrossProfileApps() 103 serializer.endTag(null, TAG_PACKAGE_LIST_ITEM); in writeCrossProfileApps() 105 serializer.endTag(null, TAG_CROSS_PROFILE_APPS); in writeCrossProfileApps() 106 serializer.endDocument(); in writeCrossProfileApps()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/nonrequiredapps/ |
D | SystemAppsSnapshot.java | 102 XmlSerializer serializer = new FastXmlSerializer(); in writeSystemApps() local 103 serializer.setOutput(stream, "utf-8"); in writeSystemApps() 104 serializer.startDocument(null, true); in writeSystemApps() 105 serializer.startTag(null, TAG_SYSTEM_APPS); in writeSystemApps() 107 serializer.startTag(null, TAG_PACKAGE_LIST_ITEM); in writeSystemApps() 108 serializer.attribute(null, ATTR_VALUE, packageName); in writeSystemApps() 109 serializer.endTag(null, TAG_PACKAGE_LIST_ITEM); in writeSystemApps() 111 serializer.endTag(null, TAG_SYSTEM_APPS); in writeSystemApps() 112 serializer.endDocument(); in writeSystemApps()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/ |
D | BluetoothMapConvoListingElementTest.java | 138 final XmlSerializer serializer = Xml.newSerializer(); in encodeToXml_thenDecodeToInstance_returnsCorrectly() local 141 serializer.setOutput(writer); in encodeToXml_thenDecodeToInstance_returnsCorrectly() 142 serializer.startDocument("UTF-8", true); in encodeToXml_thenDecodeToInstance_returnsCorrectly() 143 mListingElement.encode(serializer); in encodeToXml_thenDecodeToInstance_returnsCorrectly() 144 serializer.endDocument(); in encodeToXml_thenDecodeToInstance_returnsCorrectly()
|
D | BluetoothMapConvoContactElementTest.java | 139 final XmlSerializer serializer = Xml.newSerializer(); in encodeToXml_thenDecodeToInstance_returnsCorrectly() local 142 serializer.setOutput(writer); in encodeToXml_thenDecodeToInstance_returnsCorrectly() 143 serializer.startDocument("UTF-8", true); in encodeToXml_thenDecodeToInstance_returnsCorrectly() 144 contactElement.encode(serializer); in encodeToXml_thenDecodeToInstance_returnsCorrectly() 145 serializer.endDocument(); in encodeToXml_thenDecodeToInstance_returnsCorrectly()
|
D | BluetoothMapMessageListingElementTest.java | 135 final XmlSerializer serializer = Xml.newSerializer(); in encode() local 138 serializer.setOutput(writer); in encode() 139 serializer.startDocument("UTF-8", true); in encode() 140 mMessageListingElement.encode(serializer, true); in encode() 141 serializer.endDocument(); in encode()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/publisher/net/ |
D | RefinedStatsTest.java | 159 FastXmlSerializer serializer = new FastXmlSerializer(); in bundleToXml() local 160 serializer.setOutput(writer); in bundleToXml() 161 bundle.saveToXml(serializer); in bundleToXml() 162 serializer.flush(); in bundleToXml()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | XmlUtilHelper.java | 204 XmlSerializer serializer = new FastXmlSerializer(); in writeMapXml() local 205 serializer.setOutput(out, StandardCharsets.UTF_8.name()); in writeMapXml() 206 serializer.startDocument(null, true); in writeMapXml() 207 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in writeMapXml() 208 writeMapXml(val, null, serializer); in writeMapXml() 209 serializer.endDocument(); in writeMapXml() 227 XmlSerializer serializer = Xml.newSerializer(); in writeListXml() local 228 serializer.setOutput(out, StandardCharsets.UTF_8.name()); in writeListXml() 229 serializer.startDocument(null, true); in writeListXml() 230 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in writeListXml() [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/ |
D | ProvisioningParams.java | 581 XmlSerializer serializer = new FastXmlSerializer(); in save() local 582 serializer.setOutput(stream, StandardCharsets.UTF_8.name()); in save() 583 serializer.startDocument(null, true); in save() 584 serializer.startTag(null, TAG_PROVISIONING_PARAMS); in save() 585 toPersistableBundle().saveToXml(serializer); in save() 586 serializer.endTag(null, TAG_PROVISIONING_PARAMS); in save() 587 serializer.endDocument(); in save()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetylabel/ |
D | AppsSafetyLabelHistoryPersistence.kt | 267 val serializer = Xml.newSerializer() in <lambda>() constant 268 serializer.setOutput(outputStream, StandardCharsets.UTF_8.name()) in <lambda>() 269 serializer.startDocument(null, true) in <lambda>() 270 serializer.serializeAllAppSafetyLabelHistory(fileContent) in <lambda>() 271 serializer.endDocument() in <lambda>()
|
/packages/modules/Bluetooth/system/pdl/security/ |
D | Android.bp | 39 // Generate the python parser+serializer backend
|
/packages/modules/Bluetooth/tools/rootcanal/ |
D | Android.bp | 185 // Generate the python parser+serializer backend for 201 // Generate the python parser+serializer backend for 217 // Generate the python parser+serializer backend for
|
/packages/modules/Bluetooth/system/pdl/hci/ |
D | Android.bp | 58 // Generate the python parser+serializer backend
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | PhoneAccountRegistrarTest.java | 2191 XmlSerializer serializer = new FastXmlSerializer(); in toXml() local 2193 serializer.setOutput(new BufferedOutputStream(baos), "utf-8"); in toXml() 2194 xml.writeToXml(input, serializer, context, telephonyFeatureFlags); in toXml() 2195 serializer.flush(); in toXml()
|