Home | History | Annotate | Download | only in report
      1 <?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"
     19            targetNamespace="http://compatibility.android.com/cts_result/1.13"
     20            xmlns="http://compatibility.android.com/cts_result/1.13"
     21            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>
     42         <xs:attribute name="screen_size" type="xs:string"/>
     43         <xs:attribute name="resolution" type="xs:string"/>
     44         <xs:attribute name="screen_density" type="xs:decimal"/>
     45         <xs:attribute name="screen_density_bucket" type="xs:string"/>
     46       </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"/>
     62         <xs:attribute name="build_manufacturer" type="xs:string"/>
     63         <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"/>
     76         <xs:attribute name="openGlEsVersion" type="xs:string"/>
     77         <xs:attribute name="partitions" type="xs:string"/>
     78         <xs:attribute name="build_abi" type="xs:string"/>
     79         <xs:attribute name="build_abi2" type="xs:string"/>
     80       </xs:complexType>
     81     </xs:element>
     82     <xs:element name="FeatureInfo" type="featureInfoType"/>
     83     <xs:element name="ProcessInfo" type="processInfoType"/>
     84     <xs:element name="SystemLibrariesInfo" type="systemLibrariesInfoType"/>
     85     <xs:element name="OpenGLCompressedTextureFormatsInfo" type="openGLCompressedTextureFormatsInfoType"/>
     86   </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 
    121 <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 
    144 <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 
    154 <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 
    164 <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"/>
    169   <xs:attribute name="omitted" type="xs:integer"/>
    170 </xs:complexType>
    171 
    172 <xs:complexType name="testPackageType">
    173   <xs:sequence>
    174     <xs:element name="TestSuite" type="testSuiteType" minOccurs="0" maxOccurs="unbounded" />
    175   </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"/>
    179   <xs:attribute name="signatureCheck" type="xs:boolean" />
    180 </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"/>
    221     <xs:enumeration value="omitted"/>
    222   </xs:restriction>
    223 </xs:simpleType>
    224 </xs:schema>
    225