blob: a0c00af00f845d9c22dc3e011829f5ad3458cf4f [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>
28 <xs:element name="artModuleInfo" minOccurs="1" maxOccurs="1" type="t:artModuleInfo" />
29 <xs:element name="dex2oatBootClasspath" type="t:dex2oatBootClasspath" />
30 <xs:element name="systemServerClasspath" type="t:systemServerClasspath" />
31 </xs:sequence>
32 </xs:complexType>
33 </xs:element>
34
35 <!-- Data type representing the provenance of the AOT artifacts in the cache. -->
36 <xs:complexType name="artModuleInfo">
37 <!-- Module versionCode for the active ART APEX from `/apex/apex-info-list.xml`. -->
38 <xs:attribute name="versionCode" type="xs:long" use="required" />
39 <!-- Module versionName for the active ART APEX from `/apex/apex-info-list.xml`. -->
40 <xs:attribute name="versionName" type="xs:string" use="required" />
41 </xs:complexType>
42
43 <!-- Components of the `DEX2OATBOOTCLASSPATH`. -->
44 <xs:complexType name="dex2oatBootClasspath">
45 <xs:sequence>
46 <xs:element name="component" type="t:component" />
47 </xs:sequence>
48 </xs:complexType>
49
50 <!-- Components of the `SYSTEMSERVERCLASSPATH`. -->
51 <xs:complexType name="systemServerClasspath">
52 <xs:sequence>
53 <xs:element name="component" type="t:component" />
54 </xs:sequence>
55 </xs:complexType>
56
57 <xs:complexType name="component">
58 <!-- File path of component. -->
59 <xs:attribute name="file" type="xs:string" use="required" />
60 <!-- Size of component when cache information is generated. -->
61 <xs:attribute name="size" type="xs:unsignedLong" use="required" />
62 <!-- DEX file checksums within the component. Multidex files have multiple checksums. -->
63 <xs:attribute name="checksums" type="xs:string" use="required" />
64 </xs:complexType>
65
66</xs:schema>