Lines Matching refs:serializer
104 * @param serializer
107 public void serialize(KXmlSerializer serializer) throws IOException {
108 mDeviceInfo.serialize(serializer);
109 serializeHostInfo(serializer);
110 serializeTestSummary(serializer);
115 r.serialize(serializer);
122 * @param serializer
124 private void serializeHostInfo(KXmlSerializer serializer) throws IOException {
125 serializer.startTag(ns, "HostInfo");
131 serializer.attribute(ns, "name", hostName);
133 serializer.startTag(ns, "Os");
134 serializer.attribute(ns, "name", System.getProperty("os.name"));
135 serializer.attribute(ns, "version", System.getProperty("os.version"));
136 serializer.attribute(ns, "arch", System.getProperty("os.arch"));
137 serializer.endTag(ns, "Os");
139 serializer.startTag(ns, "Java");
140 serializer.attribute(ns, "name", System.getProperty("java.vendor"));
141 serializer.attribute(ns, "version", System.getProperty("java.version"));
142 serializer.endTag(ns, "Java");
144 serializer.startTag(ns, "Cts");
145 serializer.attribute(ns, "version", CtsBuildProvider.CTS_BUILD_VERSION);
147 serializer.startTag(ns, "IntValue");
148 serializer.attribute(ns, "name", "testStatusTimeoutMs");
151 serializer.attribute(ns, "value", "600000");
152 serializer.endTag(ns, "IntValue");
153 serializer.endTag(ns, "Cts");
155 serializer.endTag(ns, "HostInfo");
161 * @param serializer
164 private void serializeTestSummary(KXmlSerializer serializer) throws IOException {
165 serializer.startTag(ns, SUMMARY_TAG);
166 serializer.attribute(ns, FAILED_ATTR, Integer.toString(countTests(CtsTestStatus.FAIL)));
167 serializer.attribute(ns, NOT_EXECUTED_ATTR,
170 serializer.attribute(ns, TIMEOUT_ATTR, "0");
171 serializer.attribute(ns, PASS_ATTR, Integer.toString(countTests(CtsTestStatus.PASS)));
172 serializer.endTag(ns, SUMMARY_TAG);