Searched refs:serializer (Results 1 – 6 of 6) sorted by relevance
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | PhoneAccountRegistrar.java | 1119 XmlSerializer serializer = new FastXmlSerializer(); in write() local 1120 serializer.setOutput(os, "utf-8"); in write() 1121 writeToXml(mState, serializer, mContext); in write() 1122 serializer.flush(); in write() 1178 private static void writeToXml(State state, XmlSerializer serializer, Context context) 1180 sStateXml.writeToXml(state, serializer, context); 1207 public abstract void writeToXml(T o, XmlSerializer serializer, Context context) 1220 protected void writeTextIfNonNull(String tagName, Object value, XmlSerializer serializer) 1223 serializer.startTag(null, tagName); 1224 serializer.text(Objects.toString(value)); [all …]
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
D | EventResultPersister.java | 240 XmlSerializer serializer = Xml.newSerializer(); in writeState() local 241 serializer.setOutput(stream, StandardCharsets.UTF_8.name()); in writeState() 242 serializer.startDocument(null, true); in writeState() 243 serializer.setFeature( in writeState() 245 serializer.startTag(null, "results"); in writeState() 246 serializer.attribute(null, "counter", Integer.toString(counter)); in writeState() 250 serializer.startTag(null, "result"); in writeState() 251 serializer.attribute(null, "id", in writeState() 253 serializer.attribute(null, "status", in writeState() 255 serializer.attribute(null, "legacyStatus", in writeState() [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/nonrequiredapps/ |
D | SystemAppsSnapshot.java | 103 XmlSerializer serializer = new FastXmlSerializer(); in writeSystemApps() local 104 serializer.setOutput(stream, "utf-8"); in writeSystemApps() 105 serializer.startDocument(null, true); in writeSystemApps() 106 serializer.startTag(null, TAG_SYSTEM_APPS); in writeSystemApps() 108 serializer.startTag(null, TAG_PACKAGE_LIST_ITEM); in writeSystemApps() 109 serializer.attribute(null, ATTR_VALUE, packageName); in writeSystemApps() 110 serializer.endTag(null, TAG_PACKAGE_LIST_ITEM); in writeSystemApps() 112 serializer.endTag(null, TAG_SYSTEM_APPS); in writeSystemApps() 113 serializer.endDocument(); in writeSystemApps()
|
/packages/apps/Settings/src/com/android/settings/dashboard/conditional/ |
D | ConditionManager.java | 116 XmlSerializer serializer = Xml.newSerializer(); in saveToXml() local 118 serializer.setOutput(writer); in saveToXml() 120 serializer.startDocument("UTF-8", true); in saveToXml() 121 serializer.startTag("", TAG_CONDITIONS); in saveToXml() 127 serializer.startTag("", TAG_CONDITION); in saveToXml() 129 serializer.attribute("", ATTR_CLASS, clz); in saveToXml() 130 bundle.saveToXml(serializer); in saveToXml() 131 serializer.endTag("", TAG_CONDITION); in saveToXml() 135 serializer.endTag("", TAG_CONDITIONS); in saveToXml() 136 serializer.flush(); in saveToXml()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/ |
D | ProvisioningParams.java | 338 XmlSerializer serializer = new FastXmlSerializer(); in save() local 339 serializer.setOutput(stream, StandardCharsets.UTF_8.name()); in save() 340 serializer.startDocument(null, true); in save() 341 serializer.startTag(null, TAG_PROVISIONING_PARAMS); in save() 342 toPersistableBundle().saveToXml(serializer); in save() 343 serializer.endTag(null, TAG_PROVISIONING_PARAMS); in save() 344 serializer.endDocument(); in save()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | PhoneAccountRegistrarTest.java | 636 XmlSerializer serializer = new FastXmlSerializer(); in roundTripXml() local 638 serializer.setOutput(new BufferedOutputStream(baos), "utf-8"); in roundTripXml() 639 xml.writeToXml(input, serializer, context); in roundTripXml() 640 serializer.flush(); in roundTripXml()
|