Home
last modified time | relevance | path

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

/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/
DTestResults.java107 public void serialize(KXmlSerializer serializer, String buildId) throws IOException { in serialize() argument
108 mDeviceInfo.serialize(serializer); in serialize()
109 serializeHostInfo(serializer, buildId); in serialize()
110 serializeTestSummary(serializer); in serialize()
115 r.serialize(serializer); in serialize()
124 private void serializeHostInfo(KXmlSerializer serializer, String buildId) throws IOException { in serializeHostInfo() argument
125 serializer.startTag(ns, "HostInfo"); in serializeHostInfo()
131 serializer.attribute(ns, "name", hostName); in serializeHostInfo()
133 serializer.startTag(ns, "Os"); in serializeHostInfo()
134 serializer.attribute(ns, "name", System.getProperty("os.name")); in serializeHostInfo()
[all …]
DTest.java168 public void serialize(KXmlSerializer serializer) in serialize() argument
170 serializer.startTag(CtsXmlResultReporter.ns, TAG); in serialize()
171 serializer.attribute(CtsXmlResultReporter.ns, NAME_ATTR, getName()); in serialize()
172 serializer.attribute(CtsXmlResultReporter.ns, RESULT_ATTR, mResult.getValue()); in serialize()
173 serializer.attribute(CtsXmlResultReporter.ns, STARTTIME_ATTR, mStartTime); in serialize()
174 serializer.attribute(CtsXmlResultReporter.ns, ENDTIME_ATTR, mEndTime); in serialize()
176 serializeTestLogsLocked(serializer); in serialize()
179 serializer.startTag(CtsXmlResultReporter.ns, SCENE_TAG); in serialize()
180 serializer.attribute(CtsXmlResultReporter.ns, MESSAGE_ATTR, mMessage); in serialize()
182 serializer.startTag(CtsXmlResultReporter.ns, STACK_TAG); in serialize()
[all …]
DDeviceInfoResult.java77 public void serialize(KXmlSerializer serializer) throws IOException { in serialize() argument
78 serializer.startTag(ns, TAG); in serialize()
83 serializer.endTag(ns, TAG); in serialize()
89 serializer.startTag(ns, SCREEN_TAG); in serialize()
90 serializer.attribute(ns, DeviceInfoConstants.RESOLUTION, in serialize()
92 serializer.attribute(ns, DeviceInfoConstants.SCREEN_DENSITY, in serialize()
94 serializer.attribute(ns, DeviceInfoConstants.SCREEN_DENSITY_BUCKET, in serialize()
96 serializer.attribute(ns, DeviceInfoConstants.SCREEN_SIZE, in serialize()
98 serializer.attribute(ns, DeviceInfoConstants.SMALLEST_SCREEN_WIDTH_DP, in serialize()
100 serializer.endTag(ns, SCREEN_TAG); in serialize()
[all …]
DTestCase.java88 public void serialize(KXmlSerializer serializer) throws IOException { in serialize() argument
89 serializer.startTag(CtsXmlResultReporter.ns, TAG); in serialize()
90 serializer.attribute(CtsXmlResultReporter.ns, "name", getName()); in serialize()
92 serializer.attribute(CtsXmlResultReporter.ns, "priority", ""); in serialize()
94 t.serialize(serializer); in serialize()
96 serializer.endTag(CtsXmlResultReporter.ns, TAG); in serialize()
DTestLog.java137 public void serialize(KXmlSerializer serializer) throws IOException { in serialize() argument
138 serializer.startTag(CtsXmlResultReporter.ns, TAG); in serialize()
139 serializer.attribute(CtsXmlResultReporter.ns, TYPE_ATTR, mLogType.getAttrValue()); in serialize()
140 serializer.attribute(CtsXmlResultReporter.ns, URL_ATTR, mUrl); in serialize()
141 serializer.endTag(CtsXmlResultReporter.ns, TAG); in serialize()
DTestPackageResult.java159 public void serialize(KXmlSerializer serializer) throws IOException { in serialize() argument
160 serializer.startTag(ns, TAG); in serialize()
161 serializeAttribute(serializer, NAME_ATTR, mName); in serialize()
162 serializeAttribute(serializer, APP_PACKAGE_NAME_ATTR, mAppPackageName); in serialize()
163 serializeAttribute(serializer, ABI_ATTR, mAbi); in serialize()
164 serializeAttribute(serializer, DIGEST_ATTR, getDigest()); in serialize()
166 serializer.attribute(ns, "signatureCheck", "true"); in serialize()
168 mSuiteRoot.serialize(serializer); in serialize()
169 serializer.endTag(ns, TAG); in serialize()
181 private void serializeAttribute(KXmlSerializer serializer, String attrName, String attrValue) in serializeAttribute() argument
[all …]
DCtsXmlResultReporter.java396 KXmlSerializer serializer = new KXmlSerializer(); in createXmlResult() local
397 serializer.setOutput(stream, "UTF-8"); in createXmlResult()
398 serializer.startDocument("UTF-8", false); in createXmlResult()
399 serializer.setFeature( in createXmlResult()
401 serializer.processingInstruction("xml-stylesheet type=\"text/xsl\" " + in createXmlResult()
403 serializeResultsDoc(serializer, startTimestamp, endTime); in createXmlResult()
404 serializer.endDocument(); in createXmlResult()
427 private void serializeResultsDoc(KXmlSerializer serializer, String startTime, String endTime) in serializeResultsDoc() argument
429 serializer.startTag(ns, RESULT_TAG); in serializeResultsDoc()
430 serializer.attribute(ns, PLAN_ATTR, mPlanName); in serializeResultsDoc()
[all …]
DTestSuite.java138 public void serialize(KXmlSerializer serializer) throws IOException { in serialize() argument
140 serializer.startTag(CtsXmlResultReporter.ns, TAG); in serialize()
141 serializer.attribute(CtsXmlResultReporter.ns, "name", mName); in serialize()
144 childSuite.serialize(serializer); in serialize()
147 childCase.serialize(serializer); in serialize()
150 serializer.endTag(CtsXmlResultReporter.ns, TAG); in serialize()
/cts/common/host-side/manifest-generator/src/com/android/compatibility/common/generator/
DManifestGenerator.java89 KXmlSerializer serializer = new KXmlSerializer(); in generate() local
90 serializer.setOutput(out, "UTF-8"); in generate()
91 serializer.startDocument("UTF-8", true); in generate()
92 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in generate()
93 serializer.startTag(ns, MANIFEST); in generate()
94 serializer.attribute(ns, "xmlns:android", "http://schemas.android.com/apk/res/android"); in generate()
95 serializer.attribute(ns, "package", pkgName); in generate()
96 serializer.startTag(ns, USES_SDK); in generate()
97 serializer.attribute(ns, "android:minSdkVersion", "8"); in generate()
98 serializer.endTag(ns, USES_SDK); in generate()
[all …]
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/
DTestPlan.java217 KXmlSerializer serializer = new KXmlSerializer(); in serialize() local
218 serializer.setOutput(stream, "UTF-8"); in serialize()
219 serializer.startDocument("UTF-8", false); in serialize()
220 serializer.setFeature( in serialize()
222 serializer.startTag(null, "TestPlan"); in serialize()
223 serializer.attribute(null, "version", "1.0"); in serialize()
225 serializer.startTag(null, ENTRY_TAG); in serialize()
227 serializer.attribute(null, ABI_ATTR, parts[0]); in serialize()
228 serializer.attribute(null, NAME_ATTR, parts[1]); in serialize()
229 serializeFilter(serializer, packageEntry.getValue()); in serialize()
[all …]
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/result/
DTestLogTest.java94 KXmlSerializer serializer = new KXmlSerializer(); in testSerialize() local
96 serializer.setOutput(writer); in testSerialize()
99 log.serialize(serializer); in testSerialize()
/cts/tests/tests/content/src/android/content/cts/util/
DXmlUtils.java187 XmlSerializer serializer = new FastXmlSerializer(); in writeMapXml() local
188 serializer.setOutput(out, StandardCharsets.UTF_8.name()); in writeMapXml()
189 serializer.startDocument(null, true); in writeMapXml()
190 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in writeMapXml()
191 writeMapXml(val, null, serializer); in writeMapXml()
192 serializer.endDocument(); in writeMapXml()
210 XmlSerializer serializer = Xml.newSerializer(); in writeListXml() local
211 serializer.setOutput(out, StandardCharsets.UTF_8.name()); in writeListXml()
212 serializer.startDocument(null, true); in writeListXml()
213 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in writeListXml()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/util/
DXmlUtils.java186 XmlSerializer serializer = Xml.newSerializer(); in writeListXml() local
187 serializer.setOutput(out, StandardCharsets.UTF_8.name()); in writeListXml()
188 serializer.startDocument(null, true); in writeListXml()
189 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in writeListXml()
190 writeListXml(val, null, serializer); in writeListXml()
191 serializer.endDocument(); in writeListXml()
/cts/tests/tests/view/src/android/view/cts/util/
DXmlUtils.java185 XmlSerializer serializer = Xml.newSerializer(); in writeListXml() local
186 serializer.setOutput(out, StandardCharsets.UTF_8.name()); in writeListXml()
187 serializer.startDocument(null, true); in writeListXml()
188 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in writeListXml()
189 writeListXml(val, null, serializer); in writeListXml()
190 serializer.endDocument(); in writeListXml()