blob: 3f7f384a7526e50804ea908bca2aae9bc3181589 [file] [log] [blame]
Phil Dubach1c571182009-05-12 11:41:38 -07001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 * Copyright (C) 2009 The Android Open Source Project
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 -->
17
18<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
Keun young Parkd5b84bc2012-12-10 17:38:51 -080019 targetNamespace="http://compatibility.android.com/cts_result/1.15"
20 xmlns="http://compatibility.android.com/cts_result/1.15"
Phil Dubach1c571182009-05-12 11:41:38 -070021 elementFormDefault="qualified">
22
23<xs:element name="TestResult">
24 <xs:complexType>
25 <xs:sequence>
26 <xs:element name="DeviceInfo" type="deviceInfoType"/>
27 <xs:element name="HostInfo" type="hostInfoType"/>
28 <xs:element name="Summary" type="summaryType"/>
29 <xs:element name="TestPackage" type="testPackageType" maxOccurs="unbounded" minOccurs="1"/>
30 </xs:sequence>
31 <xs:attribute name="starttime" type="xs:string"/>
32 <xs:attribute name="endtime" type="xs:string"/>
33 <xs:attribute name="testPlan" type="xs:string"/>
34 <xs:attribute name="version" type="xs:string"/>
Keun young Parkde672f12012-11-27 17:28:46 -080035 <xs:attribute name="suite" type="xs:string"/>
Phil Dubach1c571182009-05-12 11:41:38 -070036 </xs:complexType>
37</xs:element>
38
39<xs:complexType name="deviceInfoType">
40 <xs:sequence>
41 <xs:element name="Screen">
42 <xs:complexType>
Brian Muramatsue6b12dc2010-11-08 14:56:40 -080043 <xs:attribute name="screen_size" type="xs:string"/>
Phil Dubach1c571182009-05-12 11:41:38 -070044 <xs:attribute name="resolution" type="xs:string"/>
Brian Muramatsue6b12dc2010-11-08 14:56:40 -080045 <xs:attribute name="screen_density" type="xs:decimal"/>
46 <xs:attribute name="screen_density_bucket" type="xs:string"/>
Phil Dubach1c571182009-05-12 11:41:38 -070047 </xs:complexType>
48 </xs:element>
49 <xs:element name="PhoneSubInfo">
50 <xs:complexType>
51 <xs:attribute name="subscriberId" type="xs:string"/>
52 </xs:complexType>
53 </xs:element>
54 <xs:element name="BuildInfo">
55 <xs:complexType>
56 <xs:attribute name="Xdpi" type="xs:decimal"/>
57 <xs:attribute name="Ydpi" type="xs:decimal"/>
58 <xs:attribute name="androidPlatformVersion" type="xs:integer"/>
59 <xs:attribute name="buildID" type="xs:string"/>
60 <xs:attribute name="buildName" type="xs:string"/>
61 <xs:attribute name="buildVersion" type="xs:string"/>
62 <xs:attribute name="build_board" type="xs:string"/>
Brian Muramatsud6445ae2010-10-27 13:31:28 -070063 <xs:attribute name="build_manufacturer" type="xs:string"/>
Phil Dubach1c571182009-05-12 11:41:38 -070064 <xs:attribute name="build_brand" type="xs:string"/>
65 <xs:attribute name="build_device" type="xs:string"/>
66 <xs:attribute name="build_fingerprint" type="xs:string"/>
67 <xs:attribute name="build_model" type="xs:string"/>
68 <xs:attribute name="build_type" type="xs:string"/>
69 <xs:attribute name="deviceID" type="xs:string"/>
70 <xs:attribute name="imei" type="xs:integer"/>
71 <xs:attribute name="imsi" type="xs:integer"/>
72 <xs:attribute name="keypad" type="xs:string"/>
73 <xs:attribute name="locales" type="xs:string"/>
74 <xs:attribute name="navigation" type="xs:string"/>
75 <xs:attribute name="network" type="xs:string"/>
76 <xs:attribute name="touch" type="xs:string"/>
Brett Chabot3f6c6fc2010-10-07 11:38:34 -070077 <xs:attribute name="openGlEsVersion" type="xs:string"/>
Brian Muramatsu570acf72011-03-10 17:21:07 -080078 <xs:attribute name="partitions" type="xs:string"/>
Brett Chabot3f6c6fc2010-10-07 11:38:34 -070079 <xs:attribute name="build_abi" type="xs:string"/>
80 <xs:attribute name="build_abi2" type="xs:string"/>
Phil Dubach1c571182009-05-12 11:41:38 -070081 </xs:complexType>
82 </xs:element>
Brett Chabot21344402010-10-07 18:38:10 -070083 <xs:element name="FeatureInfo" type="featureInfoType"/>
84 <xs:element name="ProcessInfo" type="processInfoType"/>
Keun young Parkabed8862011-12-09 10:57:33 -080085 <xs:element name="SystemLibrariesInfo" type="systemLibrariesInfoType"/>
Keun young Park88e5d1f2011-12-14 14:01:01 -080086 <xs:element name="OpenGLCompressedTextureFormatsInfo" type="openGLCompressedTextureFormatsInfoType"/>
Phil Dubach1c571182009-05-12 11:41:38 -070087 </xs:sequence>
88</xs:complexType>
89
90<xs:complexType name="hostInfoType">
91 <xs:sequence>
92 <xs:element name="Os">
93 <xs:complexType>
94 <xs:attribute name="arch" type="xs:string"/>
95 <xs:attribute name="name" type="xs:string"/>
96 <xs:attribute name="version" type="xs:string"/>
97 </xs:complexType>
98 </xs:element>
99 <xs:element name="Java">
100 <xs:complexType>
101 <xs:attribute name="name" type="xs:string"/>
102 <xs:attribute name="version" type="xs:string"/>
103 </xs:complexType>
104 </xs:element>
105 <xs:element name="Cts">
106 <xs:complexType>
107 <xs:sequence>
108 <xs:element name="IntValue" minOccurs="0" maxOccurs="unbounded">
109 <xs:complexType>
110 <xs:attribute name="name" type="xs:string"/>
111 <xs:attribute name="value" type="xs:integer"/>
112 </xs:complexType>
113 </xs:element>
114 </xs:sequence>
115 <xs:attribute name="version" type="xs:string"/>
116 </xs:complexType>
117 </xs:element>
118 </xs:sequence>
119 <xs:attribute name="name" type="xs:string"/>
120</xs:complexType>
121
Brett Chabot3f6c6fc2010-10-07 11:38:34 -0700122<xs:complexType name="featureInfoType">
123 <xs:sequence>
124 <xs:element name="Feature" minOccurs="0" maxOccurs="unbounded">
125 <xs:complexType>
126 <xs:attribute name="name" type="xs:string" />
127 <xs:attribute name="type" type="xs:string" />
128 <xs:attribute name="available" type="xs:string" />
129 </xs:complexType>
130 </xs:element>
131 </xs:sequence>
132</xs:complexType>
133
134<xs:complexType name="processInfoType">
135 <xs:sequence>
136 <xs:element name="Process" minOccurs="0" maxOccurs="unbounded">
137 <xs:complexType>
138 <xs:attribute name="name" type="xs:string" />
139 <xs:attribute name="uid" type="xs:integer" />
140 </xs:complexType>
141 </xs:element>
142 </xs:sequence>
143</xs:complexType>
144
Keun young Parkabed8862011-12-09 10:57:33 -0800145<xs:complexType name="systemLibrariesInfoType">
146 <xs:sequence>
147 <xs:element name="Library" minOccurs="0" maxOccurs="unbounded">
148 <xs:complexType>
149 <xs:attribute name="name" type="xs:string" />
150 </xs:complexType>
151 </xs:element>
152 </xs:sequence>
153</xs:complexType>
154
Keun young Park88e5d1f2011-12-14 14:01:01 -0800155<xs:complexType name="openGLCompressedTextureFormatsInfoType">
156 <xs:sequence>
157 <xs:element name="TextureFormat" minOccurs="0" maxOccurs="unbounded">
158 <xs:complexType>
159 <xs:attribute name="name" type="xs:string" />
160 </xs:complexType>
161 </xs:element>
162 </xs:sequence>
163</xs:complexType>
164
Phil Dubach1c571182009-05-12 11:41:38 -0700165<xs:complexType name="summaryType">
166 <xs:attribute name="failed" type="xs:integer"/>
167 <xs:attribute name="notExecuted" type="xs:integer"/>
168 <xs:attribute name="pass" type="xs:integer"/>
169 <xs:attribute name="timeout" type="xs:integer"/>
Brett Chabot3f6c6fc2010-10-07 11:38:34 -0700170 <xs:attribute name="omitted" type="xs:integer"/>
Phil Dubach1c571182009-05-12 11:41:38 -0700171</xs:complexType>
172
173<xs:complexType name="testPackageType">
174 <xs:sequence>
Brett Chabot2543c352011-02-01 09:24:29 -0800175 <xs:element name="TestSuite" type="testSuiteType" minOccurs="0" maxOccurs="unbounded" />
Phil Dubach1c571182009-05-12 11:41:38 -0700176 </xs:sequence>
177 <xs:attribute name="appPackageName" type="xs:string"/>
178 <xs:attribute name="digest" type="xs:hexBinary"/>
179 <xs:attribute name="name" type="xs:string" use="required"/>
Brett Chabot2543c352011-02-01 09:24:29 -0800180 <xs:attribute name="signatureCheck" type="xs:boolean" />
Phil Dubach1c571182009-05-12 11:41:38 -0700181</xs:complexType>
182
183<xs:complexType name="testSuiteType">
184 <xs:sequence>
185 <xs:element name="TestCase" type="testCaseType" minOccurs="0" maxOccurs="unbounded"/>
186 <xs:element name="TestSuite" type="testSuiteType" minOccurs="0" maxOccurs="unbounded"/>
187 </xs:sequence>
188 <xs:attribute name="name" type="xs:string" use="required"/>
189</xs:complexType>
190
191<xs:complexType name="testCaseType">
192 <xs:sequence>
193 <xs:element name="Test" type="testType" minOccurs="0" maxOccurs="unbounded"/>
194 </xs:sequence>
195 <xs:attribute name="name" type="xs:string" use="required"/>
196 <xs:attribute name="priority" type="xs:string"/>
197</xs:complexType>
198
Keun young Parkd5b84bc2012-12-10 17:38:51 -0800199<xs:simpleType name="unitType">
200 <xs:restriction base="xs:string">
201 <xs:enumeration value="none"/>
202 <xs:enumeration value="ms"/>
203 <xs:enumeration value="fps"/>
204 <xs:enumeration value="ops"/>
205 <xs:enumeration value="kbps"/>
206 <xs:enumeration value="mbps"/>
207 <xs:enumeration value="byte"/>
208 <xs:enumeration value="count"/>
209 <xs:enumeration value="score"/>
210 </xs:restriction>
211</xs:simpleType>
212
213<xs:simpleType name="scoreTypeType">
214 <xs:restriction base="xs:string">
215 <xs:enumeration value="higherBetter"/>
216 <xs:enumeration value="lowerBetter"/>
217 <xs:enumeration value="neutral"/>
Keun young Park33b41332013-01-11 14:51:08 -0800218 <xs:enumeration value="warning"/>
Keun young Parkd5b84bc2012-12-10 17:38:51 -0800219 </xs:restriction>
220</xs:simpleType>
221
Phil Dubach1c571182009-05-12 11:41:38 -0700222<xs:complexType name="testType">
223 <xs:sequence>
224 <xs:element name="FailedScene" minOccurs="0" maxOccurs="1">
225 <xs:complexType>
226 <xs:sequence>
227 <xs:element name="StackTrace" type="xs:string" minOccurs="0" maxOccurs="1"/>
228 </xs:sequence>
229 <xs:attribute name="message" type="xs:string"/>
230 </xs:complexType>
231 </xs:element>
Keun young Parkd5b84bc2012-12-10 17:38:51 -0800232 <xs:element name="Summary" minOccurs="0" maxOccurs="1">
233 <xs:complexType>
234 <xs:simpleContent>
235 <xs:extension base="xs:decimal">
236 <xs:attribute name="message" type="xs:string" use="required" />
237 <xs:attribute name="scoreType" type="scoreTypeType" use="required" />
238 <xs:attribute name="unit" type="unitType" use="required" />
Keun young Parkb88600e2012-12-14 15:56:43 -0800239 <xs:attribute name="target" type="xs:decimal" />
Keun young Parkd5b84bc2012-12-10 17:38:51 -0800240 </xs:extension>
241 </xs:simpleContent>
242 </xs:complexType>
243 </xs:element>
244 <xs:element name="Details" minOccurs="0" maxOccurs="1">
245 <xs:complexType>
246 <xs:sequence>
247 <xs:element name="ValueArray" minOccurs="0" maxOccurs="unbounded">
248 <xs:complexType>
249 <xs:sequence>
250 <xs:element name="Value" type="xs:decimal" minOccurs="0" maxOccurs="unbounded" />
251 </xs:sequence>
252 <xs:attribute name="source" type="xs:string" use="required" />
253 <xs:attribute name="message" type="xs:string" use="required" />
254 <xs:attribute name="scoreType" type="scoreTypeType" use="required" />
255 <xs:attribute name="unit" type="unitType" use="required" />
256 </xs:complexType>
257 </xs:element>
258 </xs:sequence>
259 </xs:complexType>
260 </xs:element>
Phil Dubach1c571182009-05-12 11:41:38 -0700261 </xs:sequence>
262 <xs:attribute name="name" type="xs:string" use="required"/>
263 <xs:attribute name="result" type="resultType" use="required"/>
264 <xs:attribute name="starttime" type="xs:string"/>
265 <xs:attribute name="endtime" type="xs:string"/>
266</xs:complexType>
267
268<xs:simpleType name="resultType">
269 <xs:restriction base="xs:string">
270 <xs:enumeration value="pass"/>
271 <xs:enumeration value="fail"/>
272 <xs:enumeration value="timeout"/>
273 <xs:enumeration value="notExecuted"/>
Brett Chabot3f6c6fc2010-10-07 11:38:34 -0700274 <xs:enumeration value="omitted"/>
Phil Dubach1c571182009-05-12 11:41:38 -0700275 </xs:restriction>
276</xs:simpleType>
277</xs:schema>