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