Home
last modified time | relevance | path

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

/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DResultHandler.java403 XmlSerializer serializer = XmlPullParserFactory.newInstance(TYPE, null).newSerializer(); in writeResults() local
404 serializer.setOutput(stream, ENCODING); in writeResults()
405 serializer.startDocument(ENCODING, false); in writeResults()
406 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in writeResults()
407 serializer.processingInstruction( in writeResults()
409 serializer.startTag(NS, RESULT_TAG); in writeResults()
410 serializer.attribute(NS, START_TIME_ATTR, String.valueOf(startTime)); in writeResults()
411 serializer.attribute(NS, END_TIME_ATTR, String.valueOf(endTime)); in writeResults()
412 serializer.attribute(NS, START_DISPLAY_TIME_ATTR, toReadableDateString(startTime)); in writeResults()
413 serializer.attribute(NS, END_DISPLAY_TIME_ATTR, toReadableDateString(endTime)); in writeResults()
[all …]
DReportLog.java125 void serialize(XmlSerializer serializer) in serialize() argument
127 serializer.startTag(null, METRIC_TAG); in serialize()
128 serializer.attribute(null, SOURCE_ATTR, getSource()); in serialize()
129 serializer.attribute(null, MESSAGE_ATTR, getMessage()); in serialize()
130 serializer.attribute(null, SCORETYPE_ATTR, getType().toReportString()); in serialize()
131 serializer.attribute(null, SCOREUNIT_ATTR, getUnit().toReportString()); in serialize()
133 serializer.startTag(null, VALUE_TAG); in serialize()
134 serializer.text(Double.toString(d)); in serialize()
135 serializer.endTag(null, VALUE_TAG); in serialize()
137 serializer.endTag(null, METRIC_TAG); in serialize()
[all …]
DTestResultHistory.java99 XmlSerializer serializer, TestResultHistory resultHistory, String testName) in serialize() argument
105 serializer.startTag(null, RUN_HISTORY_TAG); in serialize()
109 serializer.attribute(null, SUB_TEST_ATTR, name); in serialize()
113 serializer.startTag(null, RUN_TAG); in serialize()
114 serializer.attribute(null, START_TIME_ATTR, String.valueOf(execRecord.getStartTime())); in serialize()
115 serializer.attribute(null, END_TIME_ATTR, String.valueOf(execRecord.getEndTime())); in serialize()
116 serializer.attribute( in serialize()
118 serializer.endTag(null, RUN_TAG); in serialize()
120 serializer.endTag(null, RUN_HISTORY_TAG); in serialize()