Orion Hodson | 947a850 | 2021-03-08 15:40:09 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | ~ Copyright (C) 2021 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 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" |
| 18 | version="2.0" |
| 19 | elementFormDefault="qualified" |
| 20 | attributeFormDefault="unqualified" |
| 21 | targetNamespace="http://schemas.android.com/art/apex-cache-info/v1_0" |
| 22 | xmlns:t="http://schemas.android.com/art/apex-cache-info/v1_0" > |
| 23 | <!-- Data type holding information on the AOT artifact cache in |
| 24 | `/data/misc/apexdata/com.android.art/dalvik-cache` --> |
| 25 | <xs:element name="cacheInfo"> |
| 26 | <xs:complexType> |
| 27 | <xs:sequence> |
Jiakai Zhang | 7de49d8 | 2021-07-14 11:09:49 +0800 | [diff] [blame] | 28 | <xs:element name="artModuleInfo" minOccurs="1" maxOccurs="1" type="t:moduleInfo" /> |
| 29 | <xs:element name="moduleInfoList" minOccurs="1" maxOccurs="1" type="t:moduleInfoList" /> |
| 30 | <xs:element name="bootClasspath" minOccurs="1" maxOccurs="1" type="t:classpath" /> |
| 31 | <xs:element name="dex2oatBootClasspath" minOccurs="1" maxOccurs="1" type="t:classpath" /> |
Jiakai Zhang | 9b7ddf6 | 2021-11-01 11:36:52 +0000 | [diff] [blame^] | 32 | <xs:element name="systemServerComponents" minOccurs="1" maxOccurs="1" type="t:systemServerComponents" /> |
Orion Hodson | 947a850 | 2021-03-08 15:40:09 +0000 | [diff] [blame] | 33 | </xs:sequence> |
| 34 | </xs:complexType> |
| 35 | </xs:element> |
| 36 | |
Jiakai Zhang | 7de49d8 | 2021-07-14 11:09:49 +0800 | [diff] [blame] | 37 | <!-- List of modules. --> |
| 38 | <xs:complexType name="moduleInfoList"> |
| 39 | <xs:sequence> |
| 40 | <xs:element name="moduleInfo" type="t:moduleInfo" /> |
| 41 | </xs:sequence> |
| 42 | </xs:complexType> |
| 43 | |
Orion Hodson | 947a850 | 2021-03-08 15:40:09 +0000 | [diff] [blame] | 44 | <!-- Data type representing the provenance of the AOT artifacts in the cache. --> |
Jiakai Zhang | 7de49d8 | 2021-07-14 11:09:49 +0800 | [diff] [blame] | 45 | <xs:complexType name="moduleInfo"> |
| 46 | <!-- Module name for the active APEX from `/apex/apex-info-list.xml`. --> |
| 47 | <xs:attribute name="name" type="xs:string" use="required" /> |
| 48 | <!-- Module versionCode for the active APEX from `/apex/apex-info-list.xml`. --> |
Orion Hodson | 947a850 | 2021-03-08 15:40:09 +0000 | [diff] [blame] | 49 | <xs:attribute name="versionCode" type="xs:long" use="required" /> |
Jiakai Zhang | 7de49d8 | 2021-07-14 11:09:49 +0800 | [diff] [blame] | 50 | <!-- Module versionName for the active APEX from `/apex/apex-info-list.xml`. --> |
Orion Hodson | 947a850 | 2021-03-08 15:40:09 +0000 | [diff] [blame] | 51 | <xs:attribute name="versionName" type="xs:string" use="required" /> |
Jiakai Zhang | 7de49d8 | 2021-07-14 11:09:49 +0800 | [diff] [blame] | 52 | <!-- Module lastUpdateMillis for the active APEX from `/apex/apex-info-list.xml`. --> |
Orion Hodson | 79f874d | 2021-07-07 08:28:31 +0100 | [diff] [blame] | 53 | <xs:attribute name="lastUpdateMillis" type="xs:long" use="required" /> |
Orion Hodson | 947a850 | 2021-03-08 15:40:09 +0000 | [diff] [blame] | 54 | </xs:complexType> |
| 55 | |
Jiakai Zhang | 7de49d8 | 2021-07-14 11:09:49 +0800 | [diff] [blame] | 56 | <!-- Components of a classpath. --> |
| 57 | <xs:complexType name="classpath"> |
Orion Hodson | 947a850 | 2021-03-08 15:40:09 +0000 | [diff] [blame] | 58 | <xs:sequence> |
| 59 | <xs:element name="component" type="t:component" /> |
| 60 | </xs:sequence> |
| 61 | </xs:complexType> |
| 62 | |
| 63 | <xs:complexType name="component"> |
| 64 | <!-- File path of component. --> |
| 65 | <xs:attribute name="file" type="xs:string" use="required" /> |
| 66 | <!-- Size of component when cache information is generated. --> |
| 67 | <xs:attribute name="size" type="xs:unsignedLong" use="required" /> |
| 68 | <!-- DEX file checksums within the component. Multidex files have multiple checksums. --> |
| 69 | <xs:attribute name="checksums" type="xs:string" use="required" /> |
| 70 | </xs:complexType> |
| 71 | |
Jiakai Zhang | 9b7ddf6 | 2021-11-01 11:36:52 +0000 | [diff] [blame^] | 72 | <xs:complexType name="systemServerComponents"> |
| 73 | <xs:sequence> |
| 74 | <xs:element name="component" type="t:systemServerComponent" /> |
| 75 | </xs:sequence> |
| 76 | </xs:complexType> |
| 77 | |
| 78 | <xs:complexType name="systemServerComponent"> |
| 79 | <xs:complexContent> |
| 80 | <xs:extension base="component"> |
| 81 | <!-- True if the component is in SYSTEMSERVERCLASSPATH. Otherwise, the component is a |
| 82 | standalone one. --> |
| 83 | <xs:attribute name="isInClasspath" type="xs:boolean" use="required" /> |
| 84 | </xs:extension> |
| 85 | </xs:complexContent> |
| 86 | </xs:complexType> |
| 87 | |
Orion Hodson | 947a850 | 2021-03-08 15:40:09 +0000 | [diff] [blame] | 88 | </xs:schema> |