Home
last modified time | relevance | path

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

/tools/tradefederation/core/src/com/android/tradefed/util/net/
DXmlRpcHelper.java57 public static void writeOpenMethodCall(KXmlSerializer serializer, String ns, String name) in writeOpenMethodCall() argument
59 serializer.startTag(ns, "methodCall"); in writeOpenMethodCall()
60 serializer.startTag(ns, "methodName"); in writeOpenMethodCall()
61 serializer.text(name); in writeOpenMethodCall()
62 serializer.endTag(ns, "methodName"); in writeOpenMethodCall()
64 serializer.startTag(ns, "params"); in writeOpenMethodCall()
73 public static void writeCloseMethodCall(KXmlSerializer serializer, String ns) in writeCloseMethodCall() argument
75 serializer.endTag(ns, "params"); in writeCloseMethodCall()
76 serializer.endTag(ns, "methodCall"); in writeCloseMethodCall()
87 public static void writeOpenMethodArg(KXmlSerializer serializer, String ns, String valueType) in writeOpenMethodArg() argument
[all …]
/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/result/suite/
DXmlSuiteResultFormatter.java121 public void addSuiteAttributes(XmlSerializer serializer) in addSuiteAttributes() argument
147 public void addBuildInfoAttributes(XmlSerializer serializer, SuiteResultHolder holder) in addBuildInfoAttributes() argument
175 XmlSerializer serializer = null; in writeResults() local
177 serializer = XmlPullParserFactory.newInstance(TYPE, null).newSerializer(); in writeResults()
182 serializer.setOutput(stream, ENCODING); in writeResults()
183 serializer.startDocument(ENCODING, false); in writeResults()
184 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in writeResults()
185 serializer.processingInstruction( in writeResults()
187 serializer.startTag(NS, RESULT_TAG); in writeResults()
188 serializer.attribute(NS, START_TIME_ATTR, String.valueOf(holder.startTime)); in writeResults()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DConfigurationUtilTest.java51 KXmlSerializer serializer = new KXmlSerializer(); in testDumpClassToXml() local
52 serializer.setOutput(output); in testDumpClassToXml()
53 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in testDumpClassToXml()
54 serializer.startDocument("UTF-8", null); in testDumpClassToXml()
55 serializer.startTag(null, ConfigurationUtil.CONFIGURATION_NAME); in testDumpClassToXml()
59 serializer, DEVICE_MANAGER_TYPE_NAME, deviceManager, new ArrayList<String>()); in testDumpClassToXml()
61 serializer.endTag(null, ConfigurationUtil.CONFIGURATION_NAME); in testDumpClassToXml()
62 serializer.endDocument(); in testDumpClassToXml()
87 KXmlSerializer serializer = new KXmlSerializer(); in testDumpClassToXml_filtered() local
88 serializer.setOutput(output); in testDumpClassToXml_filtered()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/config/
DConfigurationUtil.java56 KXmlSerializer serializer = new KXmlSerializer(); in createSerializer() local
57 serializer.setOutput(output); in createSerializer()
58 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in createSerializer()
59 serializer.startDocument("UTF-8", null); in createSerializer()
60 return serializer; in createSerializer()
74 KXmlSerializer serializer, in dumpClassToXml() argument
85 serializer.startTag(null, classTypeName); in dumpClassToXml()
86 serializer.attribute(null, CLASS_NAME, obj.getClass().getName()); in dumpClassToXml()
87 dumpOptionsToXml(serializer, obj); in dumpClassToXml()
88 serializer.endTag(null, classTypeName); in dumpClassToXml()
[all …]
DConfiguration.java1216 KXmlSerializer serializer = new KXmlSerializer(); in dumpXml() local
1217 serializer.setOutput(output); in dumpXml()
1218 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in dumpXml()
1219 serializer.startDocument("UTF-8", null); in dumpXml()
1220 serializer.startTag(null, ConfigurationUtil.CONFIGURATION_NAME); in dumpXml()
1224 serializer, in dumpXml()
1232 serializer, MULTI_PREPARER_TYPE_NAME, multipreparer, excludeFilters); in dumpXml()
1238 serializer.startTag(null, Configuration.DEVICE_NAME); in dumpXml()
1239 serializer.attribute(null, "name", deviceConfig.getDeviceName()); in dumpXml()
1241 serializer, in dumpXml()
[all …]
DGlobalConfiguration.java701 KXmlSerializer serializer = ConfigurationUtil.createSerializer(outputXml); in cloneConfigWithFilter() local
702 serializer.startTag(null, ConfigurationUtil.CONFIGURATION_NAME); in cloneConfigWithFilter()
708 serializer, config, getConfigurationObject(config), new ArrayList<>()); in cloneConfigWithFilter()
710 serializer.endTag(null, ConfigurationUtil.CONFIGURATION_NAME); in cloneConfigWithFilter()
711 serializer.endDocument(); in cloneConfigWithFilter()