1#!/usr/bin/env python3.4 2# 3# Copyright 2016 - 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""" 17Sanity tests for voice tests in telephony 18""" 19from acts.controllers.anritsu_lib.md8475a import BtsBandwidth 20from acts.test_utils.tel.anritsu_utils import GSM_BAND_PCS1900 21from acts.test_utils.tel.anritsu_utils import GSM_BAND_GSM850 22from acts.test_utils.tel.anritsu_utils import LTE_BAND_2 23from acts.test_utils.tel.anritsu_utils import LTE_BAND_4 24from acts.test_utils.tel.anritsu_utils import LTE_BAND_12 25from acts.test_utils.tel.anritsu_utils import WCDMA_BAND_1 26from acts.test_utils.tel.anritsu_utils import WCDMA_BAND_2 27 28# Different Cell configurations 29# TMO bands 30lte_band4_ch2000_fr2115_pcid1_cell = { 31 'band': LTE_BAND_4, 32 'bandwidth': BtsBandwidth.LTE_BANDWIDTH_10MHz, 33 'mcc': '001', 34 'mnc': '01', 35 'tac': 11, 36 'cid': 1, 37 'pcid': 1, 38 'channel': 2000 39} 40 41lte_band4_ch2000_fr2115_pcid2_cell = { 42 'band': LTE_BAND_4, 43 'bandwidth': BtsBandwidth.LTE_BANDWIDTH_10MHz, 44 'mcc': '001', 45 'mnc': '01', 46 'tac': 12, 47 'cid': 2, 48 'pcid': 2, 49 'channel': 2000 50} 51 52lte_band4_ch2000_fr2115_pcid3_cell = { 53 'band': LTE_BAND_4, 54 'bandwidth': BtsBandwidth.LTE_BANDWIDTH_10MHz, 55 'mcc': '001', 56 'mnc': '01', 57 'tac': 13, 58 'cid': 3, 59 'pcid': 3, 60 'channel': 2000 61} 62 63lte_band4_ch2000_fr2115_pcid4_cell = { 64 'band': LTE_BAND_4, 65 'bandwidth': BtsBandwidth.LTE_BANDWIDTH_10MHz, 66 'mcc': '001', 67 'mnc': '01', 68 'tac': 14, 69 'cid': 4, 70 'pcid': 4, 71 'channel': 2000 72} 73 74lte_band4_ch2000_fr2115_pcid5_cell = { 75 'band': LTE_BAND_4, 76 'bandwidth': BtsBandwidth.LTE_BANDWIDTH_10MHz, 77 'mcc': '001', 78 'mnc': '01', 79 'tac': 15, 80 'cid': 5, 81 'pcid': 5, 82 'channel': 2000 83} 84 85lte_band4_ch2000_fr2115_pcid6_cell = { 86 'band': LTE_BAND_4, 87 'bandwidth': BtsBandwidth.LTE_BANDWIDTH_10MHz, 88 'mcc': '001', 89 'mnc': '01', 90 'tac': 16, 91 'cid': 6, 92 'pcid': 6, 93 'channel': 2000 94} 95 96lte_band4_ch2050_fr2120_pcid7_cell = { 97 'band': LTE_BAND_4, 98 'bandwidth': BtsBandwidth.LTE_BANDWIDTH_10MHz, 99 'mcc': '001', 100 'mnc': '01', 101 'tac': 17, 102 'cid': 7, 103 'pcid': 7, 104 'channel': 2050 105} 106 107lte_band4_ch2250_fr2140_pcid8_cell = { 108 'band': LTE_BAND_4, 109 'bandwidth': BtsBandwidth.LTE_BANDWIDTH_10MHz, 110 'mcc': '001', 111 'mnc': '01', 112 'tac': 18, 113 'cid': 8, 114 'pcid': 8, 115 'channel': 2250 116} 117 118lte_band2_ch900_fr1960_pcid9_cell = { 119 'band': LTE_BAND_2, 120 'bandwidth': BtsBandwidth.LTE_BANDWIDTH_10MHz, 121 'mcc': '001', 122 'mnc': '01', 123 'tac': 19, 124 'cid': 9, 125 'pcid': 9, 126 'channel': 900 127} 128 129lte_band12_ch5095_fr737_pcid10_cell = { 130 'band': LTE_BAND_12, 131 'bandwidth': BtsBandwidth.LTE_BANDWIDTH_10MHz, 132 'mcc': '001', 133 'mnc': '01', 134 'tac': 20, 135 'cid': 10, 136 'pcid': 10, 137 'channel': 5095 138} 139 140wcdma_band1_ch10700_fr2140_cid31_cell = { 141 'band': WCDMA_BAND_1, 142 'mcc': '001', 143 'mnc': '01', 144 'lac': 31, 145 'rac': 31, 146 'cid': 31, 147 'channel': 10700, 148 'psc': 31 149} 150 151wcdma_band1_ch10700_fr2140_cid32_cell = { 152 'band': WCDMA_BAND_1, 153 'mcc': '001', 154 'mnc': '01', 155 'lac': 32, 156 'rac': 32, 157 'cid': 32, 158 'channel': 10700, 159 'psc': 32 160} 161 162wcdma_band1_ch10700_fr2140_cid33_cell = { 163 'band': WCDMA_BAND_1, 164 'mcc': '001', 165 'mnc': '01', 166 'lac': 33, 167 'rac': 33, 168 'cid': 33, 169 'channel': 10700, 170 'psc': 33 171} 172 173wcdma_band1_ch10700_fr2140_cid34_cell = { 174 'band': WCDMA_BAND_1, 175 'mcc': '001', 176 'mnc': '01', 177 'lac': 34, 178 'rac': 34, 179 'cid': 34, 180 'channel': 10700, 181 'psc': 34 182} 183 184wcdma_band1_ch10700_fr2140_cid35_cell = { 185 'band': WCDMA_BAND_1, 186 'mcc': '001', 187 'mnc': '01', 188 'lac': 35, 189 'rac': 35, 190 'cid': 35, 191 'channel': 10700, 192 'psc': 35 193} 194 195wcdma_band1_ch10575_fr2115_cid36_cell = { 196 'band': WCDMA_BAND_1, 197 'mcc': '001', 198 'mnc': '01', 199 'lac': 36, 200 'rac': 36, 201 'cid': 36, 202 'channel': 10575, 203 'psc': 36 204} 205 206wcdma_band1_ch10800_fr2160_cid37_cell = { 207 'band': WCDMA_BAND_1, 208 'mcc': '001', 209 'mnc': '01', 210 'lac': 37, 211 'rac': 37, 212 'cid': 37, 213 'channel': 10800, 214 'psc': 37 215} 216 217wcdma_band2_ch9800_fr1960_cid38_cell = { 218 'band': WCDMA_BAND_2, 219 'mcc': '001', 220 'mnc': '01', 221 'lac': 38, 222 'rac': 38, 223 'cid': 38, 224 'channel': 9800, 225 'psc': 38 226} 227 228wcdma_band2_ch9900_fr1980_cid39_cell = { 229 'band': WCDMA_BAND_2, 230 'mcc': '001', 231 'mnc': '01', 232 'lac': 39, 233 'rac': 39, 234 'cid': 39, 235 'channel': 9900, 236 'psc': 39 237} 238 239gsm_band1900_ch512_fr1930_cid51_cell = { 240 'band': GSM_BAND_PCS1900, 241 'mcc': '001', 242 'mnc': '01', 243 'lac': 51, 244 'rac': 51, 245 'cid': 51, 246 'channel': 512, 247} 248 249gsm_band1900_ch512_fr1930_cid52_cell = { 250 'band': GSM_BAND_PCS1900, 251 'mcc': '001', 252 'mnc': '01', 253 'lac': 52, 254 'rac': 52, 255 'cid': 52, 256 'channel': 512, 257} 258 259gsm_band1900_ch512_fr1930_cid53_cell = { 260 'band': GSM_BAND_PCS1900, 261 'mcc': '001', 262 'mnc': '01', 263 'lac': 53, 264 'rac': 53, 265 'cid': 53, 266 'channel': 512, 267} 268 269gsm_band1900_ch512_fr1930_cid54_cell = { 270 'band': GSM_BAND_PCS1900, 271 'mcc': '001', 272 'mnc': '01', 273 'lac': 54, 274 'rac': 54, 275 'cid': 54, 276 'channel': 512, 277} 278 279gsm_band1900_ch512_fr1930_cid55_cell = { 280 'band': GSM_BAND_PCS1900, 281 'mcc': '001', 282 'mnc': '01', 283 'lac': 55, 284 'rac': 55, 285 'cid': 55, 286 'channel': 512, 287} 288 289gsm_band1900_ch640_fr1955_cid56_cell = { 290 'band': GSM_BAND_PCS1900, 291 'mcc': '001', 292 'mnc': '01', 293 'lac': 56, 294 'rac': 56, 295 'cid': 56, 296 'channel': 640, 297} 298 299gsm_band1900_ch750_fr1977_cid57_cell = { 300 'band': GSM_BAND_PCS1900, 301 'mcc': '001', 302 'mnc': '01', 303 'lac': 57, 304 'rac': 57, 305 'cid': 57, 306 'channel': 750, 307} 308 309gsm_band850_ch128_fr869_cid58_cell = { 310 'band': GSM_BAND_GSM850, 311 'mcc': '001', 312 'mnc': '01', 313 'lac': 58, 314 'rac': 58, 315 'cid': 58, 316 'channel': 128, 317} 318 319gsm_band850_ch251_fr893_cid59_cell = { 320 'band': GSM_BAND_GSM850, 321 'mcc': '001', 322 'mnc': '01', 323 'lac': 59, 324 'rac': 59, 325 'cid': 59, 326 'channel': 251, 327} 328