Home
last modified time | relevance | path

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

/test/suite_harness/common/host-side/manifest-generator/src/com/android/compatibility/common/generator/
DManifestGenerator.java104 KXmlSerializer serializer = new KXmlSerializer(); in generate() local
105 serializer.setOutput(out, "UTF-8"); in generate()
106 serializer.startDocument("UTF-8", true); in generate()
107 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in generate()
108 serializer.startTag(ns, MANIFEST); in generate()
109 serializer.attribute(ns, "xmlns:android", "http://schemas.android.com/apk/res/android"); in generate()
110 serializer.attribute(ns, "package", pkgName); in generate()
111 serializer.startTag(ns, USES_SDK); in generate()
112 serializer.attribute(ns, "android:minSdkVersion", minSdk); in generate()
114 serializer.attribute(ns, "android:targetSdkVersion", targetSdk); in generate()
[all …]
/test/suite_harness/common/util/src/com/android/compatibility/common/util/
DResultHandler.java395 XmlSerializer serializer = XmlPullParserFactory.newInstance(TYPE, null).newSerializer(); in writeResults() local
396 serializer.setOutput(stream, ENCODING); in writeResults()
397 serializer.startDocument(ENCODING, false); in writeResults()
398 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in writeResults()
399 serializer.processingInstruction( in writeResults()
401 serializer.startTag(NS, RESULT_TAG); in writeResults()
402 serializer.attribute(NS, START_TIME_ATTR, String.valueOf(startTime)); in writeResults()
403 serializer.attribute(NS, END_TIME_ATTR, String.valueOf(endTime)); in writeResults()
404 serializer.attribute(NS, START_DISPLAY_TIME_ATTR, toReadableDateString(startTime)); in writeResults()
405 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()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/testtype/
DSubPlan.java127 KXmlSerializer serializer = new KXmlSerializer(); in serialize() local
128 serializer.setOutput(stream, ENCODING); in serialize()
129 serializer.startDocument(ENCODING, false); in serialize()
130 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in serialize()
131 serializer.startTag(NS, SUBPLAN_TAG); in serialize()
132 serializer.attribute(NS, VERSION_ATTR, SUBPLAN_VERSION); in serialize()
139 serializer.startTag(NS, ENTRY_TAG); in serialize()
140 serializer.attribute(NS, INCLUDE_ATTR, include); in serialize()
141 serializer.endTag(NS, ENTRY_TAG); in serialize()
144 serializer.startTag(NS, ENTRY_TAG); in serialize()
[all …]
/test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/
DDynamicConfigHandler.java95 XmlSerializer serializer = XmlPullParserFactory.newInstance().newSerializer(); in storeMergedConfigFile() local
96 serializer.setOutput(stream, ENCODING); in storeMergedConfigFile()
97 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); in storeMergedConfigFile()
98 serializer.startDocument(ENCODING, false); in storeMergedConfigFile()
100 serializer.startTag(NS, DynamicConfig.CONFIG_TAG); in storeMergedConfigFile()
102 serializer.startTag(NS, DynamicConfig.ENTRY_TAG); in storeMergedConfigFile()
103 serializer.attribute(NS, DynamicConfig.KEY_ATTR, key); in storeMergedConfigFile()
105 serializer.startTag(NS, DynamicConfig.VALUE_TAG); in storeMergedConfigFile()
106 serializer.text(value); in storeMergedConfigFile()
107 serializer.endTag(NS, DynamicConfig.VALUE_TAG); in storeMergedConfigFile()
[all …]
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/suite/
DCertificationResultXml.java85 public void addSuiteAttributes(XmlSerializer serializer) in addSuiteAttributes() argument
87 serializer.attribute(NS, SUITE_NAME_ATTR, mSuiteName); in addSuiteAttributes()
89 serializer.attribute(NS, SUITE_VARIANT_ATTR, mSuiteVariant); in addSuiteAttributes()
92 serializer.attribute(NS, SUITE_VARIANT_ATTR, mSuiteName); in addSuiteAttributes()
94 serializer.attribute(NS, SUITE_VERSION_ATTR, mSuiteVersion); in addSuiteAttributes()
95 serializer.attribute(NS, SUITE_PLAN_ATTR, mSuitePlan); in addSuiteAttributes()
96 serializer.attribute(NS, SUITE_BUILD_ATTR, mSuiteBuild); in addSuiteAttributes()
97 serializer.attribute(NS, REPORT_VERSION_ATTR, RESULT_FILE_VERSION); in addSuiteAttributes()
100 serializer.attribute(NS, REFERENCE_URL_ATTR, mReferenceUrl); in addSuiteAttributes()
104 serializer.attribute(NS, LOG_URL_ATTR, mLogUrl); in addSuiteAttributes()
[all …]
/test/framework/harnesses/cts-tradefed/
Dtradefed-cts-prebuilt.jarMETA-INF/ META-INF/MANIFEST.MF com/android/compatibility/common/ ...