Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* Copyright 2012 Mozilla Foundation and Mozilla contributors |
michael@0 | 2 | * |
michael@0 | 3 | * Licensed under the Apache License, Version 2.0 (the "License"); |
michael@0 | 4 | * you may not use this file except in compliance with the License. |
michael@0 | 5 | * You may obtain a copy of the License at |
michael@0 | 6 | * |
michael@0 | 7 | * http://www.apache.org/licenses/LICENSE-2.0 |
michael@0 | 8 | * |
michael@0 | 9 | * Unless required by applicable law or agreed to in writing, software |
michael@0 | 10 | * distributed under the License is distributed on an "AS IS" BASIS, |
michael@0 | 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
michael@0 | 12 | * See the License for the specific language governing permissions and |
michael@0 | 13 | * limitations under the License. |
michael@0 | 14 | */ |
michael@0 | 15 | |
michael@0 | 16 | // Set to true to debug all RIL layers |
michael@0 | 17 | this.DEBUG_ALL = false; |
michael@0 | 18 | |
michael@0 | 19 | // Set individually to debug specific layers |
michael@0 | 20 | this.DEBUG_WORKER = false || DEBUG_ALL; |
michael@0 | 21 | this.DEBUG_CONTENT_HELPER = false || DEBUG_ALL; |
michael@0 | 22 | this.DEBUG_RIL = false || DEBUG_ALL; |
michael@0 | 23 | |
michael@0 | 24 | this.REQUEST_GET_SIM_STATUS = 1; |
michael@0 | 25 | this.REQUEST_ENTER_SIM_PIN = 2; |
michael@0 | 26 | this.REQUEST_ENTER_SIM_PUK = 3; |
michael@0 | 27 | this.REQUEST_ENTER_SIM_PIN2 = 4; |
michael@0 | 28 | this.REQUEST_ENTER_SIM_PUK2 = 5; |
michael@0 | 29 | this.REQUEST_CHANGE_SIM_PIN = 6; |
michael@0 | 30 | this.REQUEST_CHANGE_SIM_PIN2 = 7; |
michael@0 | 31 | this.REQUEST_ENTER_NETWORK_DEPERSONALIZATION_CODE = 8; |
michael@0 | 32 | this.REQUEST_GET_CURRENT_CALLS = 9; |
michael@0 | 33 | this.REQUEST_DIAL = 10; |
michael@0 | 34 | this.REQUEST_GET_IMSI = 11; |
michael@0 | 35 | this.REQUEST_HANGUP = 12; |
michael@0 | 36 | this.REQUEST_HANGUP_WAITING_OR_BACKGROUND = 13; |
michael@0 | 37 | this.REQUEST_HANGUP_FOREGROUND_RESUME_BACKGROUND = 14; |
michael@0 | 38 | this.REQUEST_SWITCH_WAITING_OR_HOLDING_AND_ACTIVE = 15; |
michael@0 | 39 | this.REQUEST_CONFERENCE = 16; |
michael@0 | 40 | this.REQUEST_UDUB = 17; |
michael@0 | 41 | this.REQUEST_LAST_CALL_FAIL_CAUSE = 18; |
michael@0 | 42 | this.REQUEST_SIGNAL_STRENGTH = 19; |
michael@0 | 43 | this.REQUEST_VOICE_REGISTRATION_STATE = 20; |
michael@0 | 44 | this.REQUEST_DATA_REGISTRATION_STATE = 21; |
michael@0 | 45 | this.REQUEST_OPERATOR = 22; |
michael@0 | 46 | this.REQUEST_RADIO_POWER = 23; |
michael@0 | 47 | this.REQUEST_DTMF = 24; |
michael@0 | 48 | this.REQUEST_SEND_SMS = 25; |
michael@0 | 49 | this.REQUEST_SEND_SMS_EXPECT_MORE = 26; |
michael@0 | 50 | this.REQUEST_SETUP_DATA_CALL = 27; |
michael@0 | 51 | this.REQUEST_SIM_IO = 28; |
michael@0 | 52 | this.REQUEST_SEND_USSD = 29; |
michael@0 | 53 | this.REQUEST_CANCEL_USSD = 30; |
michael@0 | 54 | this.REQUEST_GET_CLIR = 31; |
michael@0 | 55 | this.REQUEST_SET_CLIR = 32; |
michael@0 | 56 | this.REQUEST_QUERY_CALL_FORWARD_STATUS = 33; |
michael@0 | 57 | this.REQUEST_SET_CALL_FORWARD = 34; |
michael@0 | 58 | this.REQUEST_QUERY_CALL_WAITING = 35; |
michael@0 | 59 | this.REQUEST_SET_CALL_WAITING = 36; |
michael@0 | 60 | this.REQUEST_SMS_ACKNOWLEDGE = 37; |
michael@0 | 61 | this.REQUEST_GET_IMEI = 38; |
michael@0 | 62 | this.REQUEST_GET_IMEISV = 39; |
michael@0 | 63 | this.REQUEST_ANSWER = 40; |
michael@0 | 64 | this.REQUEST_DEACTIVATE_DATA_CALL = 41; |
michael@0 | 65 | this.REQUEST_QUERY_FACILITY_LOCK = 42; |
michael@0 | 66 | this.REQUEST_SET_FACILITY_LOCK = 43; |
michael@0 | 67 | this.REQUEST_CHANGE_BARRING_PASSWORD = 44; |
michael@0 | 68 | this.REQUEST_QUERY_NETWORK_SELECTION_MODE = 45; |
michael@0 | 69 | this.REQUEST_SET_NETWORK_SELECTION_AUTOMATIC = 46; |
michael@0 | 70 | this.REQUEST_SET_NETWORK_SELECTION_MANUAL = 47; |
michael@0 | 71 | this.REQUEST_QUERY_AVAILABLE_NETWORKS = 48; |
michael@0 | 72 | this.REQUEST_DTMF_START = 49; |
michael@0 | 73 | this.REQUEST_DTMF_STOP = 50; |
michael@0 | 74 | this.REQUEST_BASEBAND_VERSION = 51; |
michael@0 | 75 | this.REQUEST_SEPARATE_CONNECTION = 52; |
michael@0 | 76 | this.REQUEST_SET_MUTE = 53; |
michael@0 | 77 | this.REQUEST_GET_MUTE = 54; |
michael@0 | 78 | this.REQUEST_QUERY_CLIP = 55; |
michael@0 | 79 | this.REQUEST_LAST_DATA_CALL_FAIL_CAUSE = 56; |
michael@0 | 80 | this.REQUEST_DATA_CALL_LIST = 57; |
michael@0 | 81 | this.REQUEST_RESET_RADIO = 58; |
michael@0 | 82 | this.REQUEST_OEM_HOOK_RAW = 59; |
michael@0 | 83 | this.REQUEST_OEM_HOOK_STRINGS = 60; |
michael@0 | 84 | this.REQUEST_SCREEN_STATE = 61; |
michael@0 | 85 | this.REQUEST_SET_SUPP_SVC_NOTIFICATION = 62; |
michael@0 | 86 | this.REQUEST_WRITE_SMS_TO_SIM = 63; |
michael@0 | 87 | this.REQUEST_DELETE_SMS_ON_SIM = 64; |
michael@0 | 88 | this.REQUEST_SET_BAND_MODE = 65; |
michael@0 | 89 | this.REQUEST_QUERY_AVAILABLE_BAND_MODE = 66; |
michael@0 | 90 | this.REQUEST_STK_GET_PROFILE = 67; |
michael@0 | 91 | this.REQUEST_STK_SET_PROFILE = 68; |
michael@0 | 92 | this.REQUEST_STK_SEND_ENVELOPE_COMMAND = 69; |
michael@0 | 93 | this.REQUEST_STK_SEND_TERMINAL_RESPONSE = 70; |
michael@0 | 94 | this.REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM = 71; |
michael@0 | 95 | this.REQUEST_EXPLICIT_CALL_TRANSFER = 72; |
michael@0 | 96 | this.REQUEST_SET_PREFERRED_NETWORK_TYPE = 73; |
michael@0 | 97 | this.REQUEST_GET_PREFERRED_NETWORK_TYPE = 74; |
michael@0 | 98 | this.REQUEST_GET_NEIGHBORING_CELL_IDS = 75; |
michael@0 | 99 | this.REQUEST_SET_LOCATION_UPDATES = 76; |
michael@0 | 100 | this.REQUEST_CDMA_SET_SUBSCRIPTION_SOURCE = 77; |
michael@0 | 101 | this.REQUEST_CDMA_SET_ROAMING_PREFERENCE = 78; |
michael@0 | 102 | this.REQUEST_CDMA_QUERY_ROAMING_PREFERENCE = 79; |
michael@0 | 103 | this.REQUEST_SET_TTY_MODE = 80; |
michael@0 | 104 | this.REQUEST_QUERY_TTY_MODE = 81; |
michael@0 | 105 | this.REQUEST_CDMA_SET_PREFERRED_VOICE_PRIVACY_MODE = 82; |
michael@0 | 106 | this.REQUEST_CDMA_QUERY_PREFERRED_VOICE_PRIVACY_MODE = 83; |
michael@0 | 107 | this.REQUEST_CDMA_FLASH = 84; |
michael@0 | 108 | this.REQUEST_CDMA_BURST_DTMF = 85; |
michael@0 | 109 | this.REQUEST_CDMA_VALIDATE_AND_WRITE_AKEY = 86; |
michael@0 | 110 | this.REQUEST_CDMA_SEND_SMS = 87; |
michael@0 | 111 | this.REQUEST_CDMA_SMS_ACKNOWLEDGE = 88; |
michael@0 | 112 | this.REQUEST_GSM_GET_BROADCAST_SMS_CONFIG = 89; |
michael@0 | 113 | this.REQUEST_GSM_SET_BROADCAST_SMS_CONFIG = 90; |
michael@0 | 114 | this.REQUEST_GSM_SMS_BROADCAST_ACTIVATION = 91; |
michael@0 | 115 | this.REQUEST_CDMA_GET_BROADCAST_SMS_CONFIG = 92; |
michael@0 | 116 | this.REQUEST_CDMA_SET_BROADCAST_SMS_CONFIG = 93; |
michael@0 | 117 | this.REQUEST_CDMA_SMS_BROADCAST_ACTIVATION = 94; |
michael@0 | 118 | this.REQUEST_CDMA_SUBSCRIPTION = 95; |
michael@0 | 119 | this.REQUEST_CDMA_WRITE_SMS_TO_RUIM = 96; |
michael@0 | 120 | this.REQUEST_CDMA_DELETE_SMS_ON_RUIM = 97; |
michael@0 | 121 | this.REQUEST_DEVICE_IDENTITY = 98; |
michael@0 | 122 | this.REQUEST_EXIT_EMERGENCY_CALLBACK_MODE = 99; |
michael@0 | 123 | this.REQUEST_GET_SMSC_ADDRESS = 100; |
michael@0 | 124 | this.REQUEST_SET_SMSC_ADDRESS = 101; |
michael@0 | 125 | this.REQUEST_REPORT_SMS_MEMORY_STATUS = 102; |
michael@0 | 126 | this.REQUEST_REPORT_STK_SERVICE_IS_RUNNING = 103; |
michael@0 | 127 | this.REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE = 104; |
michael@0 | 128 | this.REQUEST_ISIM_AUTHENTICATION = 105; |
michael@0 | 129 | this.REQUEST_ACKNOWLEDGE_INCOMING_GSM_SMS_WITH_PDU = 106; |
michael@0 | 130 | this.REQUEST_STK_SEND_ENVELOPE_WITH_STATUS = 107; |
michael@0 | 131 | this.REQUEST_VOICE_RADIO_TECH = 108; |
michael@0 | 132 | this.REQUEST_DIAL_EMERGENCY_CALL = 10016; |
michael@0 | 133 | |
michael@0 | 134 | // Mozilla-specific request codes |
michael@0 | 135 | this.REQUEST_GET_UNLOCK_RETRY_COUNT = 150; |
michael@0 | 136 | |
michael@0 | 137 | // Akami/Maguro specific parcel types. |
michael@0 | 138 | this.REQUEST_IMS_REGISTRATION_STATE = 106; |
michael@0 | 139 | this.REQUEST_IMS_SEND_SMS = 107; |
michael@0 | 140 | this.REQUEST_GET_DATA_CALL_PROFILE = 108; |
michael@0 | 141 | this.REQUEST_SET_UICC_SUBSCRIPTION = 109; |
michael@0 | 142 | this.REQUEST_SET_DATA_SUBSCRIPTION = 110; |
michael@0 | 143 | this.REQUEST_GET_UICC_SUBSCRIPTION = 111; |
michael@0 | 144 | this.REQUEST_GET_DATA_SUBSCRIPTION = 112; |
michael@0 | 145 | this.REQUEST_SET_SUBSCRIPTION_MODE = 113; |
michael@0 | 146 | this.REQUEST_SET_TRANSMIT_POWER = 114; |
michael@0 | 147 | this.REQUEST_SETUP_QOS = 115; |
michael@0 | 148 | this.REQUEST_RELEASE_QOS = 116; |
michael@0 | 149 | this.REQUEST_GET_QOS_STATUS = 117; |
michael@0 | 150 | this.REQUEST_MODIFY_QOS = 118; |
michael@0 | 151 | this.REQUEST_SUSPEND_QOS = 119; |
michael@0 | 152 | this.REQUEST_RESUME_QOS = 120; |
michael@0 | 153 | |
michael@0 | 154 | // Fugu specific parcel types. |
michael@0 | 155 | this.RIL_REQUEST_GPRS_ATTACH = 5018; |
michael@0 | 156 | this.RIL_REQUEST_GPRS_DETACH = 5019; |
michael@0 | 157 | |
michael@0 | 158 | // UICC Secure Access |
michael@0 | 159 | this.REQUEST_SIM_OPEN_CHANNEL = 121; |
michael@0 | 160 | this.REQUEST_SIM_CLOSE_CHANNEL = 122; |
michael@0 | 161 | this.REQUEST_SIM_ACCESS_CHANNEL = 123; |
michael@0 | 162 | |
michael@0 | 163 | this.RESPONSE_TYPE_SOLICITED = 0; |
michael@0 | 164 | this.RESPONSE_TYPE_UNSOLICITED = 1; |
michael@0 | 165 | |
michael@0 | 166 | this.UNSOLICITED_RESPONSE_BASE = 1000; |
michael@0 | 167 | this.UNSOLICITED_RESPONSE_RADIO_STATE_CHANGED = 1000; |
michael@0 | 168 | this.UNSOLICITED_RESPONSE_CALL_STATE_CHANGED = 1001; |
michael@0 | 169 | this.UNSOLICITED_RESPONSE_VOICE_NETWORK_STATE_CHANGED = 1002; |
michael@0 | 170 | this.UNSOLICITED_RESPONSE_NEW_SMS = 1003; |
michael@0 | 171 | this.UNSOLICITED_RESPONSE_NEW_SMS_STATUS_REPORT = 1004; |
michael@0 | 172 | this.UNSOLICITED_RESPONSE_NEW_SMS_ON_SIM = 1005; |
michael@0 | 173 | this.UNSOLICITED_ON_USSD = 1006; |
michael@0 | 174 | this.UNSOLICITED_ON_USSD_REQUEST = 1007; |
michael@0 | 175 | this.UNSOLICITED_NITZ_TIME_RECEIVED = 1008; |
michael@0 | 176 | this.UNSOLICITED_SIGNAL_STRENGTH = 1009; |
michael@0 | 177 | this.UNSOLICITED_DATA_CALL_LIST_CHANGED = 1010; |
michael@0 | 178 | this.UNSOLICITED_SUPP_SVC_NOTIFICATION = 1011; |
michael@0 | 179 | this.UNSOLICITED_STK_SESSION_END = 1012; |
michael@0 | 180 | this.UNSOLICITED_STK_PROACTIVE_COMMAND = 1013; |
michael@0 | 181 | this.UNSOLICITED_STK_EVENT_NOTIFY = 1014; |
michael@0 | 182 | this.UNSOLICITED_STK_CALL_SETUP = 1015; |
michael@0 | 183 | this.UNSOLICITED_SIM_SMS_STORAGE_FULL = 1016; |
michael@0 | 184 | this.UNSOLICITED_SIM_REFRESH = 1017; |
michael@0 | 185 | this.UNSOLICITED_CALL_RING = 1018; |
michael@0 | 186 | this.UNSOLICITED_RESPONSE_SIM_STATUS_CHANGED = 1019; |
michael@0 | 187 | this.UNSOLICITED_RESPONSE_CDMA_NEW_SMS = 1020; |
michael@0 | 188 | this.UNSOLICITED_RESPONSE_NEW_BROADCAST_SMS = 1021; |
michael@0 | 189 | this.UNSOLICITED_CDMA_RUIM_SMS_STORAGE_FULL = 1022; |
michael@0 | 190 | this.UNSOLICITED_RESTRICTED_STATE_CHANGED = 1023; |
michael@0 | 191 | this.UNSOLICITED_ENTER_EMERGENCY_CALLBACK_MODE = 1024; |
michael@0 | 192 | this.UNSOLICITED_CDMA_CALL_WAITING = 1025; |
michael@0 | 193 | this.UNSOLICITED_CDMA_OTA_PROVISION_STATUS = 1026; |
michael@0 | 194 | this.UNSOLICITED_CDMA_INFO_REC = 1027; |
michael@0 | 195 | this.UNSOLICITED_OEM_HOOK_RAW = 1028; |
michael@0 | 196 | this.UNSOLICITED_RINGBACK_TONE = 1029; |
michael@0 | 197 | this.UNSOLICITED_RESEND_INCALL_MUTE = 1030; |
michael@0 | 198 | this.UNSOLICITED_CDMA_SUBSCRIPTION_SOURCE_CHANGED = 1031; |
michael@0 | 199 | this.UNSOLICITED_CDMA_PRL_CHANGED = 1032; |
michael@0 | 200 | this.UNSOLICITED_EXIT_EMERGENCY_CALLBACK_MODE = 1033; |
michael@0 | 201 | this.UNSOLICITED_RIL_CONNECTED = 1034; |
michael@0 | 202 | |
michael@0 | 203 | // Akami/Maguro specific parcels. |
michael@0 | 204 | this.UNSOLICITED_VOICE_RADIO_TECH_CHANGED = 1034; |
michael@0 | 205 | this.UNSOLICITED_RESPONSE_IMS_NETWORK_STATE_CHANGED = 1035; |
michael@0 | 206 | this.UNSOLICITED_RESPONSE_TETHERED_MODE_STATE_CHANGED = 1036; |
michael@0 | 207 | this.UNSOLICITED_RESPONSE_DATA_NETWORK_STATE_CHANGED = 1037; |
michael@0 | 208 | this.UNSOLICITED_ON_SS = 1038; |
michael@0 | 209 | this.UNSOLICITED_STK_CC_ALPHA_NOTIFY = 1039; |
michael@0 | 210 | this.UNSOLICITED_UICC_SUBSCRIPTION_STATUS_CHANGED = 1040; |
michael@0 | 211 | this.UNSOLICITED_QOS_STATE_CHANGED_IND = 1041; |
michael@0 | 212 | |
michael@0 | 213 | this.ERROR_SUCCESS = 0; |
michael@0 | 214 | this.ERROR_RADIO_NOT_AVAILABLE = 1; |
michael@0 | 215 | this.ERROR_GENERIC_FAILURE = 2; |
michael@0 | 216 | this.ERROR_PASSWORD_INCORRECT = 3; |
michael@0 | 217 | this.ERROR_SIM_PIN2 = 4; |
michael@0 | 218 | this.ERROR_SIM_PUK2 = 5; |
michael@0 | 219 | this.ERROR_REQUEST_NOT_SUPPORTED = 6; |
michael@0 | 220 | this.ERROR_CANCELLED = 7; |
michael@0 | 221 | this.ERROR_OP_NOT_ALLOWED_DURING_VOICE_CALL = 8; |
michael@0 | 222 | this.ERROR_OP_NOT_ALLOWED_BEFORE_REG_TO_NW = 9; |
michael@0 | 223 | this.ERROR_SMS_SEND_FAIL_RETRY = 10; |
michael@0 | 224 | this.ERROR_SIM_ABSENT = 11; |
michael@0 | 225 | this.ERROR_SUBSCRIPTION_NOT_AVAILABLE = 12; |
michael@0 | 226 | this.ERROR_MODE_NOT_SUPPORTED = 13; |
michael@0 | 227 | this.ERROR_FDN_CHECK_FAILURE = 14; |
michael@0 | 228 | this.ERROR_ILLEGAL_SIM_OR_ME = 15; |
michael@0 | 229 | this.ERROR_DIAL_MODIFIED_TO_USSD = 17; |
michael@0 | 230 | this.ERROR_DIAL_MODIFIED_TO_SS = 18; |
michael@0 | 231 | this.ERROR_DIAL_MODIFIED_TO_DIAL = 19; |
michael@0 | 232 | this.ERROR_USSD_MODIFIED_TO_DIAL = 20; |
michael@0 | 233 | this.ERROR_USSD_MODIFIED_TO_SS = 21; |
michael@0 | 234 | this.ERROR_USSD_MODIFIED_TO_USSD = 22; |
michael@0 | 235 | this.ERROR_SS_MODIFIED_TO_DIAL = 23; |
michael@0 | 236 | this.ERROR_SS_MODIFIED_TO_USSD = 24; |
michael@0 | 237 | this.ERROR_SS_MODIFIED_TO_SS = 25; |
michael@0 | 238 | this.ERROR_SUBSCRIPTION_NOT_SUPPORTED = 26; |
michael@0 | 239 | this.ERROR_INVALID_PARAMETER = 27; |
michael@0 | 240 | this.ERROR_REJECTED_BY_REMOTE = 28; |
michael@0 | 241 | |
michael@0 | 242 | this.GECKO_ERROR_SUCCESS = null; |
michael@0 | 243 | this.GECKO_ERROR_RADIO_NOT_AVAILABLE = "RadioNotAvailable"; |
michael@0 | 244 | this.GECKO_ERROR_GENERIC_FAILURE = "GenericFailure"; |
michael@0 | 245 | this.GECKO_ERROR_PASSWORD_INCORRECT = "IncorrectPassword"; |
michael@0 | 246 | this.GECKO_ERROR_SIM_PIN2 = "SimPin2"; |
michael@0 | 247 | this.GECKO_ERROR_SIM_PUK2 = "SimPuk2"; |
michael@0 | 248 | this.GECKO_ERROR_REQUEST_NOT_SUPPORTED = "RequestNotSupported"; |
michael@0 | 249 | this.GECKO_ERROR_CANCELLED = "Cancelled"; |
michael@0 | 250 | this.GECKO_ERROR_ILLEGAL_SIM_OR_ME = "IllegalSIMorME"; |
michael@0 | 251 | this.GECKO_ERROR_OP_NOT_ALLOWED_DURING_VOICE_CALL = "OpNotAllowedDuringVoiceCall"; |
michael@0 | 252 | this.GECKO_ERROR_OP_NOT_ALLOWED_BEFORE_REG_TO_NW = "OpNotAllowedBeforeRegToNw"; |
michael@0 | 253 | this.GECKO_ERROR_SMS_SEND_FAIL_RETRY = "SmsSendFailRetry"; |
michael@0 | 254 | this.GECKO_ERROR_SIM_ABSENT = "SimAbsent"; |
michael@0 | 255 | this.GECKO_ERROR_SUBSCRIPTION_NOT_AVAILABLE = "SubscriptionNotAvailable"; |
michael@0 | 256 | this.GECKO_ERROR_MODE_NOT_SUPPORTED = "ModeNotSupported"; |
michael@0 | 257 | this.GECKO_ERROR_FDN_CHECK_FAILURE = "FdnCheckFailure"; |
michael@0 | 258 | this.GECKO_ERROR_DIAL_MODIFIED_TO_USSD = "DialModifiedToUssd"; |
michael@0 | 259 | this.GECKO_ERROR_DIAL_MODIFIED_TO_SS = "DialModifiedToSs"; |
michael@0 | 260 | this.GECKO_ERROR_DIAL_MODIFIED_TO_DIAL = "DialModifiedToDial"; |
michael@0 | 261 | this.GECKO_ERROR_USSD_MODIFIED_TO_DIAL = "UssdModifiedToDial"; |
michael@0 | 262 | this.GECKO_ERROR_USSD_MODIFIED_TO_SS = "UssdModifiedToSs"; |
michael@0 | 263 | this.GECKO_ERROR_USSD_MODIFIED_TO_USSD = "UssdModifiedToUssd"; |
michael@0 | 264 | this.GECKO_ERROR_SS_MODIFIED_TO_DIAL = "SsModifiedToDial"; |
michael@0 | 265 | this.GECKO_ERROR_SS_MODIFIED_TO_USSD = "SsModifiedToUssd"; |
michael@0 | 266 | this.GECKO_ERROR_SS_MODIFIED_TO_SS = "SsModifiedToSs"; |
michael@0 | 267 | this.GECKO_ERROR_SUBSCRIPTION_NOT_SUPPORTED = "SubscriptionNotSupported"; |
michael@0 | 268 | this.GECKO_ERROR_INVALID_PARAMETER = "InvalidParameter"; |
michael@0 | 269 | this.GECKO_ERROR_REJECTED_BY_REMOTE = "RejectedByRemote"; |
michael@0 | 270 | |
michael@0 | 271 | this.RIL_ERROR_TO_GECKO_ERROR = {}; |
michael@0 | 272 | RIL_ERROR_TO_GECKO_ERROR[ERROR_SUCCESS] = GECKO_ERROR_SUCCESS; |
michael@0 | 273 | RIL_ERROR_TO_GECKO_ERROR[ERROR_RADIO_NOT_AVAILABLE] = GECKO_ERROR_RADIO_NOT_AVAILABLE; |
michael@0 | 274 | RIL_ERROR_TO_GECKO_ERROR[ERROR_GENERIC_FAILURE] = GECKO_ERROR_GENERIC_FAILURE; |
michael@0 | 275 | RIL_ERROR_TO_GECKO_ERROR[ERROR_PASSWORD_INCORRECT] = GECKO_ERROR_PASSWORD_INCORRECT; |
michael@0 | 276 | RIL_ERROR_TO_GECKO_ERROR[ERROR_SIM_PIN2] = GECKO_ERROR_SIM_PIN2; |
michael@0 | 277 | RIL_ERROR_TO_GECKO_ERROR[ERROR_SIM_PUK2] = GECKO_ERROR_SIM_PUK2; |
michael@0 | 278 | RIL_ERROR_TO_GECKO_ERROR[ERROR_REQUEST_NOT_SUPPORTED] = GECKO_ERROR_REQUEST_NOT_SUPPORTED; |
michael@0 | 279 | RIL_ERROR_TO_GECKO_ERROR[ERROR_CANCELLED] = GECKO_ERROR_CANCELLED; |
michael@0 | 280 | RIL_ERROR_TO_GECKO_ERROR[ERROR_OP_NOT_ALLOWED_DURING_VOICE_CALL] = GECKO_ERROR_OP_NOT_ALLOWED_DURING_VOICE_CALL; |
michael@0 | 281 | RIL_ERROR_TO_GECKO_ERROR[ERROR_OP_NOT_ALLOWED_BEFORE_REG_TO_NW] = GECKO_ERROR_OP_NOT_ALLOWED_BEFORE_REG_TO_NW; |
michael@0 | 282 | RIL_ERROR_TO_GECKO_ERROR[ERROR_SMS_SEND_FAIL_RETRY] = GECKO_ERROR_SMS_SEND_FAIL_RETRY; |
michael@0 | 283 | RIL_ERROR_TO_GECKO_ERROR[ERROR_SIM_ABSENT] = GECKO_ERROR_SIM_ABSENT; |
michael@0 | 284 | RIL_ERROR_TO_GECKO_ERROR[ERROR_SUBSCRIPTION_NOT_AVAILABLE] = GECKO_ERROR_SUBSCRIPTION_NOT_AVAILABLE; |
michael@0 | 285 | RIL_ERROR_TO_GECKO_ERROR[ERROR_MODE_NOT_SUPPORTED] = GECKO_ERROR_MODE_NOT_SUPPORTED; |
michael@0 | 286 | RIL_ERROR_TO_GECKO_ERROR[ERROR_FDN_CHECK_FAILURE] = GECKO_ERROR_FDN_CHECK_FAILURE; |
michael@0 | 287 | RIL_ERROR_TO_GECKO_ERROR[ERROR_ILLEGAL_SIM_OR_ME] = GECKO_ERROR_ILLEGAL_SIM_OR_ME; |
michael@0 | 288 | RIL_ERROR_TO_GECKO_ERROR[ERROR_DIAL_MODIFIED_TO_USSD] = GECKO_ERROR_DIAL_MODIFIED_TO_USSD; |
michael@0 | 289 | RIL_ERROR_TO_GECKO_ERROR[ERROR_DIAL_MODIFIED_TO_SS] = GECKO_ERROR_DIAL_MODIFIED_TO_SS; |
michael@0 | 290 | RIL_ERROR_TO_GECKO_ERROR[ERROR_DIAL_MODIFIED_TO_DIAL] = GECKO_ERROR_DIAL_MODIFIED_TO_DIAL; |
michael@0 | 291 | RIL_ERROR_TO_GECKO_ERROR[ERROR_USSD_MODIFIED_TO_DIAL] = GECKO_ERROR_USSD_MODIFIED_TO_DIAL; |
michael@0 | 292 | RIL_ERROR_TO_GECKO_ERROR[ERROR_USSD_MODIFIED_TO_SS] = GECKO_ERROR_USSD_MODIFIED_TO_SS; |
michael@0 | 293 | RIL_ERROR_TO_GECKO_ERROR[ERROR_USSD_MODIFIED_TO_USSD] = GECKO_ERROR_USSD_MODIFIED_TO_USSD; |
michael@0 | 294 | RIL_ERROR_TO_GECKO_ERROR[ERROR_SS_MODIFIED_TO_DIAL] = GECKO_ERROR_SS_MODIFIED_TO_DIAL; |
michael@0 | 295 | RIL_ERROR_TO_GECKO_ERROR[ERROR_SS_MODIFIED_TO_USSD] = GECKO_ERROR_SS_MODIFIED_TO_USSD; |
michael@0 | 296 | RIL_ERROR_TO_GECKO_ERROR[ERROR_SS_MODIFIED_TO_SS] = GECKO_ERROR_SS_MODIFIED_TO_SS; |
michael@0 | 297 | RIL_ERROR_TO_GECKO_ERROR[ERROR_SUBSCRIPTION_NOT_SUPPORTED] = GECKO_ERROR_SUBSCRIPTION_NOT_SUPPORTED; |
michael@0 | 298 | RIL_ERROR_TO_GECKO_ERROR[ERROR_INVALID_PARAMETER] = GECKO_ERROR_INVALID_PARAMETER; |
michael@0 | 299 | RIL_ERROR_TO_GECKO_ERROR[ERROR_REJECTED_BY_REMOTE] = GECKO_ERROR_REJECTED_BY_REMOTE; |
michael@0 | 300 | |
michael@0 | 301 | // 3GPP 23.040 clause 9.2.3.6 TP-Message-Reference(TP-MR): |
michael@0 | 302 | // The number of times the MS automatically repeats the SMS-SUBMIT shall be in |
michael@0 | 303 | // the range 1 to 3 but the precise number is an implementation matter. |
michael@0 | 304 | this.SMS_RETRY_MAX = 3; |
michael@0 | 305 | |
michael@0 | 306 | this.RADIO_STATE_OFF = 0; |
michael@0 | 307 | this.RADIO_STATE_UNAVAILABLE = 1; |
michael@0 | 308 | this.RADIO_STATE_ON = 10; // RIL v7 |
michael@0 | 309 | |
michael@0 | 310 | // RIL v5 legacy constants: |
michael@0 | 311 | this.RADIO_STATE_SIM_NOT_READY = 2; |
michael@0 | 312 | this.RADIO_STATE_SIM_LOCKED_OR_ABSENT = 3; |
michael@0 | 313 | this.RADIO_STATE_SIM_READY = 4; |
michael@0 | 314 | this.RADIO_STATE_RUIM_NOT_READY = 5; |
michael@0 | 315 | this.RADIO_STATE_RUIM_READY = 6; |
michael@0 | 316 | this.RADIO_STATE_RUIM_LOCKED_OR_ABSENT = 7; |
michael@0 | 317 | this.RADIO_STATE_NV_NOT_READY = 8; |
michael@0 | 318 | this.RADIO_STATE_NV_READY = 9; |
michael@0 | 319 | |
michael@0 | 320 | this.CARD_STATE_ABSENT = 0; |
michael@0 | 321 | this.CARD_STATE_PRESENT = 1; |
michael@0 | 322 | this.CARD_STATE_ERROR = 2; |
michael@0 | 323 | |
michael@0 | 324 | this.CARD_PERSOSUBSTATE_UNKNOWN = 0; |
michael@0 | 325 | this.CARD_PERSOSUBSTATE_IN_PROGRESS = 1; |
michael@0 | 326 | this.CARD_PERSOSUBSTATE_READY = 2; |
michael@0 | 327 | this.CARD_PERSOSUBSTATE_SIM_NETWORK = 3; |
michael@0 | 328 | this.CARD_PERSOSUBSTATE_SIM_NETWORK_SUBSET = 4; |
michael@0 | 329 | this.CARD_PERSOSUBSTATE_SIM_CORPORATE = 5; |
michael@0 | 330 | this.CARD_PERSOSUBSTATE_SIM_SERVICE_PROVIDER = 6; |
michael@0 | 331 | this.CARD_PERSOSUBSTATE_SIM_SIM = 7; |
michael@0 | 332 | this.CARD_PERSOSUBSTATE_SIM_NETWORK_PUK = 8; |
michael@0 | 333 | this.CARD_PERSOSUBSTATE_SIM_NETWORK_SUBSET_PUK = 9; |
michael@0 | 334 | this.CARD_PERSOSUBSTATE_SIM_CORPORATE_PUK = 10; |
michael@0 | 335 | this.CARD_PERSOSUBSTATE_SIM_SERVICE_PROVIDER_PUK = 11; |
michael@0 | 336 | this.CARD_PERSOSUBSTATE_SIM_SIM_PUK = 12; |
michael@0 | 337 | this.CARD_PERSOSUBSTATE_RUIM_NETWORK1 = 13; |
michael@0 | 338 | this.CARD_PERSOSUBSTATE_RUIM_NETWORK2 = 14; |
michael@0 | 339 | this.CARD_PERSOSUBSTATE_RUIM_HRPD = 15; |
michael@0 | 340 | this.CARD_PERSOSUBSTATE_RUIM_CORPORATE = 16; |
michael@0 | 341 | this.CARD_PERSOSUBSTATE_RUIM_SERVICE_PROVIDER = 17; |
michael@0 | 342 | this.CARD_PERSOSUBSTATE_RUIM_RUIM = 18; |
michael@0 | 343 | this.CARD_PERSOSUBSTATE_RUIM_NETWORK1_PUK = 19; |
michael@0 | 344 | this.CARD_PERSOSUBSTATE_RUIM_NETWORK2_PUK = 20; |
michael@0 | 345 | this.CARD_PERSOSUBSTATE_RUIM_HRPD_PUK = 21; |
michael@0 | 346 | this.CARD_PERSOSUBSTATE_RUIM_CORPORATE_PUK = 22; |
michael@0 | 347 | this.CARD_PERSOSUBSTATE_RUIM_SERVICE_PROVIDER_PUK = 23; |
michael@0 | 348 | this.CARD_PERSOSUBSTATE_RUIM_RUIM_PUK = 24; |
michael@0 | 349 | |
michael@0 | 350 | this.CARD_APPSTATE_ILLEGAL = -1; |
michael@0 | 351 | this.CARD_APPSTATE_UNKNOWN = 0; |
michael@0 | 352 | this.CARD_APPSTATE_DETECTED = 1; |
michael@0 | 353 | this.CARD_APPSTATE_PIN = 2; // If PIN1 or UPin is required. |
michael@0 | 354 | this.CARD_APPSTATE_PUK = 3; // If PUK1 or Puk for UPin is required. |
michael@0 | 355 | this.CARD_APPSTATE_SUBSCRIPTION_PERSO = 4; // perso_substate should be looked |
michael@0 | 356 | // at when app_state is assigned |
michael@0 | 357 | // to this value. |
michael@0 | 358 | this.CARD_APPSTATE_READY = 5; |
michael@0 | 359 | |
michael@0 | 360 | this.CARD_PINSTATE_UNKNOWN = 0; |
michael@0 | 361 | this.CARD_PINSTATE_ENABLED_NOT_VERIFIED = 1; |
michael@0 | 362 | this.CARD_PINSTATE_ENABLED_VERIFIED = 2; |
michael@0 | 363 | this.CARD_PINSTATE_DISABLED = 3; |
michael@0 | 364 | this.CARD_PINSTATE_ENABLED_BLOCKED = 4; |
michael@0 | 365 | this.CARD_PINSTATE_ENABLED_PERM_BLOCKED = 5; |
michael@0 | 366 | |
michael@0 | 367 | this.CARD_APPTYPE_UNKNOWN = 0; |
michael@0 | 368 | this.CARD_APPTYPE_SIM = 1; |
michael@0 | 369 | this.CARD_APPTYPE_USIM = 2; |
michael@0 | 370 | this.CARD_APPTYPE_RUIM = 3; |
michael@0 | 371 | this.CARD_APPTYPE_CSIM = 4; |
michael@0 | 372 | this.CARD_APPTYPE_ISIM = 5; |
michael@0 | 373 | |
michael@0 | 374 | this.CARD_MAX_APPS = 8; |
michael@0 | 375 | |
michael@0 | 376 | this.GECKO_CARD_TYPE = [ |
michael@0 | 377 | null, |
michael@0 | 378 | "sim", |
michael@0 | 379 | "usim", |
michael@0 | 380 | "ruim", |
michael@0 | 381 | "csim", |
michael@0 | 382 | "isim" |
michael@0 | 383 | ]; |
michael@0 | 384 | |
michael@0 | 385 | this.NETWORK_STATE_UNKNOWN = "unknown"; |
michael@0 | 386 | this.NETWORK_STATE_AVAILABLE = "available"; |
michael@0 | 387 | this.NETWORK_STATE_CONNECTED = "connected"; |
michael@0 | 388 | this.NETWORK_STATE_FORBIDDEN = "forbidden"; |
michael@0 | 389 | |
michael@0 | 390 | this.NETWORK_SELECTION_MODE_AUTOMATIC = 0; |
michael@0 | 391 | this.NETWORK_SELECTION_MODE_MANUAL = 1; |
michael@0 | 392 | |
michael@0 | 393 | this.NETWORK_INFO_VOICE_REGISTRATION_STATE = "voiceRegistrationState"; |
michael@0 | 394 | this.NETWORK_INFO_DATA_REGISTRATION_STATE = "dataRegistrationState"; |
michael@0 | 395 | this.NETWORK_INFO_OPERATOR = "operator"; |
michael@0 | 396 | this.NETWORK_INFO_NETWORK_SELECTION_MODE = "networkSelectionMode"; |
michael@0 | 397 | this.NETWORK_INFO_SIGNAL = "signal"; |
michael@0 | 398 | this.NETWORK_INFO_MESSAGE_TYPES = [ |
michael@0 | 399 | NETWORK_INFO_VOICE_REGISTRATION_STATE, |
michael@0 | 400 | NETWORK_INFO_DATA_REGISTRATION_STATE, |
michael@0 | 401 | NETWORK_INFO_OPERATOR, |
michael@0 | 402 | NETWORK_INFO_NETWORK_SELECTION_MODE, |
michael@0 | 403 | NETWORK_INFO_SIGNAL |
michael@0 | 404 | ]; |
michael@0 | 405 | |
michael@0 | 406 | this.GECKO_PREFERRED_NETWORK_TYPE_WCDMA_GSM = "wcdma/gsm"; |
michael@0 | 407 | this.GECKO_PREFERRED_NETWORK_TYPE_GSM_ONLY = "gsm"; |
michael@0 | 408 | this.GECKO_PREFERRED_NETWORK_TYPE_WCDMA_ONLY = "wcdma"; |
michael@0 | 409 | this.GECKO_PREFERRED_NETWORK_TYPE_WCDMA_GSM_AUTO = "wcdma/gsm-auto"; |
michael@0 | 410 | this.GECKO_PREFERRED_NETWORK_TYPE_CDMA_EVDO = "cdma/evdo"; |
michael@0 | 411 | this.GECKO_PREFERRED_NETWORK_TYPE_CDMA_ONLY = "cdma"; |
michael@0 | 412 | this.GECKO_PREFERRED_NETWORK_TYPE_EVDO_ONLY = "evdo"; |
michael@0 | 413 | this.GECKO_PREFERRED_NETWORK_TYPE_WCDMA_GSM_CDMA_EVDO = "wcdma/gsm/cdma/evdo"; |
michael@0 | 414 | this.GECKO_PREFERRED_NETWORK_TYPE_LTE_CDMA_EVDO = "lte/cdma/evdo"; |
michael@0 | 415 | this.GECKO_PREFERRED_NETWORK_TYPE_LTE_WCDMA_GSM = "lte/wcdma/gsm"; |
michael@0 | 416 | this.GECKO_PREFERRED_NETWORK_TYPE_LTE_WCDMA_GSM_CDMA_EVDO = "lte/wcdma/gsm/cdma/evdo"; |
michael@0 | 417 | this.GECKO_PREFERRED_NETWORK_TYPE_LTE_ONLY = "lte"; |
michael@0 | 418 | this.RIL_PREFERRED_NETWORK_TYPE_TO_GECKO = [ |
michael@0 | 419 | GECKO_PREFERRED_NETWORK_TYPE_WCDMA_GSM, |
michael@0 | 420 | GECKO_PREFERRED_NETWORK_TYPE_GSM_ONLY, |
michael@0 | 421 | GECKO_PREFERRED_NETWORK_TYPE_WCDMA_ONLY, |
michael@0 | 422 | GECKO_PREFERRED_NETWORK_TYPE_WCDMA_GSM_AUTO, |
michael@0 | 423 | GECKO_PREFERRED_NETWORK_TYPE_CDMA_EVDO, |
michael@0 | 424 | GECKO_PREFERRED_NETWORK_TYPE_CDMA_ONLY, |
michael@0 | 425 | GECKO_PREFERRED_NETWORK_TYPE_EVDO_ONLY, |
michael@0 | 426 | GECKO_PREFERRED_NETWORK_TYPE_WCDMA_GSM_CDMA_EVDO, |
michael@0 | 427 | GECKO_PREFERRED_NETWORK_TYPE_LTE_CDMA_EVDO, |
michael@0 | 428 | GECKO_PREFERRED_NETWORK_TYPE_LTE_WCDMA_GSM, |
michael@0 | 429 | GECKO_PREFERRED_NETWORK_TYPE_LTE_WCDMA_GSM_CDMA_EVDO, |
michael@0 | 430 | GECKO_PREFERRED_NETWORK_TYPE_LTE_ONLY |
michael@0 | 431 | ]; |
michael@0 | 432 | |
michael@0 | 433 | this.GECKO_SUPPORTED_NETWORK_TYPES_DEFAULT = "gsm,wcdma"; |
michael@0 | 434 | this.GECKO_SUPPORTED_NETWORK_TYPES = [ |
michael@0 | 435 | "gsm", |
michael@0 | 436 | "wcdma", |
michael@0 | 437 | "cdma", |
michael@0 | 438 | "evdo", |
michael@0 | 439 | "lte" |
michael@0 | 440 | ]; |
michael@0 | 441 | |
michael@0 | 442 | // Network registration states. See TS 27.007 7.2 |
michael@0 | 443 | this.NETWORK_CREG_STATE_NOT_SEARCHING = 0; |
michael@0 | 444 | this.NETWORK_CREG_STATE_REGISTERED_HOME = 1; |
michael@0 | 445 | this.NETWORK_CREG_STATE_SEARCHING = 2; |
michael@0 | 446 | this.NETWORK_CREG_STATE_DENIED = 3; |
michael@0 | 447 | this.NETWORK_CREG_STATE_UNKNOWN = 4; |
michael@0 | 448 | this.NETWORK_CREG_STATE_REGISTERED_ROAMING = 5; |
michael@0 | 449 | this.NETWORK_CREG_STATE_NOT_SEARCHING_EMERGENCY_CALLS = 10; |
michael@0 | 450 | this.NETWORK_CREG_STATE_SEARCHING_EMERGENCY_CALLS = 12; |
michael@0 | 451 | this.NETWORK_CREG_STATE_DENIED_EMERGENCY_CALLS = 13; |
michael@0 | 452 | this.NETWORK_CREG_STATE_UNKNOWN_EMERGENCY_CALLS = 14; |
michael@0 | 453 | |
michael@0 | 454 | this.NETWORK_CREG_TECH_UNKNOWN = 0; |
michael@0 | 455 | this.NETWORK_CREG_TECH_GPRS = 1; |
michael@0 | 456 | this.NETWORK_CREG_TECH_EDGE = 2; |
michael@0 | 457 | this.NETWORK_CREG_TECH_UMTS = 3; |
michael@0 | 458 | this.NETWORK_CREG_TECH_IS95A = 4; |
michael@0 | 459 | this.NETWORK_CREG_TECH_IS95B = 5; |
michael@0 | 460 | this.NETWORK_CREG_TECH_1XRTT = 6; |
michael@0 | 461 | this.NETWORK_CREG_TECH_EVDO0 = 7; |
michael@0 | 462 | this.NETWORK_CREG_TECH_EVDOA = 8; |
michael@0 | 463 | this.NETWORK_CREG_TECH_HSDPA = 9; |
michael@0 | 464 | this.NETWORK_CREG_TECH_HSUPA = 10; |
michael@0 | 465 | this.NETWORK_CREG_TECH_HSPA = 11; |
michael@0 | 466 | this.NETWORK_CREG_TECH_EVDOB = 12; |
michael@0 | 467 | this.NETWORK_CREG_TECH_EHRPD = 13; |
michael@0 | 468 | this.NETWORK_CREG_TECH_LTE = 14; |
michael@0 | 469 | this.NETWORK_CREG_TECH_HSPAP = 15; |
michael@0 | 470 | this.NETWORK_CREG_TECH_GSM = 16; |
michael@0 | 471 | |
michael@0 | 472 | this.CALL_STATE_UNKNOWN = -1; |
michael@0 | 473 | this.CALL_STATE_ACTIVE = 0; |
michael@0 | 474 | this.CALL_STATE_HOLDING = 1; |
michael@0 | 475 | this.CALL_STATE_DIALING = 2; |
michael@0 | 476 | this.CALL_STATE_ALERTING = 3; |
michael@0 | 477 | this.CALL_STATE_INCOMING = 4; |
michael@0 | 478 | this.CALL_STATE_WAITING = 5; |
michael@0 | 479 | |
michael@0 | 480 | this.TOA_INTERNATIONAL = 0x91; |
michael@0 | 481 | this.TOA_UNKNOWN = 0x81; |
michael@0 | 482 | |
michael@0 | 483 | this.CALL_PRESENTATION_ALLOWED = 0; |
michael@0 | 484 | this.CALL_PRESENTATION_RESTRICTED = 1; |
michael@0 | 485 | this.CALL_PRESENTATION_UNKNOWN = 2; |
michael@0 | 486 | this.CALL_PRESENTATION_PAYPHONE = 3; |
michael@0 | 487 | |
michael@0 | 488 | // Call forwarding actions, see TS 27.007 7.11 "mode" |
michael@0 | 489 | this.CALL_FORWARD_ACTION_QUERY_STATUS = 2; |
michael@0 | 490 | |
michael@0 | 491 | // ICC commands, see TS 27.007 +CRSM commands |
michael@0 | 492 | this.ICC_COMMAND_SEEK = 0xa2; |
michael@0 | 493 | this.ICC_COMMAND_READ_BINARY = 0xb0; |
michael@0 | 494 | this.ICC_COMMAND_READ_RECORD = 0xb2; |
michael@0 | 495 | this.ICC_COMMAND_GET_RESPONSE = 0xc0; |
michael@0 | 496 | this.ICC_COMMAND_UPDATE_BINARY = 0xd6; |
michael@0 | 497 | this.ICC_COMMAND_UPDATE_RECORD = 0xdc; |
michael@0 | 498 | |
michael@0 | 499 | // ICC constants, GSM SIM file ids from TS 51.011 |
michael@0 | 500 | this.ICC_EF_ICCID = 0x2fe2; |
michael@0 | 501 | this.ICC_EF_IMG = 0x4f20; |
michael@0 | 502 | this.ICC_EF_PBR = 0x4f30; |
michael@0 | 503 | this.ICC_EF_PLMNsel = 0x6f30; // PLMN for SIM |
michael@0 | 504 | this.ICC_EF_SST = 0x6f38; |
michael@0 | 505 | this.ICC_EF_UST = 0x6f38; // For USIM |
michael@0 | 506 | this.ICC_EF_ADN = 0x6f3a; |
michael@0 | 507 | this.ICC_EF_FDN = 0x6f3b; |
michael@0 | 508 | this.ICC_EF_SMS = 0x6f3c; |
michael@0 | 509 | this.ICC_EF_MSISDN = 0x6f40; |
michael@0 | 510 | this.ICC_EF_CBMI = 0x6f45; |
michael@0 | 511 | this.ICC_EF_SPN = 0x6f46; |
michael@0 | 512 | this.ICC_EF_CBMID = 0x6f48; |
michael@0 | 513 | this.ICC_EF_SDN = 0x6f49; |
michael@0 | 514 | this.ICC_EF_EXT1 = 0x6f4a; |
michael@0 | 515 | this.ICC_EF_EXT2 = 0x6f4b; |
michael@0 | 516 | this.ICC_EF_EXT3 = 0x6f4c; |
michael@0 | 517 | this.ICC_EF_CBMIR = 0x6f50; |
michael@0 | 518 | this.ICC_EF_AD = 0x6fad; |
michael@0 | 519 | this.ICC_EF_PHASE = 0x6fae; |
michael@0 | 520 | this.ICC_EF_PNN = 0x6fc5; |
michael@0 | 521 | this.ICC_EF_OPL = 0x6fc6; |
michael@0 | 522 | this.ICC_EF_MBDN = 0x6fc7; |
michael@0 | 523 | this.ICC_EF_EXT6 = 0x6fc8; // Ext record for EF[MBDN] |
michael@0 | 524 | this.ICC_EF_MBI = 0x6fc9; |
michael@0 | 525 | this.ICC_EF_MWIS = 0x6fca; |
michael@0 | 526 | this.ICC_EF_CFIS = 0x6fcb; |
michael@0 | 527 | this.ICC_EF_SPDI = 0x6fcd; |
michael@0 | 528 | |
michael@0 | 529 | // CSIM files |
michael@0 | 530 | this.ICC_EF_CSIM_IMSI_M = 0x6f22; |
michael@0 | 531 | this.ICC_EF_CSIM_CDMAHOME = 0x6f28; |
michael@0 | 532 | this.ICC_EF_CSIM_CST = 0x6f32; // CDMA Service table |
michael@0 | 533 | this.ICC_EF_CSIM_SPN = 0x6f41; |
michael@0 | 534 | |
michael@0 | 535 | this.ICC_PHASE_1 = 0x00; |
michael@0 | 536 | this.ICC_PHASE_2 = 0x02; |
michael@0 | 537 | this.ICC_PHASE_2_PROFILE_DOWNLOAD_REQUIRED = 0x03; |
michael@0 | 538 | |
michael@0 | 539 | // Types of files TS 11.11 9.3 |
michael@0 | 540 | this.TYPE_RFU = 0; |
michael@0 | 541 | this.TYPE_MF = 1; |
michael@0 | 542 | this.TYPE_DF = 2; |
michael@0 | 543 | this.TYPE_EF = 4; |
michael@0 | 544 | |
michael@0 | 545 | this.RESPONSE_DATA_FILE_SIZE = 2; |
michael@0 | 546 | this.RESPONSE_DATA_FILE_ID_1 = 4; |
michael@0 | 547 | this.RESPONSE_DATA_FILE_ID_2 = 5; |
michael@0 | 548 | this.RESPONSE_DATA_FILE_TYPE = 6; |
michael@0 | 549 | this.RESPONSE_DATA_RFU_3 = 7; |
michael@0 | 550 | this.RESPONSE_DATA_ACCESS_CONDITION_1 = 8; |
michael@0 | 551 | this.RESPONSE_DATA_ACCESS_CONDITION_2 = 9; |
michael@0 | 552 | this.RESPONSE_DATA_ACCESS_CONDITION_3 = 10; |
michael@0 | 553 | this.RESPONSE_DATA_FILE_STATUS = 11; |
michael@0 | 554 | this.RESPONSE_DATA_LENGTH = 12; |
michael@0 | 555 | this.RESPONSE_DATA_STRUCTURE = 13; |
michael@0 | 556 | this.RESPONSE_DATA_RECORD_LENGTH = 14; |
michael@0 | 557 | |
michael@0 | 558 | // Types of files TS 11.11 9.3 |
michael@0 | 559 | this.EF_TYPE_TRANSPARENT = 0; |
michael@0 | 560 | this.EF_TYPE_LINEAR_FIXED = 1; |
michael@0 | 561 | this.EF_TYPE_CYCLIC = 3; |
michael@0 | 562 | |
michael@0 | 563 | // TS 102.221 11.1.1.4.3 Table 11.5: File descriptor byte. |
michael@0 | 564 | this.UICC_EF_STRUCTURE = {}; |
michael@0 | 565 | this.UICC_EF_STRUCTURE[this.EF_TYPE_TRANSPARENT]= 1; |
michael@0 | 566 | this.UICC_EF_STRUCTURE[this.EF_TYPE_LINEAR_FIXED]= 2; |
michael@0 | 567 | this.UICC_EF_STRUCTURE[this.EF_TYPE_CYCLIC]= 6; |
michael@0 | 568 | |
michael@0 | 569 | // Status code of EFsms |
michael@0 | 570 | // see 3GPP TS 51.011 clause 10.5.3 |
michael@0 | 571 | this.EFSMS_STATUS_FREE = 0x00; |
michael@0 | 572 | this.EFSMS_STATUS_READ = 0x01; |
michael@0 | 573 | this.EFSMS_STATUS_TO_BE_READ = 0x03; |
michael@0 | 574 | this.EFSMS_STATUS_TO_BE_SENT = 0x07; |
michael@0 | 575 | |
michael@0 | 576 | // Total size of ADN footer(the size of Alpha identifier excluded). |
michael@0 | 577 | // See TS 151.011 clause 10.5.1 EF_ADN. |
michael@0 | 578 | this.ADN_FOOTER_SIZE_BYTES = 14; |
michael@0 | 579 | // Maximum size of BCD numbers in ADN. |
michael@0 | 580 | // See TS 151.011 clause 10.5.1 EF_ADN, 'Length of BCD number/SSC contents'. |
michael@0 | 581 | this.ADN_MAX_BCD_NUMBER_BYTES = 11; |
michael@0 | 582 | // Maximum digits of the Dialling Number in ADN. |
michael@0 | 583 | // See TS 151.011 clause 10.5.1 EF_ADN, 'Dialling Number'. |
michael@0 | 584 | this.ADN_MAX_NUMBER_DIGITS = 20; |
michael@0 | 585 | |
michael@0 | 586 | // READ_RECORD mode, TS 102.221 |
michael@0 | 587 | this.READ_RECORD_ABSOLUTE_MODE = 4; |
michael@0 | 588 | |
michael@0 | 589 | // GET_RESPONSE mandatory response size for EF, see TS 51.011 clause 9, |
michael@0 | 590 | // 'Response data in case of an EF.' |
michael@0 | 591 | this.GET_RESPONSE_EF_SIZE_BYTES = 15; |
michael@0 | 592 | |
michael@0 | 593 | // EF path |
michael@0 | 594 | this.EF_PATH_MF_SIM = "3f00"; |
michael@0 | 595 | this.EF_PATH_DF_PHONEBOOK = "5f3a"; |
michael@0 | 596 | this.EF_PATH_DF_TELECOM = "7f10"; |
michael@0 | 597 | this.EF_PATH_DF_GSM = "7f20"; |
michael@0 | 598 | this.EF_PATH_DF_CDMA = "7f25"; |
michael@0 | 599 | this.EF_PATH_ADF_USIM = "7fff"; |
michael@0 | 600 | |
michael@0 | 601 | // Status code of sw1 for ICC I/O, |
michael@0 | 602 | // see GSM11.11 and TS 51.011 clause 9.4, and ISO 7816-4 |
michael@0 | 603 | this.ICC_STATUS_NORMAL_ENDING = 0x90; |
michael@0 | 604 | this.ICC_STATUS_NORMAL_ENDING_WITH_EXTRA = 0x91; |
michael@0 | 605 | this.ICC_STATUS_SAT_BUSY = 0x93; |
michael@0 | 606 | this.ICC_STATUS_WITH_SIM_DATA = 0x9e; |
michael@0 | 607 | this.ICC_STATUS_WITH_RESPONSE_DATA = 0x9f; |
michael@0 | 608 | this.ICC_STATUS_ERROR_WRONG_LENGTH = 0x67; |
michael@0 | 609 | this.ICC_STATUS_ERROR_COMMAND_NOT_ALLOWED = 0x69; |
michael@0 | 610 | this.ICC_STATUS_ERROR_WRONG_PARAMETERS = 0x6a; |
michael@0 | 611 | |
michael@0 | 612 | // ICC call barring facility. |
michael@0 | 613 | // TS 27.007, clause 7.4, +CLCK |
michael@0 | 614 | this.ICC_CB_FACILITY_SIM = "SC"; |
michael@0 | 615 | this.ICC_CB_FACILITY_FDN = "FD"; |
michael@0 | 616 | this.ICC_CB_FACILITY_BAOC = "AO"; |
michael@0 | 617 | this.ICC_CB_FACILITY_BAOIC = "OI"; |
michael@0 | 618 | this.ICC_CB_FACILITY_BAOICxH = "OX"; |
michael@0 | 619 | this.ICC_CB_FACILITY_BAIC = "AI"; |
michael@0 | 620 | this.ICC_CB_FACILITY_BAICr = "IR"; |
michael@0 | 621 | this.ICC_CB_FACILITY_BA_ALL = "AB"; |
michael@0 | 622 | this.ICC_CB_FACILITY_BA_MO = "AG"; |
michael@0 | 623 | this.ICC_CB_FACILITY_BA_MT = "AC"; |
michael@0 | 624 | |
michael@0 | 625 | // ICC service class |
michael@0 | 626 | // TS 27.007, clause 7.4, +CLCK |
michael@0 | 627 | this.ICC_SERVICE_CLASS_NONE = 0; // no user input |
michael@0 | 628 | this.ICC_SERVICE_CLASS_VOICE = (1 << 0); |
michael@0 | 629 | this.ICC_SERVICE_CLASS_DATA = (1 << 1); |
michael@0 | 630 | this.ICC_SERVICE_CLASS_FAX = (1 << 2); |
michael@0 | 631 | this.ICC_SERVICE_CLASS_SMS = (1 << 3); |
michael@0 | 632 | this.ICC_SERVICE_CLASS_DATA_SYNC = (1 << 4); |
michael@0 | 633 | this.ICC_SERVICE_CLASS_DATA_ASYNC = (1 << 5); |
michael@0 | 634 | this.ICC_SERVICE_CLASS_PACKET = (1 << 6); |
michael@0 | 635 | this.ICC_SERVICE_CLASS_PAD = (1 << 7); |
michael@0 | 636 | this.ICC_SERVICE_CLASS_MAX = (1 << 7); // Max ICC_SERVICE_CLASS value |
michael@0 | 637 | |
michael@0 | 638 | // ICC lock-selection codes |
michael@0 | 639 | // TS 27.007, clause 8.65, +CPINR |
michael@0 | 640 | this.ICC_SEL_CODE_SIM_PIN = "SIM PIN"; |
michael@0 | 641 | this.ICC_SEL_CODE_SIM_PUK = "SIM PUK"; |
michael@0 | 642 | this.ICC_SEL_CODE_PH_SIM_PIN = "PH-SIM PIN"; |
michael@0 | 643 | this.ICC_SEL_CODE_PH_FSIM_PIN = "PH-FSIM PIN"; |
michael@0 | 644 | this.ICC_SEL_CODE_PH_FSIM_PUK = "PH-FSIM PUK"; |
michael@0 | 645 | this.ICC_SEL_CODE_SIM_PIN2 = "SIM PIN2"; |
michael@0 | 646 | this.ICC_SEL_CODE_SIM_PUK2 = "SIM PUK2"; |
michael@0 | 647 | this.ICC_SEL_CODE_PH_NET_PIN = "PH-NET PIN"; |
michael@0 | 648 | this.ICC_SEL_CODE_PH_NET_PUK = "PH-NET PUK"; |
michael@0 | 649 | this.ICC_SEL_CODE_PH_NETSUB_PIN = "PH-NETSUB PIN"; |
michael@0 | 650 | this.ICC_SEL_CODE_PH_NETSUB_PUK = "PH-NETSUB PUK"; |
michael@0 | 651 | this.ICC_SEL_CODE_PH_SP_PIN = "PH-SP PIN"; |
michael@0 | 652 | this.ICC_SEL_CODE_PH_SP_PUK = "PH-SP PUK"; |
michael@0 | 653 | this.ICC_SEL_CODE_PH_CORP_PIN = "PH-CORP PIN"; |
michael@0 | 654 | this.ICC_SEL_CODE_PH_CORP_PUK = "PH-CORP PUK"; |
michael@0 | 655 | |
michael@0 | 656 | this.ICC_USIM_TYPE1_TAG = 0xa8; |
michael@0 | 657 | this.ICC_USIM_TYPE2_TAG = 0xa9; |
michael@0 | 658 | this.ICC_USIM_TYPE3_TAG = 0xaa; |
michael@0 | 659 | this.ICC_USIM_EFADN_TAG = 0xc0; |
michael@0 | 660 | this.ICC_USIM_EFIAP_TAG = 0xc1; |
michael@0 | 661 | this.ICC_USIM_EFEXT1_TAG = 0xc2; |
michael@0 | 662 | this.ICC_USIM_EFSNE_TAG = 0xc3; |
michael@0 | 663 | this.ICC_USIM_EFANR_TAG = 0xc4; |
michael@0 | 664 | this.ICC_USIM_EFPBC_TAG = 0xc5; |
michael@0 | 665 | this.ICC_USIM_EFGRP_TAG = 0xc6; |
michael@0 | 666 | this.ICC_USIM_EFAAS_TAG = 0xc7; |
michael@0 | 667 | this.ICC_USIM_EFGSD_TAG = 0xc8; |
michael@0 | 668 | this.ICC_USIM_EFUID_TAG = 0xc9; |
michael@0 | 669 | this.ICC_USIM_EFEMAIL_TAG = 0xca; |
michael@0 | 670 | this.ICC_USIM_EFCCP1_TAG = 0xcb; |
michael@0 | 671 | |
michael@0 | 672 | this.USIM_PBR_ANR = "anr"; |
michael@0 | 673 | this.USIM_PBR_ANR0 = "anr0"; |
michael@0 | 674 | this.USIM_PBR_EMAIL = "email"; |
michael@0 | 675 | |
michael@0 | 676 | // Current supported fields. Adding more fields to read will increasing I/O |
michael@0 | 677 | // time dramatically, do check the performance is acceptable when you add |
michael@0 | 678 | // more fields. |
michael@0 | 679 | this.USIM_PBR_FIELDS = [USIM_PBR_EMAIL, USIM_PBR_ANR0]; |
michael@0 | 680 | |
michael@0 | 681 | this.USIM_TAG_NAME = {}; |
michael@0 | 682 | this.USIM_TAG_NAME[ICC_USIM_EFADN_TAG] = "adn"; |
michael@0 | 683 | this.USIM_TAG_NAME[ICC_USIM_EFIAP_TAG] ="iap"; |
michael@0 | 684 | this.USIM_TAG_NAME[ICC_USIM_EFEXT1_TAG] = "ext1"; |
michael@0 | 685 | this.USIM_TAG_NAME[ICC_USIM_EFSNE_TAG] = "sne"; |
michael@0 | 686 | this.USIM_TAG_NAME[ICC_USIM_EFANR_TAG] = "anr"; |
michael@0 | 687 | this.USIM_TAG_NAME[ICC_USIM_EFPBC_TAG] = "pbc"; |
michael@0 | 688 | this.USIM_TAG_NAME[ICC_USIM_EFGRP_TAG] = "grp"; |
michael@0 | 689 | this.USIM_TAG_NAME[ICC_USIM_EFAAS_TAG] = "aas"; |
michael@0 | 690 | this.USIM_TAG_NAME[ICC_USIM_EFGSD_TAG] = "gsd"; |
michael@0 | 691 | this.USIM_TAG_NAME[ICC_USIM_EFUID_TAG] = "uid"; |
michael@0 | 692 | this.USIM_TAG_NAME[ICC_USIM_EFEMAIL_TAG] = "email"; |
michael@0 | 693 | this.USIM_TAG_NAME[ICC_USIM_EFCCP1_TAG] = "ccp1"; |
michael@0 | 694 | |
michael@0 | 695 | // Error message for ICC contact. |
michael@0 | 696 | this.CONTACT_ERR_REQUEST_NOT_SUPPORTED = GECKO_ERROR_REQUEST_NOT_SUPPORTED; |
michael@0 | 697 | this.CONTACT_ERR_CONTACT_TYPE_NOT_SUPPORTED = "ContactTypeNotSupported"; |
michael@0 | 698 | this.CONTACT_ERR_FIELD_NOT_SUPPORTED = "FieldNotSupported"; |
michael@0 | 699 | this.CONTACT_ERR_NO_FREE_RECORD_FOUND = "NoFreeRecordFound"; |
michael@0 | 700 | this.CONTACT_ERR_CANNOT_ACCESS_PHONEBOOK = "CannotAccessPhoneBook"; |
michael@0 | 701 | |
michael@0 | 702 | // CDMA IMSI_M's byte const. |
michael@0 | 703 | // 3GPP2 C.S0065 Sec. 5.2.2 |
michael@0 | 704 | this.CSIM_IMSI_M_MIN2_BYTE = 1; |
michael@0 | 705 | this.CSIM_IMSI_M_MIN1_BYTE = 3; |
michael@0 | 706 | this.CSIM_IMSI_M_MNC_BYTE = 6; |
michael@0 | 707 | this.CSIM_IMSI_M_PROGRAMMED_BYTE = 7; |
michael@0 | 708 | this.CSIM_IMSI_M_MCC_BYTE = 8; |
michael@0 | 709 | |
michael@0 | 710 | /** |
michael@0 | 711 | * Tags for Ber Tlv. |
michael@0 | 712 | * See 3GPP TS 101 220 clause 7.2 - Assigned TLV tag values. |
michael@0 | 713 | */ |
michael@0 | 714 | this.BER_UNKNOWN_TAG = 0x00; |
michael@0 | 715 | this.BER_FCP_TEMPLATE_TAG = 0x62; |
michael@0 | 716 | this.BER_FCP_FILE_SIZE_DATA_TAG = 0x80; |
michael@0 | 717 | this.BER_FCP_FILE_SIZE_TOTAL_TAG = 0x81; |
michael@0 | 718 | this.BER_FCP_FILE_DESCRIPTOR_TAG = 0x82; |
michael@0 | 719 | this.BER_FCP_FILE_IDENTIFIER_TAG = 0x83; |
michael@0 | 720 | this.BER_FCP_DF_NAME_TAG = 0x84; // AID. |
michael@0 | 721 | this.BER_FCP_PROPRIETARY_PRIMITIVE_TAG = 0x85; |
michael@0 | 722 | this.BER_FCP_SFI_SUPPORT_TAG = 0x88; |
michael@0 | 723 | this.BER_FCP_LIFE_CYCLE_STATUS_TAG = 0x8a; |
michael@0 | 724 | this.BER_FCP_SA_REFERENCE_FORMAT_TAG = 0x8b; // Security Attribute - Reference Format. |
michael@0 | 725 | this.BER_FCP_SA_COMPACT_FORMAT_TAG = 0x8c; // Security Attribute - Compact Format. |
michael@0 | 726 | this.BER_FCP_SAT_EXPANDED_FORMAT_TAG = 0xab; // Security Attribute Template - Expanded Format. |
michael@0 | 727 | this.BER_FCP_PROPRIETARY_TEMPLATE_TAG = 0xa5; |
michael@0 | 728 | this.BER_FCP_PIN_STATUS_DATA_OBJECTS_TAG = 0xc6; |
michael@0 | 729 | this.BER_PROACTIVE_COMMAND_TAG = 0xd0; |
michael@0 | 730 | this.BER_SMS_PP_DOWNLOAD_TAG = 0xd1; |
michael@0 | 731 | this.BER_MENU_SELECTION_TAG = 0xd3; |
michael@0 | 732 | this.BER_EVENT_DOWNLOAD_TAG = 0xd6; |
michael@0 | 733 | this.BER_TIMER_EXPIRATION_TAG = 0xd7; |
michael@0 | 734 | |
michael@0 | 735 | // Flags in Comprehension TLV. |
michael@0 | 736 | this.COMPREHENSIONTLV_FLAG_CR = 0x80; // Comprehension required. |
michael@0 | 737 | |
michael@0 | 738 | // Tags for Comprehension TLV. |
michael@0 | 739 | this.COMPREHENSIONTLV_TAG_COMMAND_DETAILS = 0x01; |
michael@0 | 740 | this.COMPREHENSIONTLV_TAG_DEVICE_ID = 0x02; |
michael@0 | 741 | this.COMPREHENSIONTLV_TAG_RESULT = 0x03; |
michael@0 | 742 | this.COMPREHENSIONTLV_TAG_DURATION = 0x04; |
michael@0 | 743 | this.COMPREHENSIONTLV_TAG_ALPHA_ID = 0x05; |
michael@0 | 744 | this.COMPREHENSIONTLV_TAG_ADDRESS = 0x06; |
michael@0 | 745 | this.COMPREHENSIONTLV_TAG_SUBADDRESS = 0x08; |
michael@0 | 746 | this.COMPREHENSIONTLV_TAG_SMS_TPDU = 0x0b; |
michael@0 | 747 | this.COMPREHENSIONTLV_TAG_TEXT_STRING = 0x0d; |
michael@0 | 748 | this.COMPREHENSIONTLV_TAG_TONE = 0x0e; |
michael@0 | 749 | this.COMPREHENSIONTLV_TAG_ITEM = 0x0f; |
michael@0 | 750 | this.COMPREHENSIONTLV_TAG_ITEM_ID = 0x10; |
michael@0 | 751 | this.COMPREHENSIONTLV_TAG_RESPONSE_LENGTH = 0x11; |
michael@0 | 752 | this.COMPREHENSIONTLV_TAG_FILE_LIST = 0x12; |
michael@0 | 753 | this.COMPREHENSIONTLV_TAG_LOCATION_INFO = 0x13; |
michael@0 | 754 | this.COMPREHENSIONTLV_TAG_IMEI = 0x14; |
michael@0 | 755 | this.COMPREHENSIONTLV_TAG_HELP_REQUEST = 0x15; |
michael@0 | 756 | this.COMPREHENSIONTLV_TAG_NMR = 0x16; |
michael@0 | 757 | this.COMPREHENSIONTLV_TAG_DEFAULT_TEXT = 0x17; |
michael@0 | 758 | this.COMPREHENSIONTLV_TAG_NEXT_ACTION_IND = 0x18; |
michael@0 | 759 | this.COMPREHENSIONTLV_TAG_CAUSE = 0x1a; |
michael@0 | 760 | this.COMPREHENSIONTLV_TAG_LOCATION_STATUS = 0x1b; |
michael@0 | 761 | this.COMPREHENSIONTLV_TAG_TRANSACTION_ID = 0x1c; |
michael@0 | 762 | this.COMPREHENSIONTLV_TAG_EVENT_LIST = 0x19; |
michael@0 | 763 | this.COMPREHENSIONTLV_TAG_ICON_ID = 0x1e; |
michael@0 | 764 | this.COMPREHENSIONTLV_TAG_ICON_ID_LIST = 0x1f; |
michael@0 | 765 | this.COMPREHENSIONTLV_TAG_TIMER_IDENTIFIER = 0x24; |
michael@0 | 766 | this.COMPREHENSIONTLV_TAG_TIMER_VALUE = 0x25; |
michael@0 | 767 | this.COMPREHENSIONTLV_TAG_DATE_TIME_ZONE = 0x26; |
michael@0 | 768 | this.COMPREHENSIONTLV_TAG_IMMEDIATE_RESPONSE = 0x2b; |
michael@0 | 769 | this.COMPREHENSIONTLV_TAG_LANGUAGE = 0x2d; |
michael@0 | 770 | this.COMPREHENSIONTLV_TAG_URL = 0x31; |
michael@0 | 771 | this.COMPREHENSIONTLV_TAG_BROWSER_TERMINATION_CAUSE = 0x34; |
michael@0 | 772 | this.COMPREHENSIONTLV_TAG_ACCESS_TECH = 0x3f; |
michael@0 | 773 | this.COMPREHENSIONTLV_TAG_SERVICE_RECORD = 0x41; |
michael@0 | 774 | this.COMPREHENSIONTLV_TAG_IMEISV = 0x62; |
michael@0 | 775 | this.COMPREHENSIONTLV_TAG_BATTERY_STATE = 0x63; |
michael@0 | 776 | this.COMPREHENSIONTLV_TAG_NETWORK_SEARCH_MODE = 0x65; |
michael@0 | 777 | this.COMPREHENSIONTLV_TAG_MEID = 0x6d; |
michael@0 | 778 | this.COMPREHENSIONTLV_TAG_BROADCAST_NETWORK_INFO = 0x7a; |
michael@0 | 779 | |
michael@0 | 780 | // Tags for Service Provider Display Information TLV |
michael@0 | 781 | this.SPDI_TAG_SPDI = 0xa3; |
michael@0 | 782 | this.SPDI_TAG_PLMN_LIST = 0x80; |
michael@0 | 783 | |
michael@0 | 784 | // MM INFORMATION message content IEIs |
michael@0 | 785 | // See 3GPP TS 24.008 table 9.2.18 |
michael@0 | 786 | this.PNN_IEI_FULL_NETWORK_NAME = 0x43; |
michael@0 | 787 | this.PNN_IEI_SHORT_NETWORK_NAME = 0x45; |
michael@0 | 788 | |
michael@0 | 789 | // Device identifiers, see TS 11.14, clause 12.7 |
michael@0 | 790 | this.STK_DEVICE_ID_KEYPAD = 0x01; |
michael@0 | 791 | this.STK_DEVICE_ID_DISPLAY = 0x02; |
michael@0 | 792 | this.STK_DEVICE_ID_EARPIECE = 0x03; |
michael@0 | 793 | this.STK_DEVICE_ID_SIM = 0x81; |
michael@0 | 794 | this.STK_DEVICE_ID_ME = 0x82; |
michael@0 | 795 | this.STK_DEVICE_ID_NETWORK = 0x83; |
michael@0 | 796 | |
michael@0 | 797 | // STK Proactive commands. |
michael@0 | 798 | this.STK_CMD_REFRESH = 0x01; |
michael@0 | 799 | this.STK_CMD_MORE_TIME = 0x02; |
michael@0 | 800 | this.STK_CMD_POLL_INTERVAL = 0x03; |
michael@0 | 801 | this.STK_CMD_POLL_OFF = 0x04; |
michael@0 | 802 | this.STK_CMD_SET_UP_EVENT_LIST = 0x05; |
michael@0 | 803 | this.STK_CMD_SET_UP_CALL = 0x10; |
michael@0 | 804 | this.STK_CMD_SEND_SS = 0x11; |
michael@0 | 805 | this.STK_CMD_SEND_USSD = 0x12; |
michael@0 | 806 | this.STK_CMD_SEND_SMS = 0x13; |
michael@0 | 807 | this.STK_CMD_SEND_DTMF = 0x14; |
michael@0 | 808 | this.STK_CMD_LAUNCH_BROWSER = 0x15; |
michael@0 | 809 | this.STK_CMD_PLAY_TONE = 0x20; |
michael@0 | 810 | this.STK_CMD_DISPLAY_TEXT = 0x21; |
michael@0 | 811 | this.STK_CMD_GET_INKEY = 0x22; |
michael@0 | 812 | this.STK_CMD_GET_INPUT = 0x23; |
michael@0 | 813 | this.STK_CMD_SELECT_ITEM = 0x24; |
michael@0 | 814 | this.STK_CMD_SET_UP_MENU = 0x25; |
michael@0 | 815 | this.STK_CMD_PROVIDE_LOCAL_INFO = 0x26; |
michael@0 | 816 | this.STK_CMD_TIMER_MANAGEMENT = 0x27; |
michael@0 | 817 | this.STK_CMD_SET_UP_IDLE_MODE_TEXT = 0x28; |
michael@0 | 818 | this.STK_CMD_OPEN_CHANNEL = 0x40; |
michael@0 | 819 | this.STK_CMD_CLOSE_CHANNEL = 0x41; |
michael@0 | 820 | this.STK_CMD_RECEIVE_DATA = 0x42; |
michael@0 | 821 | this.STK_CMD_SEND_DATA = 0x43; |
michael@0 | 822 | |
michael@0 | 823 | // STK Result code. |
michael@0 | 824 | // TS 11.14, clause 12.12 |
michael@0 | 825 | |
michael@0 | 826 | // Results '0X' and '1X' indicate that the command has been performed. |
michael@0 | 827 | |
michael@0 | 828 | // Command performed successfully. |
michael@0 | 829 | this.STK_RESULT_OK = 0x00; |
michael@0 | 830 | |
michael@0 | 831 | // Command performed with partial comprehension. |
michael@0 | 832 | this.STK_RESULT_PRFRMD_WITH_PARTIAL_COMPREHENSION = 0x01; |
michael@0 | 833 | |
michael@0 | 834 | // Command performed, with missing information. |
michael@0 | 835 | this.STK_RESULT_PRFRMD_WITH_MISSING_INFO = 0x02; |
michael@0 | 836 | |
michael@0 | 837 | // REFRESH performed with additional EFs read. |
michael@0 | 838 | this.STK_RESULT_PRFRMD_WITH_ADDITIONAL_EFS_READ = 0x03; |
michael@0 | 839 | |
michael@0 | 840 | // Command performed successfully, but requested icon could not be |
michael@0 | 841 | // displayed. |
michael@0 | 842 | this.STK_RESULT_PRFRMD_ICON_NOT_DISPLAYED = 0x04; |
michael@0 | 843 | |
michael@0 | 844 | // Command performed, but modified by call control by NAA. |
michael@0 | 845 | this.STK_RESULT_PRFRMD_MODIFIED_BY_NAA = 0x05; |
michael@0 | 846 | |
michael@0 | 847 | // Command performed successfully, limited service. |
michael@0 | 848 | this.STK_RESULT_PRFRMD_LIMITED_SERVICE = 0x06; |
michael@0 | 849 | |
michael@0 | 850 | // Command performed with modification. |
michael@0 | 851 | this.STK_RESULT_PRFRMD_WITH_MODIFICATION = 0x07; |
michael@0 | 852 | |
michael@0 | 853 | // REFRESH performed but indicated NAA was not active. |
michael@0 | 854 | this.STK_RESULT_PRFRMD_NAA_NOT_ACTIVE = 0x08; |
michael@0 | 855 | |
michael@0 | 856 | // Command performed successfully; tone not played. |
michael@0 | 857 | this.STK_RESULT_PRFRMD_TONE_NOT_PLAYED = 0x09; |
michael@0 | 858 | |
michael@0 | 859 | // Proactive UICC session terminated by the user. |
michael@0 | 860 | this.STK_RESULT_UICC_SESSION_TERM_BY_USER = 0x10; |
michael@0 | 861 | |
michael@0 | 862 | // Backward move in the proactive UICC session requested by the user. |
michael@0 | 863 | this.STK_RESULT_BACKWARD_MOVE_BY_USER = 0x11; |
michael@0 | 864 | |
michael@0 | 865 | // No response from user. |
michael@0 | 866 | this.STK_RESULT_NO_RESPONSE_FROM_USER = 0x12; |
michael@0 | 867 | |
michael@0 | 868 | // Help information required by the user. |
michael@0 | 869 | this.STK_RESULT_HELP_INFO_REQUIRED = 0x13; |
michael@0 | 870 | |
michael@0 | 871 | // USSD or SS transaction terminated by the user. |
michael@0 | 872 | this.STK_RESULT_USSD_SS_SESSION_TERM_BY_USER = 0x14; |
michael@0 | 873 | |
michael@0 | 874 | // Results '2X' indicate to the UICC that it may be worth re-trying the |
michael@0 | 875 | // command at a later opportunity. |
michael@0 | 876 | |
michael@0 | 877 | // Terminal currently unable to process command. |
michael@0 | 878 | this.STK_RESULT_TERMINAL_CRNTLY_UNABLE_TO_PROCESS = 0x20; |
michael@0 | 879 | |
michael@0 | 880 | // Network currently unable to process command. |
michael@0 | 881 | this.STK_RESULT_NETWORK_CRNTLY_UNABLE_TO_PROCESS = 0x21; |
michael@0 | 882 | |
michael@0 | 883 | // User did not accept the proactive command. |
michael@0 | 884 | this.STK_RESULT_USER_NOT_ACCEPT = 0x22; |
michael@0 | 885 | |
michael@0 | 886 | // User cleared down call before connection or network release. |
michael@0 | 887 | this.STK_RESULT_USER_CLEAR_DOWN_CALL = 0x23; |
michael@0 | 888 | |
michael@0 | 889 | // Action in contradiction with the current timer state. |
michael@0 | 890 | this.STK_RESULT_CONTRADICTION_WITH_TIMER = 0x24; |
michael@0 | 891 | |
michael@0 | 892 | // Interaction with call control by NAA; temporary problem. |
michael@0 | 893 | this.STK_RESULT_NAA_CALL_CONTROL_TEMPORARY = 0x25; |
michael@0 | 894 | |
michael@0 | 895 | // Launch browser generic error code. |
michael@0 | 896 | this.STK_RESULT_LAUNCH_BROWSER_ERROR = 0x26; |
michael@0 | 897 | |
michael@0 | 898 | // MMS temporary problem. |
michael@0 | 899 | this.STK_RESULT_MMS_TEMPORARY = 0x27; |
michael@0 | 900 | |
michael@0 | 901 | // Results '3X' indicate that it is not worth the UICC re-trying with an |
michael@0 | 902 | // identical command; as it will only get the same response. However, the |
michael@0 | 903 | // decision to retry lies with the application. |
michael@0 | 904 | |
michael@0 | 905 | // Command beyond terminal's capabilities. |
michael@0 | 906 | this.STK_RESULT_BEYOND_TERMINAL_CAPABILITY = 0x30; |
michael@0 | 907 | |
michael@0 | 908 | // Command type not understood by terminal. |
michael@0 | 909 | this.STK_RESULT_CMD_TYPE_NOT_UNDERSTOOD = 0x31; |
michael@0 | 910 | |
michael@0 | 911 | // Command data not understood by terminal. |
michael@0 | 912 | this.STK_RESULT_CMD_DATA_NOT_UNDERSTOOD = 0x32; |
michael@0 | 913 | |
michael@0 | 914 | // Command number not known by terminal. |
michael@0 | 915 | this.STK_RESULT_CMD_NUM_NOT_KNOWN = 0x33; |
michael@0 | 916 | |
michael@0 | 917 | // SS Return Error. |
michael@0 | 918 | this.STK_RESULT_SS_RETURN_ERROR = 0x34; |
michael@0 | 919 | |
michael@0 | 920 | // SMS RP-ERROR. |
michael@0 | 921 | this.STK_RESULT_SMS_RP_ERROR = 0x35; |
michael@0 | 922 | |
michael@0 | 923 | // Error, required values are missing. |
michael@0 | 924 | this.STK_RESULT_REQUIRED_VALUES_MISSING = 0x36; |
michael@0 | 925 | |
michael@0 | 926 | // USSD Return Error. |
michael@0 | 927 | this.STK_RESULT_USSD_RETURN_ERROR = 0x37; |
michael@0 | 928 | |
michael@0 | 929 | // MultipleCard commands error. |
michael@0 | 930 | this.STK_RESULT_MULTI_CARDS_CMD_ERROR = 0x38; |
michael@0 | 931 | |
michael@0 | 932 | // Interaction with call control by USIM or MO short message control by |
michael@0 | 933 | // USIM; permanent problem. |
michael@0 | 934 | this.STK_RESULT_USIM_CALL_CONTROL_PERMANENT = 0x39; |
michael@0 | 935 | |
michael@0 | 936 | // Bearer Independent Protocol error. |
michael@0 | 937 | this.STK_RESULT_BIP_ERROR = 0x3a; |
michael@0 | 938 | |
michael@0 | 939 | // Access Technology unable to process command. |
michael@0 | 940 | this.STK_RESULT_ACCESS_TECH_UNABLE_TO_PROCESS = 0x3b; |
michael@0 | 941 | |
michael@0 | 942 | // Frames error. |
michael@0 | 943 | this.STK_RESULT_FRAMES_ERROR = 0x3c; |
michael@0 | 944 | |
michael@0 | 945 | // MMS Error. |
michael@0 | 946 | this.STK_RESULT_MMS_ERROR = 0x3d; |
michael@0 | 947 | |
michael@0 | 948 | // STK presentation types, TS 11.14, clause 12.6, Command Qualifier: Select Item |
michael@0 | 949 | this.STK_PRESENTATION_TYPE_NOT_SPECIFIED = 0x00; // Bit 1 is 0. |
michael@0 | 950 | this.STK_PRESENTATION_TYPE_DATA_VALUES = 0x01; // Bit 1 is 1, bit 2 is 0. |
michael@0 | 951 | this.STK_PRESENTATION_TYPE_NAVIGATION_OPTIONS = 0x03; // Bit 1 is 1, bit 2 is 1. |
michael@0 | 952 | |
michael@0 | 953 | // STK Coding Scheme. |
michael@0 | 954 | this.STK_TEXT_CODING_GSM_7BIT_PACKED = 0x00; |
michael@0 | 955 | this.STK_TEXT_CODING_GSM_8BIT = 0x04; |
michael@0 | 956 | this.STK_TEXT_CODING_UCS2 = 0x08; |
michael@0 | 957 | |
michael@0 | 958 | // STK Event List. |
michael@0 | 959 | this.STK_EVENT_TYPE_MT_CALL = 0x00; |
michael@0 | 960 | this.STK_EVENT_TYPE_CALL_CONNECTED = 0x01; |
michael@0 | 961 | this.STK_EVENT_TYPE_CALL_DISCONNECTED = 0x02; |
michael@0 | 962 | this.STK_EVENT_TYPE_LOCATION_STATUS = 0x03; |
michael@0 | 963 | this.STK_EVENT_TYPE_USER_ACTIVITY = 0x04; |
michael@0 | 964 | this.STK_EVENT_TYPE_IDLE_SCREEN_AVAILABLE = 0x05; |
michael@0 | 965 | this.STK_EVENT_TYPE_CARD_READER_STATUS = 0x06; |
michael@0 | 966 | this.STK_EVENT_TYPE_LANGUAGE_SELECTION = 0x07; |
michael@0 | 967 | this.STK_EVENT_TYPE_BROWSER_TERMINATION = 0x08; |
michael@0 | 968 | this.STK_EVENT_TYPE_DATA_AVAILABLE = 0x09; |
michael@0 | 969 | this.STK_EVENT_TYPE_CHANNEL_STATUS = 0x0a; |
michael@0 | 970 | this.STK_EVENT_TYPE_SINGLE_ACCESS_TECHNOLOGY_CHANGED = 0x0b; |
michael@0 | 971 | this.STK_EVENT_TYPE_DISPLAY_PARAMETER_CHANGED = 0x0c; |
michael@0 | 972 | this.STK_EVENT_TYPE_LOCAL_CONNECTION = 0x0d; |
michael@0 | 973 | this.STK_EVENT_TYPE_NETWORK_SEARCH_MODE_CHANGED = 0x0e; |
michael@0 | 974 | this.STK_EVENT_TYPE_BROWSING_STATUS = 0x0f; |
michael@0 | 975 | |
michael@0 | 976 | // STK Service state of Location Status. |
michael@0 | 977 | this.STK_SERVICE_STATE_NORMAL = 0x00; |
michael@0 | 978 | this.STK_SERVICE_STATE_LIMITED = 0x01; |
michael@0 | 979 | this.STK_SERVICE_STATE_UNAVAILABLE = 0x02; |
michael@0 | 980 | |
michael@0 | 981 | // Refresh mode. |
michael@0 | 982 | this.STK_REFRESH_NAA_INIT_AND_FULL_FILE_CHANGE = 0x00; |
michael@0 | 983 | this.STK_REFRESH_FILE_CHANGE = 0x01; |
michael@0 | 984 | this.STK_REFRESH_NAA_INIT_AND_FILE_CHANGE = 0x02; |
michael@0 | 985 | this.STK_REFRESH_NAA_INIT = 0x03; |
michael@0 | 986 | this.STK_REFRESH_UICC_RESET = 0x04; |
michael@0 | 987 | |
michael@0 | 988 | // Tone type. |
michael@0 | 989 | this.STK_TONE_TYPE_DIAL_TONE = 0x01; |
michael@0 | 990 | this.STK_TONE_TYPE_CALLED_SUBSCRIBER_BUSY = 0x02; |
michael@0 | 991 | this.STK_TONE_TYPE_CONGESTION = 0x03; |
michael@0 | 992 | this.STK_TONE_TYPE_RADIO_PATH_ACK = 0x04; |
michael@0 | 993 | this.STK_TONE_TYPE_RADIO_PATH_NOT_AVAILABLE = 0x05; |
michael@0 | 994 | this.STK_TONE_TYPE_ERROR = 0x06; |
michael@0 | 995 | this.STK_TONE_TYPE_CALL_WAITING_TONE = 0x07; |
michael@0 | 996 | this.STK_TONE_TYPE_RINGING_TONE = 0x08; |
michael@0 | 997 | this.STK_TONE_TYPE_GENERAL_BEEP = 0x10; |
michael@0 | 998 | this.STK_TONE_TYPE_POSITIVE_ACK_TONE = 0x11; |
michael@0 | 999 | this.STK_TONE_TYPE_NEGATIVE_ACK_TONE = 0x12; |
michael@0 | 1000 | |
michael@0 | 1001 | // Time unit. |
michael@0 | 1002 | this.STK_TIME_UNIT_MINUTE = 0x00; |
michael@0 | 1003 | this.STK_TIME_UNIT_SECOND = 0x01; |
michael@0 | 1004 | this.STK_TIME_UNIT_TENTH_SECOND = 0x02; |
michael@0 | 1005 | |
michael@0 | 1006 | // Local Information type. |
michael@0 | 1007 | this.STK_LOCAL_INFO_NNA = 0x00; |
michael@0 | 1008 | this.STK_LOCAL_INFO_IMEI = 0x01; |
michael@0 | 1009 | this.STK_LOCAL_INFO_NMR_FOR_NNA = 0x02; |
michael@0 | 1010 | this.STK_LOCAL_INFO_DATE_TIME_ZONE = 0x03; |
michael@0 | 1011 | this.STK_LOCAL_INFO_LANGUAGE = 0x04; |
michael@0 | 1012 | this.STK_LOCAL_INFO_ACCESS_TECH = 0x06; |
michael@0 | 1013 | this.STK_LOCAL_INFO_ESN = 0x07; |
michael@0 | 1014 | this.STK_LOCAL_INFO_IMEISV = 0x08; |
michael@0 | 1015 | this.STK_LOCAL_INFO_SEARCH_MODE = 0x09; |
michael@0 | 1016 | this.STK_LOCAL_INFO_CHARGE_STATE = 0x0A; |
michael@0 | 1017 | this.STK_LOCAL_INFO_MEID = 0x0B; |
michael@0 | 1018 | this.STK_LOCAL_INFO_BROADCAST_NETWORK_INFO = 0x0D; |
michael@0 | 1019 | this.STK_LOCAL_INFO_MULTIPLE_ACCESS_TECH = 0x0E; |
michael@0 | 1020 | this.STK_LOCAL_INFO_INFO_FOR_MULTIPLE_ACCESS_TECH = 0x0F; |
michael@0 | 1021 | this.STK_LOCAL_INFO_NMR_FOR_MULTIPLE_ACCESS_TECH = 0x10; |
michael@0 | 1022 | |
michael@0 | 1023 | // Timer Management. |
michael@0 | 1024 | this.STK_TIMER_START = 0x00; |
michael@0 | 1025 | this.STK_TIMER_DEACTIVATE = 0x01; |
michael@0 | 1026 | this.STK_TMIER_GET_CURRENT_VALUE = 0x02; |
michael@0 | 1027 | |
michael@0 | 1028 | // Browser Termination Cause. |
michael@0 | 1029 | this.STK_BROWSER_TERMINATION_CAUSE_USER = 0x00; |
michael@0 | 1030 | this.STK_BROWSER_TERMINATION_CAUSE_ERROR = 0x01; |
michael@0 | 1031 | |
michael@0 | 1032 | // Next Action Indicator. |
michael@0 | 1033 | this.STK_NEXT_ACTION_NULL = 0x00; |
michael@0 | 1034 | this.STK_NEXT_ACTION_END_PROACTIVE_SESSION = 0x81; |
michael@0 | 1035 | |
michael@0 | 1036 | /** |
michael@0 | 1037 | * Supported Terminal Facilities. |
michael@0 | 1038 | * |
michael@0 | 1039 | * value = 1, supported. |
michael@0 | 1040 | * 0, not supported. |
michael@0 | 1041 | */ |
michael@0 | 1042 | this.STK_TERMINAL_SUPPORT_PROFILE_DOWNLOAD = 1; |
michael@0 | 1043 | this.STK_TERMINAL_SUPPORT_SMS_PP_DOWNLOAD = 1; |
michael@0 | 1044 | this.STK_TERMINAL_SUPPORT_CELL_BROADCAST_DATA_DOWNLOAD = 0; |
michael@0 | 1045 | this.STK_TERMINAL_SUPPORT_MENU_SELECTION = 1; |
michael@0 | 1046 | this.STK_TERMINAL_SUPPORT_SIM_DATA_DOWNLOAD_ERROR = 0; |
michael@0 | 1047 | this.STK_TERMINAL_SUPPORT_TIMER_EXPIRATION = 1; |
michael@0 | 1048 | this.STK_TERMINAL_SUPPORT_USSD_IN_CALL_CONTROL = 0; |
michael@0 | 1049 | this.STK_TERMINAL_SUPPORT_CALL_CONTROL_IN_REDIAL = 0; |
michael@0 | 1050 | |
michael@0 | 1051 | this.STK_TERMINAL_SUPPORT_COMMAND_RESULT = 1; |
michael@0 | 1052 | this.STK_TERMINAL_SUPPORT_CALL_CONTROL = 1; |
michael@0 | 1053 | this.STK_TERMINAL_SUPPORT_CALL_ID_INCLUDED = 0; |
michael@0 | 1054 | this.STK_TERMINAL_SUPPORT_MO_SMS_CONTROL = 0; |
michael@0 | 1055 | this.STK_TERMINAL_SUPPORT_ALPHA_ID_INDICATION = 0; |
michael@0 | 1056 | this.STK_TERMINAL_SUPPORT_UCS2_ENTRY = 1; |
michael@0 | 1057 | this.STK_TERMINAL_SUPPORT_UCS2_DISPLAY = 1; |
michael@0 | 1058 | this.STK_TERMINAL_SUPPORT_EXTENSION_TEXT = 1; |
michael@0 | 1059 | |
michael@0 | 1060 | this.STK_TERMINAL_SUPPORT_PROACTIVE_DISPLAY_TEXT = 1; |
michael@0 | 1061 | this.STK_TERMINAL_SUPPORT_PROACTIVE_GET_INKEY = 1; |
michael@0 | 1062 | this.STK_TERMINAL_SUPPORT_PROACTIVE_GET_INPUT = 1; |
michael@0 | 1063 | this.STK_TERMINAL_SUPPORT_PROACTIVE_MORE_TIME = 1; |
michael@0 | 1064 | this.STK_TERMINAL_SUPPORT_PROACTIVE_PLAY_TONE = 1; |
michael@0 | 1065 | this.STK_TERMINAL_SUPPORT_PROACTIVE_POLL_INTERVAL = 1; |
michael@0 | 1066 | this.STK_TERMINAL_SUPPORT_PROACTIVE_POLL_OFF = 1; |
michael@0 | 1067 | this.STK_TERMINAL_SUPPORT_PROACTIVE_REFRESH = 1; |
michael@0 | 1068 | |
michael@0 | 1069 | this.STK_TERMINAL_SUPPORT_PROACTIVE_SELECT_ITEM = 1; |
michael@0 | 1070 | this.STK_TERMINAL_SUPPORT_PROACTIVE_SEND_SMS = 1; |
michael@0 | 1071 | this.STK_TERMINAL_SUPPORT_PROACTIVE_SEND_SS = 1; |
michael@0 | 1072 | this.STK_TERMINAL_SUPPORT_PROACTIVE_SEND_USSD = 1; |
michael@0 | 1073 | this.STK_TERMINAL_SUPPORT_PROACTIVE_SET_UP_CALL = 1; |
michael@0 | 1074 | this.STK_TERMINAL_SUPPORT_PROACTIVE_SET_UP_MENU = 1; |
michael@0 | 1075 | this.STK_TERMINAL_SUPPORT_PROACTIVE_LOCAL_INFO = 1; |
michael@0 | 1076 | this.STK_TERMINAL_SUPPORT_PROACTIVE_LOCAL_INFO_NMR = 0; |
michael@0 | 1077 | |
michael@0 | 1078 | this.STK_TERMINAL_SUPPORT_PROACTIVE_SET_UP_EVENT_LIST = 1; |
michael@0 | 1079 | this.STK_TERMINAL_SUPPORT_EVENT_MT_CALL = 1; |
michael@0 | 1080 | this.STK_TERMINAL_SUPPORT_EVENT_CALL_CONNECTED = 1; |
michael@0 | 1081 | this.STK_TERMINAL_SUPPORT_EVENT_CALL_DISCONNECTED = 1; |
michael@0 | 1082 | this.STK_TERMINAL_SUPPORT_EVENT_LOCATION_STATUS = 1; |
michael@0 | 1083 | this.STK_TERMINAL_SUPPORT_EVENT_USER_ACTIVITY = 1; |
michael@0 | 1084 | this.STK_TERMINAL_SUPPORT_EVENT_IDLE_SCREEN_AVAILABLE = 1; |
michael@0 | 1085 | this.STK_TERMINAL_SUPPORT_EVENT_CARD_READER_STATUS = 0; |
michael@0 | 1086 | |
michael@0 | 1087 | this.STK_TERMINAL_SUPPORT_EVENT_LANGUAGE_SELECTION = 1; |
michael@0 | 1088 | this.STK_TERMINAL_SUPPORT_EVENT_BROWSER_TERMINATION = 1; |
michael@0 | 1089 | this.STK_TERMINAL_SUPPORT_EVENT_DATA_AVAILABLE = 0; |
michael@0 | 1090 | this.STK_TERMINAL_SUPPORT_EVENT_CHANNEL_STATUS = 0; |
michael@0 | 1091 | |
michael@0 | 1092 | this.STK_TERMINAL_SUPPORT_PROACTIVE_TIMER_START_STOP = 1; |
michael@0 | 1093 | this.STK_TERMINAL_SUPPORT_PROACTIVE_TIMER_GET_CURRENT = 1; |
michael@0 | 1094 | this.STK_TERMINAL_SUPPORT_PROACTIVE_LOCAL_INFO_DATE = 1; |
michael@0 | 1095 | this.STK_TERMINAL_SUPPORT_GET_INKEY = 1; |
michael@0 | 1096 | this.STK_TERMINAL_SUPPORT_SET_UP_IDLE_MODE_TEXT = 1; |
michael@0 | 1097 | this.STK_TERMINAL_SUPPORT_RUN_AT_COMMAND = 0; |
michael@0 | 1098 | this.STK_TERMINAL_SUPPORT_SET_UP_CALL = 1; |
michael@0 | 1099 | this.STK_TERMINAL_SUPPORT_CALL_CONTROL_BY_NNA = 0; |
michael@0 | 1100 | |
michael@0 | 1101 | this.STK_TERMINAL_SUPPORT_DISPLAY_TEXT = 1; |
michael@0 | 1102 | this.STK_TERMINAL_SUPPORT_SEND_DTMF_COMMAND = 1; |
michael@0 | 1103 | this.STK_TERMINAL_SUPPORT_PROACTIVE_LOCAL_INFO_NMR = 0; |
michael@0 | 1104 | this.STK_TERMINAL_SUPPORT_PROACTIVE_LOCAL_INFO_LANGUAGE = 1; |
michael@0 | 1105 | this.STK_TERMINAL_SUPPORT_PROACTIVE_LOCAL_INFO_TIME_ADVANCE = 0; |
michael@0 | 1106 | this.STK_TERMINAL_SUPPORT_PROACTIVE_LANGUAGE_NOTIFICATION = 0; |
michael@0 | 1107 | this.STK_TERMINAL_SUPPORT_PROACTIVE_LAUNCH_BROWSER = 1; |
michael@0 | 1108 | this.STK_TERMINAL_SUPPORT_PROACTIVE_LOCAL_INFO_ACCESS_TECH = 0; |
michael@0 | 1109 | |
michael@0 | 1110 | this.STK_TERMINAL_SUPPORT_BIP_COMMAND_OPEN_CHANNEL = 1; |
michael@0 | 1111 | this.STK_TERMINAL_SUPPORT_BIP_COMMAND_CLOSE_CHANNEL = 1; |
michael@0 | 1112 | this.STK_TERMINAL_SUPPORT_BIP_COMMAND_RECEIVE_DATA = 1; |
michael@0 | 1113 | this.STK_TERMINAL_SUPPORT_BIP_COMMAND_SEND_DATA = 1; |
michael@0 | 1114 | this.STK_TERMINAL_SUPPORT_BIP_COMMAND_GET_CHANNEL_STATUS = 0; |
michael@0 | 1115 | |
michael@0 | 1116 | /** |
michael@0 | 1117 | * SAT profile |
michael@0 | 1118 | * |
michael@0 | 1119 | * @see ETSI TS 101.267, section 5.2. |
michael@0 | 1120 | */ |
michael@0 | 1121 | this.STK_TERMINAL_PROFILE_DOWNLOAD = |
michael@0 | 1122 | (STK_TERMINAL_SUPPORT_PROFILE_DOWNLOAD << 0) | |
michael@0 | 1123 | (STK_TERMINAL_SUPPORT_SMS_PP_DOWNLOAD << 1) | |
michael@0 | 1124 | (STK_TERMINAL_SUPPORT_CELL_BROADCAST_DATA_DOWNLOAD << 2) | |
michael@0 | 1125 | (STK_TERMINAL_SUPPORT_MENU_SELECTION << 3) | |
michael@0 | 1126 | (STK_TERMINAL_SUPPORT_SIM_DATA_DOWNLOAD_ERROR << 4) | |
michael@0 | 1127 | (STK_TERMINAL_SUPPORT_TIMER_EXPIRATION << 5) | |
michael@0 | 1128 | (STK_TERMINAL_SUPPORT_USSD_IN_CALL_CONTROL << 6) | |
michael@0 | 1129 | (STK_TERMINAL_SUPPORT_CALL_CONTROL_IN_REDIAL << 7); |
michael@0 | 1130 | |
michael@0 | 1131 | this.STK_TERMINAL_PROFILE_OTHER = |
michael@0 | 1132 | (STK_TERMINAL_SUPPORT_COMMAND_RESULT << 0) | |
michael@0 | 1133 | (STK_TERMINAL_SUPPORT_CALL_CONTROL << 1) | |
michael@0 | 1134 | (STK_TERMINAL_SUPPORT_CALL_ID_INCLUDED << 2) | |
michael@0 | 1135 | (STK_TERMINAL_SUPPORT_MO_SMS_CONTROL << 3) | |
michael@0 | 1136 | (STK_TERMINAL_SUPPORT_ALPHA_ID_INDICATION << 4) | |
michael@0 | 1137 | (STK_TERMINAL_SUPPORT_UCS2_ENTRY << 5) | |
michael@0 | 1138 | (STK_TERMINAL_SUPPORT_UCS2_DISPLAY << 6) | |
michael@0 | 1139 | (STK_TERMINAL_SUPPORT_EXTENSION_TEXT << 7); |
michael@0 | 1140 | |
michael@0 | 1141 | this.STK_TERMINAL_PROFILE_PROACTIVE_1 = |
michael@0 | 1142 | (STK_TERMINAL_SUPPORT_PROACTIVE_DISPLAY_TEXT << 0) | |
michael@0 | 1143 | (STK_TERMINAL_SUPPORT_PROACTIVE_GET_INKEY << 1) | |
michael@0 | 1144 | (STK_TERMINAL_SUPPORT_PROACTIVE_GET_INPUT << 2) | |
michael@0 | 1145 | (STK_TERMINAL_SUPPORT_PROACTIVE_MORE_TIME << 3) | |
michael@0 | 1146 | (STK_TERMINAL_SUPPORT_PROACTIVE_PLAY_TONE << 4) | |
michael@0 | 1147 | (STK_TERMINAL_SUPPORT_PROACTIVE_POLL_INTERVAL << 5) | |
michael@0 | 1148 | (STK_TERMINAL_SUPPORT_PROACTIVE_POLL_OFF << 6) | |
michael@0 | 1149 | (STK_TERMINAL_SUPPORT_PROACTIVE_REFRESH << 7); |
michael@0 | 1150 | |
michael@0 | 1151 | this.STK_TERMINAL_PROFILE_PROACTIVE_2 = |
michael@0 | 1152 | (STK_TERMINAL_SUPPORT_PROACTIVE_SELECT_ITEM << 0) | |
michael@0 | 1153 | (STK_TERMINAL_SUPPORT_PROACTIVE_SEND_SMS << 1) | |
michael@0 | 1154 | (STK_TERMINAL_SUPPORT_PROACTIVE_SEND_SS << 2) | |
michael@0 | 1155 | (STK_TERMINAL_SUPPORT_PROACTIVE_SEND_USSD << 3) | |
michael@0 | 1156 | (STK_TERMINAL_SUPPORT_PROACTIVE_SET_UP_CALL << 4) | |
michael@0 | 1157 | (STK_TERMINAL_SUPPORT_PROACTIVE_SET_UP_MENU << 5) | |
michael@0 | 1158 | (STK_TERMINAL_SUPPORT_PROACTIVE_LOCAL_INFO << 6) | |
michael@0 | 1159 | (STK_TERMINAL_SUPPORT_PROACTIVE_LOCAL_INFO_NMR << 7); |
michael@0 | 1160 | |
michael@0 | 1161 | this.STK_TERMINAL_PROFILE_EVENT = |
michael@0 | 1162 | (STK_TERMINAL_SUPPORT_PROACTIVE_SET_UP_EVENT_LIST << 0) | |
michael@0 | 1163 | (STK_TERMINAL_SUPPORT_EVENT_MT_CALL << 1) | |
michael@0 | 1164 | (STK_TERMINAL_SUPPORT_EVENT_CALL_CONNECTED << 2) | |
michael@0 | 1165 | (STK_TERMINAL_SUPPORT_EVENT_CALL_DISCONNECTED << 3) | |
michael@0 | 1166 | (STK_TERMINAL_SUPPORT_EVENT_LOCATION_STATUS << 4) | |
michael@0 | 1167 | (STK_TERMINAL_SUPPORT_EVENT_USER_ACTIVITY << 5) | |
michael@0 | 1168 | (STK_TERMINAL_SUPPORT_EVENT_IDLE_SCREEN_AVAILABLE << 6) | |
michael@0 | 1169 | (STK_TERMINAL_SUPPORT_EVENT_CARD_READER_STATUS << 7); |
michael@0 | 1170 | |
michael@0 | 1171 | this.STK_TERMINAL_PROFILE_EVENT_EXT = |
michael@0 | 1172 | (STK_TERMINAL_SUPPORT_EVENT_LANGUAGE_SELECTION << 0) | |
michael@0 | 1173 | (STK_TERMINAL_SUPPORT_EVENT_BROWSER_TERMINATION << 1) | |
michael@0 | 1174 | (STK_TERMINAL_SUPPORT_EVENT_DATA_AVAILABLE << 2) | |
michael@0 | 1175 | (STK_TERMINAL_SUPPORT_EVENT_CHANNEL_STATUS << 3); |
michael@0 | 1176 | |
michael@0 | 1177 | this.STK_TERMINAL_PROFILE_PROACTIVE_3 = |
michael@0 | 1178 | (STK_TERMINAL_SUPPORT_PROACTIVE_TIMER_START_STOP << 0) | |
michael@0 | 1179 | (STK_TERMINAL_SUPPORT_PROACTIVE_TIMER_GET_CURRENT << 1) | |
michael@0 | 1180 | (STK_TERMINAL_SUPPORT_PROACTIVE_LOCAL_INFO_DATE << 2) | |
michael@0 | 1181 | (STK_TERMINAL_SUPPORT_GET_INKEY << 3) | |
michael@0 | 1182 | (STK_TERMINAL_SUPPORT_SET_UP_IDLE_MODE_TEXT << 4) | |
michael@0 | 1183 | (STK_TERMINAL_SUPPORT_RUN_AT_COMMAND << 5) | |
michael@0 | 1184 | (STK_TERMINAL_SUPPORT_SET_UP_CALL << 6) | |
michael@0 | 1185 | (STK_TERMINAL_SUPPORT_CALL_CONTROL_BY_NNA << 7); |
michael@0 | 1186 | |
michael@0 | 1187 | this.STK_TERMINAL_PROFILE_PROACTIVE_4 = |
michael@0 | 1188 | (STK_TERMINAL_SUPPORT_DISPLAY_TEXT << 0) | |
michael@0 | 1189 | (STK_TERMINAL_SUPPORT_SEND_DTMF_COMMAND << 1) | |
michael@0 | 1190 | (STK_TERMINAL_SUPPORT_PROACTIVE_LOCAL_INFO_NMR << 2) | |
michael@0 | 1191 | (STK_TERMINAL_SUPPORT_PROACTIVE_LOCAL_INFO_LANGUAGE << 3) | |
michael@0 | 1192 | (STK_TERMINAL_SUPPORT_PROACTIVE_LOCAL_INFO_TIME_ADVANCE << 4) | |
michael@0 | 1193 | (STK_TERMINAL_SUPPORT_PROACTIVE_LANGUAGE_NOTIFICATION << 5) | |
michael@0 | 1194 | (STK_TERMINAL_SUPPORT_PROACTIVE_LAUNCH_BROWSER << 6) | |
michael@0 | 1195 | (STK_TERMINAL_SUPPORT_PROACTIVE_LOCAL_INFO_ACCESS_TECH << 7); |
michael@0 | 1196 | |
michael@0 | 1197 | this.STK_TERMINAL_PROFILE_BIP_COMMAND = |
michael@0 | 1198 | (STK_TERMINAL_SUPPORT_BIP_COMMAND_OPEN_CHANNEL << 0) | |
michael@0 | 1199 | (STK_TERMINAL_SUPPORT_BIP_COMMAND_CLOSE_CHANNEL << 1) | |
michael@0 | 1200 | (STK_TERMINAL_SUPPORT_BIP_COMMAND_RECEIVE_DATA << 2) | |
michael@0 | 1201 | (STK_TERMINAL_SUPPORT_BIP_COMMAND_SEND_DATA << 3) | |
michael@0 | 1202 | (STK_TERMINAL_SUPPORT_BIP_COMMAND_GET_CHANNEL_STATUS << 4); |
michael@0 | 1203 | |
michael@0 | 1204 | this.STK_SUPPORTED_TERMINAL_PROFILE = [ |
michael@0 | 1205 | STK_TERMINAL_PROFILE_DOWNLOAD, |
michael@0 | 1206 | STK_TERMINAL_PROFILE_OTHER, |
michael@0 | 1207 | STK_TERMINAL_PROFILE_PROACTIVE_1, |
michael@0 | 1208 | STK_TERMINAL_PROFILE_PROACTIVE_2, |
michael@0 | 1209 | STK_TERMINAL_PROFILE_EVENT, |
michael@0 | 1210 | STK_TERMINAL_PROFILE_EVENT_EXT, // Event extension |
michael@0 | 1211 | 0x00, // Multiple card proactive commands |
michael@0 | 1212 | STK_TERMINAL_PROFILE_PROACTIVE_3, |
michael@0 | 1213 | STK_TERMINAL_PROFILE_PROACTIVE_4, |
michael@0 | 1214 | 0x00, // Softkey support |
michael@0 | 1215 | 0x00, // Softkey information |
michael@0 | 1216 | STK_TERMINAL_PROFILE_BIP_COMMAND, |
michael@0 | 1217 | 0x00, // BIP supported bearers |
michael@0 | 1218 | 0x00, // Screen height |
michael@0 | 1219 | 0x00, // Screen width |
michael@0 | 1220 | 0x00, // 16, Screen effects |
michael@0 | 1221 | 0x00, // 17, BIP supported transport interface |
michael@0 | 1222 | 0x00, // 18, RFU |
michael@0 | 1223 | 0x00, // 19, RFU |
michael@0 | 1224 | 0x00, // 20, RFU |
michael@0 | 1225 | ]; |
michael@0 | 1226 | |
michael@0 | 1227 | /** |
michael@0 | 1228 | * (U)SIM Services. |
michael@0 | 1229 | * |
michael@0 | 1230 | * @see 3GPP TS 51.011 10.3.7 (SIM) and 3GPP TS 31.102 4.2.8 (USIM). |
michael@0 | 1231 | */ |
michael@0 | 1232 | this.GECKO_ICC_SERVICES = { |
michael@0 | 1233 | sim: { |
michael@0 | 1234 | ADN: 2, |
michael@0 | 1235 | FDN: 3, |
michael@0 | 1236 | PLMNSEL: 7, |
michael@0 | 1237 | MSISDN: 9, |
michael@0 | 1238 | CBMI: 14, |
michael@0 | 1239 | SPN: 17, |
michael@0 | 1240 | SDN: 18, |
michael@0 | 1241 | DATA_DOWNLOAD_SMS_CB: 25, |
michael@0 | 1242 | DATA_DOWNLOAD_SMS_PP: 26, |
michael@0 | 1243 | CBMIR: 30, |
michael@0 | 1244 | BDN: 31, |
michael@0 | 1245 | PNN: 51, |
michael@0 | 1246 | OPL: 52, |
michael@0 | 1247 | MDN: 53, |
michael@0 | 1248 | MWIS: 54, |
michael@0 | 1249 | SPDI: 56 |
michael@0 | 1250 | }, |
michael@0 | 1251 | usim: { |
michael@0 | 1252 | FDN: 2, |
michael@0 | 1253 | SDN: 4, |
michael@0 | 1254 | BDN: 6, |
michael@0 | 1255 | CBMI: 15, |
michael@0 | 1256 | CBMIR: 16, |
michael@0 | 1257 | SPN: 19, |
michael@0 | 1258 | MSISDN: 21, |
michael@0 | 1259 | DATA_DOWNLOAD_SMS_PP: 28, |
michael@0 | 1260 | DATA_DOWNLOAD_SMS_CB: 29, |
michael@0 | 1261 | PNN: 45, |
michael@0 | 1262 | OPL: 46, |
michael@0 | 1263 | MDN: 47, |
michael@0 | 1264 | MWIS: 48, |
michael@0 | 1265 | SPDI: 51 |
michael@0 | 1266 | }, |
michael@0 | 1267 | ruim: { |
michael@0 | 1268 | ENHANCED_PHONEBOOK: 6, |
michael@0 | 1269 | SPN: 17 |
michael@0 | 1270 | } |
michael@0 | 1271 | }; |
michael@0 | 1272 | |
michael@0 | 1273 | /** |
michael@0 | 1274 | * Cell Broadcast constants |
michael@0 | 1275 | */ |
michael@0 | 1276 | |
michael@0 | 1277 | this.CB_FORMAT_GSM = 0; |
michael@0 | 1278 | this.CB_FORMAT_ETWS = 1; |
michael@0 | 1279 | this.CB_FORMAT_CMAS = 2; |
michael@0 | 1280 | this.CB_FORMAT_UMTS = 3; |
michael@0 | 1281 | |
michael@0 | 1282 | // CBS Data Coding Scheme: Language groups |
michael@0 | 1283 | // see 3GPP TS 23.038 section 5 |
michael@0 | 1284 | this.CB_DCS_LANG_GROUP_1 = [ |
michael@0 | 1285 | "de", "en", "it", "fr", "es", "nl", "sv", "da", "pt", "fi", |
michael@0 | 1286 | "no", "el", "tr", "hu", "pl", null |
michael@0 | 1287 | ]; |
michael@0 | 1288 | this.CB_DCS_LANG_GROUP_2 = [ |
michael@0 | 1289 | "cs", "he", "ar", "ru", "is", null, null, null, null, null, |
michael@0 | 1290 | null, null, null, null, null, null |
michael@0 | 1291 | ]; |
michael@0 | 1292 | |
michael@0 | 1293 | // See 3GPP TS 23.041 v11.2.0 section 9.4.1.2.2 |
michael@0 | 1294 | this.CB_NON_MMI_SETTABLE_RANGES = [ |
michael@0 | 1295 | /*0x1000 - 0x107F*/4096, 4224, /*0x1080 - 0x10FF*/4224, 4352, |
michael@0 | 1296 | /*0x1112 - 0x1112*/4370, 4371, /*0x111F - 0x111F*/4383, 4384, |
michael@0 | 1297 | /*0xF000 - 0xFFFE*/61440, 65535, /*0xFFFF - 0xFFFF*/65535, 65536 |
michael@0 | 1298 | ]; |
michael@0 | 1299 | |
michael@0 | 1300 | // User Data max length in septets |
michael@0 | 1301 | this.CB_MAX_CONTENT_7BIT = 93; |
michael@0 | 1302 | // User Data max length in octets |
michael@0 | 1303 | this.CB_MAX_CONTENT_8BIT = 82; |
michael@0 | 1304 | // User Data max length in chars |
michael@0 | 1305 | this.CB_MAX_CONTENT_UCS2 = 41; |
michael@0 | 1306 | |
michael@0 | 1307 | this.CB_MESSAGE_SIZE_ETWS = 56; |
michael@0 | 1308 | this.CB_MESSAGE_SIZE_GSM = 88; |
michael@0 | 1309 | |
michael@0 | 1310 | // GSM Cell Broadcast Geographical Scope |
michael@0 | 1311 | // See 3GPP TS 23.041 clause 9.4.1.2.1 |
michael@0 | 1312 | this.CB_GSM_GEOGRAPHICAL_SCOPE_CELL_WIDE_IMMEDIATE = 0; |
michael@0 | 1313 | this.CB_GSM_GEOGRAPHICAL_SCOPE_PLMN_WIDE = 1; |
michael@0 | 1314 | this.CB_GSM_GEOGRAPHICAL_SCOPE_LOCATION_AREA_WIDE = 2; |
michael@0 | 1315 | this.CB_GSM_GEOGRAPHICAL_SCOPE_CELL_WIDE = 3; |
michael@0 | 1316 | |
michael@0 | 1317 | // GSM Cell Broadcast Geographical Scope |
michael@0 | 1318 | // See 3GPP TS 23.041 clause 9.4.1.2.1 |
michael@0 | 1319 | this.CB_GSM_GEOGRAPHICAL_SCOPE_NAMES = [ |
michael@0 | 1320 | "cell-immediate", |
michael@0 | 1321 | "plmn", |
michael@0 | 1322 | "location-area", |
michael@0 | 1323 | "cell" |
michael@0 | 1324 | ]; |
michael@0 | 1325 | |
michael@0 | 1326 | // GSM Cell Broadcast Message Identifiers |
michael@0 | 1327 | // see 3GPP TS 23.041 clause 9.4.1.2.2 |
michael@0 | 1328 | this.CB_GSM_MESSAGEID_ETWS_BEGIN = 0x1100; |
michael@0 | 1329 | this.CB_GSM_MESSAGEID_ETWS_END = 0x1107; |
michael@0 | 1330 | |
michael@0 | 1331 | // ETWS Warning-Type |
michael@0 | 1332 | // see 3GPP TS 23.041 clause 9.3.24 |
michael@0 | 1333 | this.CB_ETWS_WARNING_TYPE_NAMES = [ |
michael@0 | 1334 | "earthquake", |
michael@0 | 1335 | "tsunami", |
michael@0 | 1336 | "earthquake-tsunami", |
michael@0 | 1337 | "test", |
michael@0 | 1338 | "other" |
michael@0 | 1339 | ]; |
michael@0 | 1340 | |
michael@0 | 1341 | /** |
michael@0 | 1342 | * GSM PDU constants |
michael@0 | 1343 | */ |
michael@0 | 1344 | |
michael@0 | 1345 | // PDU TYPE-OF-ADDRESS |
michael@0 | 1346 | this.PDU_TOA_UNKNOWN = 0x80; // Unknown. This is used when the user or |
michael@0 | 1347 | // network has no a priori information |
michael@0 | 1348 | // about the numbering plan. |
michael@0 | 1349 | this.PDU_TOA_ISDN = 0x81; // ISDN/Telephone numbering |
michael@0 | 1350 | this.PDU_TOA_DATA_NUM = 0x83; // Data numbering plan |
michael@0 | 1351 | this.PDU_TOA_TELEX_NUM = 0x84; // Telex numbering plan |
michael@0 | 1352 | this.PDU_TOA_NATIONAL_NUM = 0x88; // National numbering plan |
michael@0 | 1353 | this.PDU_TOA_PRIVATE_NUM = 0x89; // Private numbering plan |
michael@0 | 1354 | this.PDU_TOA_ERMES_NUM = 0x8A; // Ermes numbering plan |
michael@0 | 1355 | this.PDU_TOA_INTERNATIONAL = 0x90; // International number |
michael@0 | 1356 | this.PDU_TOA_NATIONAL = 0xA0; // National number. Prefix or escape digits |
michael@0 | 1357 | // shall not be included |
michael@0 | 1358 | this.PDU_TOA_NETWORK_SPEC = 0xB0; // Network specific number This is used to |
michael@0 | 1359 | // indicate administration/service number |
michael@0 | 1360 | // specific to the serving network |
michael@0 | 1361 | this.PDU_TOA_SUBSCRIBER = 0xC0; // Subscriber number. This is used when a |
michael@0 | 1362 | // specific short number representation is |
michael@0 | 1363 | // stored in one or more SCs as part of a |
michael@0 | 1364 | // higher layer application |
michael@0 | 1365 | this.PDU_TOA_ALPHANUMERIC = 0xD0; // Alphanumeric, (coded according to GSM TS |
michael@0 | 1366 | // 03.38 7-bit default alphabet) |
michael@0 | 1367 | this.PDU_TOA_ABBREVIATED = 0xE0; // Abbreviated number |
michael@0 | 1368 | |
michael@0 | 1369 | /** |
michael@0 | 1370 | * First octet of the SMS-DELIVER PDU |
michael@0 | 1371 | * |
michael@0 | 1372 | * RP: 0 Reply Path parameter is not set in this PDU |
michael@0 | 1373 | * 1 Reply Path parameter is set in this PDU |
michael@0 | 1374 | * |
michael@0 | 1375 | * UDHI: 0 The UD field contains only the short message |
michael@0 | 1376 | * 1 The beginning of the UD field contains a header in addition of |
michael@0 | 1377 | * the short message |
michael@0 | 1378 | * |
michael@0 | 1379 | * SRI: (is only set by the SMSC) |
michael@0 | 1380 | * 0 A status report will not be returned to the SME |
michael@0 | 1381 | * 1 A status report will be returned to the SME |
michael@0 | 1382 | * |
michael@0 | 1383 | * MMS: (is only set by the SMSC) |
michael@0 | 1384 | * 0 More messages are waiting for the MS in the SMSC |
michael@0 | 1385 | * 1 No more messages are waiting for the MS in the SMSC |
michael@0 | 1386 | * |
michael@0 | 1387 | * MTI: bit1 bit0 Message type |
michael@0 | 1388 | * 0 0 SMS-DELIVER (SMSC ==> MS) |
michael@0 | 1389 | * 0 0 SMS-DELIVER REPORT (MS ==> SMSC, is generated |
michael@0 | 1390 | * automatically by the M20, after receiving a |
michael@0 | 1391 | * SMS-DELIVER) |
michael@0 | 1392 | * 0 1 SMS-SUBMIT (MS ==> SMSC) |
michael@0 | 1393 | * 0 1 SMS-SUBMIT REPORT (SMSC ==> MS) |
michael@0 | 1394 | * 1 0 SMS-STATUS REPORT (SMSC ==> MS) |
michael@0 | 1395 | * 1 0 SMS-COMMAND (MS ==> SMSC) |
michael@0 | 1396 | * 1 1 Reserved |
michael@0 | 1397 | */ |
michael@0 | 1398 | this.PDU_RP = 0x80; // Reply path. Parameter indicating that |
michael@0 | 1399 | // reply path exists. |
michael@0 | 1400 | this.PDU_UDHI = 0x40; // User data header indicator. This bit is |
michael@0 | 1401 | // set to 1 if the User Data field starts |
michael@0 | 1402 | // with a header |
michael@0 | 1403 | this.PDU_SRI_SRR = 0x20; // Status report indication (SMS-DELIVER) |
michael@0 | 1404 | // or request (SMS-SUBMIT) |
michael@0 | 1405 | this.PDU_VPF_ABSOLUTE = 0x18;// Validity period aboslute format |
michael@0 | 1406 | // (SMS-SUBMIT only) |
michael@0 | 1407 | this.PDU_VPF_RELATIVE = 0x10;// Validity period relative format |
michael@0 | 1408 | // (SMS-SUBMIT only) |
michael@0 | 1409 | this.PDU_VPF_ENHANCED = 0x8; // Validity period enhance format |
michael@0 | 1410 | // (SMS-SUBMIT only) |
michael@0 | 1411 | this.PDU_MMS_RD = 0x04;// More messages to send. (SMS-DELIVER only) or |
michael@0 | 1412 | // Reject duplicates (SMS-SUBMIT only) |
michael@0 | 1413 | |
michael@0 | 1414 | // MTI - Message Type Indicator |
michael@0 | 1415 | this.PDU_MTI_SMS_RESERVED = 0x03; |
michael@0 | 1416 | this.PDU_MTI_SMS_STATUS_REPORT = 0x02; |
michael@0 | 1417 | this.PDU_MTI_SMS_COMMAND = 0x02; |
michael@0 | 1418 | this.PDU_MTI_SMS_SUBMIT = 0x01; |
michael@0 | 1419 | this.PDU_MTI_SMS_DELIVER = 0x00; |
michael@0 | 1420 | |
michael@0 | 1421 | // PI - Parameter Indicator |
michael@0 | 1422 | this.PDU_PI_EXTENSION = 0x80; |
michael@0 | 1423 | this.PDU_PI_USER_DATA_LENGTH = 0x04; |
michael@0 | 1424 | this.PDU_PI_DATA_CODING_SCHEME = 0x02; |
michael@0 | 1425 | this.PDU_PI_PROTOCOL_IDENTIFIER = 0x01; |
michael@0 | 1426 | this.PDU_PI_RESERVED = 0x78; |
michael@0 | 1427 | |
michael@0 | 1428 | // FCS - Failure Cause |
michael@0 | 1429 | // 0...127 see 3GPP TS 24.011 clause E.2 |
michael@0 | 1430 | // 128...255 see 3GPP TS 23.040 clause 9.2.3.22 |
michael@0 | 1431 | // others see 3GPP TS 27.005 clause 3.2.5 |
michael@0 | 1432 | this.PDU_FCS_OK = 0x00; |
michael@0 | 1433 | this.PDU_FCS_PROTOCOL_ERROR = 0x6F; |
michael@0 | 1434 | this.PDU_FCS_MEMORY_CAPACITY_EXCEEDED = 0XD3; |
michael@0 | 1435 | this.PDU_FCS_USAT_BUSY = 0XD4; |
michael@0 | 1436 | this.PDU_FCS_USIM_DATA_DOWNLOAD_ERROR = 0xD5; |
michael@0 | 1437 | this.PDU_FCS_RESERVED = 0xE0; |
michael@0 | 1438 | this.PDU_FCS_UNSPECIFIED = 0xFF; |
michael@0 | 1439 | // Special internal value that means we should not acknowledge an |
michael@0 | 1440 | // incoming text right away, but need to wait for other components |
michael@0 | 1441 | // (e.g. storage) to complete. This can be any value, so long it |
michael@0 | 1442 | // doesn't conflict with the PDU_FCS_* constants above. |
michael@0 | 1443 | this.MOZ_FCS_WAIT_FOR_EXPLICIT_ACK = 0x0F; |
michael@0 | 1444 | |
michael@0 | 1445 | // ST - Status |
michael@0 | 1446 | // Bit 7..0 = 000xxxxx, short message transaction completed |
michael@0 | 1447 | this.PDU_ST_0_RECEIVED = 0x00; |
michael@0 | 1448 | this.PDU_ST_0_FORWARDED_NO_CONFIRM = 0x01; |
michael@0 | 1449 | this.PDU_ST_0_REPLACED_BY_SC = 0x02; |
michael@0 | 1450 | this.PDU_ST_0_RESERVED_BEGIN = 0x03; |
michael@0 | 1451 | this.PDU_ST_0_SC_SPECIFIC_BEGIN = 0x10; |
michael@0 | 1452 | this.PDU_ST_0_SC_SPECIFIC_END = 0x1F; |
michael@0 | 1453 | // Bit 7..0 = 001xxxxx, temporary error, SC still trying to transfer SM |
michael@0 | 1454 | this.PDU_ST_1_CONGESTION = 0x20; |
michael@0 | 1455 | this.PDU_ST_1_SME_BUSY = 0x21; |
michael@0 | 1456 | this.PDU_ST_1_SME_NO_RESPONSE = 0x22; |
michael@0 | 1457 | this.PDU_ST_1_SERVICE_REJECTED = 0x23; |
michael@0 | 1458 | this.PDU_ST_1_QOS_UNAVAILABLE = 0x24; |
michael@0 | 1459 | this.PDU_ST_1_SME_ERROR = 0x25; |
michael@0 | 1460 | this.PDU_ST_1_RESERVED_BEGIN = 0x26; |
michael@0 | 1461 | this.PDU_ST_1_SC_SPECIFIC_BEGIN = 0x30; |
michael@0 | 1462 | this.PDU_ST_1_SC_SPECIFIC_END = 0x3F; |
michael@0 | 1463 | // Bit 7..0 = 010xxxxx, permanent error, SC is not making any more transfer |
michael@0 | 1464 | // attempts |
michael@0 | 1465 | this.PDU_ST_2_RPC_ERROR = 0x40; |
michael@0 | 1466 | this.PDU_ST_2_DEST_INCOMPATIBLE = 0x41; |
michael@0 | 1467 | this.PDU_ST_2_CONNECTION_REJECTED = 0x42; |
michael@0 | 1468 | this.PDU_ST_2_NOT_OBTAINABLE = 0x43; |
michael@0 | 1469 | this.PDU_ST_2_QOS_UNAVAILABLE = 0x44; |
michael@0 | 1470 | this.PDU_ST_2_INTERWORKING_UNAVALIABLE = 0x45; |
michael@0 | 1471 | this.PDU_ST_2_VALIDITY_EXPIRED = 0x46; |
michael@0 | 1472 | this.PDU_ST_2_DELETED_BY_SME = 0x47; |
michael@0 | 1473 | this.PDU_ST_2_DELETED_BY_SC = 0x48; |
michael@0 | 1474 | this.PDU_ST_2_SM_MISSING = 0x49; |
michael@0 | 1475 | this.PDU_ST_2_RESERVED_BEGIN = 0x4A; |
michael@0 | 1476 | this.PDU_ST_2_SC_SPECIFIC_BEGIN = 0x50; |
michael@0 | 1477 | this.PDU_ST_2_SC_SPECIFIC_END = 0x5F; |
michael@0 | 1478 | // Bit 7..0 = 011xxxxx, temporary error, SC is not making any more transfer |
michael@0 | 1479 | // attempts |
michael@0 | 1480 | this.PDU_ST_3_CONGESTION = 0x60; |
michael@0 | 1481 | this.PDU_ST_3_SME_BUSY = 0x61; |
michael@0 | 1482 | this.PDU_ST_3_SME_NO_RESPONSE = 0x62; |
michael@0 | 1483 | this.PDU_ST_3_SERVICE_REJECTED = 0x63; |
michael@0 | 1484 | this.PDU_ST_3_QOS_UNAVAILABLE = 0x64; |
michael@0 | 1485 | this.PDU_ST_3_SME_ERROR = 0x65; |
michael@0 | 1486 | this.PDU_ST_3_RESERVED_BEGIN = 0x66; |
michael@0 | 1487 | this.PDU_ST_3_SC_SPECIFIC_BEGIN = 0x70; |
michael@0 | 1488 | this.PDU_ST_3_SC_SPECIFIC_END = 0x7F; |
michael@0 | 1489 | |
michael@0 | 1490 | this.GECKO_SMS_DELIVERY_STATUS_NOT_APPLICABLE = "not-applicable"; |
michael@0 | 1491 | this.GECKO_SMS_DELIVERY_STATUS_SUCCESS = "success"; |
michael@0 | 1492 | this.GECKO_SMS_DELIVERY_STATUS_PENDING = "pending"; |
michael@0 | 1493 | this.GECKO_SMS_DELIVERY_STATUS_ERROR = "error"; |
michael@0 | 1494 | |
michael@0 | 1495 | // User Data max length in septets |
michael@0 | 1496 | this.PDU_MAX_USER_DATA_7BIT = 160; |
michael@0 | 1497 | // User Data max length in octets |
michael@0 | 1498 | this.PDU_MAX_USER_DATA_8BIT = 140; |
michael@0 | 1499 | // User Data max length in chars |
michael@0 | 1500 | this.PDU_MAX_USER_DATA_UCS2 = 70; |
michael@0 | 1501 | |
michael@0 | 1502 | // PID - Protocol Indicator |
michael@0 | 1503 | this.PDU_PID_DEFAULT = 0x00; |
michael@0 | 1504 | this.PDU_PID_TELEMATIC_INTERWORKING = 0x20; |
michael@0 | 1505 | this.PDU_PID_SHORT_MESSAGE_TYPE_0 = 0x40; |
michael@0 | 1506 | this.PDU_PID_REPLACE_SHORT_MESSAGE_TYPE_1 = 0x41; |
michael@0 | 1507 | this.PDU_PID_REPLACE_SHORT_MESSAGE_TYPE_2 = 0x42; |
michael@0 | 1508 | this.PDU_PID_REPLACE_SHORT_MESSAGE_TYPE_3 = 0x43; |
michael@0 | 1509 | this.PDU_PID_REPLACE_SHORT_MESSAGE_TYPE_4 = 0x44; |
michael@0 | 1510 | this.PDU_PID_REPLACE_SHORT_MESSAGE_TYPE_5 = 0x45; |
michael@0 | 1511 | this.PDU_PID_REPLACE_SHORT_MESSAGE_TYPE_6 = 0x46; |
michael@0 | 1512 | this.PDU_PID_REPLACE_SHORT_MESSAGE_TYPE_7 = 0x47; |
michael@0 | 1513 | this.PDU_PID_ENHANDED_MESSAGE_SERVICE = 0x5E; |
michael@0 | 1514 | this.PDU_PID_RETURN_CALL_MESSAGE = 0x5F; |
michael@0 | 1515 | this.PDU_PID_ANSI_136_R_DATA = 0x7C; |
michael@0 | 1516 | this.PDU_PID_ME_DATA_DOWNLOAD = 0x7D; |
michael@0 | 1517 | this.PDU_PID_ME_DEPERSONALIZATION = 0x7E; |
michael@0 | 1518 | this.PDU_PID_USIM_DATA_DOWNLOAD = 0x7F; |
michael@0 | 1519 | |
michael@0 | 1520 | // DCS - Data Coding Scheme |
michael@0 | 1521 | this.PDU_DCS_MSG_CODING_7BITS_ALPHABET = 0x00; |
michael@0 | 1522 | this.PDU_DCS_MSG_CODING_8BITS_ALPHABET = 0x04; |
michael@0 | 1523 | this.PDU_DCS_MSG_CODING_16BITS_ALPHABET = 0x08; |
michael@0 | 1524 | this.PDU_DCS_MSG_CLASS_NORMAL = 0xFF; |
michael@0 | 1525 | this.PDU_DCS_MSG_CLASS_0 = 0x00; |
michael@0 | 1526 | this.PDU_DCS_MSG_CLASS_1 = 0x01; |
michael@0 | 1527 | this.PDU_DCS_MSG_CLASS_2 = 0x02; |
michael@0 | 1528 | this.PDU_DCS_MSG_CLASS_3 = 0x03; |
michael@0 | 1529 | this.PDU_DCS_MSG_CLASS_USER_1 = 0x04; |
michael@0 | 1530 | this.PDU_DCS_MSG_CLASS_USER_2 = 0x05; |
michael@0 | 1531 | this.PDU_DCS_CODING_GROUP_BITS = 0xF0; |
michael@0 | 1532 | this.PDU_DCS_MSG_CLASS_BITS = 0x03; |
michael@0 | 1533 | this.PDU_DCS_MWI_ACTIVE_BITS = 0x08; |
michael@0 | 1534 | this.PDU_DCS_MWI_ACTIVE_VALUE = 0x08; |
michael@0 | 1535 | this.PDU_DCS_MWI_TYPE_BITS = 0x03; |
michael@0 | 1536 | this.PDU_DCS_MWI_TYPE_VOICEMAIL = 0x00; |
michael@0 | 1537 | this.PDU_DCS_MWI_TYPE_FAX = 0x01; |
michael@0 | 1538 | this.PDU_DCS_MWI_TYPE_EMAIL = 0x02; |
michael@0 | 1539 | this.PDU_DCS_MWI_TYPE_OTHER = 0x03; |
michael@0 | 1540 | |
michael@0 | 1541 | this.GECKO_SMS_MESSAGE_CLASSES = {}; |
michael@0 | 1542 | GECKO_SMS_MESSAGE_CLASSES[PDU_DCS_MSG_CLASS_NORMAL] = "normal"; |
michael@0 | 1543 | GECKO_SMS_MESSAGE_CLASSES[PDU_DCS_MSG_CLASS_0] = "class-0"; |
michael@0 | 1544 | GECKO_SMS_MESSAGE_CLASSES[PDU_DCS_MSG_CLASS_1] = "class-1"; |
michael@0 | 1545 | GECKO_SMS_MESSAGE_CLASSES[PDU_DCS_MSG_CLASS_2] = "class-2"; |
michael@0 | 1546 | GECKO_SMS_MESSAGE_CLASSES[PDU_DCS_MSG_CLASS_3] = "class-3"; |
michael@0 | 1547 | GECKO_SMS_MESSAGE_CLASSES[PDU_DCS_MSG_CLASS_USER_1] = "user-1"; |
michael@0 | 1548 | GECKO_SMS_MESSAGE_CLASSES[PDU_DCS_MSG_CLASS_USER_2] = "user-2"; |
michael@0 | 1549 | |
michael@0 | 1550 | // Because service center timestamp omit the century. Yay. |
michael@0 | 1551 | this.PDU_TIMESTAMP_YEAR_OFFSET = 2000; |
michael@0 | 1552 | |
michael@0 | 1553 | // See 9.2.3.24 TP‑User Data (TP‑UD) |
michael@0 | 1554 | this.PDU_IEI_CONCATENATED_SHORT_MESSAGES_8BIT = 0x00; |
michael@0 | 1555 | this.PDU_IEI_SPECIAL_SMS_MESSAGE_INDICATION = 0x01; |
michael@0 | 1556 | this.PDU_IEI_APPLICATION_PORT_ADDRESSING_SCHEME_8BIT = 0x04; |
michael@0 | 1557 | this.PDU_IEI_APPLICATION_PORT_ADDRESSING_SCHEME_16BIT = 0x05; |
michael@0 | 1558 | this.PDU_IEI_SMSC_CONTROL_PARAMS = 0x06; |
michael@0 | 1559 | this.PDU_IEI_UDH_SOURCE_INDICATOR = 0x07; |
michael@0 | 1560 | this.PDU_IEI_CONCATENATED_SHORT_MESSAGES_16BIT = 0x08; |
michael@0 | 1561 | this.PDU_IEI_WIRELESS_CONTROL_MESSAGE_PROTOCOL = 0x09; |
michael@0 | 1562 | this.PDU_IEI_TEXT_FORMATING = 0x0A; |
michael@0 | 1563 | this.PDU_IEI_PREDEFINED_SOUND = 0x0B; |
michael@0 | 1564 | this.PDU_IEI_USER_DATA_SOUND = 0x0C; |
michael@0 | 1565 | this.PDU_IEI_PREDEFINED_ANIMATION = 0x0D; |
michael@0 | 1566 | this.PDU_IEI_LARGE_ANIMATION = 0x0E; |
michael@0 | 1567 | this.PDU_IEI_SMALL_ANIMATION = 0x0F; |
michael@0 | 1568 | this.PDU_IEI_LARGE_PICTURE = 0x10; |
michael@0 | 1569 | this.PDU_IEI_SMALL_PICTURE = 0x11; |
michael@0 | 1570 | this.PDU_IEI_VARIABLE_PICTURE = 0x12; |
michael@0 | 1571 | this.PDU_IEI_USER_PROMPT_INDICATOR = 0x13; |
michael@0 | 1572 | this.PDU_IEI_EXTENDED_OBJECT = 0x14; |
michael@0 | 1573 | this.PDU_IEI_REUSED_EXTENDED_OBJECT = 0x15; |
michael@0 | 1574 | this.PDU_IEI_COMPRESS_CONTROL = 0x16; |
michael@0 | 1575 | this.PDU_IEI_OBJECT_DISTRIBUTION_INDICATOR = 0x17; |
michael@0 | 1576 | this.PDU_IEI_STANDARD_WVG_OBJECT = 0x18; |
michael@0 | 1577 | this.PDU_IEI_CHARACTER_SIZE_WVG_OBJECT = 0x19; |
michael@0 | 1578 | this.PDU_IEI_EXTENDED_OBJECT_DATA_REQUEST_COMMAND = 0x1A; |
michael@0 | 1579 | this.PDU_IEI_RFC822_EMAIL_HEADER = 0x20; |
michael@0 | 1580 | this.PDU_IEI_HYPERLINK_FORMAT_ELEMENT = 0x21; |
michael@0 | 1581 | this.PDU_IEI_REPLY_ADDRESS_ELEMENT = 0x22; |
michael@0 | 1582 | this.PDU_IEI_ENHANCED_VOICE_MAIL_INFORMATION = 0x23; |
michael@0 | 1583 | this.PDU_IEI_NATIONAL_LANGUAGE_SINGLE_SHIFT = 0x24; |
michael@0 | 1584 | this.PDU_IEI_NATIONAL_LANGUAGE_LOCKING_SHIFT = 0x25; |
michael@0 | 1585 | |
michael@0 | 1586 | // Application Port Addressing, see 3GPP TS 23.040 9.2.3.24.3 |
michael@0 | 1587 | this.PDU_APA_RESERVED_8BIT_PORTS = 240; |
michael@0 | 1588 | this.PDU_APA_VALID_16BIT_PORTS = 49152; |
michael@0 | 1589 | |
michael@0 | 1590 | // 7bit alphabet escape character. The encoded value of this code point is left |
michael@0 | 1591 | // undefined in official spec. Its code value is internally assigned to \uffff, |
michael@0 | 1592 | // <noncharacter-FFFF> in Unicode basic multilingual plane. |
michael@0 | 1593 | this.PDU_NL_EXTENDED_ESCAPE = 0x1B; |
michael@0 | 1594 | |
michael@0 | 1595 | // <SP>, <LF>, <CR> are only defined in locking shift tables. |
michael@0 | 1596 | this.PDU_NL_SPACE = 0x20; |
michael@0 | 1597 | this.PDU_NL_LINE_FEED = 0x0A; |
michael@0 | 1598 | this.PDU_NL_CARRIAGE_RETURN = 0x0D; |
michael@0 | 1599 | |
michael@0 | 1600 | // 7bit alphabet page break character, only defined in single shift tables. |
michael@0 | 1601 | // The encoded value of this code point is left undefined in official spec, but |
michael@0 | 1602 | // the code point itself maybe be used for example in compressed CBS messages. |
michael@0 | 1603 | // Its code value is internally assigned to \u000c, ASCII form feed, or new page. |
michael@0 | 1604 | this.PDU_NL_PAGE_BREAK = 0x0A; |
michael@0 | 1605 | // 7bit alphabet reserved control character, only defined in single shift |
michael@0 | 1606 | // tables. The encoded value of this code point is left undefined in official |
michael@0 | 1607 | // spec. Its code value is internally assigned to \ufffe, <noncharacter-FFFE> |
michael@0 | 1608 | // in Unicode basic multilingual plane. |
michael@0 | 1609 | this.PDU_NL_RESERVED_CONTROL = 0x0D; |
michael@0 | 1610 | |
michael@0 | 1611 | this.PDU_NL_IDENTIFIER_DEFAULT = 0; |
michael@0 | 1612 | this.PDU_NL_IDENTIFIER_TURKISH = 1; |
michael@0 | 1613 | this.PDU_NL_IDENTIFIER_SPANISH = 2; |
michael@0 | 1614 | this.PDU_NL_IDENTIFIER_PORTUGUESE = 3; |
michael@0 | 1615 | this.PDU_NL_IDENTIFIER_BENGALI = 4; |
michael@0 | 1616 | this.PDU_NL_IDENTIFIER_GUJARATI = 5; |
michael@0 | 1617 | this.PDU_NL_IDENTIFIER_HINDI = 6; |
michael@0 | 1618 | this.PDU_NL_IDENTIFIER_KANNADA = 7; |
michael@0 | 1619 | this.PDU_NL_IDENTIFIER_MALAYALAM = 8; |
michael@0 | 1620 | this.PDU_NL_IDENTIFIER_ORIYA = 9; |
michael@0 | 1621 | this.PDU_NL_IDENTIFIER_PUNJABI = 10; |
michael@0 | 1622 | this.PDU_NL_IDENTIFIER_TAMIL = 11; |
michael@0 | 1623 | this.PDU_NL_IDENTIFIER_TELUGU = 12; |
michael@0 | 1624 | this.PDU_NL_IDENTIFIER_URDU = 13; |
michael@0 | 1625 | |
michael@0 | 1626 | // National Language Locking Shift Tables, see 3GPP TS 23.038 |
michael@0 | 1627 | this.PDU_NL_LOCKING_SHIFT_TABLES = [ |
michael@0 | 1628 | /** |
michael@0 | 1629 | * National Language Identifier: 0x00 |
michael@0 | 1630 | * 6.2.1 GSM 7 bit Default Alphabet |
michael@0 | 1631 | */ |
michael@0 | 1632 | // 01.....23.....4.....5.....6.....7.....8.....9.....A.B.....C.....D.E.....F..... |
michael@0 | 1633 | "@\u00a3$\u00a5\u00e8\u00e9\u00f9\u00ec\u00f2\u00c7\n\u00d8\u00f8\r\u00c5\u00e5" |
michael@0 | 1634 | // 0.....12.....3.....4.....5.....6.....7.....8.....9.....A.....B.....C.....D.....E.....F..... |
michael@0 | 1635 | + "\u0394_\u03a6\u0393\u039b\u03a9\u03a0\u03a8\u03a3\u0398\u039e\uffff\u00c6\u00e6\u00df\u00c9" |
michael@0 | 1636 | // 012.34.....56789ABCDEF |
michael@0 | 1637 | + " !\"#\u00a4%&'()*+,-./" |
michael@0 | 1638 | // 0123456789ABCDEF |
michael@0 | 1639 | + "0123456789:;<=>?" |
michael@0 | 1640 | // 0.....123456789ABCDEF |
michael@0 | 1641 | + "\u00a1ABCDEFGHIJKLMNO" |
michael@0 | 1642 | // 0123456789AB.....C.....D.....E.....F..... |
michael@0 | 1643 | + "PQRSTUVWXYZ\u00c4\u00d6\u00d1\u00dc\u00a7" |
michael@0 | 1644 | // 0.....123456789ABCDEF |
michael@0 | 1645 | + "\u00bfabcdefghijklmno" |
michael@0 | 1646 | // 0123456789AB.....C.....D.....E.....F..... |
michael@0 | 1647 | + "pqrstuvwxyz\u00e4\u00f6\u00f1\u00fc\u00e0", |
michael@0 | 1648 | |
michael@0 | 1649 | /** |
michael@0 | 1650 | * National Language Identifier: 0x01 |
michael@0 | 1651 | * A.3.1 Turkish National Language Locking Shift Table |
michael@0 | 1652 | */ |
michael@0 | 1653 | // 01.....23.....4.....5.....6.....7.....8.....9.....A.B.....C.....D.E.....F..... |
michael@0 | 1654 | "@\u00a3$\u00a5\u20ac\u00e9\u00f9\u0131\u00f2\u00c7\n\u011e\u011f\r\u00c5\u00e5" |
michael@0 | 1655 | // 0.....12.....3.....4.....5.....6.....7.....8.....9.....A.....B.....C.....D.....E.....F..... |
michael@0 | 1656 | + "\u0394_\u03a6\u0393\u039b\u03a9\u03a0\u03a8\u03a3\u0398\u039e\uffff\u015e\u015f\u00df\u00c9" |
michael@0 | 1657 | // 012.34.....56789ABCDEF |
michael@0 | 1658 | + " !\"#\u00a4%&'()*+,-./" |
michael@0 | 1659 | // 0123456789ABCDEF |
michael@0 | 1660 | + "0123456789:;<=>?" |
michael@0 | 1661 | // 0.....123456789ABCDEF |
michael@0 | 1662 | + "\u0130ABCDEFGHIJKLMNO" |
michael@0 | 1663 | // 0123456789AB.....C.....D.....E.....F..... |
michael@0 | 1664 | + "PQRSTUVWXYZ\u00c4\u00d6\u00d1\u00dc\u00a7" |
michael@0 | 1665 | // 0.....123456789ABCDEF |
michael@0 | 1666 | + "\u00e7abcdefghijklmno" |
michael@0 | 1667 | // 0123456789AB.....C.....D.....E.....F..... |
michael@0 | 1668 | + "pqrstuvwxyz\u00e4\u00f6\u00f1\u00fc\u00e0", |
michael@0 | 1669 | |
michael@0 | 1670 | /** |
michael@0 | 1671 | * National Language Identifier: 0x02 |
michael@0 | 1672 | * A.3.2 Void |
michael@0 | 1673 | */ |
michael@0 | 1674 | // 0123456789A.BCD.EF |
michael@0 | 1675 | " \n \r " |
michael@0 | 1676 | // 0123456789AB.....CDEF |
michael@0 | 1677 | + " \uffff " |
michael@0 | 1678 | // 0123456789ABCDEF |
michael@0 | 1679 | + " " |
michael@0 | 1680 | // 0123456789ABCDEF |
michael@0 | 1681 | + " " |
michael@0 | 1682 | // 0123456789ABCDEF |
michael@0 | 1683 | + " " |
michael@0 | 1684 | // 0123456789ABCDEF |
michael@0 | 1685 | + " " |
michael@0 | 1686 | // 0123456789ABCDEF |
michael@0 | 1687 | + " " |
michael@0 | 1688 | // 0123456789ABCDEF |
michael@0 | 1689 | + " ", |
michael@0 | 1690 | |
michael@0 | 1691 | /** |
michael@0 | 1692 | * National Language Identifier: 0x03 |
michael@0 | 1693 | * A.3.3 Portuguese National Language Locking Shift Table |
michael@0 | 1694 | */ |
michael@0 | 1695 | // 01.....23.....4.....5.....6.....7.....8.....9.....A.B.....C.....D.E.....F..... |
michael@0 | 1696 | "@\u00a3$\u00a5\u00ea\u00e9\u00fa\u00ed\u00f3\u00e7\n\u00d4\u00f4\r\u00c1\u00e1" |
michael@0 | 1697 | // 0.....12.....3.....4.....5.....67.8.....9.....AB.....C.....D.....E.....F..... |
michael@0 | 1698 | + "\u0394_\u00aa\u00c7\u00c0\u221e^\\\u20ac\u00d3|\uffff\u00c2\u00e2\u00ca\u00c9" |
michael@0 | 1699 | // 012.34.....56789ABCDEF |
michael@0 | 1700 | + " !\"#\u00ba%&'()*+,-./" |
michael@0 | 1701 | // 0123456789ABCDEF |
michael@0 | 1702 | + "0123456789:;<=>?" |
michael@0 | 1703 | // 0.....123456789ABCDEF |
michael@0 | 1704 | + "\u00cdABCDEFGHIJKLMNO" |
michael@0 | 1705 | // 0123456789AB.....C.....D.....E.....F..... |
michael@0 | 1706 | + "PQRSTUVWXYZ\u00c3\u00d5\u00da\u00dc\u00a7" |
michael@0 | 1707 | // 0123456789ABCDEF |
michael@0 | 1708 | + "~abcdefghijklmno" |
michael@0 | 1709 | // 0123456789AB.....C.....DE.....F..... |
michael@0 | 1710 | + "pqrstuvwxyz\u00e3\u00f5`\u00fc\u00e0", |
michael@0 | 1711 | |
michael@0 | 1712 | /** |
michael@0 | 1713 | * National Language Identifier: 0x04 |
michael@0 | 1714 | * A.3.4 Bengali National Language Locking Shift Table |
michael@0 | 1715 | */ |
michael@0 | 1716 | // 0.....1.....2.....3.....4.....5.....6.....7.....8.....9.....A.B.....CD.EF..... |
michael@0 | 1717 | "\u0981\u0982\u0983\u0985\u0986\u0987\u0988\u0989\u098a\u098b\n\u098c \r \u098f" |
michael@0 | 1718 | // 0.....123.....4.....5.....6.....7.....8.....9.....A.....B.....C.....D.....E.....F..... |
michael@0 | 1719 | + "\u0990 \u0993\u0994\u0995\u0996\u0997\u0998\u0999\u099a\uffff\u099b\u099c\u099d\u099e" |
michael@0 | 1720 | // 012.....3.....4.....5.....6.....7.....89A.....B.....CD.....EF..... |
michael@0 | 1721 | + " !\u099f\u09a0\u09a1\u09a2\u09a3\u09a4)(\u09a5\u09a6,\u09a7.\u09a8" |
michael@0 | 1722 | // 0123456789ABCD.....E.....F |
michael@0 | 1723 | + "0123456789:; \u09aa\u09ab?" |
michael@0 | 1724 | // 0.....1.....2.....3.....4.....56.....789A.....B.....C.....D.....E.....F..... |
michael@0 | 1725 | + "\u09ac\u09ad\u09ae\u09af\u09b0 \u09b2 \u09b6\u09b7\u09b8\u09b9\u09bc\u09bd" |
michael@0 | 1726 | // 0.....1.....2.....3.....4.....5.....6.....789.....A.....BCD.....E.....F..... |
michael@0 | 1727 | + "\u09be\u09bf\u09c0\u09c1\u09c2\u09c3\u09c4 \u09c7\u09c8 \u09cb\u09cc\u09cd" |
michael@0 | 1728 | // 0.....123456789ABCDEF |
michael@0 | 1729 | + "\u09ceabcdefghijklmno" |
michael@0 | 1730 | // 0123456789AB.....C.....D.....E.....F..... |
michael@0 | 1731 | + "pqrstuvwxyz\u09d7\u09dc\u09dd\u09f0\u09f1", |
michael@0 | 1732 | |
michael@0 | 1733 | /** |
michael@0 | 1734 | * National Language Identifier: 0x05 |
michael@0 | 1735 | * A.3.5 Gujarati National Language Locking Shift Table |
michael@0 | 1736 | */ |
michael@0 | 1737 | // 0.....1.....2.....3.....4.....5.....6.....7.....8.....9.....A.B.....C.....D.EF..... |
michael@0 | 1738 | "\u0a81\u0a82\u0a83\u0a85\u0a86\u0a87\u0a88\u0a89\u0a8a\u0a8b\n\u0a8c\u0a8d\r \u0a8f" |
michael@0 | 1739 | // 0.....1.....23.....4.....5.....6.....7.....8.....9.....A.....B.....C.....D.....E.....F..... |
michael@0 | 1740 | + "\u0a90\u0a91 \u0a93\u0a94\u0a95\u0a96\u0a97\u0a98\u0a99\u0a9a\uffff\u0a9b\u0a9c\u0a9d\u0a9e" |
michael@0 | 1741 | // 012.....3.....4.....5.....6.....7.....89A.....B.....CD.....EF..... |
michael@0 | 1742 | + " !\u0a9f\u0aa0\u0aa1\u0aa2\u0aa3\u0aa4)(\u0aa5\u0aa6,\u0aa7.\u0aa8" |
michael@0 | 1743 | // 0123456789ABCD.....E.....F |
michael@0 | 1744 | + "0123456789:; \u0aaa\u0aab?" |
michael@0 | 1745 | // 0.....1.....2.....3.....4.....56.....7.....89.....A.....B.....C.....D.....E.....F..... |
michael@0 | 1746 | + "\u0aac\u0aad\u0aae\u0aaf\u0ab0 \u0ab2\u0ab3 \u0ab5\u0ab6\u0ab7\u0ab8\u0ab9\u0abc\u0abd" |
michael@0 | 1747 | // 0.....1.....2.....3.....4.....5.....6.....7.....89.....A.....B.....CD.....E.....F..... |
michael@0 | 1748 | + "\u0abe\u0abf\u0ac0\u0ac1\u0ac2\u0ac3\u0ac4\u0ac5 \u0ac7\u0ac8\u0ac9 \u0acb\u0acc\u0acd" |
michael@0 | 1749 | // 0.....123456789ABCDEF |
michael@0 | 1750 | + "\u0ad0abcdefghijklmno" |
michael@0 | 1751 | // 0123456789AB.....C.....D.....E.....F..... |
michael@0 | 1752 | + "pqrstuvwxyz\u0ae0\u0ae1\u0ae2\u0ae3\u0af1", |
michael@0 | 1753 | |
michael@0 | 1754 | /** |
michael@0 | 1755 | * National Language Identifier: 0x06 |
michael@0 | 1756 | * A.3.6 Hindi National Language Locking Shift Table |
michael@0 | 1757 | */ |
michael@0 | 1758 | // 0.....1.....2.....3.....4.....5.....6.....7.....8.....9.....A.B.....C.....D.E.....F..... |
michael@0 | 1759 | "\u0901\u0902\u0903\u0905\u0906\u0907\u0908\u0909\u090a\u090b\n\u090c\u090d\r\u090e\u090f" |
michael@0 | 1760 | // 0.....1.....2.....3.....4.....5.....6.....7.....8.....9.....A.....B.....C.....D.....E.....F..... |
michael@0 | 1761 | + "\u0910\u0911\u0912\u0913\u0914\u0915\u0916\u0917\u0918\u0919\u091a\uffff\u091b\u091c\u091d\u091e" |
michael@0 | 1762 | // 012.....3.....4.....5.....6.....7.....89A.....B.....CD.....EF..... |
michael@0 | 1763 | + " !\u091f\u0920\u0921\u0922\u0923\u0924)(\u0925\u0926,\u0927.\u0928" |
michael@0 | 1764 | // 0123456789ABC.....D.....E.....F |
michael@0 | 1765 | + "0123456789:;\u0929\u092a\u092b?" |
michael@0 | 1766 | // 0.....1.....2.....3.....4.....5.....6.....7.....8.....9.....A.....B.....C.....D.....E.....F..... |
michael@0 | 1767 | + "\u092c\u092d\u092e\u092f\u0930\u0931\u0932\u0933\u0934\u0935\u0936\u0937\u0938\u0939\u093c\u093d" |
michael@0 | 1768 | // 0.....1.....2.....3.....4.....5.....6.....7.....8.....9.....A.....B.....C.....D.....E.....F..... |
michael@0 | 1769 | + "\u093e\u093f\u0940\u0941\u0942\u0943\u0944\u0945\u0946\u0947\u0948\u0949\u094a\u094b\u094c\u094d" |
michael@0 | 1770 | // 0.....123456789ABCDEF |
michael@0 | 1771 | + "\u0950abcdefghijklmno" |
michael@0 | 1772 | // 0123456789AB.....C.....D.....E.....F..... |
michael@0 | 1773 | + "pqrstuvwxyz\u0972\u097b\u097c\u097e\u097f", |
michael@0 | 1774 | |
michael@0 | 1775 | /** |
michael@0 | 1776 | * National Language Identifier: 0x07 |
michael@0 | 1777 | * A.3.7 Kannada National Language Locking Shift Table |
michael@0 | 1778 | */ |
michael@0 | 1779 | // 01.....2.....3.....4.....5.....6.....7.....8.....9.....A.B.....CD.E.....F..... |
michael@0 | 1780 | " \u0c82\u0c83\u0c85\u0c86\u0c87\u0c88\u0c89\u0c8a\u0c8b\n\u0c8c \r\u0c8e\u0c8f" |
michael@0 | 1781 | // 0.....12.....3.....4.....5.....6.....7.....8.....9.....A.....B.....C.....D.....E.....F..... |
michael@0 | 1782 | + "\u0c90 \u0c92\u0c93\u0c94\u0c95\u0c96\u0c97\u0c98\u0c99\u0c9a\uffff\u0c9b\u0c9c\u0c9d\u0c9e" |
michael@0 | 1783 | // 012.....3.....4.....5.....6.....7.....89A.....B.....CD.....EF..... |
michael@0 | 1784 | + " !\u0c9f\u0ca0\u0ca1\u0ca2\u0ca3\u0ca4)(\u0ca5\u0ca6,\u0ca7.\u0ca8" |
michael@0 | 1785 | // 0123456789ABCD.....E.....F |
michael@0 | 1786 | + "0123456789:; \u0caa\u0cab?" |
michael@0 | 1787 | // 0.....1.....2.....3.....4.....5.....6.....7.....89.....A.....B.....C.....D.....E.....F..... |
michael@0 | 1788 | + "\u0cac\u0cad\u0cae\u0caf\u0cb0\u0cb1\u0cb2\u0cb3 \u0cb5\u0cb6\u0cb7\u0cb8\u0cb9\u0cbc\u0cbd" |
michael@0 | 1789 | // 0.....1.....2.....3.....4.....5.....6.....78.....9.....A.....BC.....D.....E.....F..... |
michael@0 | 1790 | + "\u0cbe\u0cbf\u0cc0\u0cc1\u0cc2\u0cc3\u0cc4 \u0cc6\u0cc7\u0cc8 \u0cca\u0ccb\u0ccc\u0ccd" |
michael@0 | 1791 | // 0.....123456789ABCDEF |
michael@0 | 1792 | + "\u0cd5abcdefghijklmno" |
michael@0 | 1793 | // 0123456789AB.....C.....D.....E.....F..... |
michael@0 | 1794 | + "pqrstuvwxyz\u0cd6\u0ce0\u0ce1\u0ce2\u0ce3", |
michael@0 | 1795 | |
michael@0 | 1796 | /** |
michael@0 | 1797 | * National Language Identifier: 0x08 |
michael@0 | 1798 | * A.3.8 Malayalam National Language Locking Shift Table |
michael@0 | 1799 | */ |
michael@0 | 1800 | // 01.....2.....3.....4.....5.....6.....7.....8.....9.....A.B.....CD.E.....F..... |
michael@0 | 1801 | " \u0d02\u0d03\u0d05\u0d06\u0d07\u0d08\u0d09\u0d0a\u0d0b\n\u0d0c \r\u0d0e\u0d0f" |
michael@0 | 1802 | // 0.....12.....3.....4.....5.....6.....7.....8.....9.....A.....B.....C.....D.....E.....F..... |
michael@0 | 1803 | + "\u0d10 \u0d12\u0d13\u0d14\u0d15\u0d16\u0d17\u0d18\u0d19\u0d1a\uffff\u0d1b\u0d1c\u0d1d\u0d1e" |
michael@0 | 1804 | // 012.....3.....4.....5.....6.....7.....89A.....B.....CD.....EF..... |
michael@0 | 1805 | + " !\u0d1f\u0d20\u0d21\u0d22\u0d23\u0d24)(\u0d25\u0d26,\u0d27.\u0d28" |
michael@0 | 1806 | // 0123456789ABCD.....E.....F |
michael@0 | 1807 | + "0123456789:; \u0d2a\u0d2b?" |
michael@0 | 1808 | // 0.....1.....2.....3.....4.....5.....6.....7.....8.....9.....A.....B.....C.....D.....EF..... |
michael@0 | 1809 | + "\u0d2c\u0d2d\u0d2e\u0d2f\u0d30\u0d31\u0d32\u0d33\u0d34\u0d35\u0d36\u0d37\u0d38\u0d39 \u0d3d" |
michael@0 | 1810 | // 0.....1.....2.....3.....4.....5.....6.....78.....9.....A.....BC.....D.....E.....F..... |
michael@0 | 1811 | + "\u0d3e\u0d3f\u0d40\u0d41\u0d42\u0d43\u0d44 \u0d46\u0d47\u0d48 \u0d4a\u0d4b\u0d4c\u0d4d" |
michael@0 | 1812 | // 0.....123456789ABCDEF |
michael@0 | 1813 | + "\u0d57abcdefghijklmno" |
michael@0 | 1814 | // 0123456789AB.....C.....D.....E.....F..... |
michael@0 | 1815 | + "pqrstuvwxyz\u0d60\u0d61\u0d62\u0d63\u0d79", |
michael@0 | 1816 | |
michael@0 | 1817 | /** |
michael@0 | 1818 | * National Language Identifier: 0x09 |
michael@0 | 1819 | * A.3.9 Oriya National Language Locking Shift Table |
michael@0 | 1820 | */ |
michael@0 | 1821 | // 0.....1.....2.....3.....4.....5.....6.....7.....8.....9.....A.B.....CD.EF..... |
michael@0 | 1822 | "\u0b01\u0b02\u0b03\u0b05\u0b06\u0b07\u0b08\u0b09\u0b0a\u0b0b\n\u0b0c \r \u0b0f" |
michael@0 | 1823 | // 0.....123.....4.....5.....6.....7.....8.....9.....A.....B.....C.....D.....E.....F..... |
michael@0 | 1824 | + "\u0b10 \u0b13\u0b14\u0b15\u0b16\u0b17\u0b18\u0b19\u0b1a\uffff\u0b1b\u0b1c\u0b1d\u0b1e" |
michael@0 | 1825 | // 012.....3.....4.....5.....6.....7.....89A.....B.....CD.....EF..... |
michael@0 | 1826 | + " !\u0b1f\u0b20\u0b21\u0b22\u0b23\u0b24)(\u0b25\u0b26,\u0b27.\u0b28" |
michael@0 | 1827 | // 0123456789ABCD.....E.....F |
michael@0 | 1828 | + "0123456789:; \u0b2a\u0b2b?" |
michael@0 | 1829 | // 0.....1.....2.....3.....4.....56.....7.....89.....A.....B.....C.....D.....E.....F..... |
michael@0 | 1830 | + "\u0b2c\u0b2d\u0b2e\u0b2f\u0b30 \u0b32\u0b33 \u0b35\u0b36\u0b37\u0b38\u0b39\u0b3c\u0b3d" |
michael@0 | 1831 | // 0.....1.....2.....3.....4.....5.....6.....789.....A.....BCD.....E.....F..... |
michael@0 | 1832 | + "\u0b3e\u0b3f\u0b40\u0b41\u0b42\u0b43\u0b44 \u0b47\u0b48 \u0b4b\u0b4c\u0b4d" |
michael@0 | 1833 | // 0.....123456789ABCDEF |
michael@0 | 1834 | + "\u0b56abcdefghijklmno" |
michael@0 | 1835 | // 0123456789AB.....C.....D.....E.....F..... |
michael@0 | 1836 | + "pqrstuvwxyz\u0b57\u0b60\u0b61\u0b62\u0b63", |
michael@0 | 1837 | |
michael@0 | 1838 | /** |
michael@0 | 1839 | * National Language Identifier: 0x0A |
michael@0 | 1840 | * A.3.10 Punjabi National Language Locking Shift Table |
michael@0 | 1841 | */ |
michael@0 | 1842 | // 0.....1.....2.....3.....4.....5.....6.....7.....8.....9A.BCD.EF..... |
michael@0 | 1843 | "\u0a01\u0a02\u0a03\u0a05\u0a06\u0a07\u0a08\u0a09\u0a0a \n \r \u0a0f" |
michael@0 | 1844 | // 0.....123.....4.....5.....6.....7.....8.....9.....A.....B.....C.....D.....E.....F..... |
michael@0 | 1845 | + "\u0a10 \u0a13\u0a14\u0a15\u0a16\u0a17\u0a18\u0a19\u0a1a\uffff\u0a1b\u0a1c\u0a1d\u0a1e" |
michael@0 | 1846 | // 012.....3.....4.....5.....6.....7.....89A.....B.....CD.....EF..... |
michael@0 | 1847 | + " !\u0a1f\u0a20\u0a21\u0a22\u0a23\u0a24)(\u0a25\u0a26,\u0a27.\u0a28" |
michael@0 | 1848 | // 0123456789ABCD.....E.....F |
michael@0 | 1849 | + "0123456789:; \u0a2a\u0a2b?" |
michael@0 | 1850 | // 0.....1.....2.....3.....4.....56.....7.....89.....A.....BC.....D.....E.....F |
michael@0 | 1851 | + "\u0a2c\u0a2d\u0a2e\u0a2f\u0a30 \u0a32\u0a33 \u0a35\u0a36 \u0a38\u0a39\u0a3c " |
michael@0 | 1852 | // 0.....1.....2.....3.....4.....56789.....A.....BCD.....E.....F..... |
michael@0 | 1853 | + "\u0a3e\u0a3f\u0a40\u0a41\u0a42 \u0a47\u0a48 \u0a4b\u0a4c\u0a4d" |
michael@0 | 1854 | // 0.....123456789ABCDEF |
michael@0 | 1855 | + "\u0a51abcdefghijklmno" |
michael@0 | 1856 | // 0123456789AB.....C.....D.....E.....F..... |
michael@0 | 1857 | + "pqrstuvwxyz\u0a70\u0a71\u0a72\u0a73\u0a74", |
michael@0 | 1858 | |
michael@0 | 1859 | /** |
michael@0 | 1860 | * National Language Identifier: 0x0B |
michael@0 | 1861 | * A.3.11 Tamil National Language Locking Shift Table |
michael@0 | 1862 | */ |
michael@0 | 1863 | // 01.....2.....3.....4.....5.....6.....7.....8.....9A.BCD.E.....F..... |
michael@0 | 1864 | " \u0b82\u0b83\u0b85\u0b86\u0b87\u0b88\u0b89\u0b8a \n \r\u0b8e\u0b8f" |
michael@0 | 1865 | // 0.....12.....3.....4.....5.....6789.....A.....B.....CD.....EF..... |
michael@0 | 1866 | + "\u0b90 \u0b92\u0b93\u0b94\u0b95 \u0b99\u0b9a\uffff \u0b9c \u0b9e" |
michael@0 | 1867 | // 012.....3456.....7.....89ABCDEF..... |
michael@0 | 1868 | + " !\u0b9f \u0ba3\u0ba4)( , .\u0ba8" |
michael@0 | 1869 | // 0123456789ABC.....D.....EF |
michael@0 | 1870 | + "0123456789:;\u0ba9\u0baa ?" |
michael@0 | 1871 | // 012.....3.....4.....5.....6.....7.....8.....9.....A.....B.....C.....D.....EF |
michael@0 | 1872 | + " \u0bae\u0baf\u0bb0\u0bb1\u0bb2\u0bb3\u0bb4\u0bb5\u0bb6\u0bb7\u0bb8\u0bb9 " |
michael@0 | 1873 | // 0.....1.....2.....3.....4.....5678.....9.....A.....BC.....D.....E.....F..... |
michael@0 | 1874 | + "\u0bbe\u0bbf\u0bc0\u0bc1\u0bc2 \u0bc6\u0bc7\u0bc8 \u0bca\u0bcb\u0bcc\u0bcd" |
michael@0 | 1875 | // 0.....123456789ABCDEF |
michael@0 | 1876 | + "\u0bd0abcdefghijklmno" |
michael@0 | 1877 | // 0123456789AB.....C.....D.....E.....F..... |
michael@0 | 1878 | + "pqrstuvwxyz\u0bd7\u0bf0\u0bf1\u0bf2\u0bf9", |
michael@0 | 1879 | |
michael@0 | 1880 | /** |
michael@0 | 1881 | * National Language Identifier: 0x0C |
michael@0 | 1882 | * A.3.12 Telugu National Language Locking Shift Table |
michael@0 | 1883 | */ |
michael@0 | 1884 | // 0.....1.....2.....3.....4.....5.....6.....7.....8.....9.....A.B.....CD.E.....F..... |
michael@0 | 1885 | "\u0c01\u0c02\u0c03\u0c05\u0c06\u0c07\u0c08\u0c09\u0c0a\u0c0b\n\u0c0c \r\u0c0e\u0c0f" |
michael@0 | 1886 | // 0.....12.....3.....4.....5.....6.....7.....8.....9.....A.....B.....C.....D.....E.....F..... |
michael@0 | 1887 | + "\u0c10 \u0c12\u0c13\u0c14\u0c15\u0c16\u0c17\u0c18\u0c19\u0c1a\uffff\u0c1b\u0c1c\u0c1d\u0c1e" |
michael@0 | 1888 | // 012.....3.....4.....5.....6.....7.....89A.....B.....CD.....EF..... |
michael@0 | 1889 | + " !\u0c1f\u0c20\u0c21\u0c22\u0c23\u0c24)(\u0c25\u0c26,\u0c27.\u0c28" |
michael@0 | 1890 | // 0123456789ABCD.....E.....F |
michael@0 | 1891 | + "0123456789:; \u0c2a\u0c2b?" |
michael@0 | 1892 | // 0.....1.....2.....3.....4.....5.....6.....7.....89.....A.....B.....C.....D.....EF..... |
michael@0 | 1893 | + "\u0c2c\u0c2d\u0c2e\u0c2f\u0c30\u0c31\u0c32\u0c33 \u0c35\u0c36\u0c37\u0c38\u0c39 \u0c3d" |
michael@0 | 1894 | // 0.....1.....2.....3.....4.....5.....6.....78.....9.....A.....BC.....D.....E.....F..... |
michael@0 | 1895 | + "\u0c3e\u0c3f\u0c40\u0c41\u0c42\u0c43\u0c44 \u0c46\u0c47\u0c48 \u0c4a\u0c4b\u0c4c\u0c4d" |
michael@0 | 1896 | // 0.....123456789ABCDEF |
michael@0 | 1897 | + "\u0c55abcdefghijklmno" |
michael@0 | 1898 | // 0123456789AB.....C.....D.....E.....F..... |
michael@0 | 1899 | + "pqrstuvwxyz\u0c56\u0c60\u0c61\u0c62\u0c63", |
michael@0 | 1900 | |
michael@0 | 1901 | /** |
michael@0 | 1902 | * National Language Identifier: 0x0D |
michael@0 | 1903 | * A.3.13 Urdu National Language Locking Shift Table |
michael@0 | 1904 | */ |
michael@0 | 1905 | // 0.....1.....2.....3.....4.....5.....6.....7.....8.....9.....A.B.....C.....D.E.....F..... |
michael@0 | 1906 | "\u0627\u0622\u0628\u067b\u0680\u067e\u06a6\u062a\u06c2\u067f\n\u0679\u067d\r\u067a\u067c" |
michael@0 | 1907 | // 0.....1.....2.....3.....4.....5.....6.....7.....8.....9.....A.....B.....C.....D.....E.....F..... |
michael@0 | 1908 | + "\u062b\u062c\u0681\u0684\u0683\u0685\u0686\u0687\u062d\u062e\u062f\uffff\u068c\u0688\u0689\u068a" |
michael@0 | 1909 | // 012.....3.....4.....5.....6.....7.....89A.....B.....CD.....EF..... |
michael@0 | 1910 | + " !\u068f\u068d\u0630\u0631\u0691\u0693)(\u0699\u0632,\u0696.\u0698" |
michael@0 | 1911 | // 0123456789ABC.....D.....E.....F |
michael@0 | 1912 | + "0123456789:;\u069a\u0633\u0634?" |
michael@0 | 1913 | // 0.....1.....2.....3.....4.....5.....6.....7.....8.....9.....A.....B.....C.....D.....E.....F..... |
michael@0 | 1914 | + "\u0635\u0636\u0637\u0638\u0639\u0641\u0642\u06a9\u06aa\u06ab\u06af\u06b3\u06b1\u0644\u0645\u0646" |
michael@0 | 1915 | // 0.....1.....2.....3.....4.....5.....6.....7.....8.....9.....A.....B.....C.....D.....E.....F..... |
michael@0 | 1916 | + "\u06ba\u06bb\u06bc\u0648\u06c4\u06d5\u06c1\u06be\u0621\u06cc\u06d0\u06d2\u064d\u0650\u064f\u0657" |
michael@0 | 1917 | // 0.....123456789ABCDEF |
michael@0 | 1918 | + "\u0654abcdefghijklmno" |
michael@0 | 1919 | // 0123456789AB.....C.....D.....E.....F..... |
michael@0 | 1920 | + "pqrstuvwxyz\u0655\u0651\u0653\u0656\u0670" |
michael@0 | 1921 | ]; |
michael@0 | 1922 | |
michael@0 | 1923 | // National Language Single Shift Tables, see 3GPP TS 23.038 |
michael@0 | 1924 | this.PDU_NL_SINGLE_SHIFT_TABLES = [ |
michael@0 | 1925 | /** |
michael@0 | 1926 | * National Language Identifier: 0x00 |
michael@0 | 1927 | * 6.2.1.1 GSM 7 bit default alphabet extension table |
michael@0 | 1928 | */ |
michael@0 | 1929 | // 0123456789A.....BCD.....EF |
michael@0 | 1930 | " \u000c \ufffe " |
michael@0 | 1931 | // 0123456789AB.....CDEF |
michael@0 | 1932 | + " ^ \uffff " |
michael@0 | 1933 | // 0123456789ABCDEF. |
michael@0 | 1934 | + " {} \\" |
michael@0 | 1935 | // 0123456789ABCDEF |
michael@0 | 1936 | + " [~] " |
michael@0 | 1937 | // 0123456789ABCDEF |
michael@0 | 1938 | + "| " |
michael@0 | 1939 | // 0123456789ABCDEF |
michael@0 | 1940 | + " " |
michael@0 | 1941 | // 012345.....6789ABCDEF |
michael@0 | 1942 | + " \u20ac " |
michael@0 | 1943 | // 0123456789ABCDEF |
michael@0 | 1944 | + " ", |
michael@0 | 1945 | |
michael@0 | 1946 | /** |
michael@0 | 1947 | * National Language Identifier: 0x01 |
michael@0 | 1948 | * A.2.1 Turkish National Language Single Shift Table |
michael@0 | 1949 | */ |
michael@0 | 1950 | // 0123456789A.....BCD.....EF |
michael@0 | 1951 | " \u000c \ufffe " |
michael@0 | 1952 | // 0123456789AB.....CDEF |
michael@0 | 1953 | + " ^ \uffff " |
michael@0 | 1954 | // 0123456789ABCDEF. |
michael@0 | 1955 | + " {} \\" |
michael@0 | 1956 | // 0123456789ABCDEF |
michael@0 | 1957 | + " [~] " |
michael@0 | 1958 | // 01234567.....89.....ABCDEF |
michael@0 | 1959 | + "| \u011e \u0130 " |
michael@0 | 1960 | // 0123.....456789ABCDEF |
michael@0 | 1961 | + " \u015e " |
michael@0 | 1962 | // 0123.....45.....67.....89.....ABCDEF |
michael@0 | 1963 | + " \u00e7 \u20ac \u011f \u0131 " |
michael@0 | 1964 | // 0123.....456789ABCDEF |
michael@0 | 1965 | + " \u015f ", |
michael@0 | 1966 | |
michael@0 | 1967 | /** |
michael@0 | 1968 | * National Language Identifier: 0x02 |
michael@0 | 1969 | * A.2.2 Spanish National Language Single Shift Table |
michael@0 | 1970 | */ |
michael@0 | 1971 | // 0123456789.....A.....BCD.....EF |
michael@0 | 1972 | " \u00e7\u000c \ufffe " |
michael@0 | 1973 | // 0123456789AB.....CDEF |
michael@0 | 1974 | + " ^ \uffff " |
michael@0 | 1975 | // 0123456789ABCDEF. |
michael@0 | 1976 | + " {} \\" |
michael@0 | 1977 | // 0123456789ABCDEF |
michael@0 | 1978 | + " [~] " |
michael@0 | 1979 | // 01.....23456789.....ABCDEF..... |
michael@0 | 1980 | + "|\u00c1 \u00cd \u00d3" |
michael@0 | 1981 | // 012345.....6789ABCDEF |
michael@0 | 1982 | + " \u00da " |
michael@0 | 1983 | // 01.....2345.....6789.....ABCDEF..... |
michael@0 | 1984 | + " \u00e1 \u20ac \u00ed \u00f3" |
michael@0 | 1985 | // 012345.....6789ABCDEF |
michael@0 | 1986 | + " \u00fa ", |
michael@0 | 1987 | |
michael@0 | 1988 | /** |
michael@0 | 1989 | * National Language Identifier: 0x03 |
michael@0 | 1990 | * A.2.3 Portuguese National Language Single Shift Table |
michael@0 | 1991 | */ |
michael@0 | 1992 | // 012345.....6789.....A.....B.....C.....D.....E.....F..... |
michael@0 | 1993 | " \u00ea \u00e7\u000c\u00d4\u00f4\ufffe\u00c1\u00e1" |
michael@0 | 1994 | // 012.....3.....45.....6.....7.....8.....9.....AB.....CDEF..... |
michael@0 | 1995 | + " \u03a6\u0393^\u03a9\u03a0\u03a8\u03a3\u0398 \uffff \u00ca" |
michael@0 | 1996 | // 0123456789ABCDEF. |
michael@0 | 1997 | + " {} \\" |
michael@0 | 1998 | // 0123456789ABCDEF |
michael@0 | 1999 | + " [~] " |
michael@0 | 2000 | // 01.....23456789.....ABCDEF..... |
michael@0 | 2001 | + "|\u00c0 \u00cd \u00d3" |
michael@0 | 2002 | // 012345.....6789AB.....C.....DEF |
michael@0 | 2003 | + " \u00da \u00c3\u00d5 " |
michael@0 | 2004 | // 01.....2345.....6789.....ABCDEF..... |
michael@0 | 2005 | + " \u00c2 \u20ac \u00ed \u00f3" |
michael@0 | 2006 | // 012345.....6789AB.....C.....DEF..... |
michael@0 | 2007 | + " \u00fa \u00e3\u00f5 \u00e2", |
michael@0 | 2008 | |
michael@0 | 2009 | /** |
michael@0 | 2010 | * National Language Identifier: 0x04 |
michael@0 | 2011 | * A.2.4 Bengali National Language Single Shift Table |
michael@0 | 2012 | */ |
michael@0 | 2013 | // 01.....23.....4.....5.6.....789A.....BCD.....EF |
michael@0 | 2014 | "@\u00a3$\u00a5\u00bf\"\u00a4%&'\u000c*+\ufffe-/" |
michael@0 | 2015 | // 0123.....45.....6789.....A.....B.....C.....D.....E.....F..... |
michael@0 | 2016 | + "<=>\u00a1^\u00a1_#*\u09e6\u09e7\uffff\u09e8\u09e9\u09ea\u09eb" |
michael@0 | 2017 | // 0.....1.....2.....3.....4.....5.....6.....7.....89A.....B.....C.....D.....E.....F. |
michael@0 | 2018 | + "\u09ec\u09ed\u09ee\u09ef\u09df\u09e0\u09e1\u09e2{}\u09e3\u09f2\u09f3\u09f4\u09f5\\" |
michael@0 | 2019 | // 0.....1.....2.....3.....4.....56789ABCDEF |
michael@0 | 2020 | + "\u09f6\u09f7\u09f8\u09f9\u09fa [~] " |
michael@0 | 2021 | // 0123456789ABCDEF |
michael@0 | 2022 | + "|ABCDEFGHIJKLMNO" |
michael@0 | 2023 | // 0123456789ABCDEF |
michael@0 | 2024 | + "PQRSTUVWXYZ " |
michael@0 | 2025 | // 012345.....6789ABCDEF |
michael@0 | 2026 | + " \u20ac " |
michael@0 | 2027 | // 0123456789ABCDEF |
michael@0 | 2028 | + " ", |
michael@0 | 2029 | |
michael@0 | 2030 | /** |
michael@0 | 2031 | * National Language Identifier: 0x05 |
michael@0 | 2032 | * A.2.5 Gujarati National Language Single Shift Table |
michael@0 | 2033 | */ |
michael@0 | 2034 | // 01.....23.....4.....5.6.....789A.....BCD.....EF |
michael@0 | 2035 | "@\u00a3$\u00a5\u00bf\"\u00a4%&'\u000c*+\ufffe-/" |
michael@0 | 2036 | // 0123.....45.....6789.....A.....B.....C.....D.....E.....F..... |
michael@0 | 2037 | + "<=>\u00a1^\u00a1_#*\u0964\u0965\uffff\u0ae6\u0ae7\u0ae8\u0ae9" |
michael@0 | 2038 | // 0.....1.....2.....3.....4.....5.....6789ABCDEF. |
michael@0 | 2039 | + "\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef {} \\" |
michael@0 | 2040 | // 0123456789ABCDEF |
michael@0 | 2041 | + " [~] " |
michael@0 | 2042 | // 0123456789ABCDEF |
michael@0 | 2043 | + "|ABCDEFGHIJKLMNO" |
michael@0 | 2044 | // 0123456789ABCDEF |
michael@0 | 2045 | + "PQRSTUVWXYZ " |
michael@0 | 2046 | // 012345.....6789ABCDEF |
michael@0 | 2047 | + " \u20ac " |
michael@0 | 2048 | // 0123456789ABCDEF |
michael@0 | 2049 | + " ", |
michael@0 | 2050 | |
michael@0 | 2051 | /** |
michael@0 | 2052 | * National Language Identifier: 0x06 |
michael@0 | 2053 | * A.2.6 Hindi National Language Single Shift Table |
michael@0 | 2054 | */ |
michael@0 | 2055 | // 01.....23.....4.....5.6.....789A.....BCD.....EF |
michael@0 | 2056 | "@\u00a3$\u00a5\u00bf\"\u00a4%&'\u000c*+\ufffe-/" |
michael@0 | 2057 | // 0123.....45.....6789.....A.....B.....C.....D.....E.....F..... |
michael@0 | 2058 | + "<=>\u00a1^\u00a1_#*\u0964\u0965\uffff\u0966\u0967\u0968\u0969" |
michael@0 | 2059 | // 0.....1.....2.....3.....4.....5.....6.....7.....89A.....B.....C.....D.....E.....F. |
michael@0 | 2060 | + "\u096a\u096b\u096c\u096d\u096e\u096f\u0951\u0952{}\u0953\u0954\u0958\u0959\u095a\\" |
michael@0 | 2061 | // 0.....1.....2.....3.....4.....5.....6.....7.....8.....9.....A.....BCDEF |
michael@0 | 2062 | + "\u095b\u095c\u095d\u095e\u095f\u0960\u0961\u0962\u0963\u0970\u0971 [~] " |
michael@0 | 2063 | // 0123456789ABCDEF |
michael@0 | 2064 | + "|ABCDEFGHIJKLMNO" |
michael@0 | 2065 | // 0123456789ABCDEF |
michael@0 | 2066 | + "PQRSTUVWXYZ " |
michael@0 | 2067 | // 012345.....6789ABCDEF |
michael@0 | 2068 | + " \u20ac " |
michael@0 | 2069 | // 0123456789ABCDEF |
michael@0 | 2070 | + " ", |
michael@0 | 2071 | |
michael@0 | 2072 | /** |
michael@0 | 2073 | * National Language Identifier: 0x07 |
michael@0 | 2074 | * A.2.7 Kannada National Language Single Shift Table |
michael@0 | 2075 | */ |
michael@0 | 2076 | // 01.....23.....4.....5.6.....789A.....BCD.....EF |
michael@0 | 2077 | "@\u00a3$\u00a5\u00bf\"\u00a4%&'\u000c*+\ufffe-/" |
michael@0 | 2078 | // 0123.....45.....6789.....A.....B.....C.....D.....E.....F..... |
michael@0 | 2079 | + "<=>\u00a1^\u00a1_#*\u0964\u0965\uffff\u0ce6\u0ce7\u0ce8\u0ce9" |
michael@0 | 2080 | // 0.....1.....2.....3.....4.....5.....6.....7.....89A.....BCDEF. |
michael@0 | 2081 | + "\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0cde\u0cf1{}\u0cf2 \\" |
michael@0 | 2082 | // 0123456789ABCDEF |
michael@0 | 2083 | + " [~] " |
michael@0 | 2084 | // 0123456789ABCDEF |
michael@0 | 2085 | + "|ABCDEFGHIJKLMNO" |
michael@0 | 2086 | // 0123456789ABCDEF |
michael@0 | 2087 | + "PQRSTUVWXYZ " |
michael@0 | 2088 | // 012345.....6789ABCDEF |
michael@0 | 2089 | + " \u20ac " |
michael@0 | 2090 | // 0123456789ABCDEF |
michael@0 | 2091 | + " ", |
michael@0 | 2092 | |
michael@0 | 2093 | /** |
michael@0 | 2094 | * National Language Identifier: 0x08 |
michael@0 | 2095 | * A.2.8 Malayalam National Language Single Shift Table |
michael@0 | 2096 | */ |
michael@0 | 2097 | // 01.....23.....4.....5.6.....789A.....BCD.....EF |
michael@0 | 2098 | "@\u00a3$\u00a5\u00bf\"\u00a4%&'\u000c*+\ufffe-/" |
michael@0 | 2099 | // 0123.....45.....6789.....A.....B.....C.....D.....E.....F..... |
michael@0 | 2100 | + "<=>\u00a1^\u00a1_#*\u0964\u0965\uffff\u0d66\u0d67\u0d68\u0d69" |
michael@0 | 2101 | // 0.....1.....2.....3.....4.....5.....6.....7.....89A.....B.....C.....D.....E.....F. |
michael@0 | 2102 | + "\u0d6a\u0d6b\u0d6c\u0d6d\u0d6e\u0d6f\u0d70\u0d71{}\u0d72\u0d73\u0d74\u0d75\u0d7a\\" |
michael@0 | 2103 | // 0.....1.....2.....3.....4.....56789ABCDEF |
michael@0 | 2104 | + "\u0d7b\u0d7c\u0d7d\u0d7e\u0d7f [~] " |
michael@0 | 2105 | // 0123456789ABCDEF |
michael@0 | 2106 | + "|ABCDEFGHIJKLMNO" |
michael@0 | 2107 | // 0123456789ABCDEF |
michael@0 | 2108 | + "PQRSTUVWXYZ " |
michael@0 | 2109 | // 012345.....6789ABCDEF |
michael@0 | 2110 | + " \u20ac " |
michael@0 | 2111 | // 0123456789ABCDEF |
michael@0 | 2112 | + " ", |
michael@0 | 2113 | |
michael@0 | 2114 | /** |
michael@0 | 2115 | * National Language Identifier: 0x09 |
michael@0 | 2116 | * A.2.9 Oriya National Language Single Shift Table |
michael@0 | 2117 | */ |
michael@0 | 2118 | // 01.....23.....4.....5.6.....789A.....BCD.....EF |
michael@0 | 2119 | "@\u00a3$\u00a5\u00bf\"\u00a4%&'\u000c*+\ufffe-/" |
michael@0 | 2120 | // 0123.....45.....6789.....A.....B.....C.....D.....E.....F..... |
michael@0 | 2121 | + "<=>\u00a1^\u00a1_#*\u0964\u0965\uffff\u0b66\u0b67\u0b68\u0b69" |
michael@0 | 2122 | // 0.....1.....2.....3.....4.....5.....6.....7.....89A.....B.....C.....DEF. |
michael@0 | 2123 | + "\u0b6a\u0b6b\u0b6c\u0b6d\u0b6e\u0b6f\u0b5c\u0b5d{}\u0b5f\u0b70\u0b71 \\" |
michael@0 | 2124 | // 0123456789ABCDEF |
michael@0 | 2125 | + " [~] " |
michael@0 | 2126 | // 0123456789ABCDEF |
michael@0 | 2127 | + "|ABCDEFGHIJKLMNO" |
michael@0 | 2128 | // 0123456789ABCDEF |
michael@0 | 2129 | + "PQRSTUVWXYZ " |
michael@0 | 2130 | // 012345.....6789ABCDEF |
michael@0 | 2131 | + " \u20ac " |
michael@0 | 2132 | // 0123456789ABCDEF |
michael@0 | 2133 | + " ", |
michael@0 | 2134 | |
michael@0 | 2135 | /** |
michael@0 | 2136 | * National Language Identifier: 0x0A |
michael@0 | 2137 | * A.2.10 Punjabi National Language Single Shift Table |
michael@0 | 2138 | */ |
michael@0 | 2139 | // 01.....23.....4.....5.6.....789A.....BCD.....EF |
michael@0 | 2140 | "@\u00a3$\u00a5\u00bf\"\u00a4%&'\u000c*+\ufffe-/" |
michael@0 | 2141 | // 0123.....45.....6789.....A.....B.....C.....D.....E.....F..... |
michael@0 | 2142 | + "<=>\u00a1^\u00a1_#*\u0964\u0965\uffff\u0a66\u0a67\u0a68\u0a69" |
michael@0 | 2143 | // 0.....1.....2.....3.....4.....5.....6.....7.....89A.....B.....C.....D.....EF. |
michael@0 | 2144 | + "\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a59\u0a5a{}\u0a5b\u0a5c\u0a5e\u0a75 \\" |
michael@0 | 2145 | // 0123456789ABCDEF |
michael@0 | 2146 | + " [~] " |
michael@0 | 2147 | // 0123456789ABCDEF |
michael@0 | 2148 | + "|ABCDEFGHIJKLMNO" |
michael@0 | 2149 | // 0123456789ABCDEF |
michael@0 | 2150 | + "PQRSTUVWXYZ " |
michael@0 | 2151 | // 012345.....6789ABCDEF |
michael@0 | 2152 | + " \u20ac " |
michael@0 | 2153 | // 0123456789ABCDEF |
michael@0 | 2154 | + " ", |
michael@0 | 2155 | |
michael@0 | 2156 | /** |
michael@0 | 2157 | * National Language Identifier: 0x0B |
michael@0 | 2158 | * A.2.11 Tamil National Language Single Shift Table |
michael@0 | 2159 | */ |
michael@0 | 2160 | // 01.....23.....4.....5.6.....789A.....BCD.....EF |
michael@0 | 2161 | "@\u00a3$\u00a5\u00bf\"\u00a4%&'\u000c*+\ufffe-/" |
michael@0 | 2162 | // 0123.....45.....6789.....A.....B.....C.....D.....E.....F..... |
michael@0 | 2163 | + "<=>\u00a1^\u00a1_#*\u0964\u0965\uffff\u0be6\u0be7\u0be8\u0be9" |
michael@0 | 2164 | // 0.....1.....2.....3.....4.....5.....6.....7.....89A.....B.....C.....D.....E.....F. |
michael@0 | 2165 | + "\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0bf3\u0bf4{}\u0bf5\u0bf6\u0bf7\u0bf8\u0bfa\\" |
michael@0 | 2166 | // 0123456789ABCDEF |
michael@0 | 2167 | + " [~] " |
michael@0 | 2168 | // 0123456789ABCDEF |
michael@0 | 2169 | + "|ABCDEFGHIJKLMNO" |
michael@0 | 2170 | // 0123456789ABCDEF |
michael@0 | 2171 | + "PQRSTUVWXYZ " |
michael@0 | 2172 | // 012345.....6789ABCDEF |
michael@0 | 2173 | + " \u20ac " |
michael@0 | 2174 | // 0123456789ABCDEF |
michael@0 | 2175 | + " ", |
michael@0 | 2176 | |
michael@0 | 2177 | /** |
michael@0 | 2178 | * National Language Identifier: 0x0C |
michael@0 | 2179 | * A.2.12 Telugu National Language Single Shift Table |
michael@0 | 2180 | */ |
michael@0 | 2181 | // 01.....23.....4.....5.6.....789A.....BCD.....EF |
michael@0 | 2182 | "@\u00a3$\u00a5\u00bf\"\u00a4%&'\u000c*+\ufffe-/" |
michael@0 | 2183 | // 0123.....45.....6789AB.....C.....D.....E.....F..... |
michael@0 | 2184 | + "<=>\u00a1^\u00a1_#* \uffff\u0c66\u0c67\u0c68\u0c69" |
michael@0 | 2185 | // 0.....1.....2.....3.....4.....5.....6.....7.....89A.....B.....C.....D.....E.....F. |
michael@0 | 2186 | + "\u0c6a\u0c6b\u0c6c\u0c6d\u0c6e\u0c6f\u0c58\u0c59{}\u0c78\u0c79\u0c7a\u0c7b\u0c7c\\" |
michael@0 | 2187 | // 0.....1.....2.....3456789ABCDEF |
michael@0 | 2188 | + "\u0c7d\u0c7e\u0c7f [~] " |
michael@0 | 2189 | // 0123456789ABCDEF |
michael@0 | 2190 | + "|ABCDEFGHIJKLMNO" |
michael@0 | 2191 | // 0123456789ABCDEF |
michael@0 | 2192 | + "PQRSTUVWXYZ " |
michael@0 | 2193 | // 012345.....6789ABCDEF |
michael@0 | 2194 | + " \u20ac " |
michael@0 | 2195 | // 0123456789ABCDEF |
michael@0 | 2196 | + " ", |
michael@0 | 2197 | |
michael@0 | 2198 | /** |
michael@0 | 2199 | * National Language Identifier: 0x0D |
michael@0 | 2200 | * A.2.13 Urdu National Language Single Shift Table |
michael@0 | 2201 | */ |
michael@0 | 2202 | // 01.....23.....4.....5.6.....789A.....BCD.....EF |
michael@0 | 2203 | "@\u00a3$\u00a5\u00bf\"\u00a4%&'\u000c*+\ufffe-/" |
michael@0 | 2204 | // 0123.....45.....6789.....A.....B.....C.....D.....E.....F..... |
michael@0 | 2205 | + "<=>\u00a1^\u00a1_#*\u0600\u0601\uffff\u06f0\u06f1\u06f2\u06f3" |
michael@0 | 2206 | // 0.....1.....2.....3.....4.....5.....6.....7.....89A.....B.....C.....D.....E.....F. |
michael@0 | 2207 | + "\u06f4\u06f5\u06f6\u06f7\u06f8\u06f9\u060c\u060d{}\u060e\u060f\u0610\u0611\u0612\\" |
michael@0 | 2208 | // 0.....1.....2.....3.....4.....5.....6.....7.....8.....9.....A.....B.....CDEF..... |
michael@0 | 2209 | + "\u0613\u0614\u061b\u061f\u0640\u0652\u0658\u066b\u066c\u0672\u0673\u06cd[~]\u06d4" |
michael@0 | 2210 | // 0123456789ABCDEF |
michael@0 | 2211 | + "|ABCDEFGHIJKLMNO" |
michael@0 | 2212 | // 0123456789ABCDEF |
michael@0 | 2213 | + "PQRSTUVWXYZ " |
michael@0 | 2214 | // 012345.....6789ABCDEF |
michael@0 | 2215 | + " \u20ac " |
michael@0 | 2216 | // 0123456789ABCDEF |
michael@0 | 2217 | + " " |
michael@0 | 2218 | ]; |
michael@0 | 2219 | |
michael@0 | 2220 | // Special SMS Message Indication constants |
michael@0 | 2221 | this.PDU_MWI_STORE_TYPE_BIT = 0x80; |
michael@0 | 2222 | this.PDU_MWI_STORE_TYPE_DISCARD = 0x00; |
michael@0 | 2223 | this.PDU_MWI_STORE_TYPE_STORE = 0x80; |
michael@0 | 2224 | |
michael@0 | 2225 | this.GSM_SMS_STRICT_7BIT_CHARMAP = { |
michael@0 | 2226 | //"\u0024": "\u0024", // "$" => "$", already in default alphabet |
michael@0 | 2227 | //"\u00a5": "\u00a5", // "¥" => "¥", already in default alphabet |
michael@0 | 2228 | "\u00c0": "\u0041", // "À" => "A" |
michael@0 | 2229 | "\u00c1": "\u0041", // "Á" => "A" |
michael@0 | 2230 | "\u00c2": "\u0041", // "Â" => "A" |
michael@0 | 2231 | "\u00c3": "\u0041", // "Ã" => "A" |
michael@0 | 2232 | //"\u00c4": "\u00c4", // "Ä" => "Ä", already in default alphabet |
michael@0 | 2233 | //"\u00c5": "\u00c5", // "Å" => "Å", already in default alphabet |
michael@0 | 2234 | //"\u00c6": "\u00c6", // "Æ" => "Æ", already in default alphabet |
michael@0 | 2235 | //"\u00c7": "\u00c7", // "Ç" => "Ç", already in default alphabet |
michael@0 | 2236 | "\u00c8": "\u0045", // "È" => "E" |
michael@0 | 2237 | //"\u00c9": "\u00c9", // "É" => "É", already in default alphabet |
michael@0 | 2238 | "\u00ca": "\u0045", // "Ê" => "E" |
michael@0 | 2239 | "\u00cb": "\u0045", // "Ë" => "E" |
michael@0 | 2240 | "\u00cc": "\u0049", // "Ì" => "I" |
michael@0 | 2241 | "\u00cd": "\u0049", // "Í" => "I" |
michael@0 | 2242 | "\u00ce": "\u0049", // "Î" => "I" |
michael@0 | 2243 | "\u00cf": "\u0049", // "Ï" => "I" |
michael@0 | 2244 | //"\u00d1": "\u00d1", // "Ñ" => "Ñ", already in default alphabet |
michael@0 | 2245 | "\u00d2": "\u004f", // "Ò" => "O" |
michael@0 | 2246 | "\u00d3": "\u004f", // "Ó" => "O" |
michael@0 | 2247 | "\u00d4": "\u004f", // "Ô" => "O" |
michael@0 | 2248 | "\u00d5": "\u004f", // "Õ" => "O" |
michael@0 | 2249 | //"\u00d6": "\u00d6", // "Ö" => "Ö", already in default alphabet |
michael@0 | 2250 | "\u00d9": "\u0055", // "Ù" => "U" |
michael@0 | 2251 | "\u00da": "\u0055", // "Ú" => "U" |
michael@0 | 2252 | "\u00db": "\u0055", // "Û" => "U" |
michael@0 | 2253 | //"\u00dc": "\u00dc", // "Ü" => "Ü", already in default alphabet |
michael@0 | 2254 | //"\u00df": "\u00df", // "ß" => "ß", already in default alphabet |
michael@0 | 2255 | //"\u00e0": "\u00e0", // "à" => "à", already in default alphabet |
michael@0 | 2256 | "\u00e1": "\u0061", // "á" => "a" |
michael@0 | 2257 | "\u00e2": "\u0061", // "â" => "a" |
michael@0 | 2258 | "\u00e3": "\u0061", // "ã" => "a" |
michael@0 | 2259 | //"\u00e4": "\u00e4", // "ä" => "ä", already in default alphabet |
michael@0 | 2260 | //"\u00e5": "\u00e5", // "å" => "å", already in default alphabet |
michael@0 | 2261 | //"\u00e6": "\u00e6", // "æ" => "æ", already in default alphabet |
michael@0 | 2262 | "\u00e7": "\u00c7", // "ç" => "Ç" |
michael@0 | 2263 | //"\u00e8": "\u00e8", // "è" => "è", already in default alphabet |
michael@0 | 2264 | //"\u00e9": "\u00e9", // "é" => "é", already in default alphabet |
michael@0 | 2265 | "\u00ea": "\u0065", // "ê" => "e" |
michael@0 | 2266 | "\u00eb": "\u0065", // "ë" => "e" |
michael@0 | 2267 | //"\u00ec": "\u00ec", // "ì" => "ì", already in default alphabet |
michael@0 | 2268 | "\u00ed": "\u0069", // "í" => "i" |
michael@0 | 2269 | "\u00ee": "\u0069", // "î" => "i" |
michael@0 | 2270 | "\u00ef": "\u0069", // "ï" => "i" |
michael@0 | 2271 | //"\u00f1": "\u00f1", // "ñ" => "ñ", already in default alphabet |
michael@0 | 2272 | //"\u00f2": "\u00f2", // "ò" => "ò", already in default alphabet |
michael@0 | 2273 | "\u00f3": "\u006f", // "ó" => "o" |
michael@0 | 2274 | "\u00f4": "\u006f", // "ô" => "o" |
michael@0 | 2275 | "\u00f5": "\u006f", // "õ" => "o" |
michael@0 | 2276 | //"\u00f6": "\u00f6", // "ö" => "ö", already in default alphabet |
michael@0 | 2277 | //"\u00f8": "\u00f8", // "ø" => "ø", already in default alphabet |
michael@0 | 2278 | //"\u00f9": "\u00f9", // "ù" => "ù", already in default alphabet |
michael@0 | 2279 | "\u00fa": "\u0075", // "ú" => "u" |
michael@0 | 2280 | "\u00fb": "\u0075", // "û" => "u" |
michael@0 | 2281 | //"\u00fc": "\u00fc", // "ü" => "ü", already in default alphabet |
michael@0 | 2282 | "\u00fe": "\u0074", // "þ" => "t" |
michael@0 | 2283 | "\u0100": "\u0041", // "Ā" => "A" |
michael@0 | 2284 | "\u0101": "\u0061", // "ā" => "a" |
michael@0 | 2285 | "\u0106": "\u0043", // "Ć" => "C" |
michael@0 | 2286 | "\u0107": "\u0063", // "ć" => "c" |
michael@0 | 2287 | "\u010c": "\u0043", // "Č" => "C" |
michael@0 | 2288 | "\u010d": "\u0063", // "č" => "c" |
michael@0 | 2289 | "\u010f": "\u0064", // "ď" => "d" |
michael@0 | 2290 | "\u0110": "\u0044", // "Đ" => "D" |
michael@0 | 2291 | "\u0111": "\u0064", // "đ" => "d" |
michael@0 | 2292 | "\u0112": "\u0045", // "Ē" => "E" |
michael@0 | 2293 | "\u0113": "\u0065", // "ē" => "e" |
michael@0 | 2294 | "\u0118": "\u0045", // "Ę" => "E" |
michael@0 | 2295 | "\u0119": "\u0065", // "ę" => "e" |
michael@0 | 2296 | "\u0128": "\u0049", // "Ĩ" => "I" |
michael@0 | 2297 | "\u0129": "\u0069", // "ĩ" => "i" |
michael@0 | 2298 | "\u012a": "\u0049", // "Ī" => "I" |
michael@0 | 2299 | "\u012b": "\u0069", // "ī" => "i" |
michael@0 | 2300 | "\u012e": "\u0049", // "Į" => "I" |
michael@0 | 2301 | "\u012f": "\u0069", // "į" => "i" |
michael@0 | 2302 | "\u0141": "\u004c", // "Ł" => "L" |
michael@0 | 2303 | "\u0142": "\u006c", // "ł" => "l" |
michael@0 | 2304 | "\u0143": "\u004e", // "Ń" => "N" |
michael@0 | 2305 | "\u0144": "\u006e", // "ń" => "n" |
michael@0 | 2306 | "\u0147": "\u004e", // "Ň" => "N" |
michael@0 | 2307 | "\u0148": "\u006e", // "ň" => "n" |
michael@0 | 2308 | "\u014c": "\u004f", // "Ō" => "O" |
michael@0 | 2309 | "\u014d": "\u006f", // "ō" => "o" |
michael@0 | 2310 | "\u0152": "\u004f", // "Œ" => "O" |
michael@0 | 2311 | "\u0153": "\u006f", // "œ" => "o" |
michael@0 | 2312 | "\u0158": "\u0052", // "Ř" => "R" |
michael@0 | 2313 | "\u0159": "\u0072", // "ř" => "r" |
michael@0 | 2314 | "\u0160": "\u0053", // "Š" => "S" |
michael@0 | 2315 | "\u0161": "\u0073", // "š" => "s" |
michael@0 | 2316 | "\u0165": "\u0074", // "ť" => "t" |
michael@0 | 2317 | "\u0168": "\u0055", // "Ū" => "U" |
michael@0 | 2318 | "\u0169": "\u0075", // "ū" => "u" |
michael@0 | 2319 | "\u016a": "\u0055", // "Ū" => "U" |
michael@0 | 2320 | "\u016b": "\u0075", // "ū" => "u" |
michael@0 | 2321 | "\u0178": "\u0059", // "Ÿ" => "Y" |
michael@0 | 2322 | "\u0179": "\u005a", // "Ź" => "Z" |
michael@0 | 2323 | "\u017a": "\u007a", // "ź" => "z" |
michael@0 | 2324 | "\u017b": "\u005a", // "Ż" => "Z" |
michael@0 | 2325 | "\u017c": "\u007a", // "ż" => "z" |
michael@0 | 2326 | "\u017d": "\u005a", // "Ž" => "Z" |
michael@0 | 2327 | "\u017e": "\u007a", // "ž" => "z" |
michael@0 | 2328 | "\u025b": "\u0045", // "ɛ" => "E" |
michael@0 | 2329 | //"\u0398": "\u0398", // "Θ" => "Θ", already in default alphabet |
michael@0 | 2330 | "\u1e7c": "\u0056", // "Ṽ" => "V" |
michael@0 | 2331 | "\u1e7d": "\u0076", // "ṽ" => "v" |
michael@0 | 2332 | "\u1ebc": "\u0045", // "Ẽ" => "E" |
michael@0 | 2333 | "\u1ebd": "\u0065", // "ẽ" => "e" |
michael@0 | 2334 | "\u1ef8": "\u0059", // "Ỹ" => "Y" |
michael@0 | 2335 | "\u1ef9": "\u0079", // "ỹ" => "y" |
michael@0 | 2336 | "\u20a4": "\u00a3", // "₤" => "£" |
michael@0 | 2337 | //"\u20ac": "\u20ac", // "€" => "€", already in default alphabet |
michael@0 | 2338 | }; |
michael@0 | 2339 | |
michael@0 | 2340 | this.RADIOTECH_FAMILY_3GPP = 1; // GSM, WCDMA, LTE |
michael@0 | 2341 | this.RADIOTECH_FAMILY_3GPP2 = 2; // CDMA, EVDO |
michael@0 | 2342 | |
michael@0 | 2343 | this.DATACALL_RADIOTECHNOLOGY_CDMA = 0; |
michael@0 | 2344 | this.DATACALL_RADIOTECHNOLOGY_GSM = 1; |
michael@0 | 2345 | |
michael@0 | 2346 | this.DATACALL_AUTH_NONE = 0; |
michael@0 | 2347 | this.DATACALL_AUTH_PAP = 1; |
michael@0 | 2348 | this.DATACALL_AUTH_CHAP = 2; |
michael@0 | 2349 | this.DATACALL_AUTH_PAP_OR_CHAP = 3; |
michael@0 | 2350 | |
michael@0 | 2351 | this.GECKO_DATACALL_AUTH_NONE = "none"; |
michael@0 | 2352 | this.GECKO_DATACALL_AUTH_PAP = "pap"; |
michael@0 | 2353 | this.GECKO_DATACALL_AUTH_CHAP = "chap"; |
michael@0 | 2354 | this.GECKO_DATACALL_AUTH_PAP_OR_CHAP = "papOrChap"; |
michael@0 | 2355 | this.GECKO_DATACALL_AUTH_DEFAULT = GECKO_DATACALL_AUTH_PAP_OR_CHAP; |
michael@0 | 2356 | this.RIL_DATACALL_AUTH_TO_GECKO = [ |
michael@0 | 2357 | GECKO_DATACALL_AUTH_NONE, // DATACALL_AUTH_NONE |
michael@0 | 2358 | GECKO_DATACALL_AUTH_PAP, // DATACALL_AUTH_PAP |
michael@0 | 2359 | GECKO_DATACALL_AUTH_CHAP, // DATACALL_AUTH_CHAP |
michael@0 | 2360 | GECKO_DATACALL_AUTH_PAP_OR_CHAP // DATACALL_AUTH_PAP_OR_CHAP |
michael@0 | 2361 | ]; |
michael@0 | 2362 | |
michael@0 | 2363 | this.GECKO_DATACALL_PDP_TYPE_IP = "IP"; |
michael@0 | 2364 | this.GECKO_DATACALL_PDP_TYPE_IPV4V6 = "IPV4V6"; |
michael@0 | 2365 | this.GECKO_DATACALL_PDP_TYPE_IPV6 = "IPV6"; |
michael@0 | 2366 | this.GECKO_DATACALL_PDP_TYPE_DEFAULT = GECKO_DATACALL_PDP_TYPE_IP; |
michael@0 | 2367 | this.RIL_DATACALL_PDP_TYPES = [ |
michael@0 | 2368 | GECKO_DATACALL_PDP_TYPE_IP, |
michael@0 | 2369 | GECKO_DATACALL_PDP_TYPE_IPV4V6, |
michael@0 | 2370 | GECKO_DATACALL_PDP_TYPE_IPV6, |
michael@0 | 2371 | ]; |
michael@0 | 2372 | |
michael@0 | 2373 | this.DATACALL_PROFILE_DEFAULT = 0; |
michael@0 | 2374 | this.DATACALL_PROFILE_TETHERED = 1; |
michael@0 | 2375 | this.DATACALL_PROFILE_OEM_BASE = 1000; |
michael@0 | 2376 | |
michael@0 | 2377 | this.DATACALL_DEACTIVATE_NO_REASON = 0; |
michael@0 | 2378 | this.DATACALL_DEACTIVATE_RADIO_SHUTDOWN = 1; |
michael@0 | 2379 | |
michael@0 | 2380 | this.DATACALL_ACTIVE_UNKNOWN = -1; |
michael@0 | 2381 | this.DATACALL_INACTIVE = 0; |
michael@0 | 2382 | this.DATACALL_ACTIVE_DOWN = 1; |
michael@0 | 2383 | this.DATACALL_ACTIVE_UP = 2; |
michael@0 | 2384 | |
michael@0 | 2385 | this.DATACALL_FAIL_NONE = 0; |
michael@0 | 2386 | this.DATACALL_FAIL_OPERATOR_BARRED = 0x08; |
michael@0 | 2387 | this.DATACALL_FAIL_INSUFFICIENT_RESOURCES = 0x1A; |
michael@0 | 2388 | this.DATACALL_FAIL_MISSING_UKNOWN_APN = 0x1B; |
michael@0 | 2389 | this.DATACALL_FAIL_UNKNOWN_PDP_ADDRESS_TYPE = 0x1C; |
michael@0 | 2390 | this.DATACALL_FAIL_USER_AUTHENTICATION = 0x1D; |
michael@0 | 2391 | this.DATACALL_FAIL_ACTIVATION_REJECT_GGSN = 0x1E; |
michael@0 | 2392 | this.DATACALL_FAIL_ACTIVATION_REJECT_UNSPECIFIED = 0x1F; |
michael@0 | 2393 | this.DATACALL_FAIL_SERVICE_OPTION_NOT_SUPPORTED = 0x20; |
michael@0 | 2394 | this.DATACALL_FAIL_SERVICE_OPTION_NOT_SUBSCRIBED = 0x21; |
michael@0 | 2395 | this.DATACALL_FAIL_SERVICE_OPTION_OUT_OF_ORDER = 0x22; |
michael@0 | 2396 | this.DATACALL_FAIL_NSAPI_IN_USE = 0x23; |
michael@0 | 2397 | this.DATACALL_FAIL_ONLY_IPV4_ALLOWED = 0x32; |
michael@0 | 2398 | this.DATACALL_FAIL_ONLY_IPV6_ALLOWED = 0x33; |
michael@0 | 2399 | this.DATACALL_FAIL_ONLY_SINGLE_BEARER_ALLOWED = 0x34; |
michael@0 | 2400 | this.DATACALL_FAIL_PROTOCOL_ERRORS = 0x6F; |
michael@0 | 2401 | this.DATACALL_FAIL_VOICE_REGISTRATION_FAIL = -1; |
michael@0 | 2402 | this.DATACALL_FAIL_DATA_REGISTRATION_FAIL = -2; |
michael@0 | 2403 | this.DATACALL_FAIL_SIGNAL_LOST = -3; |
michael@0 | 2404 | this.DATACALL_FAIL_PREF_RADIO_TECH_CHANGED = -4; |
michael@0 | 2405 | this.DATACALL_FAIL_RADIO_POWER_OFF = -5; |
michael@0 | 2406 | this.DATACALL_FAIL_TETHERED_CALL_ACTIVE = -6; |
michael@0 | 2407 | this.DATACALL_FAIL_ERROR_UNSPECIFIED = 0xffff; |
michael@0 | 2408 | |
michael@0 | 2409 | // Keep consistent with nsINetworkManager.NETWORK_STATE_*. |
michael@0 | 2410 | this.GECKO_NETWORK_STATE_UNKNOWN = -1; |
michael@0 | 2411 | this.GECKO_NETWORK_STATE_CONNECTING = 0; |
michael@0 | 2412 | this.GECKO_NETWORK_STATE_CONNECTED = 1; |
michael@0 | 2413 | this.GECKO_NETWORK_STATE_DISCONNECTING = 2; |
michael@0 | 2414 | this.GECKO_NETWORK_STATE_DISCONNECTED = 3; |
michael@0 | 2415 | |
michael@0 | 2416 | // Used for QUERY_AVAILABLE_NETWORKS status of "unknown" |
michael@0 | 2417 | this.GECKO_QAN_STATE_UNKNOWN = null; |
michael@0 | 2418 | |
michael@0 | 2419 | this.CALL_FAIL_UNOBTAINABLE_NUMBER = 1; |
michael@0 | 2420 | this.CALL_FAIL_NORMAL = 16; |
michael@0 | 2421 | this.CALL_FAIL_BUSY = 17; |
michael@0 | 2422 | this.CALL_FAIL_NO_USER_RESPONDING = 18; |
michael@0 | 2423 | this.CALL_FAIL_USER_ALERTING = 19; |
michael@0 | 2424 | this.CALL_FAIL_CALL_REJECTED = 21; |
michael@0 | 2425 | this.CALL_FAIL_NUMBER_CHANGED = 22; |
michael@0 | 2426 | this.CALL_FAIL_CALL_PRE_EMPTION = 25; |
michael@0 | 2427 | this.CALL_FAIL_DEST_OUT_OF_ORDER = 27; |
michael@0 | 2428 | this.CALL_FAIL_INVALID_FORMAT = 28; |
michael@0 | 2429 | this.CALL_FAIL_FACILITY_REJECTED = 29; |
michael@0 | 2430 | this.CALL_FAIL_CONGESTION = 34; |
michael@0 | 2431 | this.CALL_FAIL_NETWORK_OUT_OF_ORDER = 38; |
michael@0 | 2432 | this.CALL_FAIL_NETWORK_TEMP_FAILURE = 41; |
michael@0 | 2433 | this.CALL_FAIL_ACM_LIMIT_EXCEEDED = 68; |
michael@0 | 2434 | this.CALL_FAIL_CALL_BARRED = 240; |
michael@0 | 2435 | this.CALL_FAIL_FDN_BLOCKED = 241; |
michael@0 | 2436 | this.CALL_FAIL_IMSI_UNKNOWN_IN_VLR = 242; |
michael@0 | 2437 | this.CALL_FAIL_IMEI_NOT_ACCEPTED = 243; |
michael@0 | 2438 | this.CALL_FAIL_ERROR_UNSPECIFIED = 0xffff; |
michael@0 | 2439 | |
michael@0 | 2440 | // Other Gecko-specific constants |
michael@0 | 2441 | this.GECKO_RADIOSTATE_UNAVAILABLE = null; |
michael@0 | 2442 | this.GECKO_RADIOSTATE_OFF = "off"; |
michael@0 | 2443 | this.GECKO_RADIOSTATE_READY = "ready"; |
michael@0 | 2444 | |
michael@0 | 2445 | this.GECKO_DETAILED_RADIOSTATE_UNKNOWN = null; |
michael@0 | 2446 | this.GECKO_DETAILED_RADIOSTATE_ENABLING = "enabling"; |
michael@0 | 2447 | this.GECKO_DETAILED_RADIOSTATE_ENABLED = "enabled"; |
michael@0 | 2448 | this.GECKO_DETAILED_RADIOSTATE_DISABLING = "disabling"; |
michael@0 | 2449 | this.GECKO_DETAILED_RADIOSTATE_DISABLED = "disabled"; |
michael@0 | 2450 | |
michael@0 | 2451 | this.GECKO_CARDSTATE_UNINITIALIZED = "uninitialized"; |
michael@0 | 2452 | this.GECKO_CARDSTATE_UNDETECTED = null; |
michael@0 | 2453 | this.GECKO_CARDSTATE_ILLEGAL = "illegal"; |
michael@0 | 2454 | this.GECKO_CARDSTATE_UNKNOWN = "unknown"; |
michael@0 | 2455 | this.GECKO_CARDSTATE_PIN_REQUIRED = "pinRequired"; |
michael@0 | 2456 | this.GECKO_CARDSTATE_PUK_REQUIRED = "pukRequired"; |
michael@0 | 2457 | this.GECKO_CARDSTATE_PERSONALIZATION_IN_PROGRESS = "personalizationInProgress"; |
michael@0 | 2458 | this.GECKO_CARDSTATE_PERSONALIZATION_READY = "personalizationReady"; |
michael@0 | 2459 | this.GECKO_CARDSTATE_NETWORK_LOCKED = "networkLocked"; |
michael@0 | 2460 | this.GECKO_CARDSTATE_NETWORK_SUBSET_LOCKED = "networkSubsetLocked"; |
michael@0 | 2461 | this.GECKO_CARDSTATE_NETWORK1_LOCKED = "network1Locked"; |
michael@0 | 2462 | this.GECKO_CARDSTATE_NETWORK2_LOCKED = "network2Locked"; |
michael@0 | 2463 | this.GECKO_CARDSTATE_HRPD_NETWORK_LOCKED = "hrpdNetworkLocked"; |
michael@0 | 2464 | this.GECKO_CARDSTATE_CORPORATE_LOCKED = "corporateLocked"; |
michael@0 | 2465 | this.GECKO_CARDSTATE_SERVICE_PROVIDER_LOCKED = "serviceProviderLocked"; |
michael@0 | 2466 | this.GECKO_CARDSTATE_SIM_LOCKED = "simPersonalizationLock"; |
michael@0 | 2467 | this.GECKO_CARDSTATE_RUIM_CORPORATE_LOCKED = "ruimCorporateLocked"; |
michael@0 | 2468 | this.GECKO_CARDSTATE_RUIM_SERVICE_PROVIDER_LOCKED = "ruimServiceProviderLocked"; |
michael@0 | 2469 | this.GECKO_CARDSTATE_RUIM_LOCKED = "ruimPersonalizationLock"; |
michael@0 | 2470 | this.GECKO_CARDSTATE_NETWORK_PUK_REQUIRED = "networkPukRequired"; |
michael@0 | 2471 | this.GECKO_CARDSTATE_NETWORK_SUBSET_PUK_REQUIRED = "networkSubsetPukRequired"; |
michael@0 | 2472 | this.GECKO_CARDSTATE_NETWORK1_PUK_REQUIRED = "network1PukRequired"; |
michael@0 | 2473 | this.GECKO_CARDSTATE_NETWORK2_PUK_REQUIRED = "network2PukRequired"; |
michael@0 | 2474 | this.GECKO_CARDSTATE_HRPD_NETWORK_PUK_REQUIRED = "hrpdNetworkPukRequired"; |
michael@0 | 2475 | this.GECKO_CARDSTATE_CORPORATE_PUK_REQUIRED = "corporatePukRequired"; |
michael@0 | 2476 | this.GECKO_CARDSTATE_SERVICE_PROVIDER_PUK_REQUIRED = "serviceProviderPukRequired"; |
michael@0 | 2477 | this.GECKO_CARDSTATE_SIM_PUK_REQUIRED = "simPersonalizationPukRequired"; |
michael@0 | 2478 | this.GECKO_CARDSTATE_RUIM_CORPORATE_PUK_REQUIRED = "ruimCorporatePukRequired"; |
michael@0 | 2479 | this.GECKO_CARDSTATE_RUIM_SERVICE_PROVIDER_PUK_REQUIRED = "ruimServiceProviderPukRequired"; |
michael@0 | 2480 | this.GECKO_CARDSTATE_RUIM_PUK_REQUIRED = "ruimPersonalizationPukRequired"; |
michael@0 | 2481 | this.GECKO_CARDSTATE_READY = "ready"; |
michael@0 | 2482 | this.GECKO_CARDSTATE_PERMANENT_BLOCKED = "permanentBlocked"; |
michael@0 | 2483 | |
michael@0 | 2484 | this.GECKO_CARDLOCK_PIN = "pin"; |
michael@0 | 2485 | this.GECKO_CARDLOCK_PIN2 = "pin2"; |
michael@0 | 2486 | this.GECKO_CARDLOCK_PUK = "puk"; |
michael@0 | 2487 | this.GECKO_CARDLOCK_PUK2 = "puk2"; |
michael@0 | 2488 | this.GECKO_CARDLOCK_FDN = "fdn"; |
michael@0 | 2489 | this.GECKO_CARDLOCK_NCK = "nck"; |
michael@0 | 2490 | this.GECKO_CARDLOCK_NCK1 = "nck1"; |
michael@0 | 2491 | this.GECKO_CARDLOCK_NCK2 = "nck2"; |
michael@0 | 2492 | this.GECKO_CARDLOCK_HNCK = "hnck"; |
michael@0 | 2493 | this.GECKO_CARDLOCK_CCK = "cck"; |
michael@0 | 2494 | this.GECKO_CARDLOCK_SPCK = "spck"; |
michael@0 | 2495 | this.GECKO_CARDLOCK_RCCK = "rcck"; |
michael@0 | 2496 | this.GECKO_CARDLOCK_RSPCK = "rspck"; |
michael@0 | 2497 | this.GECKO_CARDLOCK_NCK_PUK = "nckPuk"; |
michael@0 | 2498 | this.GECKO_CARDLOCK_NCK1_PUK = "nck1Puk"; |
michael@0 | 2499 | this.GECKO_CARDLOCK_NCK2_PUK = "nck2Puk"; |
michael@0 | 2500 | this.GECKO_CARDLOCK_HNCK_PUK = "hnckPuk"; |
michael@0 | 2501 | this.GECKO_CARDLOCK_CCK_PUK = "cckPuk"; |
michael@0 | 2502 | this.GECKO_CARDLOCK_SPCK_PUK = "spckPuk"; |
michael@0 | 2503 | this.GECKO_CARDLOCK_RCCK_PUK = "rcckPuk"; |
michael@0 | 2504 | this.GECKO_CARDLOCK_RSPCK_PUK = "rspckPuk"; |
michael@0 | 2505 | |
michael@0 | 2506 | // See ril.h RIL_PersoSubstate |
michael@0 | 2507 | this.PERSONSUBSTATE = {}; |
michael@0 | 2508 | PERSONSUBSTATE[CARD_PERSOSUBSTATE_UNKNOWN] = GECKO_CARDSTATE_UNKNOWN; |
michael@0 | 2509 | PERSONSUBSTATE[CARD_PERSOSUBSTATE_IN_PROGRESS] = GECKO_CARDSTATE_PERSONALIZATION_IN_PROGRESS; |
michael@0 | 2510 | PERSONSUBSTATE[CARD_PERSOSUBSTATE_READY] = GECKO_CARDSTATE_PERSONALIZATION_READY; |
michael@0 | 2511 | PERSONSUBSTATE[CARD_PERSOSUBSTATE_SIM_NETWORK] = GECKO_CARDSTATE_NETWORK_LOCKED; |
michael@0 | 2512 | PERSONSUBSTATE[CARD_PERSOSUBSTATE_SIM_NETWORK_SUBSET] = GECKO_CARDSTATE_NETWORK_SUBSET_LOCKED; |
michael@0 | 2513 | PERSONSUBSTATE[CARD_PERSOSUBSTATE_SIM_CORPORATE] = GECKO_CARDSTATE_CORPORATE_LOCKED; |
michael@0 | 2514 | PERSONSUBSTATE[CARD_PERSOSUBSTATE_SIM_SERVICE_PROVIDER] = GECKO_CARDSTATE_SERVICE_PROVIDER_LOCKED; |
michael@0 | 2515 | PERSONSUBSTATE[CARD_PERSOSUBSTATE_SIM_SIM] = GECKO_CARDSTATE_SIM_LOCKED; |
michael@0 | 2516 | PERSONSUBSTATE[CARD_PERSOSUBSTATE_SIM_NETWORK_PUK] = GECKO_CARDSTATE_NETWORK_PUK_REQUIRED; |
michael@0 | 2517 | PERSONSUBSTATE[CARD_PERSOSUBSTATE_SIM_NETWORK_SUBSET_PUK] = GECKO_CARDSTATE_NETWORK_SUBSET_PUK_REQUIRED; |
michael@0 | 2518 | PERSONSUBSTATE[CARD_PERSOSUBSTATE_SIM_CORPORATE_PUK] = GECKO_CARDSTATE_CORPORATE_PUK_REQUIRED; |
michael@0 | 2519 | PERSONSUBSTATE[CARD_PERSOSUBSTATE_SIM_SERVICE_PROVIDER_PUK] = GECKO_CARDSTATE_SERVICE_PROVIDER_PUK_REQUIRED; |
michael@0 | 2520 | PERSONSUBSTATE[CARD_PERSOSUBSTATE_RUIM_NETWORK1] = GECKO_CARDSTATE_NETWORK1_LOCKED; |
michael@0 | 2521 | PERSONSUBSTATE[CARD_PERSOSUBSTATE_RUIM_NETWORK2] = GECKO_CARDSTATE_NETWORK2_LOCKED; |
michael@0 | 2522 | PERSONSUBSTATE[CARD_PERSOSUBSTATE_RUIM_HRPD] = GECKO_CARDSTATE_HRPD_NETWORK_LOCKED; |
michael@0 | 2523 | PERSONSUBSTATE[CARD_PERSOSUBSTATE_RUIM_CORPORATE] = GECKO_CARDSTATE_RUIM_CORPORATE_LOCKED; |
michael@0 | 2524 | PERSONSUBSTATE[CARD_PERSOSUBSTATE_RUIM_SERVICE_PROVIDER] = GECKO_CARDSTATE_RUIM_SERVICE_PROVIDER_LOCKED; |
michael@0 | 2525 | PERSONSUBSTATE[CARD_PERSOSUBSTATE_RUIM_RUIM] = GECKO_CARDSTATE_RUIM_LOCKED; |
michael@0 | 2526 | PERSONSUBSTATE[CARD_PERSOSUBSTATE_RUIM_NETWORK1_PUK] = GECKO_CARDSTATE_NETWORK1_PUK_REQUIRED; |
michael@0 | 2527 | PERSONSUBSTATE[CARD_PERSOSUBSTATE_RUIM_NETWORK2_PUK] = GECKO_CARDSTATE_NETWORK2_PUK_REQUIRED; |
michael@0 | 2528 | PERSONSUBSTATE[CARD_PERSOSUBSTATE_RUIM_HRPD_PUK] = GECKO_CARDSTATE_HRPD_NETWORK_PUK_REQUIRED; |
michael@0 | 2529 | PERSONSUBSTATE[CARD_PERSOSUBSTATE_RUIM_CORPORATE_PUK] = GECKO_CARDSTATE_RUIM_CORPORATE_PUK_REQUIRED; |
michael@0 | 2530 | PERSONSUBSTATE[CARD_PERSOSUBSTATE_RUIM_SERVICE_PROVIDER_PUK] = GECKO_CARDSTATE_RUIM_SERVICE_PROVIDER_PUK_REQUIRED; |
michael@0 | 2531 | PERSONSUBSTATE[CARD_PERSOSUBSTATE_RUIM_RUIM_PUK] = GECKO_CARDSTATE_RUIM_PUK_REQUIRED; |
michael@0 | 2532 | |
michael@0 | 2533 | this.GECKO_PERSO_LOCK_TO_CARD_PERSO_LOCK = {}; |
michael@0 | 2534 | GECKO_PERSO_LOCK_TO_CARD_PERSO_LOCK[GECKO_CARDLOCK_NCK] = CARD_PERSOSUBSTATE_SIM_NETWORK; |
michael@0 | 2535 | GECKO_PERSO_LOCK_TO_CARD_PERSO_LOCK[GECKO_CARDLOCK_NCK1] = CARD_PERSOSUBSTATE_RUIM_NETWORK1; |
michael@0 | 2536 | GECKO_PERSO_LOCK_TO_CARD_PERSO_LOCK[GECKO_CARDLOCK_NCK2] = CARD_PERSOSUBSTATE_RUIM_NETWORK2; |
michael@0 | 2537 | GECKO_PERSO_LOCK_TO_CARD_PERSO_LOCK[GECKO_CARDLOCK_HNCK] = CARD_PERSOSUBSTATE_RUIM_HRPD; |
michael@0 | 2538 | GECKO_PERSO_LOCK_TO_CARD_PERSO_LOCK[GECKO_CARDLOCK_CCK] = CARD_PERSOSUBSTATE_SIM_CORPORATE; |
michael@0 | 2539 | GECKO_PERSO_LOCK_TO_CARD_PERSO_LOCK[GECKO_CARDLOCK_SPCK] = CARD_PERSOSUBSTATE_SIM_SERVICE_PROVIDER; |
michael@0 | 2540 | GECKO_PERSO_LOCK_TO_CARD_PERSO_LOCK[GECKO_CARDLOCK_RCCK] = CARD_PERSOSUBSTATE_RUIM_CORPORATE; |
michael@0 | 2541 | GECKO_PERSO_LOCK_TO_CARD_PERSO_LOCK[GECKO_CARDLOCK_RSPCK] = CARD_PERSOSUBSTATE_RUIM_SERVICE_PROVIDER; |
michael@0 | 2542 | GECKO_PERSO_LOCK_TO_CARD_PERSO_LOCK[GECKO_CARDLOCK_NCK_PUK] = CARD_PERSOSUBSTATE_SIM_NETWORK_PUK; |
michael@0 | 2543 | GECKO_PERSO_LOCK_TO_CARD_PERSO_LOCK[GECKO_CARDLOCK_NCK1_PUK] = CARD_PERSOSUBSTATE_RUIM_NETWORK1_PUK; |
michael@0 | 2544 | GECKO_PERSO_LOCK_TO_CARD_PERSO_LOCK[GECKO_CARDLOCK_NCK2_PUK] = CARD_PERSOSUBSTATE_RUIM_NETWORK2_PUK; |
michael@0 | 2545 | GECKO_PERSO_LOCK_TO_CARD_PERSO_LOCK[GECKO_CARDLOCK_HNCK_PUK] = CARD_PERSOSUBSTATE_RUIM_HRPD_PUK; |
michael@0 | 2546 | GECKO_PERSO_LOCK_TO_CARD_PERSO_LOCK[GECKO_CARDLOCK_CCK_PUK] = CARD_PERSOSUBSTATE_SIM_CORPORATE_PUK; |
michael@0 | 2547 | GECKO_PERSO_LOCK_TO_CARD_PERSO_LOCK[GECKO_CARDLOCK_SPCK_PUK] = CARD_PERSOSUBSTATE_SIM_SERVICE_PROVIDER_PUK; |
michael@0 | 2548 | GECKO_PERSO_LOCK_TO_CARD_PERSO_LOCK[GECKO_CARDLOCK_RCCK_PUK] = CARD_PERSOSUBSTATE_RUIM_CORPORATE_PUK; |
michael@0 | 2549 | GECKO_PERSO_LOCK_TO_CARD_PERSO_LOCK[GECKO_CARDLOCK_RSPCK_PUK] = CARD_PERSOSUBSTATE_RUIM_SERVICE_PROVIDER_PUK; |
michael@0 | 2550 | |
michael@0 | 2551 | this.GECKO_NETWORK_SELECTION_UNKNOWN = null; |
michael@0 | 2552 | this.GECKO_NETWORK_SELECTION_AUTOMATIC = "automatic"; |
michael@0 | 2553 | this.GECKO_NETWORK_SELECTION_MANUAL = "manual"; |
michael@0 | 2554 | |
michael@0 | 2555 | this.GECKO_MOBILE_CONNECTION_STATE_UNKNOWN = null; |
michael@0 | 2556 | this.GECKO_MOBILE_CONNECTION_STATE_NOTSEARCHING = "notSearching"; |
michael@0 | 2557 | this.GECKO_MOBILE_CONNECTION_STATE_SEARCHING = "searching"; |
michael@0 | 2558 | this.GECKO_MOBILE_CONNECTION_STATE_REGISTERED = "registered"; |
michael@0 | 2559 | this.GECKO_MOBILE_CONNECTION_STATE_DENIED = "denied"; |
michael@0 | 2560 | |
michael@0 | 2561 | this.NETWORK_CREG_TO_GECKO_MOBILE_CONNECTION_STATE = {}; |
michael@0 | 2562 | NETWORK_CREG_TO_GECKO_MOBILE_CONNECTION_STATE[NETWORK_CREG_STATE_NOT_SEARCHING] = GECKO_MOBILE_CONNECTION_STATE_NOTSEARCHING; |
michael@0 | 2563 | NETWORK_CREG_TO_GECKO_MOBILE_CONNECTION_STATE[NETWORK_CREG_STATE_REGISTERED_HOME] = GECKO_MOBILE_CONNECTION_STATE_REGISTERED; |
michael@0 | 2564 | NETWORK_CREG_TO_GECKO_MOBILE_CONNECTION_STATE[NETWORK_CREG_STATE_SEARCHING] = GECKO_MOBILE_CONNECTION_STATE_SEARCHING; |
michael@0 | 2565 | NETWORK_CREG_TO_GECKO_MOBILE_CONNECTION_STATE[NETWORK_CREG_STATE_DENIED] = GECKO_MOBILE_CONNECTION_STATE_DENIED; |
michael@0 | 2566 | NETWORK_CREG_TO_GECKO_MOBILE_CONNECTION_STATE[NETWORK_CREG_STATE_UNKNOWN] = GECKO_MOBILE_CONNECTION_STATE_UNKNOWN; |
michael@0 | 2567 | NETWORK_CREG_TO_GECKO_MOBILE_CONNECTION_STATE[NETWORK_CREG_STATE_REGISTERED_ROAMING] = GECKO_MOBILE_CONNECTION_STATE_REGISTERED; |
michael@0 | 2568 | NETWORK_CREG_TO_GECKO_MOBILE_CONNECTION_STATE[NETWORK_CREG_STATE_NOT_SEARCHING_EMERGENCY_CALLS] = GECKO_MOBILE_CONNECTION_STATE_NOTSEARCHING; |
michael@0 | 2569 | NETWORK_CREG_TO_GECKO_MOBILE_CONNECTION_STATE[NETWORK_CREG_STATE_SEARCHING_EMERGENCY_CALLS] = GECKO_MOBILE_CONNECTION_STATE_SEARCHING; |
michael@0 | 2570 | NETWORK_CREG_TO_GECKO_MOBILE_CONNECTION_STATE[NETWORK_CREG_STATE_DENIED_EMERGENCY_CALLS] = GECKO_MOBILE_CONNECTION_STATE_DENIED; |
michael@0 | 2571 | NETWORK_CREG_TO_GECKO_MOBILE_CONNECTION_STATE[NETWORK_CREG_STATE_UNKNOWN_EMERGENCY_CALLS] = GECKO_MOBILE_CONNECTION_STATE_UNKNOWN; |
michael@0 | 2572 | |
michael@0 | 2573 | |
michael@0 | 2574 | this.GECKO_CALL_ERROR_BAD_NUMBER = "BadNumberError"; |
michael@0 | 2575 | this.GECKO_CALL_ERROR_NORMAL_CALL_CLEARING = "NormalCallClearingError"; |
michael@0 | 2576 | this.GECKO_CALL_ERROR_BUSY = "BusyError"; |
michael@0 | 2577 | this.GECKO_CALL_ERROR_NO_USER_RESPONDING = "NoUserRespondingError"; |
michael@0 | 2578 | this.GECKO_CALL_ERROR_USER_ALERTING = "UserAlertingNoAnswerError"; |
michael@0 | 2579 | this.GECKO_CALL_ERROR_REJECTED = "CallRejectedError"; |
michael@0 | 2580 | this.GECKO_CALL_ERROR_NUMBER_CHANGED = "NumberChangedError"; |
michael@0 | 2581 | this.GECKO_CALL_ERROR_PRE_EMPTION = "PreEmptionError"; |
michael@0 | 2582 | this.GECKO_CALL_ERROR_DEST_OUT_OF_ORDER = "DestinationOutOfOrderError"; |
michael@0 | 2583 | this.GECKO_CALL_ERROR_INVALID_NUMBER_FORMAT = "InvalidNumberFormatError"; |
michael@0 | 2584 | this.GECKO_CALL_ERROR_FACILITY_REJECTED = "FacilityRejectedError"; |
michael@0 | 2585 | this.GECKO_CALL_ERROR_CONGESTION = "CongestionError"; |
michael@0 | 2586 | this.GECKO_CALL_ERROR_NETWORK_OUT_OF_ORDER = "NetworkOutOfOrderError"; |
michael@0 | 2587 | this.GECKO_CALL_ERROR_NETWORK_TEMP_FAILURE = "NetworkTempFailureError"; |
michael@0 | 2588 | this.GECKO_CALL_ERROR_INCOMING_CALL_EXCEEDED = "IncomingCallExceededError"; |
michael@0 | 2589 | this.GECKO_CALL_ERROR_BARRED = "BarredError"; |
michael@0 | 2590 | this.GECKO_CALL_ERROR_FDN_BLOCKED = "FDNBlockedError"; |
michael@0 | 2591 | this.GECKO_CALL_ERROR_SUBSCRIBER_UNKNOWN = "SubscriberUnknownError"; |
michael@0 | 2592 | this.GECKO_CALL_ERROR_DEVICE_NOT_ACCEPTED = "DeviceNotAcceptedError"; |
michael@0 | 2593 | this.GECKO_CALL_ERROR_UNSPECIFIED = "UnspecifiedError"; |
michael@0 | 2594 | |
michael@0 | 2595 | this.RIL_CALL_FAILCAUSE_TO_GECKO_CALL_ERROR = {}; |
michael@0 | 2596 | RIL_CALL_FAILCAUSE_TO_GECKO_CALL_ERROR[CALL_FAIL_UNOBTAINABLE_NUMBER] = GECKO_CALL_ERROR_BAD_NUMBER; |
michael@0 | 2597 | RIL_CALL_FAILCAUSE_TO_GECKO_CALL_ERROR[CALL_FAIL_NORMAL] = GECKO_CALL_ERROR_NORMAL_CALL_CLEARING; |
michael@0 | 2598 | RIL_CALL_FAILCAUSE_TO_GECKO_CALL_ERROR[CALL_FAIL_BUSY] = GECKO_CALL_ERROR_BUSY; |
michael@0 | 2599 | RIL_CALL_FAILCAUSE_TO_GECKO_CALL_ERROR[CALL_FAIL_NO_USER_RESPONDING] = GECKO_CALL_ERROR_NO_USER_RESPONDING; |
michael@0 | 2600 | RIL_CALL_FAILCAUSE_TO_GECKO_CALL_ERROR[CALL_FAIL_USER_ALERTING] = GECKO_CALL_ERROR_USER_ALERTING; |
michael@0 | 2601 | RIL_CALL_FAILCAUSE_TO_GECKO_CALL_ERROR[CALL_FAIL_CALL_REJECTED] = GECKO_CALL_ERROR_REJECTED; |
michael@0 | 2602 | RIL_CALL_FAILCAUSE_TO_GECKO_CALL_ERROR[CALL_FAIL_NUMBER_CHANGED] = GECKO_CALL_ERROR_NUMBER_CHANGED; |
michael@0 | 2603 | RIL_CALL_FAILCAUSE_TO_GECKO_CALL_ERROR[CALL_FAIL_CALL_PRE_EMPTION] = GECKO_CALL_ERROR_PRE_EMPTION; |
michael@0 | 2604 | RIL_CALL_FAILCAUSE_TO_GECKO_CALL_ERROR[CALL_FAIL_DEST_OUT_OF_ORDER] = GECKO_CALL_ERROR_DEST_OUT_OF_ORDER; |
michael@0 | 2605 | RIL_CALL_FAILCAUSE_TO_GECKO_CALL_ERROR[CALL_FAIL_INVALID_FORMAT] = GECKO_CALL_ERROR_INVALID_NUMBER_FORMAT; |
michael@0 | 2606 | RIL_CALL_FAILCAUSE_TO_GECKO_CALL_ERROR[CALL_FAIL_FACILITY_REJECTED] = GECKO_CALL_ERROR_FACILITY_REJECTED; |
michael@0 | 2607 | RIL_CALL_FAILCAUSE_TO_GECKO_CALL_ERROR[CALL_FAIL_CONGESTION] = GECKO_CALL_ERROR_CONGESTION; |
michael@0 | 2608 | RIL_CALL_FAILCAUSE_TO_GECKO_CALL_ERROR[CALL_FAIL_NETWORK_OUT_OF_ORDER]= GECKO_CALL_ERROR_NETWORK_OUT_OF_ORDER; |
michael@0 | 2609 | RIL_CALL_FAILCAUSE_TO_GECKO_CALL_ERROR[CALL_FAIL_NETWORK_TEMP_FAILURE]= GECKO_CALL_ERROR_NETWORK_TEMP_FAILURE; |
michael@0 | 2610 | RIL_CALL_FAILCAUSE_TO_GECKO_CALL_ERROR[CALL_FAIL_ACM_LIMIT_EXCEEDED] = GECKO_CALL_ERROR_INCOMING_CALL_EXCEEDED; |
michael@0 | 2611 | RIL_CALL_FAILCAUSE_TO_GECKO_CALL_ERROR[CALL_FAIL_CALL_BARRED] = GECKO_CALL_ERROR_BARRED; |
michael@0 | 2612 | RIL_CALL_FAILCAUSE_TO_GECKO_CALL_ERROR[CALL_FAIL_FDN_BLOCKED] = GECKO_CALL_ERROR_FDN_BLOCKED; |
michael@0 | 2613 | RIL_CALL_FAILCAUSE_TO_GECKO_CALL_ERROR[CALL_FAIL_IMSI_UNKNOWN_IN_VLR] = GECKO_CALL_ERROR_SUBSCRIBER_UNKNOWN; |
michael@0 | 2614 | RIL_CALL_FAILCAUSE_TO_GECKO_CALL_ERROR[CALL_FAIL_IMEI_NOT_ACCEPTED] = GECKO_CALL_ERROR_DEVICE_NOT_ACCEPTED; |
michael@0 | 2615 | RIL_CALL_FAILCAUSE_TO_GECKO_CALL_ERROR[CALL_FAIL_ERROR_UNSPECIFIED] = GECKO_CALL_ERROR_UNSPECIFIED; |
michael@0 | 2616 | |
michael@0 | 2617 | this.GECKO_DATACALL_ERROR_OPERATOR_BARRED = "OperatorBarredError"; |
michael@0 | 2618 | this.GECKO_DATACALL_ERROR_INSUFFICIENT_RESOURCES = "InsufficientResourcesError"; |
michael@0 | 2619 | this.GECKO_DATACALL_ERROR_MISSING_UKNOWN_APN = "MissingUnknownAPNError"; |
michael@0 | 2620 | this.GECKO_DATACALL_ERROR_UNKNOWN_PDP_ADDRESS_TYPE = "UnknownPDPAddressTypeError"; |
michael@0 | 2621 | this.GECKO_DATACALL_ERROR_USER_AUTHENTICATION = "UserAuthenticationError"; |
michael@0 | 2622 | this.GECKO_DATACALL_ERROR_ACTIVATION_REJECT_GGSN = "ActivationRejectGGSNError"; |
michael@0 | 2623 | this.GECKO_DATACALL_ERROR_ACTIVATION_REJECT_UNSPECIFIED = "ActivationRejectUnspecifiedError"; |
michael@0 | 2624 | this.GECKO_DATACALL_ERROR_SERVICE_OPTION_NOT_SUPPORTED = "ServiceOptionNotSupportedError"; |
michael@0 | 2625 | this.GECKO_DATACALL_ERROR_SERVICE_OPTION_NOT_SUBSCRIBED = "ServiceOptionNotSubscribedError"; |
michael@0 | 2626 | this.GECKO_DATACALL_ERROR_SERVICE_OPTION_OUT_OF_ORDER = "ServiceOptionOutOfOrderError"; |
michael@0 | 2627 | this.GECKO_DATACALL_ERROR_NSAPI_IN_USE = "NSAPIInUseError"; |
michael@0 | 2628 | this.GECKO_DATACALL_ERROR_ONLY_IPV4_ALLOWED = "OnlyIPv4Error"; |
michael@0 | 2629 | this.GECKO_DATACALL_ERROR_ONLY_IPV6_ALLOWED = "OnlyIPv6Error"; |
michael@0 | 2630 | this.GECKO_DATACALL_ERROR_ONLY_SINGLE_BEARER_ALLOWED = "OnlySingleBearerAllowedError"; |
michael@0 | 2631 | this.GECKO_DATACALL_ERROR_PROTOCOL_ERRORS = "ProtocolErrorsError"; |
michael@0 | 2632 | this.GECKO_DATACALL_ERROR_VOICE_REGISTRATION_FAIL = "VoiceRegistrationFailError"; |
michael@0 | 2633 | this.GECKO_DATACALL_ERROR_DATA_REGISTRATION_FAIL = "DataRegistrationFailError"; |
michael@0 | 2634 | this.GECKO_DATACALL_ERROR_SIGNAL_LOST = "SignalLostError"; |
michael@0 | 2635 | this.GECKO_DATACALL_ERROR_PREF_RADIO_TECH_CHANGED = "PrefRadioTechChangedError"; |
michael@0 | 2636 | this.GECKO_DATACALL_ERROR_RADIO_POWER_OFF = "RadioPowerOffError"; |
michael@0 | 2637 | this.GECKO_DATACALL_ERROR_TETHERED_CALL_ACTIVE = "TetheredCallActiveError"; |
michael@0 | 2638 | this.GECKO_DATACALL_ERROR_UNSPECIFIED = "UnspecifiedError"; |
michael@0 | 2639 | |
michael@0 | 2640 | this.RIL_DATACALL_FAILCAUSE_TO_GECKO_DATACALL_ERROR = {}; |
michael@0 | 2641 | RIL_DATACALL_FAILCAUSE_TO_GECKO_DATACALL_ERROR[DATACALL_FAIL_OPERATOR_BARRED] = GECKO_DATACALL_ERROR_OPERATOR_BARRED; |
michael@0 | 2642 | RIL_DATACALL_FAILCAUSE_TO_GECKO_DATACALL_ERROR[DATACALL_FAIL_INSUFFICIENT_RESOURCES] = GECKO_DATACALL_ERROR_INSUFFICIENT_RESOURCES; |
michael@0 | 2643 | RIL_DATACALL_FAILCAUSE_TO_GECKO_DATACALL_ERROR[DATACALL_FAIL_MISSING_UKNOWN_APN] = GECKO_DATACALL_ERROR_MISSING_UKNOWN_APN; |
michael@0 | 2644 | RIL_DATACALL_FAILCAUSE_TO_GECKO_DATACALL_ERROR[DATACALL_FAIL_UNKNOWN_PDP_ADDRESS_TYPE] = GECKO_DATACALL_ERROR_UNKNOWN_PDP_ADDRESS_TYPE; |
michael@0 | 2645 | RIL_DATACALL_FAILCAUSE_TO_GECKO_DATACALL_ERROR[DATACALL_FAIL_USER_AUTHENTICATION] = GECKO_DATACALL_ERROR_USER_AUTHENTICATION; |
michael@0 | 2646 | RIL_DATACALL_FAILCAUSE_TO_GECKO_DATACALL_ERROR[DATACALL_FAIL_ACTIVATION_REJECT_GGSN] = GECKO_DATACALL_ERROR_ACTIVATION_REJECT_GGSN; |
michael@0 | 2647 | RIL_DATACALL_FAILCAUSE_TO_GECKO_DATACALL_ERROR[DATACALL_FAIL_ACTIVATION_REJECT_UNSPECIFIED] = GECKO_DATACALL_ERROR_ACTIVATION_REJECT_UNSPECIFIED; |
michael@0 | 2648 | RIL_DATACALL_FAILCAUSE_TO_GECKO_DATACALL_ERROR[DATACALL_FAIL_SERVICE_OPTION_NOT_SUPPORTED] = GECKO_DATACALL_ERROR_SERVICE_OPTION_NOT_SUPPORTED; |
michael@0 | 2649 | RIL_DATACALL_FAILCAUSE_TO_GECKO_DATACALL_ERROR[DATACALL_FAIL_SERVICE_OPTION_NOT_SUBSCRIBED] = GECKO_DATACALL_ERROR_SERVICE_OPTION_NOT_SUBSCRIBED; |
michael@0 | 2650 | RIL_DATACALL_FAILCAUSE_TO_GECKO_DATACALL_ERROR[DATACALL_FAIL_SERVICE_OPTION_OUT_OF_ORDER] = GECKO_DATACALL_ERROR_SERVICE_OPTION_OUT_OF_ORDER; |
michael@0 | 2651 | RIL_DATACALL_FAILCAUSE_TO_GECKO_DATACALL_ERROR[DATACALL_FAIL_NSAPI_IN_USE] = GECKO_DATACALL_ERROR_NSAPI_IN_USE; |
michael@0 | 2652 | RIL_DATACALL_FAILCAUSE_TO_GECKO_DATACALL_ERROR[DATACALL_FAIL_ONLY_IPV4_ALLOWED] = GECKO_DATACALL_ERROR_ONLY_IPV4_ALLOWED; |
michael@0 | 2653 | RIL_DATACALL_FAILCAUSE_TO_GECKO_DATACALL_ERROR[DATACALL_FAIL_ONLY_IPV6_ALLOWED] = GECKO_DATACALL_ERROR_ONLY_IPV6_ALLOWED; |
michael@0 | 2654 | RIL_DATACALL_FAILCAUSE_TO_GECKO_DATACALL_ERROR[DATACALL_FAIL_ONLY_SINGLE_BEARER_ALLOWED] = GECKO_DATACALL_ERROR_ONLY_SINGLE_BEARER_ALLOWED; |
michael@0 | 2655 | RIL_DATACALL_FAILCAUSE_TO_GECKO_DATACALL_ERROR[DATACALL_FAIL_PROTOCOL_ERRORS] = GECKO_DATACALL_ERROR_PROTOCOL_ERRORS; |
michael@0 | 2656 | RIL_DATACALL_FAILCAUSE_TO_GECKO_DATACALL_ERROR[DATACALL_FAIL_VOICE_REGISTRATION_FAIL] = GECKO_DATACALL_ERROR_VOICE_REGISTRATION_FAIL; |
michael@0 | 2657 | RIL_DATACALL_FAILCAUSE_TO_GECKO_DATACALL_ERROR[DATACALL_FAIL_DATA_REGISTRATION_FAIL] = GECKO_DATACALL_ERROR_DATA_REGISTRATION_FAIL; |
michael@0 | 2658 | RIL_DATACALL_FAILCAUSE_TO_GECKO_DATACALL_ERROR[DATACALL_FAIL_SIGNAL_LOST] = GECKO_DATACALL_ERROR_SIGNAL_LOST; |
michael@0 | 2659 | RIL_DATACALL_FAILCAUSE_TO_GECKO_DATACALL_ERROR[DATACALL_FAIL_PREF_RADIO_TECH_CHANGED] = GECKO_DATACALL_ERROR_PREF_RADIO_TECH_CHANGED; |
michael@0 | 2660 | RIL_DATACALL_FAILCAUSE_TO_GECKO_DATACALL_ERROR[DATACALL_FAIL_RADIO_POWER_OFF] = GECKO_DATACALL_ERROR_RADIO_POWER_OFF; |
michael@0 | 2661 | RIL_DATACALL_FAILCAUSE_TO_GECKO_DATACALL_ERROR[DATACALL_FAIL_TETHERED_CALL_ACTIVE] = GECKO_DATACALL_ERROR_TETHERED_CALL_ACTIVE; |
michael@0 | 2662 | RIL_DATACALL_FAILCAUSE_TO_GECKO_DATACALL_ERROR[DATACALL_FAIL_ERROR_UNSPECIFIED] = GECKO_DATACALL_ERROR_UNSPECIFIED; |
michael@0 | 2663 | |
michael@0 | 2664 | this.GECKO_RADIO_TECH = [ |
michael@0 | 2665 | null, |
michael@0 | 2666 | "gprs", |
michael@0 | 2667 | "edge", |
michael@0 | 2668 | "umts", |
michael@0 | 2669 | "is95a", |
michael@0 | 2670 | "is95b", |
michael@0 | 2671 | "1xrtt", |
michael@0 | 2672 | "evdo0", |
michael@0 | 2673 | "evdoa", |
michael@0 | 2674 | "hsdpa", |
michael@0 | 2675 | "hsupa", |
michael@0 | 2676 | "hspa", |
michael@0 | 2677 | "evdob", |
michael@0 | 2678 | "ehrpd", |
michael@0 | 2679 | "lte", |
michael@0 | 2680 | "hspa+", |
michael@0 | 2681 | "gsm" |
michael@0 | 2682 | ]; |
michael@0 | 2683 | |
michael@0 | 2684 | this.GECKO_VOICEMAIL_MESSAGE_COUNT_UNKNOWN = -1; |
michael@0 | 2685 | |
michael@0 | 2686 | // Call forwarding action. Must be in sync with nsIDOMMozMobileCFInfo interface |
michael@0 | 2687 | this.CALL_FORWARD_ACTION_DISABLE = 0; |
michael@0 | 2688 | this.CALL_FORWARD_ACTION_ENABLE = 1; |
michael@0 | 2689 | this.CALL_FORWARD_ACTION_QUERY_STATUS = 2; |
michael@0 | 2690 | this.CALL_FORWARD_ACTION_REGISTRATION = 3; |
michael@0 | 2691 | this.CALL_FORWARD_ACTION_ERASURE = 4; |
michael@0 | 2692 | |
michael@0 | 2693 | // Call forwarding reason. Must be in sync with nsIDOMMozMobileCFInfo interface |
michael@0 | 2694 | this.CALL_FORWARD_REASON_UNCONDITIONAL = 0; |
michael@0 | 2695 | this.CALL_FORWARD_REASON_MOBILE_BUSY = 1; |
michael@0 | 2696 | this.CALL_FORWARD_REASON_NO_REPLY = 2; |
michael@0 | 2697 | this.CALL_FORWARD_REASON_NOT_REACHABLE = 3; |
michael@0 | 2698 | this.CALL_FORWARD_REASON_ALL_CALL_FORWARDING = 4; |
michael@0 | 2699 | this.CALL_FORWARD_REASON_ALL_CONDITIONAL_CALL_FORWARDING = 5; |
michael@0 | 2700 | |
michael@0 | 2701 | // Call barring program. Must be in sync with nsIDOMMozMobileConnection interface |
michael@0 | 2702 | this.CALL_BARRING_PROGRAM_ALL_OUTGOING = 0; |
michael@0 | 2703 | this.CALL_BARRING_PROGRAM_OUTGOING_INTERNATIONAL = 1; |
michael@0 | 2704 | this.CALL_BARRING_PROGRAM_OUTGOING_INTERNATIONAL_EXCEPT_HOME = 2; |
michael@0 | 2705 | this.CALL_BARRING_PROGRAM_ALL_INCOMING = 3; |
michael@0 | 2706 | this.CALL_BARRING_PROGRAM_INCOMING_ROAMING = 4; |
michael@0 | 2707 | |
michael@0 | 2708 | this.CALL_BARRING_PROGRAM_TO_FACILITY = {}; |
michael@0 | 2709 | CALL_BARRING_PROGRAM_TO_FACILITY[CALL_BARRING_PROGRAM_ALL_OUTGOING] = ICC_CB_FACILITY_BAOC; |
michael@0 | 2710 | CALL_BARRING_PROGRAM_TO_FACILITY[CALL_BARRING_PROGRAM_OUTGOING_INTERNATIONAL] = ICC_CB_FACILITY_BAOIC; |
michael@0 | 2711 | CALL_BARRING_PROGRAM_TO_FACILITY[CALL_BARRING_PROGRAM_OUTGOING_INTERNATIONAL_EXCEPT_HOME] = ICC_CB_FACILITY_BAOICxH; |
michael@0 | 2712 | CALL_BARRING_PROGRAM_TO_FACILITY[CALL_BARRING_PROGRAM_ALL_INCOMING] = ICC_CB_FACILITY_BAIC; |
michael@0 | 2713 | CALL_BARRING_PROGRAM_TO_FACILITY[CALL_BARRING_PROGRAM_INCOMING_ROAMING] = ICC_CB_FACILITY_BAICr; |
michael@0 | 2714 | |
michael@0 | 2715 | // CLIR constants. Must be in sync with nsIDOMMozMobileConnection interface |
michael@0 | 2716 | this.CLIR_DEFAULT = 0; |
michael@0 | 2717 | this.CLIR_INVOCATION = 1; |
michael@0 | 2718 | this.CLIR_SUPPRESSION = 2; |
michael@0 | 2719 | |
michael@0 | 2720 | // MMI procedure as defined in TS.22.030 6.5.2 |
michael@0 | 2721 | this.MMI_PROCEDURE_ACTIVATION = "*"; |
michael@0 | 2722 | this.MMI_PROCEDURE_DEACTIVATION = "#"; |
michael@0 | 2723 | this.MMI_PROCEDURE_INTERROGATION = "*#"; |
michael@0 | 2724 | this.MMI_PROCEDURE_REGISTRATION = "**"; |
michael@0 | 2725 | this.MMI_PROCEDURE_ERASURE = "##"; |
michael@0 | 2726 | |
michael@0 | 2727 | this.MMI_PROC_TO_CF_ACTION = {}; |
michael@0 | 2728 | MMI_PROC_TO_CF_ACTION[MMI_PROCEDURE_ACTIVATION] = CALL_FORWARD_ACTION_ENABLE; |
michael@0 | 2729 | MMI_PROC_TO_CF_ACTION[MMI_PROCEDURE_DEACTIVATION] = CALL_FORWARD_ACTION_DISABLE; |
michael@0 | 2730 | MMI_PROC_TO_CF_ACTION[MMI_PROCEDURE_INTERROGATION] = CALL_FORWARD_ACTION_QUERY_STATUS; |
michael@0 | 2731 | MMI_PROC_TO_CF_ACTION[MMI_PROCEDURE_REGISTRATION] = CALL_FORWARD_ACTION_REGISTRATION; |
michael@0 | 2732 | MMI_PROC_TO_CF_ACTION[MMI_PROCEDURE_ERASURE] = CALL_FORWARD_ACTION_ERASURE; |
michael@0 | 2733 | |
michael@0 | 2734 | // MMI call forwarding service codes as defined in TS.22.030 Annex B |
michael@0 | 2735 | this.MMI_SC_CFU = "21"; |
michael@0 | 2736 | this.MMI_SC_CF_BUSY = "67"; |
michael@0 | 2737 | this.MMI_SC_CF_NO_REPLY = "61"; |
michael@0 | 2738 | this.MMI_SC_CF_NOT_REACHABLE = "62"; |
michael@0 | 2739 | this.MMI_SC_CF_ALL = "002"; |
michael@0 | 2740 | this.MMI_SC_CF_ALL_CONDITIONAL = "004"; |
michael@0 | 2741 | |
michael@0 | 2742 | this.MMI_SC_TO_CF_REASON = {}; |
michael@0 | 2743 | MMI_SC_TO_CF_REASON[MMI_SC_CFU] = CALL_FORWARD_REASON_UNCONDITIONAL; |
michael@0 | 2744 | MMI_SC_TO_CF_REASON[MMI_SC_CF_BUSY] = CALL_FORWARD_REASON_MOBILE_BUSY; |
michael@0 | 2745 | MMI_SC_TO_CF_REASON[MMI_SC_CF_NO_REPLY] = CALL_FORWARD_REASON_NO_REPLY; |
michael@0 | 2746 | MMI_SC_TO_CF_REASON[MMI_SC_CF_NOT_REACHABLE] = CALL_FORWARD_REASON_NOT_REACHABLE; |
michael@0 | 2747 | MMI_SC_TO_CF_REASON[MMI_SC_CF_ALL] = CALL_FORWARD_REASON_ALL_CALL_FORWARDING; |
michael@0 | 2748 | MMI_SC_TO_CF_REASON[MMI_SC_CF_ALL_CONDITIONAL] = CALL_FORWARD_REASON_ALL_CONDITIONAL_CALL_FORWARDING; |
michael@0 | 2749 | |
michael@0 | 2750 | // MMI service codes for PIN/PIN2/PUK/PUK2 management as defined in TS.22.030 |
michael@0 | 2751 | // sec 6.6 |
michael@0 | 2752 | this.MMI_SC_PIN = "04"; |
michael@0 | 2753 | this.MMI_SC_PIN2 = "042"; |
michael@0 | 2754 | this.MMI_SC_PUK = "05"; |
michael@0 | 2755 | this.MMI_SC_PUK2 = "052"; |
michael@0 | 2756 | |
michael@0 | 2757 | // MMI service code for IMEI presentation as defined in TS.22.030 sec 6.7 |
michael@0 | 2758 | this.MMI_SC_IMEI = "06"; |
michael@0 | 2759 | |
michael@0 | 2760 | // MMI called line presentation service codes |
michael@0 | 2761 | this.MMI_SC_CLIP = "30"; |
michael@0 | 2762 | this.MMI_SC_CLIR = "31"; |
michael@0 | 2763 | |
michael@0 | 2764 | // MMI call waiting service code |
michael@0 | 2765 | this.MMI_SC_CALL_WAITING = "43"; |
michael@0 | 2766 | |
michael@0 | 2767 | // MMI call barring service codes |
michael@0 | 2768 | this.MMI_SC_BAOC = "33"; |
michael@0 | 2769 | this.MMI_SC_BAOIC = "331"; |
michael@0 | 2770 | this.MMI_SC_BAOICxH = "332"; |
michael@0 | 2771 | this.MMI_SC_BAIC = "35"; |
michael@0 | 2772 | this.MMI_SC_BAICr = "351"; |
michael@0 | 2773 | this.MMI_SC_BA_ALL = "330"; |
michael@0 | 2774 | this.MMI_SC_BA_MO = "333"; |
michael@0 | 2775 | this.MMI_SC_BA_MT = "353"; |
michael@0 | 2776 | |
michael@0 | 2777 | this.MMI_SC_TO_CB_FACILITY = {}; |
michael@0 | 2778 | |
michael@0 | 2779 | MMI_SC_TO_CB_FACILITY[MMI_SC_BAOC] = ICC_CB_FACILITY_BAOC; |
michael@0 | 2780 | MMI_SC_TO_CB_FACILITY[MMI_SC_BAOIC] = ICC_CB_FACILITY_BAOIC; |
michael@0 | 2781 | MMI_SC_TO_CB_FACILITY[MMI_SC_BAOICxH] = ICC_CB_FACILITY_BAOICxH; |
michael@0 | 2782 | MMI_SC_TO_CB_FACILITY[MMI_SC_BAIC] = ICC_CB_FACILITY_BAIC; |
michael@0 | 2783 | MMI_SC_TO_CB_FACILITY[MMI_SC_BAICr] = ICC_CB_FACILITY_BAICr; |
michael@0 | 2784 | MMI_SC_TO_CB_FACILITY[MMI_SC_BA_ALL] = ICC_CB_FACILITY_BA_ALL; |
michael@0 | 2785 | MMI_SC_TO_CB_FACILITY[MMI_SC_BA_MO] = ICC_CB_FACILITY_BA_MO; |
michael@0 | 2786 | MMI_SC_TO_CB_FACILITY[MMI_SC_BA_MT] = ICC_CB_FACILITY_BA_MT; |
michael@0 | 2787 | |
michael@0 | 2788 | // MMI service code key strings. |
michael@0 | 2789 | this.MMI_KS_SC_CALL_BARRING = "scCallBarring"; |
michael@0 | 2790 | this.MMI_KS_SC_CALL_FORWARDING = "scCallForwarding"; |
michael@0 | 2791 | this.MMI_KS_SC_CLIP = "scClip"; |
michael@0 | 2792 | this.MMI_KS_SC_CLIR = "scClir"; |
michael@0 | 2793 | this.MMI_KS_SC_PWD = "scPwd"; |
michael@0 | 2794 | this.MMI_KS_SC_CALL_WAITING = "scCallWaiting"; |
michael@0 | 2795 | this.MMI_KS_SC_PIN = "scPin"; |
michael@0 | 2796 | this.MMI_KS_SC_PIN2 = "scPin2"; |
michael@0 | 2797 | this.MMI_KS_SC_PUK = "scPuk"; |
michael@0 | 2798 | this.MMI_KS_SC_PUK2 = "scPuk2"; |
michael@0 | 2799 | this.MMI_KS_SC_IMEI = "scImei"; |
michael@0 | 2800 | this.MMI_KS_SC_USSD = "scUssd"; |
michael@0 | 2801 | |
michael@0 | 2802 | // MMI error messages key strings. |
michael@0 | 2803 | this.MMI_ERROR_KS_ERROR = "emMmiError"; |
michael@0 | 2804 | this.MMI_ERROR_KS_NOT_SUPPORTED = "emMmiErrorNotSupported"; |
michael@0 | 2805 | this.MMI_ERROR_KS_INVALID_ACTION = "emMmiErrorInvalidAction"; |
michael@0 | 2806 | this.MMI_ERROR_KS_MISMATCH_PIN = "emMmiErrorMismatchPin"; |
michael@0 | 2807 | this.MMI_ERROR_KS_BAD_PIN = "emMmiErrorBadPin"; |
michael@0 | 2808 | this.MMI_ERROR_KS_BAD_PUK = "emMmiErrorBadPuk"; |
michael@0 | 2809 | this.MMI_ERROR_KS_INVALID_PIN = "emMmiErrorInvalidPin"; |
michael@0 | 2810 | this.MMI_ERROR_KS_NEEDS_PUK = "emMmiErrorNeedsPuk"; |
michael@0 | 2811 | this.MMI_ERROR_KS_SIM_BLOCKED = "emMmiErrorSimBlocked"; |
michael@0 | 2812 | |
michael@0 | 2813 | // MMI status message. |
michael@0 | 2814 | this.MMI_SM_KS_PIN_CHANGED = "smPinChanged"; |
michael@0 | 2815 | this.MMI_SM_KS_PIN2_CHANGED = "smPin2Changed"; |
michael@0 | 2816 | this.MMI_SM_KS_PIN_UNBLOCKED = "smPinUnblocked"; |
michael@0 | 2817 | this.MMI_SM_KS_PIN2_UNBLOCKED = "smPin2Unblocked"; |
michael@0 | 2818 | this.MMI_SM_KS_SERVICE_ENABLED = "smServiceEnabled"; |
michael@0 | 2819 | this.MMI_SM_KS_SERVICE_ENABLED_FOR = "smServiceEnabledFor"; |
michael@0 | 2820 | this.MMI_SM_KS_SERVICE_DISABLED = "smServiceDisabled"; |
michael@0 | 2821 | this.MMI_SM_KS_SERVICE_REGISTERED = "smServiceRegistered"; |
michael@0 | 2822 | this.MMI_SM_KS_SERVICE_ERASED = "smServiceErased"; |
michael@0 | 2823 | this.MMI_SM_KS_SERVICE_INTERROGATED = "smServiceInterrogated"; |
michael@0 | 2824 | this.MMI_SM_KS_SERVICE_NOT_PROVISIONED = "smServiceNotProvisioned"; |
michael@0 | 2825 | this.MMI_SM_KS_CLIR_PERMANENT = "smClirPermanent"; |
michael@0 | 2826 | this.MMI_SM_KS_CLIR_DEFAULT_ON_NEXT_CALL_ON = "smClirDefaultOnNextCallOn"; |
michael@0 | 2827 | this.MMI_SM_KS_CLIR_DEFAULT_ON_NEXT_CALL_OFF = "smClirDefaultOnNextCallOff"; |
michael@0 | 2828 | this.MMI_SM_KS_CLIR_DEFAULT_OFF_NEXT_CALL_ON = "smClirDefaultOffNextCallOn"; |
michael@0 | 2829 | this.MMI_SM_KS_CLIR_DEFAULT_OFF_NEXT_CALL_OFF = "smClirDefaultOffNextCallOff"; |
michael@0 | 2830 | |
michael@0 | 2831 | // MMI Service class |
michael@0 | 2832 | this.MMI_KS_SERVICE_CLASS_VOICE = "serviceClassVoice"; |
michael@0 | 2833 | this.MMI_KS_SERVICE_CLASS_DATA = "serviceClassData"; |
michael@0 | 2834 | this.MMI_KS_SERVICE_CLASS_FAX = "serviceClassFax"; |
michael@0 | 2835 | this.MMI_KS_SERVICE_CLASS_SMS = "serviceClassSms"; |
michael@0 | 2836 | this.MMI_KS_SERVICE_CLASS_DATA_SYNC = "serviceClassDataSync"; |
michael@0 | 2837 | this.MMI_KS_SERVICE_CLASS_DATA_ASYNC = "serviceClassDataAsync"; |
michael@0 | 2838 | this.MMI_KS_SERVICE_CLASS_PACKET = "serviceClassPacket"; |
michael@0 | 2839 | this.MMI_KS_SERVICE_CLASS_PAD = "serviceClassPad"; |
michael@0 | 2840 | |
michael@0 | 2841 | this.MMI_KS_SERVICE_CLASS_MAPPING = {}; |
michael@0 | 2842 | MMI_KS_SERVICE_CLASS_MAPPING[ICC_SERVICE_CLASS_VOICE] = MMI_KS_SERVICE_CLASS_VOICE; |
michael@0 | 2843 | MMI_KS_SERVICE_CLASS_MAPPING[ICC_SERVICE_CLASS_DATA] = MMI_KS_SERVICE_CLASS_DATA; |
michael@0 | 2844 | MMI_KS_SERVICE_CLASS_MAPPING[ICC_SERVICE_CLASS_FAX] = MMI_KS_SERVICE_CLASS_FAX; |
michael@0 | 2845 | MMI_KS_SERVICE_CLASS_MAPPING[ICC_SERVICE_CLASS_SMS] = MMI_KS_SERVICE_CLASS_SMS; |
michael@0 | 2846 | MMI_KS_SERVICE_CLASS_MAPPING[ICC_SERVICE_CLASS_DATA_SYNC] = MMI_KS_SERVICE_CLASS_DATA_SYNC; |
michael@0 | 2847 | MMI_KS_SERVICE_CLASS_MAPPING[ICC_SERVICE_CLASS_DATA_ASYNC] = MMI_KS_SERVICE_CLASS_DATA_ASYNC; |
michael@0 | 2848 | MMI_KS_SERVICE_CLASS_MAPPING[ICC_SERVICE_CLASS_PACKET] = MMI_KS_SERVICE_CLASS_PACKET; |
michael@0 | 2849 | MMI_KS_SERVICE_CLASS_MAPPING[ICC_SERVICE_CLASS_PAD] = MMI_KS_SERVICE_CLASS_PAD; |
michael@0 | 2850 | /** |
michael@0 | 2851 | * CDMA PDU constants |
michael@0 | 2852 | */ |
michael@0 | 2853 | |
michael@0 | 2854 | // SMS Message Type, as defined in 3GPP2 C.S0015-A v2.0, Table 3.4-1 |
michael@0 | 2855 | this.PDU_CDMA_MSG_TYPE_P2P = 0x00; // Point-to-Point |
michael@0 | 2856 | this.PDU_CDMA_MSG_TYPE_BROADCAST = 0x01; // Broadcast |
michael@0 | 2857 | this.PDU_CDMA_MSG_TYPE_ACK = 0x02; // Acknowledge |
michael@0 | 2858 | |
michael@0 | 2859 | // SMS Teleservice Identitifier, as defined in 3GPP2 N.S0005, Table 175 |
michael@0 | 2860 | this.PDU_CDMA_MSG_TELESERIVCIE_ID_SMS = 0x1002; // SMS |
michael@0 | 2861 | this.PDU_CDMA_MSG_TELESERIVCIE_ID_WAP = 0x1004; // WAP |
michael@0 | 2862 | this.PDU_CDMA_MSG_TELESERIVCIE_ID_WEMT = 0x1005; // Wireless Enhanced Messaging Teleservice |
michael@0 | 2863 | // required for fragmented SMS |
michael@0 | 2864 | |
michael@0 | 2865 | // SMS Service Category, as defined in 3GPP2 C.R1001-D, Table 9.3.1-1 |
michael@0 | 2866 | this.PDU_CDMA_MSG_CATEGORY_UNSPEC = 0x00; // Unknown/Unspecified |
michael@0 | 2867 | |
michael@0 | 2868 | // Address Information, Digit Mode, as defined in 3GPP2 C.S0015-A v2.0, sec 3.4.3.3 |
michael@0 | 2869 | this.PDU_CDMA_MSG_ADDR_DIGIT_MODE_DTMF = 0x00; // Digit Mode : DTMF |
michael@0 | 2870 | this.PDU_CDMA_MSG_ADDR_DIGIT_MODE_ASCII = 0x01; // Digit Mode : 8-bit ASCII with MSB = 0 |
michael@0 | 2871 | |
michael@0 | 2872 | // Address Information, Number Mode, as defined in 3GPP2 C.S0015-A v2.0, sec 3.4.3.3 |
michael@0 | 2873 | this.PDU_CDMA_MSG_ADDR_NUMBER_MODE_ANSI = 0x00; // Number Mode : ANSI T1.607-2000(R2004) |
michael@0 | 2874 | this.PDU_CDMA_MSG_ADDR_NUMBER_MODE_ASCII = 0x01; // Number Mode : Data network address format |
michael@0 | 2875 | |
michael@0 | 2876 | // Address Information, Number Type, as defined in 3GPP2 C.S0015-A v2.0, Table 3.4.3.3-1 |
michael@0 | 2877 | this.PDU_CDMA_MSG_ADDR_NUMBER_TYPE_UNKNOWN = 0x00; // Number Type : Unknown |
michael@0 | 2878 | this.PDU_CDMA_MSG_ADDR_NUMBER_TYPE_INTERNATIONAL = 0x01; // Number Type : Internaltional number(+XXXXX) |
michael@0 | 2879 | this.PDU_CDMA_MSG_ADDR_NUMBER_TYPE_NATIONAL = 0x02; // Number Type : National number |
michael@0 | 2880 | |
michael@0 | 2881 | // Address Information, Number Plan, as defined in 3GPP2 C.S0005-D v2.0, Table 2.7.1.3.2.4-3 |
michael@0 | 2882 | this.PDU_CDMA_MSG_ADDR_NUMBER_PLAN_UNKNOWN = 0x00; // Number Plan : Unknown |
michael@0 | 2883 | this.PDU_CDMA_MSG_ADDR_NUMBER_PLAN_ISDN = 0x01; // Number Plan : ISDN/Telephony numbering plan |
michael@0 | 2884 | |
michael@0 | 2885 | // SMS Encoding, as defined in 3GPP2 C.R1001-D, Table 9.1-1 |
michael@0 | 2886 | this.PDU_CDMA_MSG_CODING_OCTET = 0x00; // octet(8-bit), Not tested |
michael@0 | 2887 | this.PDU_CDMA_MSG_CODING_IS_91 = 0x01; // IS-91 Extended Protocol Message(variable), Not tested |
michael@0 | 2888 | this.PDU_CDMA_MSG_CODING_7BITS_ASCII = 0x02; // 7-bit ASCII(7-bit) |
michael@0 | 2889 | this.PDU_CDMA_MSG_CODING_IA5 = 0x03; // IA5(7-bit), Not tested |
michael@0 | 2890 | this.PDU_CDMA_MSG_CODING_UNICODE = 0x04; // Unicode(16-bit) |
michael@0 | 2891 | this.PDU_CDMA_MSG_CODING_SHIFT_JIS = 0x05; // Shift-6 JIS(8/16-bit variable), Not supported |
michael@0 | 2892 | this.PDU_CDMA_MSG_CODING_KOREAN = 0x06; // Korean(8/16-bit variable), Not supported |
michael@0 | 2893 | this.PDU_CDMA_MSG_CODING_LATIN_HEBREW = 0x07; // Latin/ Hebrew(8-bit), ISO/IEC 8859-8, Not supported |
michael@0 | 2894 | this.PDU_CDMA_MSG_CODING_LATIN = 0x08; // Latin(8-bit), ISO/IEC 8859-1, Not tested |
michael@0 | 2895 | this.PDU_CDMA_MSG_CODING_7BITS_GSM = 0x09; // GSM 7-bit default alphabet(7-bit), Not tested |
michael@0 | 2896 | this.PDU_CDMA_MSG_CODING_GSM_DCS = 0x0A; // GSM Data-Coding-Scheme, Not supported |
michael@0 | 2897 | |
michael@0 | 2898 | // SMS Message Type, as defined in 3GPP2 C.S0015-A v2.0, Table 4.5.1-1 |
michael@0 | 2899 | this.PDU_CDMA_MSG_TYPE_DELIVER = 0x01; // Deliver |
michael@0 | 2900 | this.PDU_CDMA_MSG_TYPE_SUBMIT = 0x02; // Submit |
michael@0 | 2901 | this.PDU_CDMA_MSG_TYPE_DELIVER_ACK = 0x04; // Delivery Acknowledgment |
michael@0 | 2902 | |
michael@0 | 2903 | // SMS User Data Subparameters, as defined in 3GPP2 C.S0015-A v2.0, Table 4.5-1 |
michael@0 | 2904 | this.PDU_CDMA_MSG_USERDATA_MSG_ID = 0x00; // Message Identifier |
michael@0 | 2905 | this.PDU_CDMA_MSG_USERDATA_BODY = 0x01; // User Data Body |
michael@0 | 2906 | this.PDU_CDMA_MSG_USERDATA_TIMESTAMP = 0x03; // Message Center Time Stamp |
michael@0 | 2907 | this.PDU_CDMA_MSG_USERDATA_REPLY_OPTION = 0x0A; // Reply Option |
michael@0 | 2908 | this.PDU_CDMA_LANGUAGE_INDICATOR = 0x0D; // Language Indicator |
michael@0 | 2909 | this.PDU_CDMA_MSG_USERDATA_CALLBACK_NUMBER = 0x0E; // Callback Number |
michael@0 | 2910 | this.PDU_CDMA_MSG_USER_DATA_MSG_STATUS = 0x14; // Message Status |
michael@0 | 2911 | |
michael@0 | 2912 | // CDMA Language Indicator: Language groups |
michael@0 | 2913 | // see 3GPP2 C.R1001-F table 9.2-1 |
michael@0 | 2914 | this.CB_CDMA_LANG_GROUP = [ |
michael@0 | 2915 | null, "en", "fr", "es", "ja", "ko", "zh", "he" |
michael@0 | 2916 | ]; |
michael@0 | 2917 | |
michael@0 | 2918 | // IS-91 Message Type, as defined in TIA/EIA/IS-91-A, Table 9 |
michael@0 | 2919 | this.PDU_CDMA_MSG_CODING_IS_91_TYPE_VOICEMAIL_STATUS = 0x82; |
michael@0 | 2920 | this.PDU_CDMA_MSG_CODING_IS_91_TYPE_SMS_FULL = 0x83; |
michael@0 | 2921 | this.PDU_CDMA_MSG_CODING_IS_91_TYPE_CLI = 0x84; |
michael@0 | 2922 | this.PDU_CDMA_MSG_CODING_IS_91_TYPE_SMS = 0x85; |
michael@0 | 2923 | |
michael@0 | 2924 | // CDMA roaming preference mode |
michael@0 | 2925 | this.CDMA_ROAMING_PREFERENCE_HOME = 0; |
michael@0 | 2926 | this.CDMA_ROAMING_PREFERENCE_AFFILIATED = 1; |
michael@0 | 2927 | this.CDMA_ROAMING_PREFERENCE_ANY = 2; |
michael@0 | 2928 | |
michael@0 | 2929 | this.GECKO_CDMA_ROAMING_PREFERENCE_HOME = "home"; |
michael@0 | 2930 | this.GECKO_CDMA_ROAMING_PREFERENCE_AFFILIATED = "affiliated"; |
michael@0 | 2931 | this.GECKO_CDMA_ROAMING_PREFERENCE_ANY = "any"; |
michael@0 | 2932 | |
michael@0 | 2933 | this.CDMA_ROAMING_PREFERENCE_TO_GECKO = [ |
michael@0 | 2934 | GECKO_CDMA_ROAMING_PREFERENCE_HOME, // CDMA_ROAMING_PREFERENCE_HOME |
michael@0 | 2935 | GECKO_CDMA_ROAMING_PREFERENCE_AFFILIATED, // CDMA_ROAMING_PREFERENCE_AFFILIATED |
michael@0 | 2936 | GECKO_CDMA_ROAMING_PREFERENCE_ANY // CDMA_ROAMING_PREFERENCE_ANY |
michael@0 | 2937 | ]; |
michael@0 | 2938 | |
michael@0 | 2939 | // Information Record Type, reference from ril.h |
michael@0 | 2940 | this.PDU_CDMA_INFO_REC_TYPE_DISPLAY = 0; |
michael@0 | 2941 | this.PDU_CDMA_INFO_REC_TYPE_CALLED_PARTY_NUMBER = 1; |
michael@0 | 2942 | this.PDU_CDMA_INFO_REC_TYPE_CALLING_PARTY_NUMBER = 2; |
michael@0 | 2943 | this.PDU_CDMA_INFO_REC_TYPE_CONNECTED_NUMBER =3; |
michael@0 | 2944 | this.PDU_CDMA_INFO_REC_TYPE_SIGNAL = 4; |
michael@0 | 2945 | this.PDU_CDMA_INFO_REC_TYPE_REDIRECTING_NUMBER = 5; |
michael@0 | 2946 | this.PDU_CDMA_INFO_REC_TYPE_LINE_CONTROL = 6; |
michael@0 | 2947 | this.PDU_CDMA_INFO_REC_TYPE_EXTENDED_DISPLAY = 7; |
michael@0 | 2948 | this.PDU_CDMA_INFO_REC_TYPE_T53_CLIR = 8; |
michael@0 | 2949 | this.PDU_CDMA_INFO_REC_TYPE_T53_RELEASE = 9; |
michael@0 | 2950 | this.PDU_CDMA_INFO_REC_TYPE_T53_AUDIO_CONTROL = 10; |
michael@0 | 2951 | |
michael@0 | 2952 | // Display type of extended display of information record, |
michael@0 | 2953 | // as defined in C.S0005-F v1.0, Table 3.7.5.16-2 |
michael@0 | 2954 | this.INFO_REC_EXTENDED_DISPLAY_BLANK = 0x80; |
michael@0 | 2955 | this.INFO_REC_EXTENDED_DISPLAY_SKIP = 0x81; |
michael@0 | 2956 | this.INFO_REC_EXTENDED_DISPLAY_CONTINATION = 0x82; |
michael@0 | 2957 | this.INFO_REC_EXTENDED_DISPLAY_CALLED_ADDRESS = 0x83; |
michael@0 | 2958 | this.INFO_REC_EXTENDED_DISPLAY_CAUSE = 0x84; |
michael@0 | 2959 | this.INFO_REC_EXTENDED_DISPLAY_PROGRESS_INDICATOR = 0x85; |
michael@0 | 2960 | this.INFO_REC_EXTENDED_DISPLAY_NOTIFICATION_INDICATOR = 0x86; |
michael@0 | 2961 | this.INFO_REC_EXTENDED_DISPLAY_PROMPT = 0x87; |
michael@0 | 2962 | this.INFO_REC_EXTENDED_DISPLAY_ACCUMULATED_DIGITS = 0x88; |
michael@0 | 2963 | this.INFO_REC_EXTENDED_DISPLAY_STATUS = 0x89; |
michael@0 | 2964 | this.INFO_REC_EXTENDED_DISPLAY_INBAND = 0x8A; |
michael@0 | 2965 | this.INFO_REC_EXTENDED_DISPLAY_CALLING_ADDRESS = 0x8B; |
michael@0 | 2966 | this.INFO_REC_EXTENDED_DISPLAY_REASON = 0x8C; |
michael@0 | 2967 | this.INFO_REC_EXTENDED_DISPLAY_CALLING_PARTY_NAME = 0x8D; |
michael@0 | 2968 | this.INFO_REC_EXTENDED_DISPLAY_CALLED_PARTY_NAME = 0x8E; |
michael@0 | 2969 | this.INFO_REC_EXTENDED_DISPLAY_ORIGINAL_CALLED_NAME = 0x8F; |
michael@0 | 2970 | this.INFO_REC_EXTENDED_DISPLAY_REDIRECT_NAME = 0x90; |
michael@0 | 2971 | this.INFO_REC_EXTENDED_DISPLAY_CONNECTED_NAME = 0x91; |
michael@0 | 2972 | this.INFO_REC_EXTENDED_DISPLAY_ORIGINATING_RESTRICTIONS = 0x92; |
michael@0 | 2973 | this.INFO_REC_EXTENDED_DISPLAY_DATE_TIME_OF_DAY = 0x93; |
michael@0 | 2974 | this.INFO_REC_EXTENDED_DISPLAY_CALL_APPEARANCE_ID = 0x94; |
michael@0 | 2975 | this.INFO_REC_EXTENDED_DISPLAY_FEATURE_ADDRESS = 0x95; |
michael@0 | 2976 | this.INFO_REC_EXTENDED_DISPLAY_REDIRECTION_NAME = 0x96; |
michael@0 | 2977 | this.INFO_REC_EXTENDED_DISPLAY_REDIRECTION_NUMBER = 0x97; |
michael@0 | 2978 | this.INFO_REC_EXTENDED_DISPLAY_REDIRECTING_NUMBER = 0x98; |
michael@0 | 2979 | this.INFO_REC_EXTENDED_DISPLAY_ORIGINAL_CALLED_NUMBER = 0x99; |
michael@0 | 2980 | this.INFO_REC_EXTENDED_DISPLAY_CONNECTED_NUMBER = 0x9A; |
michael@0 | 2981 | this.INFO_REC_EXTENDED_DISPLAY_TEXT = 0x9B; |
michael@0 | 2982 | |
michael@0 | 2983 | /** |
michael@0 | 2984 | * The table for MCC which the length of MNC is 3 |
michael@0 | 2985 | * |
michael@0 | 2986 | * This table is built from below links. |
michael@0 | 2987 | * - http://www.itu.int/pub/T-SP-E.212B-2013 |
michael@0 | 2988 | * - http://en.wikipedia.org/wiki/Mobile_Network_Code |
michael@0 | 2989 | */ |
michael@0 | 2990 | this.MCC_TABLE_FOR_MNC_LENGTH_IS_3 = [ |
michael@0 | 2991 | "302", // Canada |
michael@0 | 2992 | "310", // United States of America |
michael@0 | 2993 | "311", // United States of America |
michael@0 | 2994 | "312", // United States of America |
michael@0 | 2995 | "313", // United States of America |
michael@0 | 2996 | "316", // United States of America |
michael@0 | 2997 | "330", // Puerto Rico |
michael@0 | 2998 | "334", // Mexico |
michael@0 | 2999 | "338", // Jamaica |
michael@0 | 3000 | "342", // Barbados |
michael@0 | 3001 | "344", // Antigua and Barbuda |
michael@0 | 3002 | "346", // Cayman Islands |
michael@0 | 3003 | "348", // British Virgin Islands |
michael@0 | 3004 | "350", // Bermuda |
michael@0 | 3005 | "352", // Grenada |
michael@0 | 3006 | "354", // Montserrat |
michael@0 | 3007 | "356", // Saint Kitts and Nevis |
michael@0 | 3008 | "358", // Saint Lucia |
michael@0 | 3009 | "360", // Saint Vincent and the Grenadines |
michael@0 | 3010 | "365", // Anguilla |
michael@0 | 3011 | "366", // Dominica |
michael@0 | 3012 | "376", // Turks and Caicos Islands |
michael@0 | 3013 | "405", // India |
michael@0 | 3014 | "708", // Honduras |
michael@0 | 3015 | "722", // Argentina |
michael@0 | 3016 | "732", // Colombia |
michael@0 | 3017 | "750" // Falkland Islands (Malvinas) |
michael@0 | 3018 | ]; |
michael@0 | 3019 | |
michael@0 | 3020 | // Supplementary service notifications, code2, as defined in 3GPP 27.007 7.17 |
michael@0 | 3021 | this.SUPP_SVC_NOTIFICATION_CODE2_PUT_ON_HOLD = 2; |
michael@0 | 3022 | this.SUPP_SVC_NOTIFICATION_CODE2_RETRIEVED = 3; |
michael@0 | 3023 | |
michael@0 | 3024 | this.GECKO_SUPP_SVC_NOTIFICATION_REMOTE_HELD = "RemoteHeld"; |
michael@0 | 3025 | this.GECKO_SUPP_SVC_NOTIFICATION_REMOTE_RESUMED = "RemoteResumed"; |
michael@0 | 3026 | |
michael@0 | 3027 | this.GECKO_SUPP_SVC_NOTIFICATION_FROM_CODE2 = {}; |
michael@0 | 3028 | GECKO_SUPP_SVC_NOTIFICATION_FROM_CODE2[SUPP_SVC_NOTIFICATION_CODE2_PUT_ON_HOLD] = GECKO_SUPP_SVC_NOTIFICATION_REMOTE_HELD; |
michael@0 | 3029 | GECKO_SUPP_SVC_NOTIFICATION_FROM_CODE2[SUPP_SVC_NOTIFICATION_CODE2_RETRIEVED] = GECKO_SUPP_SVC_NOTIFICATION_REMOTE_RESUMED; |
michael@0 | 3030 | |
michael@0 | 3031 | /** |
michael@0 | 3032 | * The status for an Over-the-Air Service Provisioning / Over-the-Air |
michael@0 | 3033 | * Parameter Administration (OTASP/OTAPA) session. |
michael@0 | 3034 | * |
michael@0 | 3035 | * @see 3GPP2 C.S0016 |
michael@0 | 3036 | */ |
michael@0 | 3037 | this.GECKO_OTA_STATUS_SPL_UNLOCKED = "spl_unlocked"; |
michael@0 | 3038 | this.GECKO_OTA_STATUS_SPC_RETRIES_EXCEEDED = "spc_retries_exceeded"; |
michael@0 | 3039 | this.GECKO_OTA_STATUS_A_KEY_EXCHANGED = "a_key_exchanged"; |
michael@0 | 3040 | this.GECKO_OTA_STATUS_SSD_UPDATED = "ssd_updated"; |
michael@0 | 3041 | this.GECKO_OTA_STATUS_NAM_DOWNLOADED = "nam_downloaded"; |
michael@0 | 3042 | this.GECKO_OTA_STATUS_MDN_DOWNLOADED = "mdn_downloaded"; |
michael@0 | 3043 | this.GECKO_OTA_STATUS_IMSI_DOWNLOADED = "imsi_downloaded"; |
michael@0 | 3044 | this.GECKO_OTA_STATUS_PRL_DOWNLOADED = "prl_downloaded"; |
michael@0 | 3045 | this.GECKO_OTA_STATUS_COMMITTED = "committed"; |
michael@0 | 3046 | this.GECKO_OTA_STATUS_OTAPA_STARTED = "otapa_started"; |
michael@0 | 3047 | this.GECKO_OTA_STATUS_OTAPA_STOPPED = "otapa_stopped"; |
michael@0 | 3048 | this.GECKO_OTA_STATUS_OTAPA_ABORTED = "otapa_aborted"; |
michael@0 | 3049 | this.CDMA_OTA_PROVISION_STATUS_TO_GECKO = [ |
michael@0 | 3050 | GECKO_OTA_STATUS_SPL_UNLOCKED, |
michael@0 | 3051 | GECKO_OTA_STATUS_SPC_RETRIES_EXCEEDED, |
michael@0 | 3052 | GECKO_OTA_STATUS_A_KEY_EXCHANGED, |
michael@0 | 3053 | GECKO_OTA_STATUS_SSD_UPDATED, |
michael@0 | 3054 | GECKO_OTA_STATUS_NAM_DOWNLOADED, |
michael@0 | 3055 | GECKO_OTA_STATUS_MDN_DOWNLOADED, |
michael@0 | 3056 | GECKO_OTA_STATUS_IMSI_DOWNLOADED, |
michael@0 | 3057 | GECKO_OTA_STATUS_PRL_DOWNLOADED, |
michael@0 | 3058 | GECKO_OTA_STATUS_COMMITTED, |
michael@0 | 3059 | GECKO_OTA_STATUS_OTAPA_STARTED, |
michael@0 | 3060 | GECKO_OTA_STATUS_OTAPA_STOPPED, |
michael@0 | 3061 | GECKO_OTA_STATUS_OTAPA_ABORTED |
michael@0 | 3062 | ]; |
michael@0 | 3063 | |
michael@0 | 3064 | // Allow this file to be imported via Components.utils.import(). |
michael@0 | 3065 | this.EXPORTED_SYMBOLS = Object.keys(this); |