/packages/services/Telecomm/src/com/android/server/telecom/ |
D | PhoneAccountRegistrar.java | 1282 XmlSerializer serializer = new FastXmlSerializer(); in write() local 1283 serializer.setOutput(os, "utf-8"); in write() 1284 writeToXml(mState, serializer, mContext); in write() 1285 serializer.flush(); in write() 1341 private static void writeToXml(State state, XmlSerializer serializer, Context context) 1343 sStateXml.writeToXml(state, serializer, context); 1370 public abstract void writeToXml(T o, XmlSerializer serializer, Context context) 1383 protected void writeTextIfNonNull(String tagName, Object value, XmlSerializer serializer) 1386 serializer.startTag(null, tagName); 1387 serializer.text(Objects.toString(value)); [all …]
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/service/ |
D | BackupHelper.java | 251 private static void writePkgsAsXml(@NonNull XmlSerializer serializer, in writePkgsAsXml() argument 253 serializer.startDocument(null, true); in writePkgsAsXml() 255 serializer.startTag(null, TAG_PERMISSION_BACKUP); in writePkgsAsXml() 259 serializer.attribute(null, ATTR_PLATFORM_VERSION, in writePkgsAsXml() 262 serializer.attribute(null, ATTR_PLATFORM_VERSION, in writePkgsAsXml() 266 serializer.startTag(null, TAG_ALL_GRANTS); in writePkgsAsXml() 273 packageState.writeAsXml(serializer); in writePkgsAsXml() 277 serializer.endTag(null, TAG_ALL_GRANTS); in writePkgsAsXml() 278 serializer.endTag(null, TAG_PERMISSION_BACKUP); in writePkgsAsXml() 280 serializer.endDocument(); in writePkgsAsXml() [all …]
|
D | PermissionControllerServiceImpl.java | 317 XmlSerializer serializer = newSerializer(); in onGetRuntimePermissionsBackup() local 318 serializer.setOutput(backup, UTF_8.name()); in onGetRuntimePermissionsBackup() 320 backupHelper.writeState(serializer); in onGetRuntimePermissionsBackup() 321 serializer.flush(); in onGetRuntimePermissionsBackup()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/ |
D | LauncherLayoutBuilder.java | 94 XmlSerializer serializer = Xml.newSerializer(); in build() local 95 serializer.setOutput(writer); in build() 97 serializer.startDocument("UTF-8", true); in build() 98 serializer.startTag(null, TAG_WORKSPACE); in build() 99 writeNodes(serializer, mNodes); in build() 100 serializer.endTag(null, TAG_WORKSPACE); in build() 101 serializer.endDocument(); in build() 102 serializer.flush(); in build() 105 private static void writeNodes(XmlSerializer serializer, in writeNodes() argument 110 serializer.startTag(null, node.first); in writeNodes() [all …]
|
/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/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/ |
D | ProvisioningParams.java | 447 XmlSerializer serializer = new FastXmlSerializer(); in save() local 448 serializer.setOutput(stream, StandardCharsets.UTF_8.name()); in save() 449 serializer.startDocument(null, true); in save() 450 serializer.startTag(null, TAG_PROVISIONING_PARAMS); in save() 451 toPersistableBundle().saveToXml(serializer); in save() 452 serializer.endTag(null, TAG_PROVISIONING_PARAMS); in save() 453 serializer.endDocument(); in save()
|
/packages/modules/ExtServices/tests/src/android/ext/services/notification/ |
D | AssistantTest.java | 410 XmlSerializer serializer = new FastXmlSerializer(); in testRoundTripXml() local 412 serializer.setOutput(new BufferedOutputStream(baos), "utf-8"); in testRoundTripXml() 413 mAssistant.writeXml(serializer); in testRoundTripXml()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | PhoneAccountRegistrarTest.java | 1001 XmlSerializer serializer = new FastXmlSerializer(); in roundTripXml() local 1003 serializer.setOutput(new BufferedOutputStream(baos), "utf-8"); in roundTripXml() 1004 xml.writeToXml(input, serializer, context); in roundTripXml() 1005 serializer.flush(); in roundTripXml()
|