Home
last modified time | relevance | path

Searched refs:serializer (Results 1 – 13 of 13) sorted by relevance

/frameworks/testing/uiautomator/library/src/com/android/uiautomator/core/
DAccessibilityNodeInfoDumper.java68 XmlSerializer serializer = Xml.newSerializer(); in dumpWindowToFile() local
70 serializer.setOutput(stringWriter); in dumpWindowToFile()
71 serializer.startDocument("UTF-8", true); in dumpWindowToFile()
72 serializer.startTag("", "hierarchy"); in dumpWindowToFile()
73 dumpNodeRec(root, serializer, 0); in dumpWindowToFile()
74 serializer.endTag("", "hierarchy"); in dumpWindowToFile()
75 serializer.endDocument(); in dumpWindowToFile()
85 private static void dumpNodeRec(AccessibilityNodeInfo node, XmlSerializer serializer, int index) in dumpNodeRec() argument
88 serializer.comment("NAF: The following control may not be accessibility friendly"); in dumpNodeRec()
89 serializer.startTag("", "node"); in dumpNodeRec()
[all …]
/frameworks/base/media/java/android/media/videoeditor/
DVideoEditorImpl.java1372 final XmlSerializer serializer = Xml.newSerializer(); in save() local
1374 serializer.setOutput(writer); in save()
1375 serializer.startDocument("UTF-8", true); in save()
1376 serializer.startTag("", TAG_PROJECT); in save()
1377 serializer.attribute("", in save()
1380 serializer.attribute("", ATTR_REGENERATE_PCM, in save()
1383 serializer.startTag("", TAG_MEDIA_ITEMS); in save()
1385 serializer.startTag("", TAG_MEDIA_ITEM); in save()
1386 serializer.attribute("", ATTR_ID, mediaItem.getId()); in save()
1387 serializer.attribute("", ATTR_TYPE, in save()
[all …]
/frameworks/base/services/java/com/android/server/input/
DPersistentDataStore.java210 XmlSerializer serializer = new FastXmlSerializer(); in save() local
211 serializer.setOutput(new BufferedOutputStream(os), "utf-8"); in save()
212 saveToXml(serializer); in save()
213 serializer.flush(); in save()
259 private void saveToXml(XmlSerializer serializer) throws IOException { in saveToXml() argument
260 serializer.startDocument(null, true); in saveToXml()
261 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in saveToXml()
262 serializer.startTag(null, "input-manager-state"); in saveToXml()
263 serializer.startTag(null, "input-devices"); in saveToXml()
267 serializer.startTag(null, "input-device"); in saveToXml()
[all …]
/frameworks/base/services/java/com/android/server/pm/
DUserManager.java214 final XmlSerializer serializer = new FastXmlSerializer(); in writeUserLocked() local
215 serializer.setOutput(bos, "utf-8"); in writeUserLocked()
216 serializer.startDocument(null, true); in writeUserLocked()
217 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in writeUserLocked()
219 serializer.startTag(null, TAG_USER); in writeUserLocked()
220 serializer.attribute(null, ATTR_ID, Integer.toString(userInfo.id)); in writeUserLocked()
221 serializer.attribute(null, ATTR_FLAGS, Integer.toString(userInfo.flags)); in writeUserLocked()
223 serializer.startTag(null, TAG_NAME); in writeUserLocked()
224 serializer.text(userInfo.name); in writeUserLocked()
225 serializer.endTag(null, TAG_NAME); in writeUserLocked()
[all …]
DSettings.java916 final XmlSerializer serializer = new FastXmlSerializer(); in writePackageRestrictionsLPr() local
917 serializer.setOutput(str, "utf-8"); in writePackageRestrictionsLPr()
918 serializer.startDocument(null, true); in writePackageRestrictionsLPr()
919 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in writePackageRestrictionsLPr()
921 serializer.startTag(null, TAG_PACKAGE_RESTRICTIONS); in writePackageRestrictionsLPr()
929 serializer.startTag(null, TAG_PACKAGE); in writePackageRestrictionsLPr()
930 serializer.attribute(null, ATTR_NAME, pkg.name); in writePackageRestrictionsLPr()
938 serializer.attribute(null, ATTR_STOPPED, "true"); in writePackageRestrictionsLPr()
941 serializer.attribute(null, ATTR_NOT_LAUNCHED, "true"); in writePackageRestrictionsLPr()
944 serializer.attribute(null, ATTR_ENABLED, Integer.toString(enabled)); in writePackageRestrictionsLPr()
[all …]
DPreferredActivity.java48 public void writeToXml(XmlSerializer serializer) throws IOException { in writeToXml() argument
49 mPref.writeToXml(serializer); in writeToXml()
50 serializer.startTag(null, "filter"); in writeToXml()
51 super.writeToXml(serializer); in writeToXml()
52 serializer.endTag(null, "filter"); in writeToXml()
DPackageSignatures.java47 void writeXml(XmlSerializer serializer, String tagName, in writeXml() argument
52 serializer.startTag(null, tagName); in writeXml()
53 serializer.attribute(null, "count", in writeXml()
56 serializer.startTag(null, "cert"); in writeXml()
64 serializer.attribute(null, "index", Integer.toString(j)); in writeXml()
70 serializer.attribute(null, "index", Integer.toString(numPast)); in writeXml()
71 serializer.attribute(null, "key", sig.toCharsString()); in writeXml()
73 serializer.endTag(null, "cert"); in writeXml()
75 serializer.endTag(null, tagName); in writeXml()
DPackageManagerService.java8657 XmlSerializer serializer = new FastXmlSerializer(); in dump() local
8659 serializer.setOutput(str, "utf-8"); in dump()
8660 serializer.startDocument(null, true); in dump()
8661 serializer.setFeature( in dump()
8663 mSettings.writePreferredActivitiesLPr(serializer); in dump()
8664 serializer.endDocument(); in dump()
8665 serializer.flush(); in dump()
/frameworks/base/services/java/com/android/server/usb/
DUsbSettingsManager.java148 public void write(XmlSerializer serializer) throws IOException { in write() argument
149 serializer.startTag(null, "usb-device"); in write()
151 serializer.attribute(null, "vendor-id", Integer.toString(mVendorId)); in write()
154 serializer.attribute(null, "product-id", Integer.toString(mProductId)); in write()
157 serializer.attribute(null, "class", Integer.toString(mClass)); in write()
160 serializer.attribute(null, "subclass", Integer.toString(mSubclass)); in write()
163 serializer.attribute(null, "protocol", Integer.toString(mProtocol)); in write()
165 serializer.endTag(null, "usb-device"); in write()
287 public void write(XmlSerializer serializer)throws IOException { in write() argument
288 serializer.startTag(null, "usb-accessory"); in write()
[all …]
/frameworks/base/core/java/android/content/
DIntentFilter.java1148 public void writeToXml(XmlSerializer serializer) throws IOException { in writeToXml() argument
1151 serializer.startTag(null, ACTION_STR); in writeToXml()
1152 serializer.attribute(null, NAME_STR, mActions.get(i)); in writeToXml()
1153 serializer.endTag(null, ACTION_STR); in writeToXml()
1157 serializer.startTag(null, CAT_STR); in writeToXml()
1158 serializer.attribute(null, NAME_STR, mCategories.get(i)); in writeToXml()
1159 serializer.endTag(null, CAT_STR); in writeToXml()
1163 serializer.startTag(null, TYPE_STR); in writeToXml()
1166 serializer.attribute(null, NAME_STR, type); in writeToXml()
1167 serializer.endTag(null, TYPE_STR); in writeToXml()
[all …]
/frameworks/base/services/java/com/android/server/
DPreferredComponent.java167 public void writeToXml(XmlSerializer serializer) throws IOException { in writeToXml() argument
169 serializer.attribute(null, "name", mShortComponent); in writeToXml()
171 serializer.attribute(null, "match", Integer.toHexString(mMatch)); in writeToXml()
173 serializer.attribute(null, "set", Integer.toString(NS)); in writeToXml()
175 serializer.startTag(null, "set"); in writeToXml()
176 serializer.attribute(null, "name", mSetComponents[s]); in writeToXml()
177 serializer.endTag(null, "set"); in writeToXml()
/frameworks/base/core/java/android/widget/
DActivityChooserModel.java1062 XmlSerializer serializer = Xml.newSerializer(); in doInBackground() local
1065 serializer.setOutput(fos, null); in doInBackground()
1066 serializer.startDocument("UTF-8", true); in doInBackground()
1067 serializer.startTag(null, TAG_HISTORICAL_RECORDS); in doInBackground()
1072 serializer.startTag(null, TAG_HISTORICAL_RECORD); in doInBackground()
1073 serializer.attribute(null, ATTRIBUTE_ACTIVITY, in doInBackground()
1075 serializer.attribute(null, ATTRIBUTE_TIME, String.valueOf(record.time)); in doInBackground()
1076 serializer.attribute(null, ATTRIBUTE_WEIGHT, String.valueOf(record.weight)); in doInBackground()
1077 serializer.endTag(null, TAG_HISTORICAL_RECORD); in doInBackground()
1083 serializer.endTag(null, TAG_HISTORICAL_RECORDS); in doInBackground()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DXmlUtils.java181 XmlSerializer serializer = new FastXmlSerializer(); in writeMapXml() local
182 serializer.setOutput(out, "utf-8"); in writeMapXml()
183 serializer.startDocument(null, true); in writeMapXml()
184 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in writeMapXml()
185 writeMapXml(val, null, serializer); in writeMapXml()
186 serializer.endDocument(); in writeMapXml()
204 XmlSerializer serializer = Xml.newSerializer(); in writeListXml() local
205 serializer.setOutput(out, "utf-8"); in writeListXml()
206 serializer.startDocument(null, true); in writeListXml()
207 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in writeListXml()
[all …]