1<?xml version="1.0" encoding="UTF-8"?> 2<!-- 3 Copyright (C) 2024 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 18<!-- 19 This defines the format of the XML file used to define how displays are arranged 20 in topologies. 21 It is parsed in com/android/server/display/PersistentTopologyStore.java 22 More information on display topology can be found in DisplayTopology.java 23--> 24<xs:schema version="2.0" 25 elementFormDefault="qualified" 26 xmlns:xs="http://www.w3.org/2001/XMLSchema"> 27 <xs:simpleType name="position"> 28 <xs:restriction base="xs:string"> 29 <xs:enumeration value="left"/> 30 <xs:enumeration value="top"/> 31 <xs:enumeration value="right"/> 32 <xs:enumeration value="bottom"/> 33 </xs:restriction> 34 </xs:simpleType> 35 <xs:complexType name="children"> 36 <xs:sequence> 37 <xs:element type="display" name="display" maxOccurs="unbounded" minOccurs="0"/> 38 </xs:sequence> 39 </xs:complexType> 40 <xs:complexType name="display"> 41 <xs:sequence> 42 <xs:element type="position" name="position" /> 43 <xs:element type="xs:float" name="offset"/> 44 <xs:element type="children" name="children" /> 45 </xs:sequence> 46 <xs:attribute type="xs:string" name="id" use="required"/> 47 <xs:attribute type="xs:boolean" name="primary"/> 48 </xs:complexType> 49 <xs:complexType name="topology"> 50 <xs:sequence> 51 <xs:element type="display" name="display"/> 52 </xs:sequence> 53 <xs:attribute type="xs:string" name="id" use="required"/> 54 <xs:attribute type="xs:int" name="order" use="required"/> 55 <xs:attribute type="xs:boolean" name="immutable"/> 56 </xs:complexType> 57 <xs:element name="displayTopologyState"> 58 <xs:complexType> 59 <xs:sequence> 60 <xs:element type="topology" name="topology" maxOccurs="1000" minOccurs="0"/> 61 </xs:sequence> 62 <xs:attribute type="xs:int" name="version" use="required"/> 63 </xs:complexType> 64 </xs:element> 65</xs:schema> 66