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> 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 <!-- Module lastUpdateMillis for the active ART APEX from `/apex/apex-info-list.xml`. --> 42 <xs:attribute name="lastUpdateMillis" type="xs:long" use="required" /> 43 </xs:complexType> 44 45 <!-- Components of the `DEX2OATBOOTCLASSPATH`. --> 46 <xs:complexType name="dex2oatBootClasspath"> 47 <xs:sequence> 48 <xs:element name="component" type="t:component" /> 49 </xs:sequence> 50 </xs:complexType> 51 52 <!-- Components of the `SYSTEMSERVERCLASSPATH`. --> 53 <xs:complexType name="systemServerClasspath"> 54 <xs:sequence> 55 <xs:element name="component" type="t:component" /> 56 </xs:sequence> 57 </xs:complexType> 58 59 <xs:complexType name="component"> 60 <!-- File path of component. --> 61 <xs:attribute name="file" type="xs:string" use="required" /> 62 <!-- Size of component when cache information is generated. --> 63 <xs:attribute name="size" type="xs:unsignedLong" use="required" /> 64 <!-- DEX file checksums within the component. Multidex files have multiple checksums. --> 65 <xs:attribute name="checksums" type="xs:string" use="required" /> 66 </xs:complexType> 67 68</xs:schema> 69