Home
last modified time | relevance | path

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

/tools/tradefederation/core/src/com/android/tradefed/result/
DMetricsXMLResultReporter.java102 KXmlSerializer serializer = new KXmlSerializer(); in generateResults() local
103 serializer.setOutput(os, "UTF-8"); in generateResults()
104 serializer.startDocument("UTF-8", null); in generateResults()
105 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in generateResults()
106 printRunResults(serializer, timestamp, elapsedTime); in generateResults()
107 serializer.endDocument(); in generateResults()
127 private void printRunResults(KXmlSerializer serializer, String timestamp, long elapsedTime) in printRunResults() argument
129 serializer.startTag(NS, TAG_TESTSUITE); in printRunResults()
130 serializer.attribute(NS, ATTR_NAME, getInvocationContext().getTestTag()); in printRunResults()
131 serializer.attribute(NS, ATTR_TESTS, Integer.toString(getNumTotalTests())); in printRunResults()
[all …]
DXmlResultReporter.java104 KXmlSerializer serializer = new KXmlSerializer(); in generateSummary() local
105 serializer.setOutput(outputStream, "UTF-8"); in generateSummary()
106 serializer.startDocument("UTF-8", null); in generateSummary()
107 serializer.setFeature( in generateSummary()
110 printTestResults(serializer, timestamp, elapsedTime); in generateSummary()
111 serializer.endDocument(); in generateSummary()
148 void printTestResults(KXmlSerializer serializer, String timestamp, long elapsedTime) in printTestResults() argument
150 serializer.startTag(NS, TESTSUITE); in printTestResults()
151 serializer.attribute(NS, ATTR_NAME, getInvocationContext().getTestTag()); in printTestResults()
152 serializer.attribute(NS, ATTR_TESTS, Integer.toString(getNumTotalTests())); in printTestResults()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DSubprocessConfigBuilder.java78 KXmlSerializer serializer = new KXmlSerializer(); in build() local
79 serializer.setOutput(writer); in build()
80 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in build()
81 serializer.startDocument("UTF-8", null); in build()
82 serializer.startTag(null, ConfigurationUtil.CONFIGURATION_NAME); in build()
83 serializer.attribute( in build()
86 serializer.startTag(null, INCLUDE_NAME); in build()
87 serializer.attribute(null, ConfigurationUtil.NAME_NAME, mOriginalConfig); in build()
88 serializer.endTag(null, INCLUDE_NAME); in build()
91 serializer.startTag(null, Configuration.RESULT_REPORTER_TYPE_NAME); in build()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/result/suite/
DXmlSuiteResultFormatter.java141 public void addSuiteAttributes(XmlSerializer serializer) in addSuiteAttributes() argument
164 public void addBuildInfoAttributes(XmlSerializer serializer, SuiteResultHolder holder) in addBuildInfoAttributes() argument
192 XmlSerializer serializer = null; in writeResults() local
194 serializer = XmlPullParserFactory.newInstance(TYPE, null).newSerializer(); in writeResults()
199 serializer.setOutput(stream, ENCODING); in writeResults()
200 serializer.startDocument(ENCODING, false); in writeResults()
201 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in writeResults()
202 serializer.processingInstruction( in writeResults()
204 serializer.startTag(NS, RESULT_TAG); in writeResults()
205 serializer.attribute(NS, START_TIME_ATTR, String.valueOf(holder.startTime)); in writeResults()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/config/
DConfigurationUtil.java59 KXmlSerializer serializer = new KXmlSerializer(); in createSerializer() local
60 serializer.setOutput(output); in createSerializer()
61 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in createSerializer()
62 serializer.startDocument("UTF-8", null); in createSerializer()
63 return serializer; in createSerializer()
79 KXmlSerializer serializer, in dumpClassToXml() argument
87 serializer, in dumpClassToXml()
110 KXmlSerializer serializer, in dumpClassToXml() argument
125 serializer.startTag(null, "object"); in dumpClassToXml()
126 serializer.attribute(null, "type", classTypeName); in dumpClassToXml()
[all …]
/tools/tradefederation/core/tests/src/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/global_configuration/com/android/tradefed/config/
DGlobalConfiguration.java800 KXmlSerializer serializer = ConfigurationUtil.createSerializer(filteredGlobalConfig); in cloneConfigWithFilter() local
801 serializer.startTag(null, ConfigurationUtil.CONFIGURATION_NAME); in cloneConfigWithFilter()
820 serializer, config, configObj, isGenericObject, new ArrayList<>(), true, false); in cloneConfigWithFilter()
822 serializer.endTag(null, ConfigurationUtil.CONFIGURATION_NAME); in cloneConfigWithFilter()
823 serializer.endDocument(); in cloneConfigWithFilter()
/tools/tradefederation/core/tests/res/testdata/
Dtradefed-prebuilt-cts-8.0_r21.jarMETA-INF/ META-INF/MANIFEST.MF jline/ jline/CompletionHandler.class CompletionHandler ...