1#!/usr/bin/env python3 2# 3# Copyright 2016 - Google 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# TIMERS 19############################################### 20# Max time to wait for phone data/network connection state update 21MAX_WAIT_TIME_CONNECTION_STATE_UPDATE = 60 22 23# Max time to wait for network reselection 24MAX_WAIT_TIME_NW_SELECTION = 180 25 26# Max time to wait for call drop 27MAX_WAIT_TIME_CALL_DROP = 60 28 29# Wait time between state check retry 30WAIT_TIME_BETWEEN_STATE_CHECK = 5 31 32# Max wait time for state change 33MAX_WAIT_TIME_FOR_STATE_CHANGE = 60 34 35# Max time to wait after caller make a call and before 36# callee start ringing 37MAX_WAIT_TIME_CALLEE_RINGING = 90 38 39# country code list 40COUNTRY_CODE_LIST = [ 41 "+1", "+44", "+39", "+61", "+49", "+34", "+33", "+47", "+246", "+86", 42 "+850", "+81", "+886" 43] 44 45# For carriers with specific MMI to set up call forwarding mCallForwarding in 46# TelephonyRegistry cannot reflect current network configuration. 47NOT_CHECK_MCALLFORWARDING_OPERATOR_LIST = [ 48 "Far EasTone", 49] 50 51# default pin/password 52DEFAULT_DEVICE_PASSWORD = "1111" 53 54# Wait time after enterring puk code 55WAIT_TIME_SUPPLY_PUK_CODE = 30 56 57# Max time to wait after caller make a call and before 58# callee start ringing 59MAX_WAIT_TIME_ACCEPT_CALL_TO_OFFHOOK_EVENT = 30 60 61# Max time to wait for "onCallStatehangedIdle" event after reject or ignore 62# incoming call 63MAX_WAIT_TIME_CALL_IDLE_EVENT = 60 64 65# Max time to wait after initiating a call for telecom to report in-call 66MAX_WAIT_TIME_CALL_INITIATION = 90 67 68# Time to wait after change Mode Pref for Stress Test 69WAIT_TIME_AFTER_MODE_CHANGE = 60 70 71# Max time to wait for Carrier Config Version to Update in mins 72WAIT_TIME_FOR_CARRIERCONFIG_CHANGE = 20 73 74# Max time to wait for Emergency DB Version to Update in mins 75WAIT_TIME_FOR_ER_DB_CHANGE = 10 76 77# Max time to wait after toggle airplane mode and before 78# get expected event 79MAX_WAIT_TIME_AIRPLANEMODE_EVENT = 90 80 81# Max time to wait after device sent an SMS and before 82# get "onSmsSentSuccess" event 83MAX_WAIT_TIME_SMS_SENT_SUCCESS = 60 84 85# Max time to wait after device sent an SMS and before 86# get "onSmsSentSuccess" event in case of collision. 87MAX_WAIT_TIME_SMS_SENT_SUCCESS_IN_COLLISION = 60 88 89# Max time to wait after MT SMS was sent and before device 90# actually receive this MT SMS. 91MAX_WAIT_TIME_SMS_RECEIVE = 120 92 93# Max time to wait after MT MMS was sent and before device 94# actually receive this MT SMS. 95MAX_WAIT_TIME_MMS_RECEIVE = 300 96 97# Max time to wait after MT SMS was sent and before device 98# actually receive this MT SMS in case of collision. 99MAX_WAIT_TIME_SMS_RECEIVE_IN_COLLISION = 1200 100 101# Max time to wait for IMS registration 102MAX_WAIT_TIME_IMS_REGISTRATION = 120 103 104# TODO: b/26338156 MAX_WAIT_TIME_VOLTE_ENABLED and MAX_WAIT_TIME_WFC_ENABLED should only 105# be used for wait after IMS registration. 106 107# Max time to wait for VoLTE enabled flag to be True 108MAX_WAIT_TIME_VOLTE_ENABLED = MAX_WAIT_TIME_IMS_REGISTRATION + 60 109 110# Max time to wait for WFC enabled flag to be True 111MAX_WAIT_TIME_WFC_ENABLED = MAX_WAIT_TIME_IMS_REGISTRATION + 120 112 113# Max time to wait for WFC enabled flag to be False 114MAX_WAIT_TIME_WFC_DISABLED = 60 115 116# Max time to wait for WiFi Manager to Connect to an AP 117MAX_WAIT_TIME_WIFI_CONNECTION = 30 118 119# Max time to wait for Video Session Modify Messaging 120MAX_WAIT_TIME_VIDEO_SESSION_EVENT = 10 121 122# Max time to wait after a network connection for ConnectivityManager to 123# report a working user plane data connection 124MAX_WAIT_TIME_USER_PLANE_DATA = 20 125 126# Max time to wait for tethering entitlement check 127MAX_WAIT_TIME_TETHERING_ENTITLEMENT_CHECK = 60 128 129# Max time to wait for voice mail count report correct result. 130MAX_WAIT_TIME_VOICE_MAIL_COUNT = 90 131 132# Max time to wait for data SIM change 133MAX_WAIT_TIME_DATA_SUB_CHANGE = 150 134 135# Max time to wait for telecom Ringing status after receive ringing event 136MAX_WAIT_TIME_TELECOM_RINGING = 5 137 138# Max time to wait for phone get provisioned. 139MAX_WAIT_TIME_PROVISIONING = 300 140 141# Time to wait after call setup before declaring 142# that the call is actually successful 143WAIT_TIME_IN_CALL = 30 144 145# Time to wait after call setup before declaring 146# that the call is actually successful 147WAIT_TIME_IN_CALL_LONG = 60 148 149# (For IMS, e.g. VoLTE-VoLTE, WFC-WFC, VoLTE-WFC test only) 150# Time to wait after call setup before declaring 151# that the call is actually successful 152WAIT_TIME_IN_CALL_FOR_IMS = 30 153 154# Default total duration for a long call is 1 hour 155TOTAL_LONG_CALL_DURATION = 1 * 60 * 60 156 157# Time to wait after phone receive incoming call before phone reject this call. 158WAIT_TIME_REJECT_CALL = 2 159 160# Time to leave a voice message after callee reject the incoming call 161WAIT_TIME_LEAVE_VOICE_MAIL = 30 162 163# Time to wait after accept video call and before checking state 164WAIT_TIME_ACCEPT_VIDEO_CALL_TO_CHECK_STATE = 2 165 166# Time delay to ensure user actions are performed in 167# 'human' time rather than at the speed of the script 168WAIT_TIME_ANDROID_STATE_SETTLING = 1 169 170# Time to wait after registration to ensure the phone 171# has sufficient time to reconfigure based on new network 172WAIT_TIME_BETWEEN_REG_AND_CALL = 5 173 174# Wait time for data pdn to be up on CBRS 175WAIT_TIME_FOR_CBRS_DATA_SWITCH = 60 176 177# Time to wait for 1xrtt voice attach check 178# After DUT voice network type report 1xrtt (from unknown), it need to wait for 179# several seconds before the DUT can receive incoming call. 180WAIT_TIME_1XRTT_VOICE_ATTACH = 30 181 182# Time to wait for data status change during wifi tethering,. 183WAIT_TIME_DATA_STATUS_CHANGE_DURING_WIFI_TETHERING = 30 184 185# Time to wait for rssi calibration. 186# This is the delay between <WiFi Connected> and <Turn on Screen to get RSSI>. 187WAIT_TIME_WIFI_RSSI_CALIBRATION_WIFI_CONNECTED = 10 188# This is the delay between <Turn on Screen> and <Call API to get WiFi RSSI>. 189WAIT_TIME_WIFI_RSSI_CALIBRATION_SCREEN_ON = 2 190 191# Time to wait for each operation on voice mail box. 192WAIT_TIME_VOICE_MAIL_SERVER_RESPONSE = 10 193 194# Time to wait for radio to up and running after reboot 195WAIT_TIME_AFTER_REBOOT = 10 196 197# Time to wait for radio to up and running after force crash 198WAIT_TIME_AFTER_CRASH = 60 199 200# Time to wait for factory data reset 201WAIT_TIME_AFTER_FDR = 60 202 203# Time to wait for boot complete after reboot 204WAIT_TIME_FOR_BOOT_COMPLETE = 75 205 206# Time to wait for tethering test after reboot 207WAIT_TIME_TETHERING_AFTER_REBOOT = 10 208 209# Time to wait after changing data sub id 210WAIT_TIME_CHANGE_DATA_SUB_ID = 30 211 212# Time to wait after changing voice sub id 213WAIT_TIME_CHANGE_VOICE_SUB_ID = 5 214 215# Time to wait after changing message sub id 216WAIT_TIME_CHANGE_MESSAGE_SUB_ID = 5 217 218# Wait time for Data Stall to detect 219WAIT_TIME_FOR_DATA_STALL = 300 220 221# Wait time for Network Validation Failed detection 222WAIT_TIME_FOR_NW_VALID_FAIL = 300 223 224# Wait time for Data Stall to recover 225WAIT_TIME_FOR_DATA_STALL_RECOVERY = 360 226 227# Callbox Power level which will cause no service on device 228POWER_LEVEL_OUT_OF_SERVICE = -100 229 230# Callbox Power level which will ensure full service on device 231POWER_LEVEL_FULL_SERVICE = -20 232 233# set a fake time to test time recovering from network 234FAKE_DATE_TIME = "010203042019.05" 235FAKE_YEAR = "2019" 236WAIT_TIME_SYNC_DATE_TIME_FROM_NETWORK = 2 237 238# These are used in phone_number_formatter 239PHONE_NUMBER_STRING_FORMAT_7_DIGIT = 7 240PHONE_NUMBER_STRING_FORMAT_10_DIGIT = 10 241PHONE_NUMBER_STRING_FORMAT_11_DIGIT = 11 242PHONE_NUMBER_STRING_FORMAT_12_DIGIT = 12 243 244# MAX screen-on time during test (in unit of second) 245MAX_SCREEN_ON_TIME = 1800 246 247# In Voice Mail box, press this digit to delete one message. 248VOICEMAIL_DELETE_DIGIT = '7' 249 250# MAX number of saved voice mail in voice mail box. 251MAX_SAVED_VOICE_MAIL = 25 252 253# SIM1 slot index 254SIM1_SLOT_INDEX = 0 255 256# SIM2 slot index 257SIM2_SLOT_INDEX = 1 258 259# invalid Subscription ID 260INVALID_SUB_ID = -1 261 262# invalid SIM slot index 263INVALID_SIM_SLOT_INDEX = -1 264 265# WiFI RSSI is -127 if WiFi is not connected 266INVALID_WIFI_RSSI = -127 267 268# MAX and MIN value for attenuator settings 269ATTEN_MAX_VALUE = 95 270ATTEN_MIN_VALUE = 0 271 272MAX_RSSI_RESERVED_VALUE = 100 273MIN_RSSI_RESERVED_VALUE = -200 274 275# cellular weak RSSI value 276CELL_WEAK_RSSI_VALUE = -105 277# cellular strong RSSI value 278CELL_STRONG_RSSI_VALUE = -70 279# WiFi weak RSSI value 280WIFI_WEAK_RSSI_VALUE = -63 281 282# Emergency call number 283DEFAULT_EMERGENCY_CALL_NUMBER = "911" 284 285EMERGENCY_CALL_NUMBERS = [ 286 "08", "000", "110", "112", "118", "119", "911", "999", "*911", "#911" 287] 288 289AOSP_PREFIX = "aosp_" 290 291INCALL_UI_DISPLAY_FOREGROUND = "foreground" 292INCALL_UI_DISPLAY_BACKGROUND = "background" 293INCALL_UI_DISPLAY_DEFAULT = "default" 294 295NETWORK_CONNECTION_TYPE_WIFI = 'wifi' 296NETWORK_CONNECTION_TYPE_CELL = 'cell' 297NETWORK_CONNECTION_TYPE_MMS = 'mms' 298NETWORK_CONNECTION_TYPE_HIPRI = 'hipri' 299NETWORK_CONNECTION_TYPE_UNKNOWN = 'unknown' 300 301TETHERING_MODE_WIFI = 'wifi' 302 303# Tether interface types defined in ConnectivityManager 304TETHERING_INVALID = -1 305TETHERING_WIFI = 0 306TETHERING_USB = 1 307TETHERING_BLUETOOTH = 2 308 309# Constant for tethering test 310TETHERING_PASSWORD_HAS_ESCAPE = '"DQ=/{Yqq;M=(^_3HzRvhOiL8S%`]w&l<Qp8qH)bs<4E9v_q=HLr^)}w$blA0Kg' 311TETHERING_SPECIAL_SSID_LIST = [ 312 " !\"#$%&'()*+,-./0123456789:;<=>?", 313 "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_", 314 "`abcdefghijklmnopqrstuvwxyz{|}~", " a ", "!b!", "#c#", "$d$", 315 "%e%", "&f&", "'g'", "(h(", ")i)", "*j*", "+k+", "-l-", ".m.", 316 "/n/", "_", " !\"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}", 317 "\u0644\u062c\u0648\u062c", "\u8c37\u6b4c", "\uad6c\uae00" 318 "\u30b0\u30fc\u30eb", 319 "\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0443\u0439" 320 ] 321TETHERING_SPECIAL_PASSWORD_LIST = [ 322 " !\"#$%&'()*+,-./0123456789:;<=>?", 323 "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_", 324 "`abcdefghijklmnopqrstuvwxyz{|}~", 325 " !\"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}", "abcdefgh", 326 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!", 327 " a12345 ", "!b12345!", "#c12345#", "$d12345$", "%e12345%", 328 "&f12345&", "'g12345'", "(h12345(", ")i12345)", "*j12345*", 329 "+k12345+", "-l12345-", ".m12345.", "/n12345/" 330 ] 331 332NETWORK_SERVICE_VOICE = 'voice' 333NETWORK_SERVICE_DATA = 'data' 334 335CARRIER_VZW = 'vzw' 336CARRIER_ATT = 'att' 337CARRIER_TMO = 'tmo' 338CARRIER_SPT = 'spt' 339CARRIER_EEUK = 'eeuk' 340CARRIER_VFUK = 'vfuk' 341CARRIER_UNKNOWN = 'unknown' 342CARRIER_GMBH = 'gmbh' 343CARRIER_ITA = 'ita' 344CARRIER_ESP = 'esp' 345CARRIER_ORG = 'org' 346CARRIER_TEL = 'tel' 347CARRIER_TSA = 'tsa' 348CARRIER_SING = 'singtel' 349CARRIER_USCC = 'uscc' 350CARRIER_ROGERS = 'ROGERS' 351CARRIER_TELUS = 'tls' 352CARRIER_KOODO = 'kdo' 353CARRIER_VIDEOTRON = 'vtrn' 354CARRIER_BELL = 'bell' 355CARRIER_FRE = 'fre' 356CARRIER_FI = 'fi' 357CARRIER_NTT_DOCOMO = 'ntt_docomo' 358CARRIER_KDDI = 'kddi' 359CARRIER_RAKUTEN = 'rakuten' 360CARRIER_SBM = 'sbm' 361CARRIER_SKT = 'skt' 362CARRIER_KT = 'kt' 363CARRIER_LG_UPLUS = 'lg_uplus' 364 365RAT_FAMILY_CDMA = 'cdma' 366RAT_FAMILY_CDMA2000 = 'cdma2000' 367RAT_FAMILY_IDEN = 'iden' 368RAT_FAMILY_GSM = 'gsm' 369RAT_FAMILY_WCDMA = 'wcdma' 370RAT_FAMILY_UMTS = RAT_FAMILY_WCDMA 371RAT_FAMILY_WLAN = 'wlan' 372RAT_FAMILY_LTE = 'lte' 373RAT_FAMILY_NR = 'nr' 374RAT_FAMILY_TDSCDMA = 'tdscdma' 375RAT_FAMILY_UNKNOWN = 'unknown' 376 377CAPABILITY_PHONE = 'phone' 378CAPABILITY_VOLTE = 'volte' 379CAPABILITY_VT = 'vt' 380CAPABILITY_WFC = 'wfc' 381CAPABILITY_MSIM = 'msim' 382CAPABILITY_OMADM = 'omadm' 383CAPABILITY_WFC_MODE_CHANGE = 'wfc_mode_change' 384CAPABILITY_CONFERENCE = 'conference' 385CAPABILITY_VOLTE_PROVISIONING = 'volte_provisioning' 386CAPABILITY_VOLTE_OVERRIDE_WFC_PROVISIONING = 'volte_override_wfc_provisioning' 387CAPABILITY_HIDE_ENHANCED_4G_LTE_BOOL = 'hide_enhanced_4g_lte' 388 389# Carrier Config Versions 390VZW_CARRIER_CONFIG_VERSION = "29999999999.1" 391ATT_CARRIER_CONFIG_VERSION = "28888888888.1" 392 393# Constant for operation direction 394DIRECTION_MOBILE_ORIGINATED = "MO" 395DIRECTION_MOBILE_TERMINATED = "MT" 396 397# Constant for call teardown side 398CALL_TEARDOWN_PHONE = "PHONE" 399CALL_TEARDOWN_REMOTE = "REMOTE" 400 401WIFI_VERBOSE_LOGGING_ENABLED = 1 402WIFI_VERBOSE_LOGGING_DISABLED = 0 403 404# Constant Carrier ID 405GOOGLE_CBRS_CARRIER_ID = 2340 406GOOGLE_FI_CARRIER_ID = 1989 407 408# List of Chipset models 409CHIPSET_MODELS_LIST = ["sdm", "msm", "kon", "lit", "laha", "taro"] 410# SMS over wifi providers 411SMS_OVER_WIFI_PROVIDERS = ("vzw", "tmo", "fi", "rogers", "rjio", "eeuk", 412 "dtag") 413""" 414Begin shared constant define for both Python and Java 415""" 416 417# Constant for WiFi Calling WFC mode 418WFC_MODE_WIFI_ONLY = "WIFI_ONLY" 419WFC_MODE_CELLULAR_PREFERRED = "CELLULAR_PREFERRED" 420WFC_MODE_WIFI_PREFERRED = "WIFI_PREFERRED" 421WFC_MODE_DISABLED = "DISABLED" 422WFC_MODE_UNKNOWN = "UNKNOWN" 423 424# Constant for Video Telephony VT state 425VT_STATE_AUDIO_ONLY = "AUDIO_ONLY" 426VT_STATE_TX_ENABLED = "TX_ENABLED" 427VT_STATE_RX_ENABLED = "RX_ENABLED" 428VT_STATE_BIDIRECTIONAL = "BIDIRECTIONAL" 429VT_STATE_TX_PAUSED = "TX_PAUSED" 430VT_STATE_RX_PAUSED = "RX_PAUSED" 431VT_STATE_BIDIRECTIONAL_PAUSED = "BIDIRECTIONAL_PAUSED" 432VT_STATE_STATE_INVALID = "INVALID" 433 434# Constant for Video Telephony Video quality 435VT_VIDEO_QUALITY_DEFAULT = "DEFAULT" 436VT_VIDEO_QUALITY_UNKNOWN = "UNKNOWN" 437VT_VIDEO_QUALITY_HIGH = "HIGH" 438VT_VIDEO_QUALITY_MEDIUM = "MEDIUM" 439VT_VIDEO_QUALITY_LOW = "LOW" 440VT_VIDEO_QUALITY_INVALID = "INVALID" 441 442# Constant for Call State (for call object) 443CALL_STATE_ACTIVE = "ACTIVE" 444CALL_STATE_NEW = "NEW" 445CALL_STATE_DIALING = "DIALING" 446CALL_STATE_RINGING = "RINGING" 447CALL_STATE_HOLDING = "HOLDING" 448CALL_STATE_DISCONNECTED = "DISCONNECTED" 449CALL_STATE_PRE_DIAL_WAIT = "PRE_DIAL_WAIT" 450CALL_STATE_CONNECTING = "CONNECTING" 451CALL_STATE_DISCONNECTING = "DISCONNECTING" 452CALL_STATE_UNKNOWN = "UNKNOWN" 453CALL_STATE_INVALID = "INVALID" 454 455# Constant for PRECISE Call State (for call object) 456PRECISE_CALL_STATE_ACTIVE = "ACTIVE" 457PRECISE_CALL_STATE_ALERTING = "ALERTING" 458PRECISE_CALL_STATE_DIALING = "DIALING" 459PRECISE_CALL_STATE_INCOMING = "INCOMING" 460PRECISE_CALL_STATE_HOLDING = "HOLDING" 461PRECISE_CALL_STATE_DISCONNECTED = "DISCONNECTED" 462PRECISE_CALL_STATE_WAITING = "WAITING" 463PRECISE_CALL_STATE_DISCONNECTING = "DISCONNECTING" 464PRECISE_CALL_STATE_IDLE = "IDLE" 465PRECISE_CALL_STATE_UNKNOWN = "UNKNOWN" 466PRECISE_CALL_STATE_INVALID = "INVALID" 467 468# Constant for DC POWER STATE 469DC_POWER_STATE_LOW = "LOW" 470DC_POWER_STATE_HIGH = "HIGH" 471DC_POWER_STATE_MEDIUM = "MEDIUM" 472DC_POWER_STATE_UNKNOWN = "UNKNOWN" 473 474# Constant for Audio Route 475AUDIO_ROUTE_EARPIECE = "EARPIECE" 476AUDIO_ROUTE_BLUETOOTH = "BLUETOOTH" 477AUDIO_ROUTE_SPEAKER = "SPEAKER" 478AUDIO_ROUTE_WIRED_HEADSET = "WIRED_HEADSET" 479AUDIO_ROUTE_WIRED_OR_EARPIECE = "WIRED_OR_EARPIECE" 480 481# Constant for Call Capability 482CALL_CAPABILITY_HOLD = "HOLD" 483CALL_CAPABILITY_SUPPORT_HOLD = "SUPPORT_HOLD" 484CALL_CAPABILITY_MERGE_CONFERENCE = "MERGE_CONFERENCE" 485CALL_CAPABILITY_SWAP_CONFERENCE = "SWAP_CONFERENCE" 486CALL_CAPABILITY_UNUSED_1 = "UNUSED_1" 487CALL_CAPABILITY_RESPOND_VIA_TEXT = "RESPOND_VIA_TEXT" 488CALL_CAPABILITY_MUTE = "MUTE" 489CALL_CAPABILITY_MANAGE_CONFERENCE = "MANAGE_CONFERENCE" 490CALL_CAPABILITY_SUPPORTS_VT_LOCAL_RX = "SUPPORTS_VT_LOCAL_RX" 491CALL_CAPABILITY_SUPPORTS_VT_LOCAL_TX = "SUPPORTS_VT_LOCAL_TX" 492CALL_CAPABILITY_SUPPORTS_VT_LOCAL_BIDIRECTIONAL = "SUPPORTS_VT_LOCAL_BIDIRECTIONAL" 493CALL_CAPABILITY_SUPPORTS_VT_REMOTE_RX = "SUPPORTS_VT_REMOTE_RX" 494CALL_CAPABILITY_SUPPORTS_VT_REMOTE_TX = "SUPPORTS_VT_REMOTE_TX" 495CALL_CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL = "SUPPORTS_VT_REMOTE_BIDIRECTIONAL" 496CALL_CAPABILITY_SEPARATE_FROM_CONFERENCE = "SEPARATE_FROM_CONFERENCE" 497CALL_CAPABILITY_DISCONNECT_FROM_CONFERENCE = "DISCONNECT_FROM_CONFERENCE" 498CALL_CAPABILITY_SPEED_UP_MT_AUDIO = "SPEED_UP_MT_AUDIO" 499CALL_CAPABILITY_CAN_UPGRADE_TO_VIDEO = "CAN_UPGRADE_TO_VIDEO" 500CALL_CAPABILITY_CAN_PAUSE_VIDEO = "CAN_PAUSE_VIDEO" 501CALL_CAPABILITY_UNKOWN = "UNKOWN" 502 503# Constant for Call Property 504CALL_PROPERTY_HIGH_DEF_AUDIO = "HIGH_DEF_AUDIO" 505CALL_PROPERTY_CONFERENCE = "CONFERENCE" 506CALL_PROPERTY_GENERIC_CONFERENCE = "GENERIC_CONFERENCE" 507CALL_PROPERTY_WIFI = "WIFI" 508CALL_PROPERTY_EMERGENCY_CALLBACK_MODE = "EMERGENCY_CALLBACK_MODE" 509CALL_PROPERTY_UNKNOWN = "UNKNOWN" 510 511# Constant for Call Presentation 512CALL_PRESENTATION_ALLOWED = "ALLOWED" 513CALL_PRESENTATION_RESTRICTED = "RESTRICTED" 514CALL_PRESENTATION_PAYPHONE = "PAYPHONE" 515CALL_PRESENTATION_UNKNOWN = "UNKNOWN" 516 517# Constant for Network Generation 518GEN_2G = "2G" 519GEN_3G = "3G" 520GEN_4G = "4G" 521GEN_5G = "5G" 522GEN_UNKNOWN = "UNKNOWN" 523 524# Constant for Network RAT 525RAT_IWLAN = "IWLAN" 526RAT_NR = "NR" 527RAT_NR_SA = "NR_SA" 528RAT_LTE = "LTE" 529RAT_5G = "5G" 530RAT_4G = "4G" 531RAT_3G = "3G" 532RAT_2G = "2G" 533RAT_WCDMA = "WCDMA" 534RAT_UMTS = "UMTS" 535RAT_1XRTT = "1XRTT" 536RAT_EDGE = "EDGE" 537RAT_GPRS = "GPRS" 538RAT_HSDPA = "HSDPA" 539RAT_HSUPA = "HSUPA" 540RAT_CDMA = "CDMA" 541RAT_EVDO = "EVDO" 542RAT_EVDO_0 = "EVDO_0" 543RAT_EVDO_A = "EVDO_A" 544RAT_EVDO_B = "EVDO_B" 545RAT_IDEN = "IDEN" 546RAT_EHRPD = "EHRPD" 547RAT_HSPA = "HSPA" 548RAT_HSPAP = "HSPAP" 549RAT_GSM = "GSM" 550RAT_TD_SCDMA = "TD_SCDMA" 551RAT_GLOBAL = "GLOBAL" 552RAT_LTE_CA = "LTE_CA" # LTE Carrier Aggregation 553RAT_UNKNOWN = "UNKNOWN" 554 555# Constant for Phone Type 556PHONE_TYPE_GSM = "GSM" 557PHONE_TYPE_NONE = "NONE" 558PHONE_TYPE_CDMA = "CDMA" 559PHONE_TYPE_SIP = "SIP" 560 561# Constant for SIM Power State 562CARD_POWER_DOWN = 0 563CARD_POWER_UP = 1 564CARD_POWER_UP_PASS_THROUGH = 2 565 566# Constant for SIM State 567SIM_STATE_READY = "READY" 568SIM_STATE_UNKNOWN = "UNKNOWN" 569SIM_STATE_ABSENT = "ABSENT" 570SIM_STATE_PUK_REQUIRED = "PUK_REQUIRED" 571SIM_STATE_PIN_REQUIRED = "PIN_REQUIRED" 572SIM_STATE_NETWORK_LOCKED = "NETWORK_LOCKED" 573SIM_STATE_NOT_READY = "NOT_READY" 574SIM_STATE_PERM_DISABLED = "PERM_DISABLED" 575SIM_STATE_CARD_IO_ERROR = "CARD_IO_ERROR" 576SIM_STATE_LOADED = "LOADED" 577 578SINGLE_SIM_CONFIG = "ssss" 579MULTI_SIM_CONFIG = "dsds" 580 581# Constant for Data Connection State 582DATA_STATE_CONNECTED = "CONNECTED" 583DATA_STATE_DISCONNECTED = "DISCONNECTED" 584DATA_STATE_CONNECTING = "CONNECTING" 585DATA_STATE_SUSPENDED = "SUSPENDED" 586DATA_STATE_UNKNOWN = "UNKNOWN" 587 588# Constant for Data Roaming State 589DATA_ROAMING_ENABLE = 1 590DATA_ROAMING_DISABLE = 0 591 592# Constant for ConnectivityManager Data Connection 593TYPE_MOBILE = 0 594TYPE_WIFI = 1 595 596# Constant for Telephony Manager Call State 597TELEPHONY_STATE_RINGING = "RINGING" 598TELEPHONY_STATE_IDLE = "IDLE" 599TELEPHONY_STATE_OFFHOOK = "OFFHOOK" 600TELEPHONY_STATE_UNKNOWN = "UNKNOWN" 601 602# Constant for TTY Mode 603TTY_MODE_FULL = "FULL" 604TTY_MODE_HCO = "HCO" 605TTY_MODE_OFF = "OFF" 606TTY_MODE_VCO = "VCO" 607 608# Constant for Service State 609SERVICE_STATE_EMERGENCY_ONLY = "EMERGENCY_ONLY" 610SERVICE_STATE_IN_SERVICE = "IN_SERVICE" 611SERVICE_STATE_OUT_OF_SERVICE = "OUT_OF_SERVICE" 612SERVICE_STATE_POWER_OFF = "POWER_OFF" 613SERVICE_STATE_UNKNOWN = "UNKNOWN" 614 615# Service State Mapping 616SERVICE_STATE_MAPPING = { 617 "-1": SERVICE_STATE_UNKNOWN, 618 "0": SERVICE_STATE_IN_SERVICE, 619 "1": SERVICE_STATE_OUT_OF_SERVICE, 620 "2": SERVICE_STATE_EMERGENCY_ONLY, 621 "3": SERVICE_STATE_POWER_OFF 622} 623 624# Constant for VoLTE Hand-over Service State 625VOLTE_SERVICE_STATE_HANDOVER_STARTED = "STARTED" 626VOLTE_SERVICE_STATE_HANDOVER_COMPLETED = "COMPLETED" 627VOLTE_SERVICE_STATE_HANDOVER_FAILED = "FAILED" 628VOLTE_SERVICE_STATE_HANDOVER_CANCELED = "CANCELED" 629VOLTE_SERVICE_STATE_HANDOVER_UNKNOWN = "UNKNOWN" 630 631# Constant for precise call state state listen level 632PRECISE_CALL_STATE_LISTEN_LEVEL_FOREGROUND = "FOREGROUND" 633PRECISE_CALL_STATE_LISTEN_LEVEL_RINGING = "RINGING" 634PRECISE_CALL_STATE_LISTEN_LEVEL_BACKGROUND = "BACKGROUND" 635 636# Constants used to register or de-register for call callback events 637EVENT_CALL_STATE_CHANGED = "EVENT_STATE_CHANGED" 638EVENT_CALL_CHILDREN_CHANGED = "EVENT_CHILDREN_CHANGED" 639 640# Constants used to register or de-register for video call callback events 641EVENT_VIDEO_SESSION_MODIFY_REQUEST_RECEIVED = "EVENT_VIDEO_SESSION_MODIFY_REQUEST_RECEIVED" 642EVENT_VIDEO_SESSION_MODIFY_RESPONSE_RECEIVED = "EVENT_VIDEO_SESSION_MODIFY_RESPONSE_RECEIVED" 643EVENT_VIDEO_SESSION_EVENT = "EVENT_VIDEO_SESSION_EVENT" 644EVENT_VIDEO_PEER_DIMENSIONS_CHANGED = "EVENT_VIDEO_PEER_DIMENSIONS_CHANGED" 645EVENT_VIDEO_QUALITY_CHANGED = "EVENT_VIDEO_QUALITY_CHANGED" 646EVENT_VIDEO_DATA_USAGE_CHANGED = "EVENT_VIDEO_DATA_USAGE_CHANGED" 647EVENT_VIDEO_CAMERA_CAPABILITIES_CHANGED = "EVENT_VIDEO_CAMERA_CAPABILITIES_CHANGED" 648EVENT_VIDEO_INVALID = "EVENT_VIDEO_INVALID" 649 650# Constant for Video Call Session Event Name 651SESSION_EVENT_RX_PAUSE = "SESSION_EVENT_RX_PAUSE" 652SESSION_EVENT_RX_RESUME = "SESSION_EVENT_RX_RESUME" 653SESSION_EVENT_TX_START = "SESSION_EVENT_TX_START" 654SESSION_EVENT_TX_STOP = "SESSION_EVENT_TX_STOP" 655SESSION_EVENT_CAMERA_FAILURE = "SESSION_EVENT_CAMERA_FAILURE" 656SESSION_EVENT_CAMERA_READY = "SESSION_EVENT_CAMERA_READY" 657SESSION_EVENT_UNKNOWN = "SESSION_EVENT_UNKNOWN" 658 659NETWORK_MODE_WCDMA_PREF = "NETWORK_MODE_WCDMA_PREF" 660NETWORK_MODE_GSM_ONLY = "NETWORK_MODE_GSM_ONLY" 661NETWORK_MODE_WCDMA_ONLY = "NETWORK_MODE_WCDMA_ONLY" 662NETWORK_MODE_GSM_UMTS = "NETWORK_MODE_GSM_UMTS" 663NETWORK_MODE_CDMA = "NETWORK_MODE_CDMA" 664NETWORK_MODE_CDMA_NO_EVDO = "NETWORK_MODE_CDMA_NO_EVDO" 665NETWORK_MODE_EVDO_NO_CDMA = "NETWORK_MODE_EVDO_NO_CDMA" 666NETWORK_MODE_GLOBAL = "NETWORK_MODE_GLOBAL" 667NETWORK_MODE_LTE_CDMA_EVDO = "NETWORK_MODE_LTE_CDMA_EVDO" 668NETWORK_MODE_LTE_GSM_WCDMA = "NETWORK_MODE_LTE_GSM_WCDMA" 669NETWORK_MODE_LTE_CDMA_EVDO_GSM_WCDMA = "NETWORK_MODE_LTE_CDMA_EVDO_GSM_WCDMA" 670NETWORK_MODE_LTE_ONLY = "NETWORK_MODE_LTE_ONLY" 671NETWORK_MODE_LTE_WCDMA = "NETWORK_MODE_LTE_WCDMA" 672NETWORK_MODE_TDSCDMA_ONLY = "NETWORK_MODE_TDSCDMA_ONLY" 673NETWORK_MODE_TDSCDMA_WCDMA = "NETWORK_MODE_TDSCDMA_WCDMA" 674NETWORK_MODE_LTE_TDSCDMA = "NETWORK_MODE_LTE_TDSCDMA" 675NETWORK_MODE_TDSCDMA_GSM = "NETWORK_MODE_TDSCDMA_GSM" 676NETWORK_MODE_LTE_TDSCDMA_GSM = "NETWORK_MODE_LTE_TDSCDMA_GSM" 677NETWORK_MODE_TDSCDMA_GSM_WCDMA = "NETWORK_MODE_TDSCDMA_GSM_WCDMA" 678NETWORK_MODE_LTE_TDSCDMA_WCDMA = "NETWORK_MODE_LTE_TDSCDMA_WCDMA" 679NETWORK_MODE_LTE_TDSCDMA_GSM_WCDMA = "NETWORK_MODE_LTE_TDSCDMA_GSM_WCDMA" 680NETWORK_MODE_TDSCDMA_CDMA_EVDO_WCDMA = "NETWORK_MODE_TDSCDMA_CDMA_EVDO_WCDMA" 681NETWORK_MODE_LTE_TDSCDMA_CDMA_EVDO_GSM_WCDMA = "NETWORK_MODE_LTE_TDSCDMA_CDMA_EVDO_GSM_WCDMA" 682NETWORK_MODE_NR_LTE_GSM_WCDMA = "NETWORK_MODE_NR_LTE_GSM_WCDMA" 683NETWORK_MODE_NR_ONLY = "NETWORK_MODE_NR_ONLY" 684NETWORK_MODE_NR_LTE = "NETWORK_MODE_NR_LTE" 685NETWORK_MODE_NR_LTE_CDMA_EVDO = "NETWORK_MODE_NR_LTE_CDMA_EVDO" 686NETWORK_MODE_NR_LTE_CDMA_EVDO_GSM_WCDMA = "NETWORK_MODE_NR_LTE_CDMA_EVDO_GSM_WCDMA" 687NETWORK_MODE_NR_LTE_WCDMA = "NETWORK_MODE_NR_LTE_WCDMA" 688NETWORK_MODE_NR_LTE_TDSCDMA = "NETWORK_MODE_NR_LTE_TDSCDMA" 689NETWORK_MODE_NR_LTE_TDSCDMA_GSM = "NETWORK_MODE_NR_LTE_TDSCDMA_GSM" 690NETWORK_MODE_NR_LTE_TDSCDMA_WCDMA = "NETWORK_MODE_NR_LTE_TDSCDMA_WCDMA" 691NETWORK_MODE_NR_LTE_TDSCDMA_GSM_WCDMA = "NETWORK_MODE_NR_LTE_TDSCDMA_GSM_WCDMA" 692NETWORK_MODE_NR_LTE_TDSCDMA_CDMA_EVDO_GSM_WCDMA = "NETWORK_MODE_NR_LTE_TDSCDMA_CDMA_EVDO_GSM_WCDMA" 693 694# Constants for APP Package Name 695DIALER_PACKAGE_NAME = "com.google.android.dialer" 696MESSAGE_PACKAGE_NAME = "com.google.android.apps.messaging" 697YOUTUBE_PACKAGE_NAME = "com.google.android.youtube" 698SL4A_PACKAGE_NAME = "com.googlecode.android_scripting" 699 700# Constants for CellBroadcast module test 701CARRIER_TEST_CONF_XML_PATH = "/data/user_de/0/com.android.phone/files/" 702MAIN_ACTIVITY = "android.intent.action.MAIN" 703CBR_PACKAGE = "com.google.android.cellbroadcastreceiver" 704SYSUI_PACKAGE = "com.android.systemui" 705CBR_ACTIVITY = "com.android.cellbroadcastreceiver.CellBroadcastSettings" 706CBR_TEST_APK = "com.android.cellbroadcastreceiver.tests" 707MCC_MNC = "mccmnc" 708IMSI = "imsi" 709PLMN_ADB_PROPERTY = "gsm.sim.operator.numeric" 710WAIT_TIME_FOR_ALERTS_TO_POPULATE = 60 711WAIT_TIME_FOR_UI = 5 712SCROLL_DOWN = "input swipe 300 900 300 300" 713WAIT_TIME_FOR_ALERT_TO_RECEIVE = 15 714DEFAULT_SOUND_TIME = 16 715DEFAULT_VIBRATION_TIME = 10 716DEFAULT_OFFSET = 1 717EXIT_ALERT_LIST = ["Got it", "OK", "Hide", "TO CLOSE", "Yes"] 718CMD_DND_OFF = "cmd notification set_dnd off" 719CMD_DND_ON = "cmd notification set_dnd on" 720DUMPSYS_VIBRATION = "dumpsys vibrator_manager | grep -i com.google.android.cellbroadcastreceiver | tail -1" 721DEFAULT_ALERT_TYPE = "popup" 722EXPAND_NOTIFICATION_BAR = "cmd statusbar expand-notifications" 723COLLAPSE_NOTIFICATION_BAR = "cmd statusbar collapse" 724CLEAR_NOTIFICATION_BAR = "service call notification 1" 725 726# Countries/Carriers for Compliance Testing 727AUSTRALIA = "australia" 728BRAZIL = "brazil" 729CANADA = "canada" 730CHILE_ENTEL = "chile_entel" 731CHILE_TELEFONICA = "chile_telefonica" 732COLUMBIA = "columbia" 733ECUADOR_TELEFONICA = "ecuador_telefonica" 734ECUADOR_CLARO = "ecuador_claro" 735ELSALVADOR_TELEFONICA = "elsalvador_telefonica" 736ESTONIA = "estonia" 737FRANCE = "france" 738GREECE = "greece" 739GERMANY_TELEKOM = "germany_telekom" 740QATAR_VODAFONE = "qatar_vodafone" 741HONGKONG = "hongkong" 742ISRAEL = "israel" 743ITALY = "italy" 744JAPAN_KDDI = "japan_kddi" 745JAPAN_SOFTBANK = "japan_softbank" 746KOREA = "korea" 747LATVIA = "latvia" 748LITHUANIA = "lithuania" 749MEXICO_TELEFONICA = "mexico_telefonica" 750NETHERLANDS = "netherlands" 751NEWZEALAND = "newzealand" 752OMAN = "oman" 753PERU_ENTEL = "peru_entel" 754PERU_TELEFONICA = "peru_telefonica" 755PUERTORICO = "puertorico" 756ROMANIA = "romania" 757SAUDIARABIA = "saudiarabia" 758SOUTHAFRICA = "southafrica" 759TAIWAN = "taiwan" 760UAE = "uae" 761UK = "uk" 762US_ATT = "us_att" 763US_TMO = "us_tmo" 764US_VZW = "us_vzw" 765 766# Carrier Config Update 767CARRIER_ID_VERSION = "3" 768ER_DB_ID_VERSION = "99999" 769 770CARRIER_ID_VERSION_P = "5" 771WAIT_TIME_FOR_CARRIERID_CHANGE = 6 772CARRIER_ID_METADATA_URL = "am broadcast -a com.google.android.gms." \ 773 "phenotype.FLAG_OVERRIDE --es package 'com.google.android.configupdater'" \ 774 " --es user '\*' --esa flags 'CarrierIdentification__metadata_url' " \ 775 "--esa values 'https://www.gstatic.com/android/config_update/110618-" \ 776 "carrier-id-metadata.txt' --esa types 'string' com.google.android.gms" 777 778CARRIER_ID_METADATA_URL_P = "am broadcast -a com.google.android.gms." \ 779 "phenotype.FLAG_OVERRIDE --es package 'com.google.android.configupdater'" \ 780 " --es user '\*' --esa flags 'CarrierIdentification__metadata_url' " \ 781 "--esa values 'https://www.gstatic.com/android/telephony/carrierid/" \ 782 "030419-p-carrier-id-metadata.txt' --esa types 'string' com.google.android.gms" 783 784CARRIER_ID_CONTENT_URL = "am broadcast -a com.google.android.gms." \ 785 "phenotype.FLAG_OVERRIDE --es package 'com.google.android.configupdater'" \ 786 " --es user '\*' --esa flags 'CarrierIdentification__content_url' " \ 787 "--esa values 'https://www.gstatic.com/android/config_update/110618-" \ 788 "carrier-id.pb' --esa types 'string' com.google.android.gms" 789 790CARRIER_ID_CONTENT_URL_P = "am broadcast -a com.google.android.gms." \ 791 "phenotype.FLAG_OVERRIDE --es package 'com.google.android.configupdater'" \ 792 " --es user '\*' --esa flags 'CarrierIdentification__content_url' " \ 793 "--esa values 'https://www.gstatic.com/android/telephony/carrierid/" \ 794 "030419-p-carrier-id.pb' --esa types 'string' com.google.android.gms" 795 796# Constant for Messaging Event Name 797EventSmsDeliverSuccess = "SmsDeliverSuccess" 798EventSmsDeliverFailure = "SmsDeliverFailure" 799EventSmsSentSuccess = "SmsSentSuccess" 800EventSmsSentFailure = "SmsSentFailure" 801EventSmsReceived = "SmsReceived" 802EventMmsSentSuccess = "MmsSentSuccess" 803EventMmsSentFailure = "MmsSentFailure" 804EventMmsDownloaded = "MmsDownloaded" 805EventWapPushReceived = "WapPushReceived" 806EventDataSmsReceived = "DataSmsReceived" 807EventCmasReceived = "CmasReceived" 808EventEtwsReceived = "EtwsReceived" 809 810# Constants for Telecom Call Management Event Name (see InCallService.java). 811EventTelecomCallAdded = "TelecomCallAdded" 812EventTelecomCallRemoved = "TelecomCallRemoved" 813 814# Constant for Telecom Call Event Name (see Call.java) 815EventTelecomCallStateChanged = "TelecomCallStateChanged" 816EventTelecomCallParentChanged = "TelecomCallParentChanged" 817EventTelecomCallChildrenChanged = "TelecomCallChildrenChanged" 818EventTelecomCallDetailsChanged = "TelecomCallDetailsChanged" 819EventTelecomCallCannedTextResponsesLoaded = "TelecomCallCannedTextResponsesLoaded" 820EventTelecomCallPostDialWait = "TelecomCallPostDialWait" 821EventTelecomCallVideoCallChanged = "TelecomCallVideoCallChanged" 822EventTelecomCallDestroyed = "TelecomCallDestroyed" 823EventTelecomCallConferenceableCallsChanged = "TelecomCallConferenceableCallsChanged" 824 825# Constant for Video Call Event Name 826EventTelecomVideoCallSessionModifyRequestReceived = "TelecomVideoCallSessionModifyRequestReceived" 827EventTelecomVideoCallSessionModifyResponseReceived = "TelecomVideoCallSessionModifyResponseReceived" 828EventTelecomVideoCallSessionEvent = "TelecomVideoCallSessionEvent" 829EventTelecomVideoCallPeerDimensionsChanged = "TelecomVideoCallPeerDimensionsChanged" 830EventTelecomVideoCallVideoQualityChanged = "TelecomVideoCallVideoQualityChanged" 831EventTelecomVideoCallDataUsageChanged = "TelecomVideoCallDataUsageChanged" 832EventTelecomVideoCallCameraCapabilities = "TelecomVideoCallCameraCapabilities" 833 834# Constant for Other Event Name 835EventCallStateChanged = "CallStateChanged" 836EventPreciseStateChanged = "PreciseStateChanged" 837EventDataConnectionRealTimeInfoChanged = "DataConnectionRealTimeInfoChanged" 838EventDataConnectionStateChanged = "DataConnectionStateChanged" 839EventServiceStateChanged = "ServiceStateChanged" 840EventSignalStrengthChanged = "SignalStrengthChanged" 841EventVolteServiceStateChanged = "VolteServiceStateChanged" 842EventMessageWaitingIndicatorChanged = "MessageWaitingIndicatorChanged" 843EventConnectivityChanged = "ConnectivityChanged" 844EventActiveDataSubIdChanged = "ActiveDataSubIdChanged" 845EventDisplayInfoChanged = "DisplayInfoChanged" 846 847# Constant for Packet Keep Alive Call Back 848EventPacketKeepaliveCallback = "PacketKeepaliveCallback" 849PacketKeepaliveCallbackStarted = "Started" 850PacketKeepaliveCallbackStopped = "Stopped" 851PacketKeepaliveCallbackError = "Error" 852PacketKeepaliveCallbackInvalid = "Invalid" 853 854# Constant for Network Call Back 855EventNetworkCallback = "NetworkCallback" 856NetworkCallbackPreCheck = "PreCheck" 857NetworkCallbackAvailable = "Available" 858NetworkCallbackLosing = "Losing" 859NetworkCallbackLost = "Lost" 860NetworkCallbackUnavailable = "Unavailable" 861NetworkCallbackCapabilitiesChanged = "CapabilitiesChanged" 862NetworkCallbackSuspended = "Suspended" 863NetworkCallbackResumed = "Resumed" 864NetworkCallbackLinkPropertiesChanged = "LinkPropertiesChanged" 865NetworkCallbackInvalid = "Invalid" 866 867# Constant for Settings 868USE_SIM = 'Use SIM' 869MOBILE_DATA = 'Mobile data' 870 871class SignalStrengthContainer: 872 SIGNAL_STRENGTH_GSM = "gsmSignalStrength" 873 SIGNAL_STRENGTH_GSM_DBM = "gsmDbm" 874 SIGNAL_STRENGTH_GSM_LEVEL = "gsmLevel" 875 SIGNAL_STRENGTH_GSM_ASU_LEVEL = "gsmAsuLevel" 876 SIGNAL_STRENGTH_GSM_BIT_ERROR_RATE = "gsmBitErrorRate" 877 SIGNAL_STRENGTH_CDMA_DBM = "cdmaDbm" 878 SIGNAL_STRENGTH_CDMA_LEVEL = "cdmaLevel" 879 SIGNAL_STRENGTH_CDMA_ASU_LEVEL = "cdmaAsuLevel" 880 SIGNAL_STRENGTH_CDMA_ECIO = "cdmaEcio" 881 SIGNAL_STRENGTH_EVDO_DBM = "evdoDbm" 882 SIGNAL_STRENGTH_EVDO_ECIO = "evdoEcio" 883 SIGNAL_STRENGTH_LTE = "lteSignalStrength" 884 SIGNAL_STRENGTH_LTE_DBM = "lteDbm" 885 SIGNAL_STRENGTH_LTE_LEVEL = "lteLevel" 886 SIGNAL_STRENGTH_LTE_ASU_LEVEL = "lteAsuLevel" 887 SIGNAL_STRENGTH_DBM = "dbm" 888 SIGNAL_STRENGTH_LEVEL = "level" 889 SIGNAL_STRENGTH_ASU_LEVEL = "asuLevel" 890 891 892class MessageWaitingIndicatorContainer: 893 IS_MESSAGE_WAITING = "isMessageWaiting" 894 895 896class CallStateContainer: 897 INCOMING_NUMBER = "incomingNumber" 898 SUBSCRIPTION_ID = "subscriptionId" 899 CALL_STATE = "callState" 900 901class DisplayInfoContainer: 902 TIME = "time" 903 NETWORK = "network" 904 OVERRIDE = "override" 905 SUBSCRIPTION_ID = "subscriptionId" 906 907class OverrideNetworkContainer: 908 OVERRIDE_NETWORK_TYPE_NONE = "NONE" 909 OVERRIDE_NETWORK_TYPE_LTE_CA = "LTE_CA" 910 OVERRIDE_NETWORK_TYPE_LTE_ADVANCED_PRO = "LTE_ADVANCED_PRO" 911 OVERRIDE_NETWORK_TYPE_NR_NSA = "NR_NSA" 912 OVERRIDE_NETWORK_TYPE_NR_MMWAVE = "NR_MMWAVE" 913 914class PreciseCallStateContainer: 915 TYPE = "type" 916 CAUSE = "cause" 917 SUBSCRIPTION_ID = "subscriptionId" 918 PRECISE_CALL_STATE = "preciseCallState" 919 920 921class DataConnectionRealTimeInfoContainer: 922 TYPE = "type" 923 TIME = "time" 924 SUBSCRIPTION_ID = "subscriptionId" 925 DATA_CONNECTION_POWER_STATE = "dataConnectionPowerState" 926 927 928class DataConnectionStateContainer: 929 TYPE = "type" 930 DATA_NETWORK_TYPE = "dataNetworkType" 931 STATE_CODE = "stateCode" 932 SUBSCRIPTION_ID = "subscriptionId" 933 DATA_CONNECTION_STATE = "dataConnectionState" 934 935 936class ServiceStateContainer: 937 VOICE_REG_STATE = "voiceRegState" 938 VOICE_NETWORK_TYPE = "voiceNetworkType" 939 DATA_REG_STATE = "dataRegState" 940 DATA_NETWORK_TYPE = "dataNetworkType" 941 OPERATOR_NAME = "operatorName" 942 OPERATOR_ID = "operatorId" 943 IS_MANUAL_NW_SELECTION = "isManualNwSelection" 944 ROAMING = "roaming" 945 IS_EMERGENCY_ONLY = "isEmergencyOnly" 946 NETWORK_ID = "networkId" 947 SYSTEM_ID = "systemId" 948 SUBSCRIPTION_ID = "subscriptionId" 949 SERVICE_STATE = "serviceState" 950 951 952class PacketKeepaliveContainer: 953 ID = "id" 954 PACKET_KEEPALIVE_EVENT = "packetKeepaliveEvent" 955 956 957class NetworkCallbackContainer: 958 ID = "id" 959 NETWORK_CALLBACK_EVENT = "networkCallbackEvent" 960 MAX_MS_TO_LIVE = "maxMsToLive" 961 RSSI = "rssi" 962 963 964class CarrierConfigs: 965 NAME_STRING = "carrier_name_string" 966 SUPPORT_CONFERENCE_CALL_BOOL = "support_conference_call_bool" 967 VOLTE_AVAILABLE_BOOL = "carrier_volte_available_bool" 968 VOLTE_PROVISIONED_BOOL = "carrier_volte_provisioned_bool" 969 VOLTE_PROVISIONING_REQUIRED_BOOL = "carrier_volte_provisioning_required_bool" 970 VOLTE_OVERRIDE_WFC_BOOL = "carrier_volte_override_wfc_provisioning_bool" 971 VT_AVAILABLE_BOOL = "carrier_vt_available_bool" 972 ENHANCED_4G_LTE_ON_BY_DEFAULT_BOOL = "enhanced_4g_lte_on_by_default_bool" 973 HIDE_ENHANCED_4G_LTE_BOOL = "hide_enhanced_4g_lte_bool" 974 WFC_IMS_AVAILABLE_BOOL = "carrier_wfc_ims_available_bool" 975 WFC_SUPPORTS_WIFI_ONLY_BOOL = "carrier_wfc_supports_wifi_only_bool" 976 EDITABLE_ENHANCED_4G_LTE_BOOL = "editable_enhanced_4g_lte_bool" 977 EDITABLE_WFC_MODE_BOOL = "editable_wfc_mode_bool" 978 EDITABLE_WFC_ROAMING_MODE_BOOL = "editable_wfc_roaming_mode_bool" 979 DEFAULT_DATA_ROAMING_ENABLED_BOOL = "carrier_default_data_roaming_enabled_bool" 980 DEFAULT_WFC_IMS_ROAMING_ENABLED_BOOL = "carrier_default_wfc_ims_roaming_enabled_bool" 981 DEFAULT_WFC_IMS_ENABLED_BOOL = "carrier_default_wfc_ims_enabled_bool" 982 DEFAULT_WFC_IMS_MODE_INT = "carrier_default_wfc_ims_mode_int" 983 DEFAULT_WFC_IMS_ROAMING_ENABLED_BOOL = "carrier_default_wfc_ims_roaming_enabled_bool" 984 DEFAULT_WFC_IMS_ROAMING_MODE_INT = "carrier_default_wfc_ims_roaming_mode_int" 985 986 987""" 988End shared constant define for both Python and Java 989""" 990