1<?xml version="1.0" encoding="UTF-8"?> 2<!-- Copyright (C) 2020 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" 17 version="1.0"> 18 19 <xsd:element name="table"> 20 <xsd:complexType> 21 <xsd:sequence> 22 <xsd:element ref="entry" minOccurs="1" maxOccurs="unbounded"/> 23 </xsd:sequence> 24 </xsd:complexType> 25 </xsd:element> 26 27 <xsd:element name="entry"> 28 <xsd:complexType> 29 <xsd:sequence> 30 <xsd:element name="rat" type="ratType"/> 31 <xsd:element name="band" type="xsd:int"/> 32 <xsd:element name="powerCapDbm" type="xsd:int" minOccurs="0"/> 33 <xsd:choice> 34 <xsd:element ref="params"/> 35 <xsd:element ref="override"/> 36 </xsd:choice> 37 </xsd:sequence> 38 </xsd:complexType> 39 </xsd:element> 40 41 <xsd:simpleType name="ratType"> 42 <xsd:restriction base="xsd:string"> 43 <xsd:enumeration value="LTE"/> 44 <xsd:enumeration value="NR"/> 45 </xsd:restriction> 46 </xsd:simpleType> 47 48 <!-- Define coex algorithm parameters --> 49 50 <xsd:element name="params"> 51 <xsd:complexType> 52 <xsd:sequence> 53 <xsd:element ref="neighborThresholds" minOccurs="0"/> 54 <xsd:element name="harmonicParams2g" type="harmonicParams" minOccurs="0"/> 55 <xsd:element name="harmonicParams5g" type="harmonicParams" minOccurs="0"/> 56 <xsd:element name="intermodParams2g" type="intermodParams" minOccurs="0"/> 57 <xsd:element name="intermodParams5g" type="intermodParams" minOccurs="0"/> 58 <xsd:element ref="defaultChannels" minOccurs="0"/> 59 </xsd:sequence> 60 </xsd:complexType> 61 </xsd:element> 62 63 <xsd:element name="neighborThresholds"> 64 <xsd:complexType> 65 <xsd:sequence> 66 <xsd:element name="wifiVictimMhz" type="xsd:int" minOccurs="0"/> 67 <xsd:element name="cellVictimMhz" type="xsd:int" minOccurs="0"/> 68 </xsd:sequence> 69 </xsd:complexType> 70 </xsd:element> 71 72 <xsd:complexType name="harmonicParams"> 73 <xsd:sequence> 74 <xsd:element name="N" type="xsd:int"/> 75 <xsd:element name="overlap" type="xsd:int"/> 76 </xsd:sequence> 77 </xsd:complexType> 78 79 <xsd:complexType name="intermodParams"> 80 <xsd:sequence> 81 <xsd:element name="N" type="xsd:int"/> 82 <xsd:element name="M" type="xsd:int"/> 83 <xsd:element name="overlap" type="xsd:int"/> 84 </xsd:sequence> 85 </xsd:complexType> 86 87 <xsd:element name="defaultChannels"> 88 <xsd:complexType> 89 <xsd:sequence> 90 <xsd:element name="default2g" type="xsd:int" minOccurs="0"/> 91 <xsd:element name="default5g" type="xsd:int" minOccurs="0"/> 92 </xsd:sequence> 93 </xsd:complexType> 94 </xsd:element> 95 96 <!-- Define algorithm override lists --> 97 98 <xsd:element name="override"> 99 <xsd:complexType> 100 <xsd:sequence> 101 <xsd:element ref="override2g" minOccurs="0"/> 102 <xsd:element ref="override5g" minOccurs="0"/> 103 </xsd:sequence> 104 </xsd:complexType> 105 </xsd:element> 106 107 <xsd:element name="override2g"> 108 <xsd:complexType> 109 <xsd:sequence> 110 <xsd:element name="category" type="overrideCategory2g" minOccurs="0" maxOccurs="unbounded"/> 111 <xsd:element name="channel" type="xsd:int" minOccurs="0" maxOccurs="unbounded"/> 112 </xsd:sequence> 113 </xsd:complexType> 114 </xsd:element> 115 116 <xsd:element name="override5g"> 117 <xsd:complexType> 118 <xsd:sequence> 119 <xsd:element name="category" type="overrideCategory5g" minOccurs="0" maxOccurs="unbounded"/> 120 <xsd:element name="channel" type="xsd:int" minOccurs="0" maxOccurs="unbounded"/> 121 </xsd:sequence> 122 </xsd:complexType> 123 </xsd:element> 124 125 <xsd:simpleType name="overrideCategory2g"> 126 <xsd:restriction base="xsd:string"> 127 <xsd:enumeration value="all"/> 128 </xsd:restriction> 129 </xsd:simpleType> 130 131 <xsd:simpleType name="overrideCategory5g"> 132 <xsd:restriction base="xsd:string"> 133 <xsd:enumeration value="all"/> 134 <xsd:enumeration value="20Mhz"/> 135 <xsd:enumeration value="40Mhz"/> 136 <xsd:enumeration value="80Mhz"/> 137 <xsd:enumeration value="160Mhz"/> 138 </xsd:restriction> 139 </xsd:simpleType> 140 141</xsd:schema> 142