1#!/usr/bin/env python3.4 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" 43] 44 45# default pin/password 46DEFAULT_DEVICE_PASSWORD = "1111" 47 48# Wait time after enterring puk code 49WAIT_TIME_SUPPLY_PUK_CODE = 30 50 51# Max time to wait after caller make a call and before 52# callee start ringing 53MAX_WAIT_TIME_ACCEPT_CALL_TO_OFFHOOK_EVENT = 30 54 55# Max time to wait for "onCallStatehangedIdle" event after reject or ignore 56# incoming call 57MAX_WAIT_TIME_CALL_IDLE_EVENT = 60 58 59# Max time to wait after initiating a call for telecom to report in-call 60MAX_WAIT_TIME_CALL_INITIATION = 90 61 62# Time to wait after change Mode Pref for Stress Test 63WAIT_TIME_AFTER_MODE_CHANGE = 60 64 65# Max time to wait after toggle airplane mode and before 66# get expected event 67MAX_WAIT_TIME_AIRPLANEMODE_EVENT = 90 68 69# Max time to wait after device sent an SMS and before 70# get "onSmsSentSuccess" event 71MAX_WAIT_TIME_SMS_SENT_SUCCESS = 60 72 73# Max time to wait after MT SMS was sent and before device 74# actually receive this MT SMS. 75MAX_WAIT_TIME_SMS_RECEIVE = 120 76 77# Max time to wait for IMS registration 78MAX_WAIT_TIME_IMS_REGISTRATION = 120 79 80# TODO: b/26338156 MAX_WAIT_TIME_VOLTE_ENABLED and MAX_WAIT_TIME_WFC_ENABLED should only 81# be used for wait after IMS registration. 82 83# Max time to wait for VoLTE enabled flag to be True 84MAX_WAIT_TIME_VOLTE_ENABLED = MAX_WAIT_TIME_IMS_REGISTRATION + 60 85 86# Max time to wait for WFC enabled flag to be True 87MAX_WAIT_TIME_WFC_ENABLED = MAX_WAIT_TIME_IMS_REGISTRATION + 120 88 89# Max time to wait for WFC enabled flag to be False 90MAX_WAIT_TIME_WFC_DISABLED = 60 91 92# Max time to wait for WiFi Manager to Connect to an AP 93MAX_WAIT_TIME_WIFI_CONNECTION = 30 94 95# Max time to wait for Video Session Modify Messaging 96MAX_WAIT_TIME_VIDEO_SESSION_EVENT = 10 97 98# Max time to wait after a network connection for ConnectivityManager to 99# report a working user plane data connection 100MAX_WAIT_TIME_USER_PLANE_DATA = 20 101 102# Max time to wait for tethering entitlement check 103MAX_WAIT_TIME_TETHERING_ENTITLEMENT_CHECK = 60 104 105# Max time to wait for voice mail count report correct result. 106MAX_WAIT_TIME_VOICE_MAIL_COUNT = 90 107 108# Max time to wait for data SIM change 109MAX_WAIT_TIME_DATA_SUB_CHANGE = 150 110 111# Max time to wait for telecom Ringing status after receive ringing event 112MAX_WAIT_TIME_TELECOM_RINGING = 5 113 114# Max time to wait for phone get provisioned. 115MAX_WAIT_TIME_PROVISIONING = 300 116 117# Time to wait after call setup before declaring 118# that the call is actually successful 119WAIT_TIME_IN_CALL = 15 120 121# (For IMS, e.g. VoLTE-VoLTE, WFC-WFC, VoLTE-WFC test only) 122# Time to wait after call setup before declaring 123# that the call is actually successful 124WAIT_TIME_IN_CALL_FOR_IMS = 30 125 126# Time to wait after phone receive incoming call before phone reject this call. 127WAIT_TIME_REJECT_CALL = 2 128 129# Time to leave a voice message after callee reject the incoming call 130WAIT_TIME_LEAVE_VOICE_MAIL = 30 131 132# Time to wait after accept video call and before checking state 133WAIT_TIME_ACCEPT_VIDEO_CALL_TO_CHECK_STATE = 2 134 135# Time delay to ensure user actions are performed in 136# 'human' time rather than at the speed of the script 137WAIT_TIME_ANDROID_STATE_SETTLING = 1 138 139# Time to wait after registration to ensure the phone 140# has sufficient time to reconfigure based on new network 141WAIT_TIME_BETWEEN_REG_AND_CALL = 5 142 143# Time to wait for 1xrtt voice attach check 144# After DUT voice network type report 1xrtt (from unknown), it need to wait for 145# several seconds before the DUT can receive incoming call. 146WAIT_TIME_1XRTT_VOICE_ATTACH = 30 147 148# Time to wait for data status change during wifi tethering,. 149WAIT_TIME_DATA_STATUS_CHANGE_DURING_WIFI_TETHERING = 30 150 151# Time to wait for rssi calibration. 152# This is the delay between <WiFi Connected> and <Turn on Screen to get RSSI>. 153WAIT_TIME_WIFI_RSSI_CALIBRATION_WIFI_CONNECTED = 10 154# This is the delay between <Turn on Screen> and <Call API to get WiFi RSSI>. 155WAIT_TIME_WIFI_RSSI_CALIBRATION_SCREEN_ON = 2 156 157# Time to wait for each operation on voice mail box. 158WAIT_TIME_VOICE_MAIL_SERVER_RESPONSE = 10 159 160# Time to wait for radio to up and running after reboot 161WAIT_TIME_AFTER_REBOOT = 10 162 163# Time to wait for radio to up and running after force crash 164WAIT_TIME_AFTER_CRASH = 30 165 166# Time to wait for tethering test after reboot 167WAIT_TIME_TETHERING_AFTER_REBOOT = 10 168 169# Time to wait after changing data sub id 170WAIT_TIME_CHANGE_DATA_SUB_ID = 30 171 172# These are used in phone_number_formatter 173PHONE_NUMBER_STRING_FORMAT_7_DIGIT = 7 174PHONE_NUMBER_STRING_FORMAT_10_DIGIT = 10 175PHONE_NUMBER_STRING_FORMAT_11_DIGIT = 11 176PHONE_NUMBER_STRING_FORMAT_12_DIGIT = 12 177 178# MAX screen-on time during test (in unit of second) 179MAX_SCREEN_ON_TIME = 1800 180 181# In Voice Mail box, press this digit to delete one message. 182VOICEMAIL_DELETE_DIGIT = '7' 183 184# MAX number of saved voice mail in voice mail box. 185MAX_SAVED_VOICE_MAIL = 25 186 187# SIM1 slot index 188SIM1_SLOT_INDEX = 0 189 190# SIM2 slot index 191SIM2_SLOT_INDEX = 1 192 193# invalid Subscription ID 194INVALID_SUB_ID = -1 195 196# invalid SIM slot index 197INVALID_SIM_SLOT_INDEX = -1 198 199# WiFI RSSI is -127 if WiFi is not connected 200INVALID_WIFI_RSSI = -127 201 202# MAX and MIN value for attenuator settings 203ATTEN_MAX_VALUE = 95 204ATTEN_MIN_VALUE = 0 205 206MAX_RSSI_RESERVED_VALUE = 100 207MIN_RSSI_RESERVED_VALUE = -200 208 209# cellular weak RSSI value 210CELL_WEAK_RSSI_VALUE = -105 211# cellular strong RSSI value 212CELL_STRONG_RSSI_VALUE = -70 213# WiFi weak RSSI value 214WIFI_WEAK_RSSI_VALUE = -63 215 216# Emergency call number 217DEFAULT_EMERGENCY_CALL_NUMBER = "911" 218 219EMERGENCY_CALL_NUMBERS = [ 220 "08", "000", "110", "112", "118", "119", "911", "999", "*911", "#911" 221] 222 223AOSP_PREFIX = "aosp_" 224 225INCALL_UI_DISPLAY_FOREGROUND = "foreground" 226INCALL_UI_DISPLAY_BACKGROUND = "background" 227INCALL_UI_DISPLAY_DEFAULT = "default" 228 229NETWORK_CONNECTION_TYPE_WIFI = 'wifi' 230NETWORK_CONNECTION_TYPE_CELL = 'cell' 231NETWORK_CONNECTION_TYPE_MMS = 'mms' 232NETWORK_CONNECTION_TYPE_HIPRI = 'hipri' 233NETWORK_CONNECTION_TYPE_UNKNOWN = 'unknown' 234 235TETHERING_MODE_WIFI = 'wifi' 236 237# Tether interface types defined in ConnectivityManager 238TETHERING_INVALID = -1 239TETHERING_WIFI = 0 240TETHERING_USB = 1 241TETHERING_BLUETOOTH = 2 242 243NETWORK_SERVICE_VOICE = 'voice' 244NETWORK_SERVICE_DATA = 'data' 245 246CARRIER_VZW = 'vzw' 247CARRIER_ATT = 'att' 248CARRIER_TMO = 'tmo' 249CARRIER_SPT = 'spt' 250CARRIER_EEUK = 'eeuk' 251CARRIER_VFUK = 'vfuk' 252CARRIER_UNKNOWN = 'unknown' 253CARRIER_GMBH = 'gmbh' 254CARRIER_ITA = 'ita' 255CARRIER_ESP = 'esp' 256CARRIER_ORG = 'org' 257CARRIER_TEL = 'tel' 258CARRIER_TSA = 'tsa' 259CARRIER_USCC = 'uscc' 260 261RAT_FAMILY_CDMA = 'cdma' 262RAT_FAMILY_CDMA2000 = 'cdma2000' 263RAT_FAMILY_IDEN = 'iden' 264RAT_FAMILY_GSM = 'gsm' 265RAT_FAMILY_WCDMA = 'wcdma' 266RAT_FAMILY_UMTS = RAT_FAMILY_WCDMA 267RAT_FAMILY_WLAN = 'wlan' 268RAT_FAMILY_LTE = 'lte' 269RAT_FAMILY_TDSCDMA = 'tdscdma' 270RAT_FAMILY_UNKNOWN = 'unknown' 271 272CAPABILITY_PHONE = 'phone' 273CAPABILITY_VOLTE = 'volte' 274CAPABILITY_VT = 'vt' 275CAPABILITY_WFC = 'wfc' 276CAPABILITY_MSIM = 'msim' 277CAPABILITY_OMADM = 'omadm' 278 279# Constant for operation direction 280DIRECTION_MOBILE_ORIGINATED = "MO" 281DIRECTION_MOBILE_TERMINATED = "MT" 282 283# Constant for call teardown side 284CALL_TEARDOWN_PHONE = "PHONE" 285CALL_TEARDOWN_REMOTE = "REMOTE" 286 287WIFI_VERBOSE_LOGGING_ENABLED = 1 288WIFI_VERBOSE_LOGGING_DISABLED = 0 289""" 290Begin shared constant define for both Python and Java 291""" 292 293# Constant for WiFi Calling WFC mode 294WFC_MODE_WIFI_ONLY = "WIFI_ONLY" 295WFC_MODE_CELLULAR_PREFERRED = "CELLULAR_PREFERRED" 296WFC_MODE_WIFI_PREFERRED = "WIFI_PREFERRED" 297WFC_MODE_DISABLED = "DISABLED" 298WFC_MODE_UNKNOWN = "UNKNOWN" 299 300# Constant for Video Telephony VT state 301VT_STATE_AUDIO_ONLY = "AUDIO_ONLY" 302VT_STATE_TX_ENABLED = "TX_ENABLED" 303VT_STATE_RX_ENABLED = "RX_ENABLED" 304VT_STATE_BIDIRECTIONAL = "BIDIRECTIONAL" 305VT_STATE_TX_PAUSED = "TX_PAUSED" 306VT_STATE_RX_PAUSED = "RX_PAUSED" 307VT_STATE_BIDIRECTIONAL_PAUSED = "BIDIRECTIONAL_PAUSED" 308VT_STATE_STATE_INVALID = "INVALID" 309 310# Constant for Video Telephony Video quality 311VT_VIDEO_QUALITY_DEFAULT = "DEFAULT" 312VT_VIDEO_QUALITY_UNKNOWN = "UNKNOWN" 313VT_VIDEO_QUALITY_HIGH = "HIGH" 314VT_VIDEO_QUALITY_MEDIUM = "MEDIUM" 315VT_VIDEO_QUALITY_LOW = "LOW" 316VT_VIDEO_QUALITY_INVALID = "INVALID" 317 318# Constant for Call State (for call object) 319CALL_STATE_ACTIVE = "ACTIVE" 320CALL_STATE_NEW = "NEW" 321CALL_STATE_DIALING = "DIALING" 322CALL_STATE_RINGING = "RINGING" 323CALL_STATE_HOLDING = "HOLDING" 324CALL_STATE_DISCONNECTED = "DISCONNECTED" 325CALL_STATE_PRE_DIAL_WAIT = "PRE_DIAL_WAIT" 326CALL_STATE_CONNECTING = "CONNECTING" 327CALL_STATE_DISCONNECTING = "DISCONNECTING" 328CALL_STATE_UNKNOWN = "UNKNOWN" 329CALL_STATE_INVALID = "INVALID" 330 331# Constant for PRECISE Call State (for call object) 332PRECISE_CALL_STATE_ACTIVE = "ACTIVE" 333PRECISE_CALL_STATE_ALERTING = "ALERTING" 334PRECISE_CALL_STATE_DIALING = "DIALING" 335PRECISE_CALL_STATE_INCOMING = "INCOMING" 336PRECISE_CALL_STATE_HOLDING = "HOLDING" 337PRECISE_CALL_STATE_DISCONNECTED = "DISCONNECTED" 338PRECISE_CALL_STATE_WAITING = "WAITING" 339PRECISE_CALL_STATE_DISCONNECTING = "DISCONNECTING" 340PRECISE_CALL_STATE_IDLE = "IDLE" 341PRECISE_CALL_STATE_UNKNOWN = "UNKNOWN" 342PRECISE_CALL_STATE_INVALID = "INVALID" 343 344# Constant for DC POWER STATE 345DC_POWER_STATE_LOW = "LOW" 346DC_POWER_STATE_HIGH = "HIGH" 347DC_POWER_STATE_MEDIUM = "MEDIUM" 348DC_POWER_STATE_UNKNOWN = "UNKNOWN" 349 350# Constant for Audio Route 351AUDIO_ROUTE_EARPIECE = "EARPIECE" 352AUDIO_ROUTE_BLUETOOTH = "BLUETOOTH" 353AUDIO_ROUTE_SPEAKER = "SPEAKER" 354AUDIO_ROUTE_WIRED_HEADSET = "WIRED_HEADSET" 355AUDIO_ROUTE_WIRED_OR_EARPIECE = "WIRED_OR_EARPIECE" 356 357# Constant for Call Capability 358CALL_CAPABILITY_HOLD = "HOLD" 359CALL_CAPABILITY_SUPPORT_HOLD = "SUPPORT_HOLD" 360CALL_CAPABILITY_MERGE_CONFERENCE = "MERGE_CONFERENCE" 361CALL_CAPABILITY_SWAP_CONFERENCE = "SWAP_CONFERENCE" 362CALL_CAPABILITY_UNUSED_1 = "UNUSED_1" 363CALL_CAPABILITY_RESPOND_VIA_TEXT = "RESPOND_VIA_TEXT" 364CALL_CAPABILITY_MUTE = "MUTE" 365CALL_CAPABILITY_MANAGE_CONFERENCE = "MANAGE_CONFERENCE" 366CALL_CAPABILITY_SUPPORTS_VT_LOCAL_RX = "SUPPORTS_VT_LOCAL_RX" 367CALL_CAPABILITY_SUPPORTS_VT_LOCAL_TX = "SUPPORTS_VT_LOCAL_TX" 368CALL_CAPABILITY_SUPPORTS_VT_LOCAL_BIDIRECTIONAL = "SUPPORTS_VT_LOCAL_BIDIRECTIONAL" 369CALL_CAPABILITY_SUPPORTS_VT_REMOTE_RX = "SUPPORTS_VT_REMOTE_RX" 370CALL_CAPABILITY_SUPPORTS_VT_REMOTE_TX = "SUPPORTS_VT_REMOTE_TX" 371CALL_CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL = "SUPPORTS_VT_REMOTE_BIDIRECTIONAL" 372CALL_CAPABILITY_SEPARATE_FROM_CONFERENCE = "SEPARATE_FROM_CONFERENCE" 373CALL_CAPABILITY_DISCONNECT_FROM_CONFERENCE = "DISCONNECT_FROM_CONFERENCE" 374CALL_CAPABILITY_SPEED_UP_MT_AUDIO = "SPEED_UP_MT_AUDIO" 375CALL_CAPABILITY_CAN_UPGRADE_TO_VIDEO = "CAN_UPGRADE_TO_VIDEO" 376CALL_CAPABILITY_CAN_PAUSE_VIDEO = "CAN_PAUSE_VIDEO" 377CALL_CAPABILITY_UNKOWN = "UNKOWN" 378 379# Constant for Call Property 380CALL_PROPERTY_HIGH_DEF_AUDIO = "HIGH_DEF_AUDIO" 381CALL_PROPERTY_CONFERENCE = "CONFERENCE" 382CALL_PROPERTY_GENERIC_CONFERENCE = "GENERIC_CONFERENCE" 383CALL_PROPERTY_WIFI = "WIFI" 384CALL_PROPERTY_EMERGENCY_CALLBACK_MODE = "EMERGENCY_CALLBACK_MODE" 385CALL_PROPERTY_UNKNOWN = "UNKNOWN" 386 387# Constant for Call Presentation 388CALL_PRESENTATION_ALLOWED = "ALLOWED" 389CALL_PRESENTATION_RESTRICTED = "RESTRICTED" 390CALL_PRESENTATION_PAYPHONE = "PAYPHONE" 391CALL_PRESENTATION_UNKNOWN = "UNKNOWN" 392 393# Constant for Network Generation 394GEN_2G = "2G" 395GEN_3G = "3G" 396GEN_4G = "4G" 397GEN_UNKNOWN = "UNKNOWN" 398 399# Constant for Network RAT 400RAT_IWLAN = "IWLAN" 401RAT_LTE = "LTE" 402RAT_4G = "4G" 403RAT_3G = "3G" 404RAT_2G = "2G" 405RAT_WCDMA = "WCDMA" 406RAT_UMTS = "UMTS" 407RAT_1XRTT = "1XRTT" 408RAT_EDGE = "EDGE" 409RAT_GPRS = "GPRS" 410RAT_HSDPA = "HSDPA" 411RAT_HSUPA = "HSUPA" 412RAT_CDMA = "CDMA" 413RAT_EVDO = "EVDO" 414RAT_EVDO_0 = "EVDO_0" 415RAT_EVDO_A = "EVDO_A" 416RAT_EVDO_B = "EVDO_B" 417RAT_IDEN = "IDEN" 418RAT_EHRPD = "EHRPD" 419RAT_HSPA = "HSPA" 420RAT_HSPAP = "HSPAP" 421RAT_GSM = "GSM" 422RAT_TD_SCDMA = "TD_SCDMA" 423RAT_GLOBAL = "GLOBAL" 424RAT_LTE_CA = "LTE_CA" # LTE Carrier Aggregation 425RAT_UNKNOWN = "UNKNOWN" 426 427# Constant for Phone Type 428PHONE_TYPE_GSM = "GSM" 429PHONE_TYPE_NONE = "NONE" 430PHONE_TYPE_CDMA = "CDMA" 431PHONE_TYPE_SIP = "SIP" 432 433# Constant for SIM Power State 434CARD_POWER_DOWN = 0 435CARD_POWER_UP = 1 436CARD_POWER_UP_PASS_THROUGH = 2 437 438# Constant for SIM State 439SIM_STATE_READY = "READY" 440SIM_STATE_UNKNOWN = "UNKNOWN" 441SIM_STATE_ABSENT = "ABSENT" 442SIM_STATE_PUK_REQUIRED = "PUK_REQUIRED" 443SIM_STATE_PIN_REQUIRED = "PIN_REQUIRED" 444SIM_STATE_NETWORK_LOCKED = "NETWORK_LOCKED" 445SIM_STATE_NOT_READY = "NOT_READY" 446SIM_STATE_PERM_DISABLED = "PERM_DISABLED" 447SIM_STATE_CARD_IO_ERROR = "CARD_IO_ERROR" 448SIM_STATE_LOADED = "LOADED" 449 450# Constant for Data Connection State 451DATA_STATE_CONNECTED = "CONNECTED" 452DATA_STATE_DISCONNECTED = "DISCONNECTED" 453DATA_STATE_CONNECTING = "CONNECTING" 454DATA_STATE_SUSPENDED = "SUSPENDED" 455DATA_STATE_UNKNOWN = "UNKNOWN" 456 457# Constant for Data Roaming State 458DATA_ROAMING_ENABLE = 1 459DATA_ROAMING_DISABLE = 0 460 461# Constant for ConnectivityManager Data Connection 462TYPE_MOBILE = 0 463TYPE_WIFI = 1 464 465# Constant for Telephony Manager Call State 466TELEPHONY_STATE_RINGING = "RINGING" 467TELEPHONY_STATE_IDLE = "IDLE" 468TELEPHONY_STATE_OFFHOOK = "OFFHOOK" 469TELEPHONY_STATE_UNKNOWN = "UNKNOWN" 470 471# Constant for TTY Mode 472TTY_MODE_FULL = "FULL" 473TTY_MODE_HCO = "HCO" 474TTY_MODE_OFF = "OFF" 475TTY_MODE_VCO = "VCO" 476 477# Constant for Service State 478SERVICE_STATE_EMERGENCY_ONLY = "EMERGENCY_ONLY" 479SERVICE_STATE_IN_SERVICE = "IN_SERVICE" 480SERVICE_STATE_OUT_OF_SERVICE = "OUT_OF_SERVICE" 481SERVICE_STATE_POWER_OFF = "POWER_OFF" 482SERVICE_STATE_UNKNOWN = "UNKNOWN" 483 484# Service State Mapping 485SERVICE_STATE_MAPPING = { 486 "-1": SERVICE_STATE_UNKNOWN, 487 "0": SERVICE_STATE_IN_SERVICE, 488 "1": SERVICE_STATE_OUT_OF_SERVICE, 489 "2": SERVICE_STATE_EMERGENCY_ONLY, 490 "3": SERVICE_STATE_POWER_OFF 491} 492 493# Constant for VoLTE Hand-over Service State 494VOLTE_SERVICE_STATE_HANDOVER_STARTED = "STARTED" 495VOLTE_SERVICE_STATE_HANDOVER_COMPLETED = "COMPLETED" 496VOLTE_SERVICE_STATE_HANDOVER_FAILED = "FAILED" 497VOLTE_SERVICE_STATE_HANDOVER_CANCELED = "CANCELED" 498VOLTE_SERVICE_STATE_HANDOVER_UNKNOWN = "UNKNOWN" 499 500# Constant for precise call state state listen level 501PRECISE_CALL_STATE_LISTEN_LEVEL_FOREGROUND = "FOREGROUND" 502PRECISE_CALL_STATE_LISTEN_LEVEL_RINGING = "RINGING" 503PRECISE_CALL_STATE_LISTEN_LEVEL_BACKGROUND = "BACKGROUND" 504 505# Constants used to register or de-register for call callback events 506EVENT_CALL_STATE_CHANGED = "EVENT_STATE_CHANGED" 507EVENT_CALL_CHILDREN_CHANGED = "EVENT_CHILDREN_CHANGED" 508 509# Constants used to register or de-register for video call callback events 510EVENT_VIDEO_SESSION_MODIFY_REQUEST_RECEIVED = "EVENT_VIDEO_SESSION_MODIFY_REQUEST_RECEIVED" 511EVENT_VIDEO_SESSION_MODIFY_RESPONSE_RECEIVED = "EVENT_VIDEO_SESSION_MODIFY_RESPONSE_RECEIVED" 512EVENT_VIDEO_SESSION_EVENT = "EVENT_VIDEO_SESSION_EVENT" 513EVENT_VIDEO_PEER_DIMENSIONS_CHANGED = "EVENT_VIDEO_PEER_DIMENSIONS_CHANGED" 514EVENT_VIDEO_QUALITY_CHANGED = "EVENT_VIDEO_QUALITY_CHANGED" 515EVENT_VIDEO_DATA_USAGE_CHANGED = "EVENT_VIDEO_DATA_USAGE_CHANGED" 516EVENT_VIDEO_CAMERA_CAPABILITIES_CHANGED = "EVENT_VIDEO_CAMERA_CAPABILITIES_CHANGED" 517EVENT_VIDEO_INVALID = "EVENT_VIDEO_INVALID" 518 519# Constant for Video Call Session Event Name 520SESSION_EVENT_RX_PAUSE = "SESSION_EVENT_RX_PAUSE" 521SESSION_EVENT_RX_RESUME = "SESSION_EVENT_RX_RESUME" 522SESSION_EVENT_TX_START = "SESSION_EVENT_TX_START" 523SESSION_EVENT_TX_STOP = "SESSION_EVENT_TX_STOP" 524SESSION_EVENT_CAMERA_FAILURE = "SESSION_EVENT_CAMERA_FAILURE" 525SESSION_EVENT_CAMERA_READY = "SESSION_EVENT_CAMERA_READY" 526SESSION_EVENT_UNKNOWN = "SESSION_EVENT_UNKNOWN" 527 528NETWORK_MODE_WCDMA_PREF = "NETWORK_MODE_WCDMA_PREF" 529NETWORK_MODE_GSM_ONLY = "NETWORK_MODE_GSM_ONLY" 530NETWORK_MODE_WCDMA_ONLY = "NETWORK_MODE_WCDMA_ONLY" 531NETWORK_MODE_GSM_UMTS = "NETWORK_MODE_GSM_UMTS" 532NETWORK_MODE_CDMA = "NETWORK_MODE_CDMA" 533NETWORK_MODE_CDMA_NO_EVDO = "NETWORK_MODE_CDMA_NO_EVDO" 534NETWORK_MODE_EVDO_NO_CDMA = "NETWORK_MODE_EVDO_NO_CDMA" 535NETWORK_MODE_GLOBAL = "NETWORK_MODE_GLOBAL" 536NETWORK_MODE_LTE_CDMA_EVDO = "NETWORK_MODE_LTE_CDMA_EVDO" 537NETWORK_MODE_LTE_GSM_WCDMA = "NETWORK_MODE_LTE_GSM_WCDMA" 538NETWORK_MODE_LTE_CDMA_EVDO_GSM_WCDMA = "NETWORK_MODE_LTE_CDMA_EVDO_GSM_WCDMA" 539NETWORK_MODE_LTE_ONLY = "NETWORK_MODE_LTE_ONLY" 540NETWORK_MODE_LTE_WCDMA = "NETWORK_MODE_LTE_WCDMA" 541NETWORK_MODE_TDSCDMA_ONLY = "NETWORK_MODE_TDSCDMA_ONLY" 542NETWORK_MODE_TDSCDMA_WCDMA = "NETWORK_MODE_TDSCDMA_WCDMA" 543NETWORK_MODE_LTE_TDSCDMA = "NETWORK_MODE_LTE_TDSCDMA" 544NETWORK_MODE_TDSCDMA_GSM = "NETWORK_MODE_TDSCDMA_GSM" 545NETWORK_MODE_LTE_TDSCDMA_GSM = "NETWORK_MODE_LTE_TDSCDMA_GSM" 546NETWORK_MODE_TDSCDMA_GSM_WCDMA = "NETWORK_MODE_TDSCDMA_GSM_WCDMA" 547NETWORK_MODE_LTE_TDSCDMA_WCDMA = "NETWORK_MODE_LTE_TDSCDMA_WCDMA" 548NETWORK_MODE_LTE_TDSCDMA_GSM_WCDMA = "NETWORK_MODE_LTE_TDSCDMA_GSM_WCDMA" 549NETWORK_MODE_TDSCDMA_CDMA_EVDO_WCDMA = "NETWORK_MODE_TDSCDMA_CDMA_EVDO_WCDMA" 550NETWORK_MODE_LTE_TDSCDMA_CDMA_EVDO_GSM_WCDMA = "NETWORK_MODE_LTE_TDSCDMA_CDMA_EVDO_GSM_WCDMA" 551 552# Constant for Messaging Event Name 553EventSmsDeliverSuccess = "SmsDeliverSuccess" 554EventSmsDeliverFailure = "SmsDeliverFailure" 555EventSmsSentSuccess = "SmsSentSuccess" 556EventSmsSentFailure = "SmsSentFailure" 557EventSmsReceived = "SmsReceived" 558EventMmsSentSuccess = "MmsSentSuccess" 559EventMmsSentFailure = "MmsSentFailure" 560EventMmsDownloaded = "MmsDownloaded" 561EventWapPushReceived = "WapPushReceived" 562EventDataSmsReceived = "DataSmsReceived" 563EventCmasReceived = "CmasReceived" 564EventEtwsReceived = "EtwsReceived" 565 566# Constants for Telecom Call Management Event Name (see InCallService.java). 567EventTelecomCallAdded = "TelecomCallAdded" 568EventTelecomCallRemoved = "TelecomCallRemoved" 569 570# Constant for Telecom Call Event Name (see Call.java) 571EventTelecomCallStateChanged = "TelecomCallStateChanged" 572EventTelecomCallParentChanged = "TelecomCallParentChanged" 573EventTelecomCallChildrenChanged = "TelecomCallChildrenChanged" 574EventTelecomCallDetailsChanged = "TelecomCallDetailsChanged" 575EventTelecomCallCannedTextResponsesLoaded = "TelecomCallCannedTextResponsesLoaded" 576EventTelecomCallPostDialWait = "TelecomCallPostDialWait" 577EventTelecomCallVideoCallChanged = "TelecomCallVideoCallChanged" 578EventTelecomCallDestroyed = "TelecomCallDestroyed" 579EventTelecomCallConferenceableCallsChanged = "TelecomCallConferenceableCallsChanged" 580 581# Constant for Video Call Event Name 582EventTelecomVideoCallSessionModifyRequestReceived = "TelecomVideoCallSessionModifyRequestReceived" 583EventTelecomVideoCallSessionModifyResponseReceived = "TelecomVideoCallSessionModifyResponseReceived" 584EventTelecomVideoCallSessionEvent = "TelecomVideoCallSessionEvent" 585EventTelecomVideoCallPeerDimensionsChanged = "TelecomVideoCallPeerDimensionsChanged" 586EventTelecomVideoCallVideoQualityChanged = "TelecomVideoCallVideoQualityChanged" 587EventTelecomVideoCallDataUsageChanged = "TelecomVideoCallDataUsageChanged" 588EventTelecomVideoCallCameraCapabilities = "TelecomVideoCallCameraCapabilities" 589 590# Constant for Other Event Name 591EventCallStateChanged = "CallStateChanged" 592EventPreciseStateChanged = "PreciseStateChanged" 593EventDataConnectionRealTimeInfoChanged = "DataConnectionRealTimeInfoChanged" 594EventDataConnectionStateChanged = "DataConnectionStateChanged" 595EventServiceStateChanged = "ServiceStateChanged" 596EventSignalStrengthChanged = "SignalStrengthChanged" 597EventVolteServiceStateChanged = "VolteServiceStateChanged" 598EventMessageWaitingIndicatorChanged = "MessageWaitingIndicatorChanged" 599EventConnectivityChanged = "ConnectivityChanged" 600 601# Constant for Packet Keep Alive Call Back 602EventPacketKeepaliveCallback = "PacketKeepaliveCallback" 603PacketKeepaliveCallbackStarted = "Started" 604PacketKeepaliveCallbackStopped = "Stopped" 605PacketKeepaliveCallbackError = "Error" 606PacketKeepaliveCallbackInvalid = "Invalid" 607 608# Constant for Network Call Back 609EventNetworkCallback = "NetworkCallback" 610NetworkCallbackPreCheck = "PreCheck" 611NetworkCallbackAvailable = "Available" 612NetworkCallbackLosing = "Losing" 613NetworkCallbackLost = "Lost" 614NetworkCallbackUnavailable = "Unavailable" 615NetworkCallbackCapabilitiesChanged = "CapabilitiesChanged" 616NetworkCallbackSuspended = "Suspended" 617NetworkCallbackResumed = "Resumed" 618NetworkCallbackLinkPropertiesChanged = "LinkPropertiesChanged" 619NetworkCallbackInvalid = "Invalid" 620 621 622class SignalStrengthContainer: 623 SIGNAL_STRENGTH_GSM = "gsmSignalStrength" 624 SIGNAL_STRENGTH_GSM_DBM = "gsmDbm" 625 SIGNAL_STRENGTH_GSM_LEVEL = "gsmLevel" 626 SIGNAL_STRENGTH_GSM_ASU_LEVEL = "gsmAsuLevel" 627 SIGNAL_STRENGTH_GSM_BIT_ERROR_RATE = "gsmBitErrorRate" 628 SIGNAL_STRENGTH_CDMA_DBM = "cdmaDbm" 629 SIGNAL_STRENGTH_CDMA_LEVEL = "cdmaLevel" 630 SIGNAL_STRENGTH_CDMA_ASU_LEVEL = "cdmaAsuLevel" 631 SIGNAL_STRENGTH_CDMA_ECIO = "cdmaEcio" 632 SIGNAL_STRENGTH_EVDO_DBM = "evdoDbm" 633 SIGNAL_STRENGTH_EVDO_ECIO = "evdoEcio" 634 SIGNAL_STRENGTH_LTE = "lteSignalStrength" 635 SIGNAL_STRENGTH_LTE_DBM = "lteDbm" 636 SIGNAL_STRENGTH_LTE_LEVEL = "lteLevel" 637 SIGNAL_STRENGTH_LTE_ASU_LEVEL = "lteAsuLevel" 638 SIGNAL_STRENGTH_DBM = "dbm" 639 SIGNAL_STRENGTH_LEVEL = "level" 640 SIGNAL_STRENGTH_ASU_LEVEL = "asuLevel" 641 642 643class MessageWaitingIndicatorContainer: 644 IS_MESSAGE_WAITING = "isMessageWaiting" 645 646 647class CallStateContainer: 648 INCOMING_NUMBER = "incomingNumber" 649 SUBSCRIPTION_ID = "subscriptionId" 650 CALL_STATE = "callState" 651 652 653class PreciseCallStateContainer: 654 TYPE = "type" 655 CAUSE = "cause" 656 SUBSCRIPTION_ID = "subscriptionId" 657 PRECISE_CALL_STATE = "preciseCallState" 658 659 660class DataConnectionRealTimeInfoContainer: 661 TYPE = "type" 662 TIME = "time" 663 SUBSCRIPTION_ID = "subscriptionId" 664 DATA_CONNECTION_POWER_STATE = "dataConnectionPowerState" 665 666 667class DataConnectionStateContainer: 668 TYPE = "type" 669 DATA_NETWORK_TYPE = "dataNetworkType" 670 STATE_CODE = "stateCode" 671 SUBSCRIPTION_ID = "subscriptionId" 672 DATA_CONNECTION_STATE = "dataConnectionState" 673 674 675class ServiceStateContainer: 676 VOICE_REG_STATE = "voiceRegState" 677 VOICE_NETWORK_TYPE = "voiceNetworkType" 678 DATA_REG_STATE = "dataRegState" 679 DATA_NETWORK_TYPE = "dataNetworkType" 680 OPERATOR_NAME = "operatorName" 681 OPERATOR_ID = "operatorId" 682 IS_MANUAL_NW_SELECTION = "isManualNwSelection" 683 ROAMING = "roaming" 684 IS_EMERGENCY_ONLY = "isEmergencyOnly" 685 NETWORK_ID = "networkId" 686 SYSTEM_ID = "systemId" 687 SUBSCRIPTION_ID = "subscriptionId" 688 SERVICE_STATE = "serviceState" 689 690 691class PacketKeepaliveContainer: 692 ID = "id" 693 PACKET_KEEPALIVE_EVENT = "packetKeepaliveEvent" 694 695 696class NetworkCallbackContainer: 697 ID = "id" 698 NETWORK_CALLBACK_EVENT = "networkCallbackEvent" 699 MAX_MS_TO_LIVE = "maxMsToLive" 700 RSSI = "rssi" 701 702 703""" 704End shared constant define for both Python and Java 705""" 706