Home
last modified time | relevance | path

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

/tools/tradefederation/core/src/com/android/tradefed/result/
DMetricsXMLResultReporter.java98 KXmlSerializer serializer = new KXmlSerializer(); in generateResults() local
99 serializer.setOutput(os, "UTF-8"); in generateResults()
100 serializer.startDocument("UTF-8", null); in generateResults()
101 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in generateResults()
102 printRunResults(serializer, timestamp, elapsedTime); in generateResults()
103 serializer.endDocument(); in generateResults()
117 private void printRunResults(KXmlSerializer serializer, String timestamp, long elapsedTime) in printRunResults() argument
119 serializer.startTag(NS, TAG_TESTSUITE); in printRunResults()
120 serializer.attribute(NS, ATTR_NAME, getInvocationContext().getTestTag()); in printRunResults()
121 serializer.attribute(NS, ATTR_TESTS, Integer.toString(getNumTotalTests())); in printRunResults()
[all …]
DXmlResultReporter.java101 KXmlSerializer serializer = new KXmlSerializer(); in generateSummary() local
102 serializer.setOutput(outputStream, "UTF-8"); in generateSummary()
103 serializer.startDocument("UTF-8", null); in generateSummary()
104 serializer.setFeature( in generateSummary()
107 printTestResults(serializer, timestamp, elapsedTime); in generateSummary()
108 serializer.endDocument(); in generateSummary()
145 void printTestResults(KXmlSerializer serializer, String timestamp, long elapsedTime) in printTestResults() argument
147 serializer.startTag(NS, TESTSUITE); in printTestResults()
148 serializer.attribute(NS, ATTR_NAME, getInvocationContext().getTestTag()); in printTestResults()
149 serializer.attribute(NS, ATTR_TESTS, Integer.toString(getNumTotalTests())); in printTestResults()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/result/suite/
DXmlSuiteResultFormatter.java153 public void addSuiteAttributes(XmlSerializer serializer) in addSuiteAttributes() argument
176 public void addBuildInfoAttributes(XmlSerializer serializer, SuiteResultHolder holder) in addBuildInfoAttributes() argument
204 XmlSerializer serializer = null; in writeResults() local
206 serializer = XmlPullParserFactory.newInstance(TYPE, null).newSerializer(); in writeResults()
211 serializer.setOutput(stream, ENCODING); in writeResults()
212 serializer.startDocument(ENCODING, false); in writeResults()
213 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in writeResults()
214 serializer.processingInstruction( in writeResults()
216 serializer.startTag(NS, RESULT_TAG); in writeResults()
217 serializer.attribute(NS, START_TIME_ATTR, String.valueOf(holder.startTime)); in writeResults()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/config/
DConfigurationUtilTest.java59 KXmlSerializer serializer = new KXmlSerializer(); in testDumpClassToXml() local
60 serializer.setOutput(output); in testDumpClassToXml()
61 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in testDumpClassToXml()
62 serializer.startDocument("UTF-8", null); in testDumpClassToXml()
63 serializer.startTag(null, ConfigurationUtil.CONFIGURATION_NAME); in testDumpClassToXml()
67 serializer, in testDumpClassToXml()
74 serializer.endTag(null, ConfigurationUtil.CONFIGURATION_NAME); in testDumpClassToXml()
75 serializer.endDocument(); in testDumpClassToXml()
100 KXmlSerializer serializer = new KXmlSerializer(); in testDumpClassToXml_filtered() local
101 serializer.setOutput(output); in testDumpClassToXml_filtered()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/config/
DConfigurationUtil.java60 KXmlSerializer serializer = new KXmlSerializer(); in createSerializer() local
61 serializer.setOutput(output); in createSerializer()
62 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in createSerializer()
63 serializer.startDocument("UTF-8", null); in createSerializer()
64 return serializer; in createSerializer()
80 KXmlSerializer serializer, in dumpClassToXml() argument
88 serializer, in dumpClassToXml()
112 KXmlSerializer serializer, in dumpClassToXml() argument
128 serializer.startTag(null, "object"); in dumpClassToXml()
129 serializer.attribute(null, "type", classTypeName); in dumpClassToXml()
[all …]
DConfiguration.java1427 KXmlSerializer serializer = new KXmlSerializer(); in dumpXml() local
1428 serializer.setOutput(output); in dumpXml()
1429 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in dumpXml()
1430 serializer.startDocument("UTF-8", null); in dumpXml()
1431 serializer.startTag(null, ConfigurationUtil.CONFIGURATION_NAME); in dumpXml()
1435 serializer, in dumpXml()
1445 serializer, in dumpXml()
1456 serializer.startTag(null, Configuration.DEVICE_NAME); in dumpXml()
1457 serializer.attribute(null, "name", deviceConfig.getDeviceName()); in dumpXml()
1459 serializer.attribute(null, "isFake", "true"); in dumpXml()
[all …]
/tools/tradefederation/core/global_configuration/com/android/tradefed/config/
DGlobalConfiguration.java903 KXmlSerializer serializer = ConfigurationUtil.createSerializer(filteredGlobalConfig); in cloneConfigWithFilter() local
904 serializer.startTag(null, ConfigurationUtil.CONFIGURATION_NAME); in cloneConfigWithFilter()
923 serializer, in cloneConfigWithFilter()
932 serializer.endTag(null, ConfigurationUtil.CONFIGURATION_NAME); in cloneConfigWithFilter()
933 serializer.endDocument(); in cloneConfigWithFilter()