blob: 5e471d5d988ad7b9fcc89811571e8c2af9505c50 [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"
Brian Muramatsudf9378a2012-01-19 16:09:14 -080019 targetNamespace="http://compatibility.android.com/cts_result/1.13"
20 xmlns="http://compatibility.android.com/cts_result/1.13"
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"/>
35 </xs:complexType>
36</xs:element>
37
38<xs:complexType name="deviceInfoType">
39 <xs:sequence>
40 <xs:element name="Screen">
41 <xs:complexType>
Brian Muramatsue6b12dc2010-11-08 14:56:40 -080042 <xs:attribute name="screen_size" type="xs:string"/>
Phil Dubach1c571182009-05-12 11:41:38 -070043 <xs:attribute name="resolution" type="xs:string"/>
Brian Muramatsue6b12dc2010-11-08 14:56:40 -080044 <xs:attribute name="screen_density" type="xs:decimal"/>
45 <xs:attribute name="screen_density_bucket" type="xs:string"/>
Phil Dubach1c571182009-05-12 11:41:38 -070046 </xs:complexType>
47 </xs:element>
48 <xs:element name="PhoneSubInfo">
49 <xs:complexType>
50 <xs:attribute name="subscriberId" type="xs:string"/>
51 </xs:complexType>
52 </xs:element>
53 <xs:element name="BuildInfo">
54 <xs:complexType>
55 <xs:attribute name="Xdpi" type="xs:decimal"/>
56 <xs:attribute name="Ydpi" type="xs:decimal"/>
57 <xs:attribute name="androidPlatformVersion" type="xs:integer"/>
58 <xs:attribute name="buildID" type="xs:string"/>
59 <xs:attribute name="buildName" type="xs:string"/>
60 <xs:attribute name="buildVersion" type="xs:string"/>
61 <xs:attribute name="build_board" type="xs:string"/>
Brian Muramatsud6445ae2010-10-27 13:31:28 -070062 <xs:attribute name="build_manufacturer" type="xs:string"/>
Phil Dubach1c571182009-05-12 11:41:38 -070063 <xs:attribute name="build_brand" type="xs:string"/>
64 <xs:attribute name="build_device" type="xs:string"/>
65 <xs:attribute name="build_fingerprint" type="xs:string"/>
66 <xs:attribute name="build_model" type="xs:string"/>
67 <xs:attribute name="build_type" type="xs:string"/>
68 <xs:attribute name="deviceID" type="xs:string"/>
69 <xs:attribute name="imei" type="xs:integer"/>
70 <xs:attribute name="imsi" type="xs:integer"/>
71 <xs:attribute name="keypad" type="xs:string"/>
72 <xs:attribute name="locales" type="xs:string"/>
73 <xs:attribute name="navigation" type="xs:string"/>
74 <xs:attribute name="network" type="xs:string"/>
75 <xs:attribute name="touch" type="xs:string"/>
Brett Chabot3f6c6fc2010-10-07 11:38:34 -070076 <xs:attribute name="openGlEsVersion" type="xs:string"/>
Brian Muramatsu570acf72011-03-10 17:21:07 -080077 <xs:attribute name="partitions" type="xs:string"/>
Brett Chabot3f6c6fc2010-10-07 11:38:34 -070078 <xs:attribute name="build_abi" type="xs:string"/>
79 <xs:attribute name="build_abi2" type="xs:string"/>
Phil Dubach1c571182009-05-12 11:41:38 -070080 </xs:complexType>
81 </xs:element>
Brett Chabot21344402010-10-07 18:38:10 -070082 <xs:element name="FeatureInfo" type="featureInfoType"/>
83 <xs:element name="ProcessInfo" type="processInfoType"/>
Keun young Parkabed8862011-12-09 10:57:33 -080084 <xs:element name="SystemLibrariesInfo" type="systemLibrariesInfoType"/>
Keun young Park88e5d1f2011-12-14 14:01:01 -080085 <xs:element name="OpenGLCompressedTextureFormatsInfo" type="openGLCompressedTextureFormatsInfoType"/>
Phil Dubach1c571182009-05-12 11:41:38 -070086 </xs:sequence>
87</xs:complexType>
88
89<xs:complexType name="hostInfoType">
90 <xs:sequence>
91 <xs:element name="Os">
92 <xs:complexType>
93 <xs:attribute name="arch" type="xs:string"/>
94 <xs:attribute name="name" type="xs:string"/>
95 <xs:attribute name="version" type="xs:string"/>
96 </xs:complexType>
97 </xs:element>
98 <xs:element name="Java">
99 <xs:complexType>
100 <xs:attribute name="name" type="xs:string"/>
101 <xs:attribute name="version" type="xs:string"/>
102 </xs:complexType>
103 </xs:element>
104 <xs:element name="Cts">
105 <xs:complexType>
106 <xs:sequence>
107 <xs:element name="IntValue" minOccurs="0" maxOccurs="unbounded">
108 <xs:complexType>
109 <xs:attribute name="name" type="xs:string"/>
110 <xs:attribute name="value" type="xs:integer"/>
111 </xs:complexType>
112 </xs:element>
113 </xs:sequence>
114 <xs:attribute name="version" type="xs:string"/>
115 </xs:complexType>
116 </xs:element>
117 </xs:sequence>
118 <xs:attribute name="name" type="xs:string"/>
119</xs:complexType>
120
Brett Chabot3f6c6fc2010-10-07 11:38:34 -0700121<xs:complexType name="featureInfoType">
122 <xs:sequence>
123 <xs:element name="Feature" minOccurs="0" maxOccurs="unbounded">
124 <xs:complexType>
125 <xs:attribute name="name" type="xs:string" />
126 <xs:attribute name="type" type="xs:string" />
127 <xs:attribute name="available" type="xs:string" />
128 </xs:complexType>
129 </xs:element>
130 </xs:sequence>
131</xs:complexType>
132
133<xs:complexType name="processInfoType">
134 <xs:sequence>
135 <xs:element name="Process" minOccurs="0" maxOccurs="unbounded">
136 <xs:complexType>
137 <xs:attribute name="name" type="xs:string" />
138 <xs:attribute name="uid" type="xs:integer" />
139 </xs:complexType>
140 </xs:element>
141 </xs:sequence>
142</xs:complexType>
143
Keun young Parkabed8862011-12-09 10:57:33 -0800144<xs:complexType name="systemLibrariesInfoType">
145 <xs:sequence>
146 <xs:element name="Library" minOccurs="0" maxOccurs="unbounded">
147 <xs:complexType>
148 <xs:attribute name="name" type="xs:string" />
149 </xs:complexType>
150 </xs:element>
151 </xs:sequence>
152</xs:complexType>
153
Keun young Park88e5d1f2011-12-14 14:01:01 -0800154<xs:complexType name="openGLCompressedTextureFormatsInfoType">
155 <xs:sequence>
156 <xs:element name="TextureFormat" minOccurs="0" maxOccurs="unbounded">
157 <xs:complexType>
158 <xs:attribute name="name" type="xs:string" />
159 </xs:complexType>
160 </xs:element>
161 </xs:sequence>
162</xs:complexType>
163
Phil Dubach1c571182009-05-12 11:41:38 -0700164<xs:complexType name="summaryType">
165 <xs:attribute name="failed" type="xs:integer"/>
166 <xs:attribute name="notExecuted" type="xs:integer"/>
167 <xs:attribute name="pass" type="xs:integer"/>
168 <xs:attribute name="timeout" type="xs:integer"/>
Brett Chabot3f6c6fc2010-10-07 11:38:34 -0700169 <xs:attribute name="omitted" type="xs:integer"/>
Phil Dubach1c571182009-05-12 11:41:38 -0700170</xs:complexType>
171
172<xs:complexType name="testPackageType">
173 <xs:sequence>
Brett Chabot2543c352011-02-01 09:24:29 -0800174 <xs:element name="TestSuite" type="testSuiteType" minOccurs="0" maxOccurs="unbounded" />
Phil Dubach1c571182009-05-12 11:41:38 -0700175 </xs:sequence>
176 <xs:attribute name="appPackageName" type="xs:string"/>
177 <xs:attribute name="digest" type="xs:hexBinary"/>
178 <xs:attribute name="name" type="xs:string" use="required"/>
Brett Chabot2543c352011-02-01 09:24:29 -0800179 <xs:attribute name="signatureCheck" type="xs:boolean" />
Phil Dubach1c571182009-05-12 11:41:38 -0700180</xs:complexType>
181
182<xs:complexType name="testSuiteType">
183 <xs:sequence>
184 <xs:element name="TestCase" type="testCaseType" minOccurs="0" maxOccurs="unbounded"/>
185 <xs:element name="TestSuite" type="testSuiteType" minOccurs="0" maxOccurs="unbounded"/>
186 </xs:sequence>
187 <xs:attribute name="name" type="xs:string" use="required"/>
188</xs:complexType>
189
190<xs:complexType name="testCaseType">
191 <xs:sequence>
192 <xs:element name="Test" type="testType" minOccurs="0" maxOccurs="unbounded"/>
193 </xs:sequence>
194 <xs:attribute name="name" type="xs:string" use="required"/>
195 <xs:attribute name="priority" type="xs:string"/>
196</xs:complexType>
197
198<xs:complexType name="testType">
199 <xs:sequence>
200 <xs:element name="FailedScene" minOccurs="0" maxOccurs="1">
201 <xs:complexType>
202 <xs:sequence>
203 <xs:element name="StackTrace" type="xs:string" minOccurs="0" maxOccurs="1"/>
204 </xs:sequence>
205 <xs:attribute name="message" type="xs:string"/>
206 </xs:complexType>
207 </xs:element>
208 </xs:sequence>
209 <xs:attribute name="name" type="xs:string" use="required"/>
210 <xs:attribute name="result" type="resultType" use="required"/>
211 <xs:attribute name="starttime" type="xs:string"/>
212 <xs:attribute name="endtime" type="xs:string"/>
213</xs:complexType>
214
215<xs:simpleType name="resultType">
216 <xs:restriction base="xs:string">
217 <xs:enumeration value="pass"/>
218 <xs:enumeration value="fail"/>
219 <xs:enumeration value="timeout"/>
220 <xs:enumeration value="notExecuted"/>
Brett Chabot3f6c6fc2010-10-07 11:38:34 -0700221 <xs:enumeration value="omitted"/>
Phil Dubach1c571182009-05-12 11:41:38 -0700222 </xs:restriction>
223</xs:simpleType>
224</xs:schema>