blob: 5c7f30576741ae5808dabde6ab03776208828422 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (C) 2020 The Android Open Source Project
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<!-- This defines the format of the XML file generated by
~ com.android.compat.annotation.ChangeIdProcessor annotation processor (from
~ tools/platform-compat), and is parsed in com/android/server/compat/CompatConfig.java.
-->
<xs:schema version="2.0"
elementFormDefault="qualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="displayConfiguration">
<xs:complexType>
<xs:sequence>
<xs:element type="nitsMap" name="screenBrightnessMap"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- Type definitions -->
<xs:complexType name="nitsMap">
<xs:sequence>
<xs:element name="point" type="point" maxOccurs="unbounded" minOccurs="2"/>
<xs:element name="highBrightnessStart" minOccurs="0" type="nonNegativeDecimal"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="point">
<xs:sequence>
<xs:element type="nonNegativeDecimal" name="value"/>
<xs:element type="nonNegativeDecimal" name="nits"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="nonNegativeDecimal">
<xs:restriction base="xs:decimal">
<xs:minInclusive value="0.0"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>