blob: 3aa94a5b5ae8924b915c76e07623c813f154ef27 [file] [log] [blame]
Orion Hodson947a8502021-03-08 15:40:09 +00001<?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 Zhang7de49d82021-07-14 11:09:49 +080028 <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 Zhang9b7ddf62021-11-01 11:36:52 +000032 <xs:element name="systemServerComponents" minOccurs="1" maxOccurs="1" type="t:systemServerComponents" />
Orion Hodson947a8502021-03-08 15:40:09 +000033 </xs:sequence>
34 </xs:complexType>
35 </xs:element>
36
Jiakai Zhang7de49d82021-07-14 11:09:49 +080037 <!-- 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 Hodson947a8502021-03-08 15:40:09 +000044 <!-- Data type representing the provenance of the AOT artifacts in the cache. -->
Jiakai Zhang7de49d82021-07-14 11:09:49 +080045 <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 Hodson947a8502021-03-08 15:40:09 +000049 <xs:attribute name="versionCode" type="xs:long" use="required" />
Jiakai Zhang7de49d82021-07-14 11:09:49 +080050 <!-- Module versionName for the active APEX from `/apex/apex-info-list.xml`. -->
Orion Hodson947a8502021-03-08 15:40:09 +000051 <xs:attribute name="versionName" type="xs:string" use="required" />
Jiakai Zhang7de49d82021-07-14 11:09:49 +080052 <!-- Module lastUpdateMillis for the active APEX from `/apex/apex-info-list.xml`. -->
Orion Hodson79f874d2021-07-07 08:28:31 +010053 <xs:attribute name="lastUpdateMillis" type="xs:long" use="required" />
Orion Hodson947a8502021-03-08 15:40:09 +000054 </xs:complexType>
55
Jiakai Zhang7de49d82021-07-14 11:09:49 +080056 <!-- Components of a classpath. -->
57 <xs:complexType name="classpath">
Orion Hodson947a8502021-03-08 15:40:09 +000058 <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 Zhang9b7ddf62021-11-01 11:36:52 +000072 <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 Hodson947a8502021-03-08 15:40:09 +000088</xs:schema>