Searched refs:serializer (Results 1 – 5 of 5) sorted by relevance
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/ |
D | ScreenshotsMetadataHandler.java | 53 XmlSerializer serializer = XmlPullParserFactory.newInstance(TYPE, null).newSerializer(); in writeResults() local 54 serializer.setOutput(stream, ENCODING); in writeResults() 55 serializer.startDocument(ENCODING, false); in writeResults() 56 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in writeResults() 57 serializer.processingInstruction( in writeResults() 59 serializer.startTag(NS, RESULT_TAG); in writeResults() 62 serializer.startTag(NS, MODULE_TAG); in writeResults() 63 serializer.attribute(NS, NAME_ATTR, module.getName()); in writeResults() 65 serializer.startTag(NS, CASE_TAG); in writeResults() 66 serializer.attribute(NS, NAME_ATTR, cr.getName()); in writeResults() [all …]
|
D | ResultHandler.java | 408 XmlSerializer serializer = XmlPullParserFactory.newInstance(TYPE, null).newSerializer(); in writeResults() local 409 serializer.setOutput(stream, ENCODING); in writeResults() 410 serializer.startDocument(ENCODING, false); in writeResults() 411 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in writeResults() 412 serializer.processingInstruction( in writeResults() 414 serializer.startTag(NS, RESULT_TAG); in writeResults() 415 serializer.attribute(NS, START_TIME_ATTR, String.valueOf(startTime)); in writeResults() 416 serializer.attribute(NS, END_TIME_ATTR, String.valueOf(endTime)); in writeResults() 417 serializer.attribute(NS, START_DISPLAY_TIME_ATTR, toReadableDateString(startTime)); in writeResults() 418 serializer.attribute(NS, END_DISPLAY_TIME_ATTR, toReadableDateString(endTime)); in writeResults() [all …]
|
D | ReportLog.java | 125 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 …]
|
D | TestResultHistory.java | 99 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()
|
D | TestScreenshotsMetadata.java | 100 XmlSerializer serializer, TestScreenshotsMetadata screenshotsMetadata) in serialize() argument 106 serializer.startTag(null, SCREENSHOTS_TAG); in serialize() 110 serializer.startTag(null, SCREENSHOT_TAG); in serialize() 111 serializer.attribute(null, in serialize() 113 serializer.attribute( in serialize() 115 serializer.endTag(null, SCREENSHOT_TAG); in serialize() 117 serializer.endTag(null, SCREENSHOTS_TAG); in serialize()
|