xref: /aosp_15_r20/prebuilts/devtools/repository/sdk-stats-1.xsd (revision 4bfccde5c7e9ea06f821db40ef0af54f6695c320)
1*4bfccde5SXin Li<?xml version="1.0" encoding="UTF-8"?>
2*4bfccde5SXin Li<!--
3*4bfccde5SXin Li * Copyright (C) 2012 The Android Open Source Project
4*4bfccde5SXin Li *
5*4bfccde5SXin Li * Licensed under the Apache License, Version 2.0 (the "License");
6*4bfccde5SXin Li * you may not use this file except in compliance with the License.
7*4bfccde5SXin Li * You may obtain a copy of the License at
8*4bfccde5SXin Li *
9*4bfccde5SXin Li *      http://www.apache.org/licenses/LICENSE-2.0
10*4bfccde5SXin Li *
11*4bfccde5SXin Li * Unless required by applicable law or agreed to in writing, software
12*4bfccde5SXin Li * distributed under the License is distributed on an "AS IS" BASIS,
13*4bfccde5SXin Li * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14*4bfccde5SXin Li * See the License for the specific language governing permissions and
15*4bfccde5SXin Li * limitations under the License.
16*4bfccde5SXin Li-->
17*4bfccde5SXin Li<xsd:schema
18*4bfccde5SXin Li    targetNamespace="http://schemas.android.com/sdk/android/stats/1"
19*4bfccde5SXin Li    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
20*4bfccde5SXin Li    xmlns:ast="http://schemas.android.com/sdk/android/stats/1"
21*4bfccde5SXin Li    elementFormDefault="qualified"
22*4bfccde5SXin Li    attributeFormDefault="unqualified"
23*4bfccde5SXin Li    version="1">
24*4bfccde5SXin Li
25*4bfccde5SXin Li    <!--
26*4bfccde5SXin Li        A simple list of platforms provided by the SDK Manager and some
27*4bfccde5SXin Li        statistics on them, namely the market share percentage for that
28*4bfccde5SXin Li        platform.
29*4bfccde5SXin Li        This can be used by the SDK Manager or the ADT New Project Wizard
30*4bfccde5SXin Li        to give users an idea of the relative install base of platforms.
31*4bfccde5SXin Li
32*4bfccde5SXin Li        Scope, Caveat & Limitation:
33*4bfccde5SXin Li        The "share percentage" corresponds to the Platform Versions table
34*4bfccde5SXin Li        from the SDK Dashboard as seen at
35*4bfccde5SXin Li        http://developer.android.com/resources/dashboard/platform-versions.html
36*4bfccde5SXin Li        However the data is not automatically generated and there is NO
37*4bfccde5SXin Li        freshness implied.  The values may or may not be up-to-date and it is
38*4bfccde5SXin Li        most likely they will only get refreshed when there's a significant
39*4bfccde5SXin Li        change that affects the usage of the SDK tools.
40*4bfccde5SXin Li
41*4bfccde5SXin Li        =>  The data is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
42*4bfccde5SXin Li        OR CONDITIONS OF ANY KIND, either express or implied.
43*4bfccde5SXin Li    -->
44*4bfccde5SXin Li
45*4bfccde5SXin Li    <xsd:element name="sdk-stats" type="ast:platformsListType" />
46*4bfccde5SXin Li
47*4bfccde5SXin Li    <xsd:complexType name="platformsListType">
48*4bfccde5SXin Li        <xsd:annotation>
49*4bfccde5SXin Li            <xsd:documentation>
50*4bfccde5SXin Li                A simple list of platform stats.
51*4bfccde5SXin Li            </xsd:documentation>
52*4bfccde5SXin Li        </xsd:annotation>
53*4bfccde5SXin Li        <xsd:choice minOccurs="0" maxOccurs="unbounded">
54*4bfccde5SXin Li            <xsd:element name="platform" type="ast:platformType" />
55*4bfccde5SXin Li        </xsd:choice>
56*4bfccde5SXin Li    </xsd:complexType>
57*4bfccde5SXin Li
58*4bfccde5SXin Li
59*4bfccde5SXin Li    <!-- The definition of stats for a platform. -->
60*4bfccde5SXin Li
61*4bfccde5SXin Li    <xsd:complexType name="platformType">
62*4bfccde5SXin Li        <xsd:annotation>
63*4bfccde5SXin Li            <xsd:documentation>Stats information for a given Android platform.
64*4bfccde5SXin Li                The api-level acts as a key, and it is epxected there should only
65*4bfccde5SXin Li                be one platform listed with the same API-level.
66*4bfccde5SXin Li            </xsd:documentation>
67*4bfccde5SXin Li        </xsd:annotation>
68*4bfccde5SXin Li        <xsd:all>
69*4bfccde5SXin Li            <!-- The Android API Level for the platform. An int > 0. -->
70*4bfccde5SXin Li            <xsd:element name="api-level" type="xsd:positiveInteger"  />
71*4bfccde5SXin Li
72*4bfccde5SXin Li            <!-- The official codename for this platform, for example "Cupcake". -->
73*4bfccde5SXin Li            <xsd:element name="codename"  type="xsd:normalizedString" />
74*4bfccde5SXin Li
75*4bfccde5SXin Li            <!-- The official version name of this platform, for example "Android 1.5". -->
76*4bfccde5SXin Li            <xsd:element name="version"   type="xsd:normalizedString" />
77*4bfccde5SXin Li
78*4bfccde5SXin Li            <!-- An approximate share percentage of this platform. -->
79*4bfccde5SXin Li            <xsd:element name="share" type="ast:percent" />
80*4bfccde5SXin Li        </xsd:all>
81*4bfccde5SXin Li    </xsd:complexType>
82*4bfccde5SXin Li
83*4bfccde5SXin Li
84*4bfccde5SXin Li    <!-- A decimal percentage, between 0.0 and 100.0% -->
85*4bfccde5SXin Li
86*4bfccde5SXin Li    <xsd:simpleType name="percent" id="percent">
87*4bfccde5SXin Li        <xsd:annotation>
88*4bfccde5SXin Li            <xsd:documentation>A decimal percentage, between 0.0 and 100.0%.</xsd:documentation>
89*4bfccde5SXin Li        </xsd:annotation>
90*4bfccde5SXin Li        <xsd:restriction base="xsd:decimal">
91*4bfccde5SXin Li            <xsd:minInclusive value="0"/>
92*4bfccde5SXin Li            <xsd:maxInclusive value="100"/>
93*4bfccde5SXin Li        </xsd:restriction>
94*4bfccde5SXin Li    </xsd:simpleType>
95*4bfccde5SXin Li
96*4bfccde5SXin Li</xsd:schema>
97