1 /*
2  * Copyright (C) 2006 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package android.telephony;
17 
18 import android.annotation.NonNull;
19 import android.annotation.SystemApi;
20 import android.content.Context;
21 import android.os.PersistableBundle;
22 import android.telephony.Annotation.DataFailureCause;
23 
24 import com.android.internal.telephony.util.ArrayUtils;
25 
26 import java.util.Arrays;
27 import java.util.HashMap;
28 import java.util.HashSet;
29 import java.util.Map;
30 import java.util.Set;
31 
32 /**
33  * Returned as the reason for a data connection failure as defined by modem and some local errors.
34  * @hide
35  */
36 @SystemApi
37 public final class DataFailCause {
38     /** There is no failure */
39     public static final int NONE = 0;
40 
41     // This series of errors as specified by the standards
42     // specified in ril.h
43     /** Operator determined barring. (no retry) */
44     public static final int OPERATOR_BARRED = 0x08;
45     /** NAS signalling. */
46     public static final int NAS_SIGNALLING = 0x0E;
47     /** Logical Link Control (LLC) Sub Network Dependent Convergence Protocol (SNDCP). */
48     public static final int LLC_SNDCP = 0x19;
49     /** Insufficient resources. */
50     public static final int INSUFFICIENT_RESOURCES = 0x1A;
51     /** Missing or unknown APN. */
52     public static final int MISSING_UNKNOWN_APN = 0x1B;              /* no retry */
53     /** Unknown Packet Data Protocol (PDP) address type. */
54     public static final int UNKNOWN_PDP_ADDRESS_TYPE = 0x1C;         /* no retry */
55     /** User authentication. */
56     public static final int USER_AUTHENTICATION = 0x1D;              /* no retry */
57     /** Activation rejected by Gateway GPRS Support Node (GGSN), Serving Gateway or PDN Gateway. */
58     public static final int ACTIVATION_REJECT_GGSN = 0x1E;           /* no retry */
59     /** Activation rejected, unspecified. */
60     public static final int ACTIVATION_REJECT_UNSPECIFIED = 0x1F;
61     /** Service option not supported. */
62     public static final int SERVICE_OPTION_NOT_SUPPORTED = 0x20;     /* no retry */
63     /** Requested service option not subscribed. */
64     public static final int SERVICE_OPTION_NOT_SUBSCRIBED = 0x21;    /* no retry */
65     /** Service option temporarily out of order. */
66     public static final int SERVICE_OPTION_OUT_OF_ORDER = 0x22;
67     /** The Network Service Access Point Identifier (NSAPI) is in use. */
68     public static final int NSAPI_IN_USE = 0x23;                     /* no retry */
69     /* possibly restart radio, based on config */
70     /** Regular deactivation. */
71     public static final int REGULAR_DEACTIVATION = 0x24;
72     /** Quality of service (QoS) is not accepted. */
73     public static final int QOS_NOT_ACCEPTED = 0x25;
74     /** Network Failure. */
75     public static final int NETWORK_FAILURE = 0x26;
76     /** Universal Mobile Telecommunications System (UMTS) reactivation request. */
77     public static final int UMTS_REACTIVATION_REQ = 0x27;
78     /** Feature not supported. */
79     public static final int FEATURE_NOT_SUPP = 0x28;
80     /** Semantic error in the Traffic flow templates (TFT) operation. */
81     public static final int TFT_SEMANTIC_ERROR = 0x29;
82     /** Syntactical error in the Traffic flow templates (TFT) operation. */
83     public static final int TFT_SYTAX_ERROR = 0x2A;
84     /** Unknown Packet Data Protocol (PDP) context. */
85     public static final int UNKNOWN_PDP_CONTEXT = 0x2B;
86     /** Semantic errors in packet filter. */
87     public static final int FILTER_SEMANTIC_ERROR = 0x2C;
88     /** Syntactical errors in packet filter(s). */
89     public static final int FILTER_SYTAX_ERROR = 0x2D;
90     /** Packet Data Protocol (PDP) without active traffic flow template (TFT). */
91     public static final int PDP_WITHOUT_ACTIVE_TFT = 0x2E;
92     /**
93      * UE requested to modify QoS parameters or the bearer control mode, which is not compatible
94      * with the selected bearer control mode.
95      */
96     public static final int ACTIVATION_REJECTED_BCM_VIOLATION = 0x30;
97     /** Packet Data Protocol (PDP) type IPv4 only allowed. */
98     public static final int ONLY_IPV4_ALLOWED = 0x32;                /* no retry */
99     /** Packet Data Protocol (PDP) type IPv6 only allowed. */
100     public static final int ONLY_IPV6_ALLOWED = 0x33;                /* no retry */
101     /** Single address bearers only allowed. */
102     public static final int ONLY_SINGLE_BEARER_ALLOWED = 0x34;
103     /** EPS Session Management (ESM) information is not received. */
104     public static final int ESM_INFO_NOT_RECEIVED = 0x35;
105     /** PDN connection does not exist. */
106     public static final int PDN_CONN_DOES_NOT_EXIST = 0x36;
107     /** Multiple connections to a same PDN is not allowed. */
108     public static final int MULTI_CONN_TO_SAME_PDN_NOT_ALLOWED = 0x37;
109     /**
110      * Network has already initiated the activation, modification, or deactivation of bearer
111      * resources that was requested by the UE.
112      */
113     public static final int COLLISION_WITH_NETWORK_INITIATED_REQUEST = 0x38;
114     /**
115      * Network supports IPv4v6 PDP type only. Non-IP type is not allowed. In LTE mode of operation,
116      * this is a PDN throttling cause code, meaning the UE may throttle further requests to the
117      * same APN.
118      */
119     public static final int ONLY_IPV4V6_ALLOWED = 0x39;
120     /**
121      * Network supports non-IP PDP type only. IPv4, IPv6 and IPv4v6 is not allowed. In LTE mode of
122      * operation, this is a PDN throttling cause code, meaning the UE can throttle further requests
123      * to the same APN.
124      */
125     public static final int ONLY_NON_IP_ALLOWED = 0x3A;
126     /** QCI (QoS Class Identifier) indicated in the UE request cannot be supported. */
127     public static final int UNSUPPORTED_QCI_VALUE = 0x3B;
128     /** Procedure requested by the UE was rejected because the bearer handling is not supported. */
129     public static final int BEARER_HANDLING_NOT_SUPPORTED = 0x3C;
130     /** Max number of Packet Data Protocol (PDP) context reached. */
131     public static final int ACTIVE_PDP_CONTEXT_MAX_NUMBER_REACHED = 0x41;
132     /** Unsupported APN in current public land mobile network (PLMN). */
133     public static final int UNSUPPORTED_APN_IN_CURRENT_PLMN = 0x42;
134     /** Invalid transaction id. */
135     public static final int INVALID_TRANSACTION_ID = 0x51;
136     /** Incorrect message semantic. */
137     public static final int MESSAGE_INCORRECT_SEMANTIC = 0x5F;
138     /** Invalid mandatory information. */
139     public static final int INVALID_MANDATORY_INFO = 0x60;
140     /** Unsupported message type. */
141     public static final int MESSAGE_TYPE_UNSUPPORTED = 0x61;
142     /** Message type uncompatible. */
143     public static final int MSG_TYPE_NONCOMPATIBLE_STATE = 0x62;
144     /** Unknown info element. */
145     public static final int UNKNOWN_INFO_ELEMENT = 0x63;
146     /** Conditional Information Element (IE) error. */
147     public static final int CONDITIONAL_IE_ERROR = 0x64;
148     /** Message and protocol state uncompatible. */
149     public static final int MSG_AND_PROTOCOL_STATE_UNCOMPATIBLE = 0x65;
150     /** Protocol errors. */
151     public static final int PROTOCOL_ERRORS = 0x6F;                  /* no retry */
152     /** APN type conflict. */
153     public static final int APN_TYPE_CONFLICT = 0x70;
154     /** Invalid Proxy-Call Session Control Function (P-CSCF) address. */
155     public static final int INVALID_PCSCF_ADDR = 0x71;
156     /** Internal data call preempt by high priority APN. */
157     public static final int INTERNAL_CALL_PREEMPT_BY_HIGH_PRIO_APN = 0x72;
158     /** EPS (Evolved Packet System) Mobility Management (EMM) access barred. */
159     public static final int EMM_ACCESS_BARRED = 0x73;
160     /** Emergency interface only. */
161     public static final int EMERGENCY_IFACE_ONLY = 0x74;
162     /** Interface mismatch. */
163     public static final int IFACE_MISMATCH = 0x75;
164     /** Companion interface in use. */
165     public static final int COMPANION_IFACE_IN_USE = 0x76;
166     /** IP address mismatch. */
167     public static final int IP_ADDRESS_MISMATCH = 0x77;
168     public static final int IFACE_AND_POL_FAMILY_MISMATCH = 0x78;
169     /** EPS (Evolved Packet System) Mobility Management (EMM) access barred infinity retry. **/
170     public static final int EMM_ACCESS_BARRED_INFINITE_RETRY = 0x79;
171     /** Authentication failure on emergency call. */
172     public static final int AUTH_FAILURE_ON_EMERGENCY_CALL = 0x7A;
173     /** Not receiving a DNS address that was mandatory. */
174     public static final int INVALID_DNS_ADDR = 0x7B;
175     /** Not receiving either a PCSCF or a DNS address, one of them being mandatory. */
176     public static final int INVALID_PCSCF_OR_DNS_ADDRESS = 0x7C;
177     /** Emergency call bring up on a different ePDG. */
178     public static final int CALL_PREEMPT_BY_EMERGENCY_APN = 0x7F;
179     /** UE performs a detach or disconnect PDN action based on TE requirements. */
180     public static final int UE_INITIATED_DETACH_OR_DISCONNECT = 0x80;
181 
182     /** Reason unspecified for foreign agent rejected MIP (Mobile IP) registration. */
183     public static final int MIP_FA_REASON_UNSPECIFIED = 0x7D0;
184     /** Foreign agent administratively prohibited MIP (Mobile IP) registration. */
185     public static final int MIP_FA_ADMIN_PROHIBITED = 0x7D1;
186     /** Foreign agent rejected MIP (Mobile IP) registration because of insufficient resources. */
187     public static final int MIP_FA_INSUFFICIENT_RESOURCES = 0x7D2;
188     /**
189      * Foreign agent rejected MIP (Mobile IP) registration because of MN-AAA authenticator was
190      * wrong.
191      */
192     public static final int MIP_FA_MOBILE_NODE_AUTHENTICATION_FAILURE = 0x7D3;
193     /**
194      * Foreign agent rejected MIP (Mobile IP) registration because of home agent authentication
195      * failure.
196      */
197     public static final int MIP_FA_HOME_AGENT_AUTHENTICATION_FAILURE = 0x7D4;
198     /**
199      * Foreign agent rejected MIP (Mobile IP) registration because of requested lifetime was too
200      * long.
201      */
202     public static final int MIP_FA_REQUESTED_LIFETIME_TOO_LONG = 0x7D5;
203     /** Foreign agent rejected MIP (Mobile IP) registration because of malformed request. */
204     public static final int MIP_FA_MALFORMED_REQUEST = 0x7D6;
205     /** Foreign agent rejected MIP (Mobile IP) registration because of malformed reply. */
206     public static final int MIP_FA_MALFORMED_REPLY = 0x7D7;
207     /**
208      * Foreign agent rejected MIP (Mobile IP) registration because of requested encapsulation was
209      * unavailable.
210      */
211     public static final int MIP_FA_ENCAPSULATION_UNAVAILABLE = 0x7D8;
212     /**
213      * Foreign agent rejected MIP (Mobile IP) registration of VJ Header Compression was
214      * unavailable.
215      */
216     public static final int MIP_FA_VJ_HEADER_COMPRESSION_UNAVAILABLE = 0x7D9;
217     /**
218      * Foreign agent rejected MIP (Mobile IP) registration because of reverse tunnel was
219      * unavailable.
220      */
221     public static final int MIP_FA_REVERSE_TUNNEL_UNAVAILABLE = 0x7DA;
222     /**
223      * Foreign agent rejected MIP (Mobile IP) registration because of reverse tunnel was mandatory
224      * but not requested by device.
225      */
226     public static final int MIP_FA_REVERSE_TUNNEL_IS_MANDATORY = 0x7DB;
227     /**
228      * Foreign agent rejected MIP (Mobile IP) registration because of delivery style was not
229      * supported.
230      */
231     public static final int MIP_FA_DELIVERY_STYLE_NOT_SUPPORTED = 0x7DC;
232     /**
233      * Foreign agent rejected MIP (Mobile IP) registration because of missing NAI (Network Access
234      * Identifier).
235      */
236     public static final int MIP_FA_MISSING_NAI = 0x7DD;
237     /** Foreign agent rejected MIP (Mobile IP) registration because of missing Home Agent. */
238     public static final int MIP_FA_MISSING_HOME_AGENT = 0x7DE;
239     /** Foreign agent rejected MIP (Mobile IP) registration because of missing Home Address. */
240     public static final int MIP_FA_MISSING_HOME_ADDRESS = 0x7DF;
241     /** Foreign agent rejected MIP (Mobile IP) registration because of unknown challenge. */
242     public static final int MIP_FA_UNKNOWN_CHALLENGE = 0x7E0;
243     /** Foreign agent rejected MIP (Mobile IP) registration because of missing challenge. */
244     public static final int MIP_FA_MISSING_CHALLENGE = 0x7E1;
245     /** Foreign agent rejected MIP (Mobile IP) registration because of stale challenge. */
246     public static final int MIP_FA_STALE_CHALLENGE = 0x7E2;
247     /** Reason unspecified for home agent rejected MIP (Mobile IP) registration. */
248     public static final int MIP_HA_REASON_UNSPECIFIED = 0x7E3;
249     /** Home agent administratively prohibited MIP (Mobile IP) registration. */
250     public static final int MIP_HA_ADMIN_PROHIBITED = 0x7E4;
251     /** Home agent rejected MIP (Mobile IP) registration because of insufficient resources. */
252     public static final int MIP_HA_INSUFFICIENT_RESOURCES = 0x7E5;
253     /**
254      * Home agent rejected MIP (Mobile IP) registration because of MN-HA authenticator was
255      * wrong.
256      */
257     public static final int MIP_HA_MOBILE_NODE_AUTHENTICATION_FAILURE = 0x7E6;
258     /**
259      * Home agent rejected MIP (Mobile IP) registration because of foreign agent authentication
260      * failure.
261      */
262     public static final int MIP_HA_FOREIGN_AGENT_AUTHENTICATION_FAILURE = 0x7E7;
263     /** Home agent rejected MIP (Mobile IP) registration because of registration id mismatch. */
264     public static final int MIP_HA_REGISTRATION_ID_MISMATCH = 0x7E8;
265     /** Home agent rejected MIP (Mobile IP) registration because of malformed request. */
266     public static final int MIP_HA_MALFORMED_REQUEST = 0x7E9;
267     /** Home agent rejected MIP (Mobile IP) registration because of unknown home agent address. */
268     public static final int MIP_HA_UNKNOWN_HOME_AGENT_ADDRESS = 0x7EA;
269     /**
270      * Home agent rejected MIP (Mobile IP) registration because of reverse tunnel was
271      * unavailable.
272      */
273     public static final int MIP_HA_REVERSE_TUNNEL_UNAVAILABLE = 0x7EB;
274     /**
275      * Home agent rejected MIP (Mobile IP) registration because of reverse tunnel is mandatory but
276      * not requested by device.
277      */
278     public static final int MIP_HA_REVERSE_TUNNEL_IS_MANDATORY = 0x7EC;
279     /** Home agent rejected MIP (Mobile IP) registration because of encapsulation unavailable. */
280     public static final int MIP_HA_ENCAPSULATION_UNAVAILABLE = 0x7ED;
281     /** Tearing down is in progress. */
282     public static final int CLOSE_IN_PROGRESS = 0x7EE;
283     /** Brought down by the network. */
284     public static final int NETWORK_INITIATED_TERMINATION = 0x7EF;
285     /** Another application in modem preempts the data call. */
286     public static final int MODEM_APP_PREEMPTED = 0x7F0;
287     /**
288      * IPV4 PDN is in throttled state due to network providing only IPV6 address during the
289      * previous VSNCP bringup (subs_limited_to_v6).
290      */
291     public static final int PDN_IPV4_CALL_DISALLOWED = 0x7F1;
292     /** IPV4 PDN is in throttled state due to previous VSNCP bringup failure(s). */
293     public static final int PDN_IPV4_CALL_THROTTLED = 0x7F2;
294     /**
295      * IPV6 PDN is in throttled state due to network providing only IPV4 address during the
296      * previous VSNCP bringup (subs_limited_to_v4).
297      */
298     public static final int PDN_IPV6_CALL_DISALLOWED = 0x7F3;
299     /** IPV6 PDN is in throttled state due to previous VSNCP bringup failure(s). */
300     public static final int PDN_IPV6_CALL_THROTTLED = 0x7F4;
301     /** Modem restart. */
302     public static final int MODEM_RESTART = 0x7F5;
303     /** PDP PPP calls are not supported. */
304     public static final int PDP_PPP_NOT_SUPPORTED = 0x7F6;
305     /** RAT on which the data call is attempted/connected is no longer the preferred RAT. */
306     public static final int UNPREFERRED_RAT = 0x7F7;
307     /** Physical link is in the process of cleanup. */
308     public static final int PHYSICAL_LINK_CLOSE_IN_PROGRESS = 0x7F8;
309     /** Interface bring up is attempted for an APN that is yet to be handed over to target RAT. */
310     public static final int APN_PENDING_HANDOVER = 0x7F9;
311     /** APN bearer type in the profile does not match preferred network mode. */
312     public static final int PROFILE_BEARER_INCOMPATIBLE = 0x7FA;
313     /** Card was refreshed or removed. */
314     public static final int SIM_CARD_CHANGED = 0x7FB;
315     /** Device is going into lower power mode or powering down. */
316     public static final int LOW_POWER_MODE_OR_POWERING_DOWN = 0x7FC;
317     /** APN has been disabled. */
318     public static final int APN_DISABLED = 0x7FD;
319     /** Maximum PPP inactivity timer expired. */
320     public static final int MAX_PPP_INACTIVITY_TIMER_EXPIRED = 0x7FE;
321     /** IPv6 address transfer failed. */
322     public static final int IPV6_ADDRESS_TRANSFER_FAILED = 0x7FF;
323     /** Target RAT swap failed. */
324     public static final int TRAT_SWAP_FAILED = 0x800;
325     /** Device falls back from eHRPD to HRPD. */
326     public static final int EHRPD_TO_HRPD_FALLBACK = 0x801;
327     /**
328      * UE is in MIP-only configuration but the MIP configuration fails on call bring up due to
329      * incorrect provisioning.
330      */
331     public static final int MIP_CONFIG_FAILURE = 0x802;
332     /**
333      * PDN inactivity timer expired due to no data transmission in a configurable duration of time.
334      */
335     public static final int PDN_INACTIVITY_TIMER_EXPIRED = 0x803;
336     /**
337      * IPv4 data call bring up is rejected because the UE already maintains the allotted maximum
338      * number of IPv4 data connections.
339      */
340     public static final int MAX_IPV4_CONNECTIONS = 0x804;
341     /**
342      * IPv6 data call bring up is rejected because the UE already maintains the allotted maximum
343      * number of IPv6 data connections.
344      */
345     public static final int MAX_IPV6_CONNECTIONS = 0x805;
346     /**
347      * New PDN bring up is rejected during interface selection because the UE has already allotted
348      * the available interfaces for other PDNs.
349      */
350     public static final int APN_MISMATCH = 0x806;
351     /**
352      * New call bring up is rejected since the existing data call IP type doesn't match the
353      * requested IP.
354      */
355     public static final int IP_VERSION_MISMATCH = 0x807;
356     /** Dial up networking (DUN) call bring up is rejected since UE is in eHRPD RAT. */
357     public static final int DUN_CALL_DISALLOWED = 0x808;
358     /*** Rejected/Brought down since UE is transition between EPC and NONEPC RAT. */
359     public static final int INTERNAL_EPC_NONEPC_TRANSITION = 0x809;
360     /** The current interface is being in use. */
361     public static final int INTERFACE_IN_USE = 0x80A;
362     /** PDN connection to the APN is disallowed on the roaming network. */
363     public static final int APN_DISALLOWED_ON_ROAMING = 0x80B;
364     /** APN-related parameters are changed. */
365     public static final int APN_PARAMETERS_CHANGED = 0x80C;
366     /** PDN is attempted to be brought up with NULL APN but NULL APN is not supported. */
367     public static final int NULL_APN_DISALLOWED = 0x80D;
368     /**
369      * Thermal level increases and causes calls to be torn down when normal mode of operation is
370      * not allowed.
371      */
372     public static final int THERMAL_MITIGATION = 0x80E;
373     /**
374      * PDN Connection to a given APN is disallowed because data is disabled from the device user
375      * interface settings.
376      */
377     public static final int DATA_SETTINGS_DISABLED = 0x80F;
378     /**
379      * PDN Connection to a given APN is disallowed because data roaming is disabled from the device
380      * user interface settings and the UE is roaming.
381      */
382     public static final int DATA_ROAMING_SETTINGS_DISABLED = 0x810;
383     /** DDS (Default data subscription) switch occurs. */
384     public static final int DDS_SWITCHED = 0x811;
385     /** PDN being brought up with an APN that is part of forbidden APN Name list. */
386     public static final int FORBIDDEN_APN_NAME = 0x812;
387     /** Default data subscription switch is in progress. */
388     public static final int DDS_SWITCH_IN_PROGRESS = 0x813;
389     /** Roaming is disallowed during call bring up. */
390     public static final int CALL_DISALLOWED_IN_ROAMING = 0x814;
391     /**
392      * UE is unable to bring up a non-IP data call because the device is not camped on a NB1 cell.
393      */
394     public static final int NON_IP_NOT_SUPPORTED = 0x815;
395     /** Non-IP PDN is in throttled state due to previous VSNCP bringup failure(s). */
396     public static final int PDN_NON_IP_CALL_THROTTLED = 0x816;
397     /** Non-IP PDN is in disallowed state due to the network providing only an IP address. */
398     public static final int PDN_NON_IP_CALL_DISALLOWED = 0x817;
399     /** Device in CDMA locked state. */
400     public static final int CDMA_LOCK = 0x818;
401     /** Received an intercept order from the base station. */
402     public static final int CDMA_INTERCEPT = 0x819;
403     /** Receiving a reorder from the base station. */
404     public static final int CDMA_REORDER = 0x81A;
405     /** Receiving a release from the base station with a SO (Service Option) Reject reason. */
406     public static final int CDMA_RELEASE_DUE_TO_SO_REJECTION = 0x81B;
407     /** Receiving an incoming call from the base station. */
408     public static final int CDMA_INCOMING_CALL = 0x81C;
409     /** Received an alert stop from the base station due to incoming only. */
410     public static final int CDMA_ALERT_STOP = 0x81D;
411     /**
412      * Channel acquisition failures. This indicates that device has failed acquiring all the
413      * channels in the PRL.
414      */
415     public static final int CHANNEL_ACQUISITION_FAILURE = 0x81E;
416     /** Maximum access probes transmitted. */
417     public static final int MAX_ACCESS_PROBE = 0x81F;
418     /** Concurrent service is not supported by base station. */
419     public static final int CONCURRENT_SERVICE_NOT_SUPPORTED_BY_BASE_STATION = 0x820;
420     /** There was no response received from the base station. */
421     public static final int NO_RESPONSE_FROM_BASE_STATION = 0x821;
422     /** The base station rejecting the call. */
423     public static final int REJECTED_BY_BASE_STATION = 0x822;
424     /** The concurrent services requested were not compatible. */
425     public static final int CONCURRENT_SERVICES_INCOMPATIBLE = 0x823;
426     /** Device does not have CDMA service. */
427     public static final int NO_CDMA_SERVICE = 0x824;
428     /** RUIM not being present. */
429     public static final int RUIM_NOT_PRESENT = 0x825;
430     /** Receiving a retry order from the base station. */
431     public static final int CDMA_RETRY_ORDER = 0x826;
432     /** Access blocked by the base station. */
433     public static final int ACCESS_BLOCK = 0x827;
434     /** Access blocked by the base station for all mobile devices. */
435     public static final int ACCESS_BLOCK_ALL = 0x828;
436     /** Maximum access probes for the IS-707B call. */
437     public static final int IS707B_MAX_ACCESS_PROBES = 0x829;
438     /** Put device in thermal emergency. */
439     public static final int THERMAL_EMERGENCY = 0x82A;
440     /** In favor of a voice call or SMS when concurrent voice and data are not supported. */
441     public static final int CONCURRENT_SERVICES_NOT_ALLOWED = 0x82B;
442     /** The other clients rejected incoming call. */
443     public static final int INCOMING_CALL_REJECTED = 0x82C;
444     /** No service on the gateway. */
445     public static final int NO_SERVICE_ON_GATEWAY = 0x82D;
446     /** GPRS context is not available. */
447     public static final int NO_GPRS_CONTEXT = 0x82E;
448     /**
449      * Network refuses service to the MS because either an identity of the MS is not acceptable to
450      * the network or the MS does not pass the authentication check.
451      */
452     public static final int ILLEGAL_MS = 0x82F;
453     /** ME could not be authenticated and the ME used is not acceptable to the network. */
454     public static final int ILLEGAL_ME = 0x830;
455     /** Not allowed to operate either GPRS or non-GPRS services. */
456     public static final int GPRS_SERVICES_AND_NON_GPRS_SERVICES_NOT_ALLOWED = 0x831;
457     /** MS is not allowed to operate GPRS services. */
458     public static final int GPRS_SERVICES_NOT_ALLOWED = 0x832;
459     /** No matching identity or context could be found in the network. */
460     public static final int MS_IDENTITY_CANNOT_BE_DERIVED_BY_THE_NETWORK = 0x833;
461     /**
462      * Mobile reachable timer has expired, or the GMM context data related to the subscription does
463      * not exist in the SGSN.
464      */
465     public static final int IMPLICITLY_DETACHED = 0x834;
466     /**
467      * UE requests GPRS service, or the network initiates a detach request in a PLMN which does not
468      * offer roaming for GPRS services to that MS.
469      */
470     public static final int PLMN_NOT_ALLOWED = 0x835;
471     /**
472      * MS requests service, or the network initiates a detach request, in a location area where the
473      * HPLMN determines that the MS, by subscription, is not allowed to operate.
474      */
475     public static final int LOCATION_AREA_NOT_ALLOWED = 0x836;
476     /**
477      * UE requests GPRS service or the network initiates a detach request in a PLMN that does not
478      * offer roaming for GPRS services.
479      */
480     public static final int GPRS_SERVICES_NOT_ALLOWED_IN_THIS_PLMN = 0x837;
481     /** PDP context already exists. */
482     public static final int PDP_DUPLICATE = 0x838;
483     /** RAT change on the UE. */
484     public static final int UE_RAT_CHANGE = 0x839;
485     /** Network cannot serve a request from the MS due to congestion. */
486     public static final int CONGESTION = 0x83A;
487     /**
488      * MS requests an establishment of the radio access bearers for all active PDP contexts by
489      * sending a service request message indicating data to the network, but the SGSN does not have
490      * any active PDP context.
491      */
492     public static final int NO_PDP_CONTEXT_ACTIVATED = 0x83B;
493     /** Access class blocking restrictions for the current camped cell. */
494     public static final int ACCESS_CLASS_DSAC_REJECTION = 0x83C;
495     /** SM attempts PDP activation for a maximum of four attempts. */
496     public static final int PDP_ACTIVATE_MAX_RETRY_FAILED = 0x83D;
497     /** Radio access bearer failure. */
498     public static final int RADIO_ACCESS_BEARER_FAILURE = 0x83E;
499     /** Invalid EPS bearer identity in the request. */
500     public static final int ESM_UNKNOWN_EPS_BEARER_CONTEXT = 0x83F;
501     /** Data radio bearer is released by the RRC. */
502     public static final int DRB_RELEASED_BY_RRC = 0x840;
503     /** Indicate the connection was released. */
504     public static final int CONNECTION_RELEASED = 0x841;
505     /** UE is detached. */
506     public static final int EMM_DETACHED = 0x842;
507     /** Attach procedure is rejected by the network. */
508     public static final int EMM_ATTACH_FAILED = 0x843;
509     /** Attach procedure is started for EMC purposes. */
510     public static final int EMM_ATTACH_STARTED = 0x844;
511     /** Service request procedure failure. */
512     public static final int LTE_NAS_SERVICE_REQUEST_FAILED = 0x845;
513     /** Active dedicated bearer was requested using the same default bearer ID. */
514     public static final int DUPLICATE_BEARER_ID = 0x846;
515     /** Collision scenarios for the UE and network-initiated procedures. */
516     public static final int ESM_COLLISION_SCENARIOS = 0x847;
517     /** Bearer must be deactivated to synchronize with the network. */
518     public static final int ESM_BEARER_DEACTIVATED_TO_SYNC_WITH_NETWORK = 0x848;
519     /** Active dedicated bearer was requested for an existing default bearer. */
520     public static final int ESM_NW_ACTIVATED_DED_BEARER_WITH_ID_OF_DEF_BEARER = 0x849;
521     /** Bad OTA message is received from the network. */
522     public static final int ESM_BAD_OTA_MESSAGE = 0x84A;
523     /** Download server rejected the call. */
524     public static final int ESM_DOWNLOAD_SERVER_REJECTED_THE_CALL = 0x84B;
525     /** PDN was disconnected by the downlaod server due to IRAT. */
526     public static final int ESM_CONTEXT_TRANSFERRED_DUE_TO_IRAT = 0x84C;
527     /** Dedicated bearer will be deactivated regardless of the network response. */
528     public static final int DS_EXPLICIT_DEACTIVATION = 0x84D;
529     /** No specific local cause is mentioned, usually a valid OTA cause. */
530     public static final int ESM_LOCAL_CAUSE_NONE = 0x84E;
531     /** Throttling is not needed for this service request failure. */
532     public static final int LTE_THROTTLING_NOT_REQUIRED = 0x84F;
533     /** Access control list check failure at the lower layer. */
534     public static final int ACCESS_CONTROL_LIST_CHECK_FAILURE = 0x850;
535     /** Service is not allowed on the requested PLMN. */
536     public static final int SERVICE_NOT_ALLOWED_ON_PLMN = 0x851;
537     /** T3417 timer expiration of the service request procedure. */
538     public static final int EMM_T3417_EXPIRED = 0x852;
539     /** Extended service request fails due to expiration of the T3417 EXT timer. */
540     public static final int EMM_T3417_EXT_EXPIRED = 0x853;
541     /** Transmission failure of radio resource control (RRC) uplink data. */
542     public static final int RRC_UPLINK_DATA_TRANSMISSION_FAILURE = 0x854;
543     /** Radio resource control (RRC) uplink data delivery failed due to a handover. */
544     public static final int RRC_UPLINK_DELIVERY_FAILED_DUE_TO_HANDOVER = 0x855;
545     /** Radio resource control (RRC) uplink data delivery failed due to a connection release. */
546     public static final int RRC_UPLINK_CONNECTION_RELEASE = 0x856;
547     /** Radio resource control (RRC) uplink data delivery failed due to a radio link failure. */
548     public static final int RRC_UPLINK_RADIO_LINK_FAILURE = 0x857;
549     /**
550      * Radio resource control (RRC) is not connected but the non-access stratum (NAS) sends an
551      * uplink data request.
552      */
553     public static final int RRC_UPLINK_ERROR_REQUEST_FROM_NAS = 0x858;
554     /** Radio resource control (RRC) connection failure at access stratum. */
555     public static final int RRC_CONNECTION_ACCESS_STRATUM_FAILURE = 0x859;
556     /**
557      * Radio resource control (RRC) connection establishment is aborted due to another procedure.
558      */
559     public static final int RRC_CONNECTION_ANOTHER_PROCEDURE_IN_PROGRESS = 0x85A;
560     /** Radio resource control (RRC) connection establishment failed due to access barrred. */
561     public static final int RRC_CONNECTION_ACCESS_BARRED = 0x85B;
562     /**
563      * Radio resource control (RRC) connection establishment failed due to cell reselection at
564      * access stratum.
565      */
566     public static final int RRC_CONNECTION_CELL_RESELECTION = 0x85C;
567     /**
568      * Connection establishment failed due to configuration failure at the radio resource control
569      * (RRC).
570      */
571     public static final int RRC_CONNECTION_CONFIG_FAILURE = 0x85D;
572     /** Radio resource control (RRC) connection could not be established in the time limit. */
573     public static final int RRC_CONNECTION_TIMER_EXPIRED = 0x85E;
574     /**
575      * Connection establishment failed due to a link failure at the radio resource control (RRC).
576      */
577     public static final int RRC_CONNECTION_LINK_FAILURE = 0x85F;
578     /**
579      * Connection establishment failed as the radio resource control (RRC) is not camped on any
580      * cell.
581      */
582     public static final int RRC_CONNECTION_CELL_NOT_CAMPED = 0x860;
583     /**
584      * Connection establishment failed due to a service interval failure at the radio resource
585      * control (RRC).
586      */
587     public static final int RRC_CONNECTION_SYSTEM_INTERVAL_FAILURE = 0x861;
588     /**
589      * Radio resource control (RRC) connection establishment failed due to the network rejecting
590      * the UE connection request.
591      */
592     public static final int RRC_CONNECTION_REJECT_BY_NETWORK = 0x862;
593     /** Normal radio resource control (RRC) connection release. */
594     public static final int RRC_CONNECTION_NORMAL_RELEASE = 0x863;
595     /**
596      * Radio resource control (RRC) connection release failed due to radio link failure conditions.
597      */
598     public static final int RRC_CONNECTION_RADIO_LINK_FAILURE = 0x864;
599     /** Radio resource control (RRC) connection re-establishment failure. */
600     public static final int RRC_CONNECTION_REESTABLISHMENT_FAILURE = 0x865;
601     /** UE is out of service during the call register. */
602     public static final int RRC_CONNECTION_OUT_OF_SERVICE_DURING_CELL_REGISTER = 0x866;
603     /**
604      * Connection has been released by the radio resource control (RRC) due to an abort request.
605      */
606     public static final int RRC_CONNECTION_ABORT_REQUEST = 0x867;
607     /**
608      * Radio resource control (RRC) connection released due to a system information block read
609      * error.
610      */
611     public static final int RRC_CONNECTION_SYSTEM_INFORMATION_BLOCK_READ_ERROR = 0x868;
612     /** Network-initiated detach with reattach. */
613     public static final int NETWORK_INITIATED_DETACH_WITH_AUTO_REATTACH = 0x869;
614     /** Network-initiated detach without reattach. */
615     public static final int NETWORK_INITIATED_DETACH_NO_AUTO_REATTACH = 0x86A;
616     /** ESM procedure maximum attempt timeout failure. */
617     public static final int ESM_PROCEDURE_TIME_OUT = 0x86B;
618     /**
619      * No PDP exists with the given connection ID while modifying or deactivating or activation for
620      * an already active PDP.
621      */
622     public static final int INVALID_CONNECTION_ID = 0x86C;
623     /** Maximum NSAPIs have been exceeded during PDP activation. */
624     public static final int MAXIMIUM_NSAPIS_EXCEEDED = 0x86D;
625     /** Primary context for NSAPI does not exist. */
626     public static final int INVALID_PRIMARY_NSAPI = 0x86E;
627     /** Unable to encode the OTA message for MT PDP or deactivate PDP. */
628     public static final int CANNOT_ENCODE_OTA_MESSAGE = 0x86F;
629     /**
630      * Radio access bearer is not established by the lower layers during activation, modification,
631      * or deactivation.
632      */
633     public static final int RADIO_ACCESS_BEARER_SETUP_FAILURE = 0x870;
634     /** Expiration of the PDP establish timer with a maximum of five retries. */
635     public static final int PDP_ESTABLISH_TIMEOUT_EXPIRED = 0x871;
636     /** Expiration of the PDP modify timer with a maximum of four retries. */
637     public static final int PDP_MODIFY_TIMEOUT_EXPIRED = 0x872;
638     /** Expiration of the PDP deactivate timer with a maximum of four retries. */
639     public static final int PDP_INACTIVE_TIMEOUT_EXPIRED = 0x873;
640     /** PDP activation failed due to RRC_ABORT or a forbidden PLMN. */
641     public static final int PDP_LOWERLAYER_ERROR = 0x874;
642     /** MO PDP modify collision when the MT PDP is already in progress. */
643     public static final int PDP_MODIFY_COLLISION = 0x875;
644     /** Maximum size of the L2 message was exceeded. */
645     public static final int MAXINUM_SIZE_OF_L2_MESSAGE_EXCEEDED = 0x876;
646     /** Non-access stratum (NAS) request was rejected by the network. */
647     public static final int NAS_REQUEST_REJECTED_BY_NETWORK = 0x877;
648     /**
649      * Radio resource control (RRC) connection establishment failure due to an error in the request
650      * message.
651      */
652     public static final int RRC_CONNECTION_INVALID_REQUEST = 0x878;
653     /**
654      * Radio resource control (RRC) connection establishment failure due to a change in the
655      * tracking area ID.
656      */
657     public static final int RRC_CONNECTION_TRACKING_AREA_ID_CHANGED = 0x879;
658     /**
659      * Radio resource control (RRC) connection establishment failure due to the RF was unavailable.
660      */
661     public static final int RRC_CONNECTION_RF_UNAVAILABLE = 0x87A;
662     /**
663      * Radio resource control (RRC) connection was aborted before deactivating the LTE stack due to
664      * a successful LTE to WCDMA/GSM/TD-SCDMA IRAT change.
665      */
666     public static final int RRC_CONNECTION_ABORTED_DUE_TO_IRAT_CHANGE = 0x87B;
667     /**
668      * If the UE has an LTE radio link failure before security is established, the radio resource
669      * control (RRC) connection must be released and the UE must return to idle.
670      */
671     public static final int RRC_CONNECTION_RELEASED_SECURITY_NOT_ACTIVE = 0x87C;
672     /**
673      * Radio resource control (RRC) connection was aborted by the non-access stratum (NAS) after an
674      * IRAT to LTE IRAT handover.
675      */
676     public static final int RRC_CONNECTION_ABORTED_AFTER_HANDOVER = 0x87D;
677     /**
678      * Radio resource control (RRC) connection was aborted before deactivating the LTE stack after
679      * a successful LTE to GSM/EDGE IRAT cell change order procedure.
680      */
681     public static final int RRC_CONNECTION_ABORTED_AFTER_IRAT_CELL_CHANGE = 0x87E;
682     /**
683      * Radio resource control (RRC) connection was aborted in the middle of a LTE to GSM IRAT cell
684      * change order procedure.
685      */
686     public static final int RRC_CONNECTION_ABORTED_DURING_IRAT_CELL_CHANGE = 0x87F;
687     /** IMSI present in the UE is unknown in the home subscriber server. */
688     public static final int IMSI_UNKNOWN_IN_HOME_SUBSCRIBER_SERVER = 0x880;
689     /** IMEI of the UE is not accepted by the network. */
690     public static final int IMEI_NOT_ACCEPTED = 0x881;
691     /** EPS and non-EPS services are not allowed by the network. */
692     public static final int EPS_SERVICES_AND_NON_EPS_SERVICES_NOT_ALLOWED = 0x882;
693     /** EPS services are not allowed in the PLMN. */
694     public static final int EPS_SERVICES_NOT_ALLOWED_IN_PLMN = 0x883;
695     /** Mobile switching center is temporarily unreachable. */
696     public static final int MSC_TEMPORARILY_NOT_REACHABLE = 0x884;
697     /** CS domain is not available. */
698     public static final int CS_DOMAIN_NOT_AVAILABLE = 0x885;
699     /** ESM level failure. */
700     public static final int ESM_FAILURE = 0x886;
701     /** MAC level failure. */
702     public static final int MAC_FAILURE = 0x887;
703     /** Synchronization failure. */
704     public static final int SYNCHRONIZATION_FAILURE = 0x888;
705     /** UE security capabilities mismatch. */
706     public static final int UE_SECURITY_CAPABILITIES_MISMATCH = 0x889;
707     /** Unspecified security mode reject. */
708     public static final int SECURITY_MODE_REJECTED = 0x88A;
709     /** Unacceptable non-EPS authentication. */
710     public static final int UNACCEPTABLE_NON_EPS_AUTHENTICATION = 0x88B;
711     /** CS fallback call establishment is not allowed. */
712     public static final int CS_FALLBACK_CALL_ESTABLISHMENT_NOT_ALLOWED = 0x88C;
713     /** No EPS bearer context was activated. */
714     public static final int NO_EPS_BEARER_CONTEXT_ACTIVATED = 0x88D;
715     /** Invalid EMM state. */
716     public static final int INVALID_EMM_STATE = 0x88E;
717     /** Non-Access Spectrum layer failure. */
718     public static final int NAS_LAYER_FAILURE = 0x88F;
719     /** Multiple PDP call feature is disabled. */
720     public static final int MULTIPLE_PDP_CALL_NOT_ALLOWED = 0x890;
721     /** Data call has been brought down because EMBMS is not enabled at the RRC layer. */
722     public static final int EMBMS_NOT_ENABLED = 0x891;
723     /** Data call was unsuccessfully transferred during the IRAT handover. */
724     public static final int IRAT_HANDOVER_FAILED = 0x892;
725     /** EMBMS data call has been successfully brought down. */
726     public static final int EMBMS_REGULAR_DEACTIVATION = 0x893;
727     /** Test loop-back data call has been successfully brought down. */
728     public static final int TEST_LOOPBACK_REGULAR_DEACTIVATION = 0x894;
729     /** Lower layer registration failure. */
730     public static final int LOWER_LAYER_REGISTRATION_FAILURE = 0x895;
731     /**
732      * Network initiates a detach on LTE with error cause ""data plan has been replenished or has
733      * expired.
734      */
735     public static final int DATA_PLAN_EXPIRED = 0x896;
736     /** UMTS interface is brought down due to handover from UMTS to iWLAN. */
737     public static final int UMTS_HANDOVER_TO_IWLAN = 0x897;
738     /** Received a connection deny due to general or network busy on EVDO network. */
739     public static final int EVDO_CONNECTION_DENY_BY_GENERAL_OR_NETWORK_BUSY = 0x898;
740     /** Received a connection deny due to billing or authentication failure on EVDO network. */
741     public static final int EVDO_CONNECTION_DENY_BY_BILLING_OR_AUTHENTICATION_FAILURE = 0x899;
742     /** HDR system has been changed due to redirection or the PRL was not preferred. */
743     public static final int EVDO_HDR_CHANGED = 0x89A;
744     /** Device exited HDR due to redirection or the PRL was not preferred. */
745     public static final int EVDO_HDR_EXITED = 0x89B;
746     /** Device does not have an HDR session. */
747     public static final int EVDO_HDR_NO_SESSION = 0x89C;
748     /** It is ending an HDR call origination in favor of a GPS fix. */
749     public static final int EVDO_USING_GPS_FIX_INSTEAD_OF_HDR_CALL = 0x89D;
750     /** Connection setup on the HDR system was time out. */
751     public static final int EVDO_HDR_CONNECTION_SETUP_TIMEOUT = 0x89E;
752     /** Device failed to acquire a co-located HDR for origination. */
753     public static final int FAILED_TO_ACQUIRE_COLOCATED_HDR = 0x89F;
754     /** OTASP commit is in progress. */
755     public static final int OTASP_COMMIT_IN_PROGRESS = 0x8A0;
756     /** Device has no hybrid HDR service. */
757     public static final int NO_HYBRID_HDR_SERVICE = 0x8A1;
758     /** HDR module could not be obtained because of the RF locked. */
759     public static final int HDR_NO_LOCK_GRANTED = 0x8A2;
760     /** DBM or SMS is in progress. */
761     public static final int DBM_OR_SMS_IN_PROGRESS = 0x8A3;
762     /** HDR module released the call due to fade. */
763     public static final int HDR_FADE = 0x8A4;
764     /** HDR system access failure. */
765     public static final int HDR_ACCESS_FAILURE = 0x8A5;
766     /**
767      * P_rev supported by 1 base station is less than 6, which is not supported for a 1X data call.
768      * The UE must be in the footprint of BS which has p_rev >= 6 to support this SO33 call.
769      */
770     public static final int UNSUPPORTED_1X_PREV = 0x8A6;
771     /** Client ended the data call. */
772     public static final int LOCAL_END = 0x8A7;
773     /** Device has no service. */
774     public static final int NO_SERVICE = 0x8A8;
775     /** Device lost the system due to fade. */
776     public static final int FADE = 0x8A9;
777     /** Receiving a release from the base station with no reason. */
778     public static final int NORMAL_RELEASE = 0x8AA;
779     /** Access attempt is already in progress. */
780     public static final int ACCESS_ATTEMPT_ALREADY_IN_PROGRESS = 0x8AB;
781     /** Device is in the process of redirecting or handing off to a different target system. */
782     public static final int REDIRECTION_OR_HANDOFF_IN_PROGRESS = 0x8AC;
783     /** Device is operating in Emergency mode. */
784     public static final int EMERGENCY_MODE = 0x8AD;
785     /** Device is in use (e.g., voice call). */
786     public static final int PHONE_IN_USE = 0x8AE;
787     /**
788      * Device operational mode is different from the mode requested in the traffic channel bring up.
789      */
790     public static final int INVALID_MODE = 0x8AF;
791     /** SIM was marked by the network as invalid for the circuit and/or packet service domain. */
792     public static final int INVALID_SIM_STATE = 0x8B0;
793     /** There is no co-located HDR. */
794     public static final int NO_COLLOCATED_HDR = 0x8B1;
795     /** UE is entering power save mode. */
796     public static final int UE_IS_ENTERING_POWERSAVE_MODE = 0x8B2;
797     /** Dual switch from single standby to dual standby is in progress. */
798     public static final int DUAL_SWITCH = 0x8B3;
799     /**
800      * Data call bring up fails in the PPP setup due to a timeout.
801      * (e.g., an LCP conf ack was not received from the network)
802      */
803     public static final int PPP_TIMEOUT = 0x8B4;
804     /**
805      * Data call bring up fails in the PPP setup due to an authorization failure.
806      * (e.g., authorization is required, but not negotiated with the network during an LCP phase)
807      */
808     public static final int PPP_AUTH_FAILURE = 0x8B5;
809     /** Data call bring up fails in the PPP setup due to an option mismatch. */
810     public static final int PPP_OPTION_MISMATCH = 0x8B6;
811     /** Data call bring up fails in the PPP setup due to a PAP failure. */
812     public static final int PPP_PAP_FAILURE = 0x8B7;
813     /** Data call bring up fails in the PPP setup due to a CHAP failure. */
814     public static final int PPP_CHAP_FAILURE = 0x8B8;
815     /**
816      * Data call bring up fails in the PPP setup because the PPP is in the process of cleaning the
817      * previous PPP session.
818      */
819     public static final int PPP_CLOSE_IN_PROGRESS = 0x8B9;
820     /**
821      * IPv6 interface bring up fails because the network provided only the IPv4 address for the
822      * upcoming PDN permanent client can reattempt a IPv6 call bring up after the IPv4 interface is
823      * also brought down. However, there is no guarantee that the network will provide a IPv6
824      * address.
825      */
826     public static final int LIMITED_TO_IPV4 = 0x8BA;
827     /**
828      * IPv4 interface bring up fails because the network provided only the IPv6 address for the
829      * upcoming PDN permanent client can reattempt a IPv4 call bring up after the IPv6 interface is
830      * also brought down. However there is no guarantee that the network will provide a IPv4
831      * address.
832      */
833     public static final int LIMITED_TO_IPV6 = 0x8BB;
834     /** Data call bring up fails in the VSNCP phase due to a VSNCP timeout error. */
835     public static final int VSNCP_TIMEOUT = 0x8BC;
836     /**
837      * Data call bring up fails in the VSNCP phase due to a general error. It's used when there is
838      * no other specific error code available to report the failure.
839      */
840     public static final int VSNCP_GEN_ERROR = 0x8BD;
841     /**
842      * Data call bring up fails in the VSNCP phase due to a network rejection of the VSNCP
843      * configuration request because the requested APN is unauthorized.
844      */
845     public static final int VSNCP_APN_UNATHORIZED = 0x8BE;
846     /**
847      * Data call bring up fails in the VSNCP phase due to a network rejection of the VSNCP
848      * configuration request because the PDN limit has been exceeded.
849      */
850     public static final int VSNCP_PDN_LIMIT_EXCEEDED = 0x8BF;
851     /**
852      * Data call bring up fails in the VSNCP phase due to the network rejected the VSNCP
853      * configuration request due to no PDN gateway address.
854      */
855     public static final int VSNCP_NO_PDN_GATEWAY_ADDRESS = 0x8C0;
856     /**
857      * Data call bring up fails in the VSNCP phase due to a network rejection of the VSNCP
858      * configuration request because the PDN gateway is unreachable.
859      */
860     public static final int VSNCP_PDN_GATEWAY_UNREACHABLE = 0x8C1;
861     /**
862      * Data call bring up fails in the VSNCP phase due to a network rejection of the VSNCP
863      * configuration request due to a PDN gateway reject.
864      */
865     public static final int VSNCP_PDN_GATEWAY_REJECT = 0x8C2;
866     /**
867      * Data call bring up fails in the VSNCP phase due to a network rejection of the VSNCP
868      * configuration request with the reason of insufficient parameter.
869      */
870     public static final int VSNCP_INSUFFICIENT_PARAMETERS = 0x8C3;
871     /**
872      * Data call bring up fails in the VSNCP phase due to a network rejection of the VSNCP
873      * configuration request with the reason of resource unavailable.
874      */
875     public static final int VSNCP_RESOURCE_UNAVAILABLE = 0x8C4;
876     /**
877      * Data call bring up fails in the VSNCP phase due to a network rejection of the VSNCP
878      * configuration request with the reason of administratively prohibited at the HSGW.
879      */
880     public static final int VSNCP_ADMINISTRATIVELY_PROHIBITED = 0x8C5;
881     /**
882      * Data call bring up fails in the VSNCP phase due to a network rejection of PDN ID in use, or
883      * all existing PDNs are brought down with this end reason because one of the PDN bring up was
884      * rejected by the network with the reason of PDN ID in use.
885      */
886     public static final int VSNCP_PDN_ID_IN_USE = 0x8C6;
887     /**
888      * Data call bring up fails in the VSNCP phase due to a network rejection of the VSNCP
889      * configuration request for the reason of subscriber limitation.
890      */
891     public static final int VSNCP_SUBSCRIBER_LIMITATION = 0x8C7;
892     /**
893      * Data call bring up fails in the VSNCP phase due to a network rejection of the VSNCP
894      * configuration request because the PDN exists for this APN.
895      */
896     public static final int VSNCP_PDN_EXISTS_FOR_THIS_APN = 0x8C8;
897     /**
898      * Data call bring up fails in the VSNCP phase due to a network rejection of the VSNCP
899      * configuration request with reconnect to this PDN not allowed, or an active data call is
900      * terminated by the network because reconnection to this PDN is not allowed. Upon receiving
901      * this error code from the network, the modem infinitely throttles the PDN until the next
902      * power cycle.
903      */
904     public static final int VSNCP_RECONNECT_NOT_ALLOWED = 0x8C9;
905     /** Device failure to obtain the prefix from the network. */
906     public static final int IPV6_PREFIX_UNAVAILABLE = 0x8CA;
907     /** System preference change back to SRAT during handoff */
908     public static final int HANDOFF_PREFERENCE_CHANGED = 0x8CB;
909 
910     // OEM sepecific error codes. To be used by OEMs when they don't
911     // want to reveal error code which would be replaced by ERROR_UNSPECIFIED
912     public static final int OEM_DCFAILCAUSE_1 = 0x1001;
913     public static final int OEM_DCFAILCAUSE_2 = 0x1002;
914     public static final int OEM_DCFAILCAUSE_3 = 0x1003;
915     public static final int OEM_DCFAILCAUSE_4 = 0x1004;
916     public static final int OEM_DCFAILCAUSE_5 = 0x1005;
917     public static final int OEM_DCFAILCAUSE_6 = 0x1006;
918     public static final int OEM_DCFAILCAUSE_7 = 0x1007;
919     public static final int OEM_DCFAILCAUSE_8 = 0x1008;
920     public static final int OEM_DCFAILCAUSE_9 = 0x1009;
921     public static final int OEM_DCFAILCAUSE_10 = 0x100A;
922     public static final int OEM_DCFAILCAUSE_11 = 0x100B;
923     public static final int OEM_DCFAILCAUSE_12 = 0x100C;
924     public static final int OEM_DCFAILCAUSE_13 = 0x100D;
925     public static final int OEM_DCFAILCAUSE_14 = 0x100E;
926     public static final int OEM_DCFAILCAUSE_15 = 0x100F;
927 
928     // Local errors generated by Vendor RIL
929     // specified in ril.h
930     /** Data fail due to registration failure. */
931     public static final int REGISTRATION_FAIL = -1;
932     /** Data fail due to GPRS registration failure. */
933     public static final int GPRS_REGISTRATION_FAIL = -2;
934     /** Data call drop due to network/modem disconnect. */
935     public static final int SIGNAL_LOST = -3;                        /* no retry */
936     /**
937      * Preferred technology has changed, must retry with parameters appropriate for new technology.
938      */
939     public static final int PREF_RADIO_TECH_CHANGED = -4;
940     /** data call was disconnected because radio was resetting, powered off. */
941     public static final int RADIO_POWER_OFF = -5;                    /* no retry */
942     /** Data call was disconnected by modem because tethered. */
943     public static final int TETHERED_CALL_ACTIVE = -6;               /* no retry */
944     /** Data call fail due to unspecific errors. */
945     public static final int ERROR_UNSPECIFIED = 0xFFFF;
946 
947     // Errors generated by the Framework
948     // specified here
949     /** Unknown data failure cause. */
950     public static final int UNKNOWN = 0x10000;
951     /** Data fail due to radio not unavailable. */
952     public static final int RADIO_NOT_AVAILABLE = 0x10001;                   /* no retry */
953     /** Data fail due to unacceptable network parameter. */
954     public static final int UNACCEPTABLE_NETWORK_PARAMETER = 0x10002;        /* no retry */
955     /** Data connection was lost. */
956     public static final int LOST_CONNECTION = 0x10004;
957 
958     /**
959      * Data handover failed.
960      *
961      * @hide
962      */
963     public static final int HANDOVER_FAILED = 0x10006;
964 
965     private static final Map<Integer, String> sFailCauseMap;
966     static {
967         sFailCauseMap = new HashMap<>();
sFailCauseMap.put(NONE, "NONE")968         sFailCauseMap.put(NONE, "NONE");
sFailCauseMap.put(OPERATOR_BARRED, "OPERATOR_BARRED")969         sFailCauseMap.put(OPERATOR_BARRED, "OPERATOR_BARRED");
sFailCauseMap.put(NAS_SIGNALLING, "NAS_SIGNALLING")970         sFailCauseMap.put(NAS_SIGNALLING, "NAS_SIGNALLING");
sFailCauseMap.put(LLC_SNDCP, "LLC_SNDCP")971         sFailCauseMap.put(LLC_SNDCP, "LLC_SNDCP");
sFailCauseMap.put(INSUFFICIENT_RESOURCES, "INSUFFICIENT_RESOURCES")972         sFailCauseMap.put(INSUFFICIENT_RESOURCES, "INSUFFICIENT_RESOURCES");
sFailCauseMap.put(MISSING_UNKNOWN_APN, "MISSING_UNKNOWN_APN")973         sFailCauseMap.put(MISSING_UNKNOWN_APN, "MISSING_UNKNOWN_APN");
sFailCauseMap.put(UNKNOWN_PDP_ADDRESS_TYPE, "UNKNOWN_PDP_ADDRESS_TYPE")974         sFailCauseMap.put(UNKNOWN_PDP_ADDRESS_TYPE, "UNKNOWN_PDP_ADDRESS_TYPE");
sFailCauseMap.put(USER_AUTHENTICATION, "USER_AUTHENTICATION")975         sFailCauseMap.put(USER_AUTHENTICATION, "USER_AUTHENTICATION");
sFailCauseMap.put(ACTIVATION_REJECT_GGSN, "ACTIVATION_REJECT_GGSN")976         sFailCauseMap.put(ACTIVATION_REJECT_GGSN, "ACTIVATION_REJECT_GGSN");
sFailCauseMap.put(ACTIVATION_REJECT_UNSPECIFIED, "ACTIVATION_REJECT_UNSPECIFIED")977         sFailCauseMap.put(ACTIVATION_REJECT_UNSPECIFIED,
978                 "ACTIVATION_REJECT_UNSPECIFIED");
sFailCauseMap.put(SERVICE_OPTION_NOT_SUPPORTED, "SERVICE_OPTION_NOT_SUPPORTED")979         sFailCauseMap.put(SERVICE_OPTION_NOT_SUPPORTED,
980                 "SERVICE_OPTION_NOT_SUPPORTED");
sFailCauseMap.put(SERVICE_OPTION_NOT_SUBSCRIBED, "SERVICE_OPTION_NOT_SUBSCRIBED")981         sFailCauseMap.put(SERVICE_OPTION_NOT_SUBSCRIBED,
982                 "SERVICE_OPTION_NOT_SUBSCRIBED");
sFailCauseMap.put(SERVICE_OPTION_OUT_OF_ORDER, "SERVICE_OPTION_OUT_OF_ORDER")983         sFailCauseMap.put(SERVICE_OPTION_OUT_OF_ORDER, "SERVICE_OPTION_OUT_OF_ORDER");
sFailCauseMap.put(NSAPI_IN_USE, "NSAPI_IN_USE")984         sFailCauseMap.put(NSAPI_IN_USE, "NSAPI_IN_USE");
sFailCauseMap.put(REGULAR_DEACTIVATION, "REGULAR_DEACTIVATION")985         sFailCauseMap.put(REGULAR_DEACTIVATION, "REGULAR_DEACTIVATION");
sFailCauseMap.put(QOS_NOT_ACCEPTED, "QOS_NOT_ACCEPTED")986         sFailCauseMap.put(QOS_NOT_ACCEPTED, "QOS_NOT_ACCEPTED");
sFailCauseMap.put(NETWORK_FAILURE, "NETWORK_FAILURE")987         sFailCauseMap.put(NETWORK_FAILURE, "NETWORK_FAILURE");
sFailCauseMap.put(UMTS_REACTIVATION_REQ, "UMTS_REACTIVATION_REQ")988         sFailCauseMap.put(UMTS_REACTIVATION_REQ, "UMTS_REACTIVATION_REQ");
sFailCauseMap.put(FEATURE_NOT_SUPP, "FEATURE_NOT_SUPP")989         sFailCauseMap.put(FEATURE_NOT_SUPP, "FEATURE_NOT_SUPP");
sFailCauseMap.put(TFT_SEMANTIC_ERROR, "TFT_SEMANTIC_ERROR")990         sFailCauseMap.put(TFT_SEMANTIC_ERROR, "TFT_SEMANTIC_ERROR");
sFailCauseMap.put(TFT_SYTAX_ERROR, "TFT_SYTAX_ERROR")991         sFailCauseMap.put(TFT_SYTAX_ERROR, "TFT_SYTAX_ERROR");
sFailCauseMap.put(UNKNOWN_PDP_CONTEXT, "UNKNOWN_PDP_CONTEXT")992         sFailCauseMap.put(UNKNOWN_PDP_CONTEXT, "UNKNOWN_PDP_CONTEXT");
sFailCauseMap.put(FILTER_SEMANTIC_ERROR, "FILTER_SEMANTIC_ERROR")993         sFailCauseMap.put(FILTER_SEMANTIC_ERROR, "FILTER_SEMANTIC_ERROR");
sFailCauseMap.put(FILTER_SYTAX_ERROR, "FILTER_SYTAX_ERROR")994         sFailCauseMap.put(FILTER_SYTAX_ERROR, "FILTER_SYTAX_ERROR");
sFailCauseMap.put(PDP_WITHOUT_ACTIVE_TFT, "PDP_WITHOUT_ACTIVE_TFT")995         sFailCauseMap.put(PDP_WITHOUT_ACTIVE_TFT, "PDP_WITHOUT_ACTIVE_TFT");
sFailCauseMap.put(ACTIVATION_REJECTED_BCM_VIOLATION, "ACTIVATION_REJECTED_BCM_VIOLATION")996         sFailCauseMap.put(ACTIVATION_REJECTED_BCM_VIOLATION, "ACTIVATION_REJECTED_BCM_VIOLATION");
sFailCauseMap.put(ONLY_IPV4_ALLOWED, "ONLY_IPV4_ALLOWED")997         sFailCauseMap.put(ONLY_IPV4_ALLOWED, "ONLY_IPV4_ALLOWED");
sFailCauseMap.put(ONLY_IPV6_ALLOWED, "ONLY_IPV6_ALLOWED")998         sFailCauseMap.put(ONLY_IPV6_ALLOWED, "ONLY_IPV6_ALLOWED");
sFailCauseMap.put(ONLY_SINGLE_BEARER_ALLOWED, "ONLY_SINGLE_BEARER_ALLOWED")999         sFailCauseMap.put(ONLY_SINGLE_BEARER_ALLOWED, "ONLY_SINGLE_BEARER_ALLOWED");
sFailCauseMap.put(ESM_INFO_NOT_RECEIVED, "ESM_INFO_NOT_RECEIVED")1000         sFailCauseMap.put(ESM_INFO_NOT_RECEIVED, "ESM_INFO_NOT_RECEIVED");
sFailCauseMap.put(PDN_CONN_DOES_NOT_EXIST, "PDN_CONN_DOES_NOT_EXIST")1001         sFailCauseMap.put(PDN_CONN_DOES_NOT_EXIST, "PDN_CONN_DOES_NOT_EXIST");
sFailCauseMap.put(MULTI_CONN_TO_SAME_PDN_NOT_ALLOWED, "MULTI_CONN_TO_SAME_PDN_NOT_ALLOWED")1002         sFailCauseMap.put(MULTI_CONN_TO_SAME_PDN_NOT_ALLOWED,
1003                 "MULTI_CONN_TO_SAME_PDN_NOT_ALLOWED");
sFailCauseMap.put(COLLISION_WITH_NETWORK_INITIATED_REQUEST, "COLLISION_WITH_NETWORK_INITIATED_REQUEST")1004         sFailCauseMap.put(COLLISION_WITH_NETWORK_INITIATED_REQUEST,
1005                 "COLLISION_WITH_NETWORK_INITIATED_REQUEST");
sFailCauseMap.put(ONLY_IPV4V6_ALLOWED, "ONLY_IPV4V6_ALLOWED")1006         sFailCauseMap.put(ONLY_IPV4V6_ALLOWED, "ONLY_IPV4V6_ALLOWED");
sFailCauseMap.put(ONLY_NON_IP_ALLOWED, "ONLY_NON_IP_ALLOWED")1007         sFailCauseMap.put(ONLY_NON_IP_ALLOWED, "ONLY_NON_IP_ALLOWED");
sFailCauseMap.put(UNSUPPORTED_QCI_VALUE, "UNSUPPORTED_QCI_VALUE")1008         sFailCauseMap.put(UNSUPPORTED_QCI_VALUE, "UNSUPPORTED_QCI_VALUE");
sFailCauseMap.put(BEARER_HANDLING_NOT_SUPPORTED, "BEARER_HANDLING_NOT_SUPPORTED")1009         sFailCauseMap.put(BEARER_HANDLING_NOT_SUPPORTED, "BEARER_HANDLING_NOT_SUPPORTED");
sFailCauseMap.put(ACTIVE_PDP_CONTEXT_MAX_NUMBER_REACHED, "ACTIVE_PDP_CONTEXT_MAX_NUMBER_REACHED")1010         sFailCauseMap.put(ACTIVE_PDP_CONTEXT_MAX_NUMBER_REACHED,
1011                 "ACTIVE_PDP_CONTEXT_MAX_NUMBER_REACHED");
sFailCauseMap.put(UNSUPPORTED_APN_IN_CURRENT_PLMN, "UNSUPPORTED_APN_IN_CURRENT_PLMN")1012         sFailCauseMap.put(UNSUPPORTED_APN_IN_CURRENT_PLMN,
1013                 "UNSUPPORTED_APN_IN_CURRENT_PLMN");
sFailCauseMap.put(INVALID_TRANSACTION_ID, "INVALID_TRANSACTION_ID")1014         sFailCauseMap.put(INVALID_TRANSACTION_ID, "INVALID_TRANSACTION_ID");
sFailCauseMap.put(MESSAGE_INCORRECT_SEMANTIC, "MESSAGE_INCORRECT_SEMANTIC")1015         sFailCauseMap.put(MESSAGE_INCORRECT_SEMANTIC, "MESSAGE_INCORRECT_SEMANTIC");
sFailCauseMap.put(INVALID_MANDATORY_INFO, "INVALID_MANDATORY_INFO")1016         sFailCauseMap.put(INVALID_MANDATORY_INFO, "INVALID_MANDATORY_INFO");
sFailCauseMap.put(MESSAGE_TYPE_UNSUPPORTED, "MESSAGE_TYPE_UNSUPPORTED")1017         sFailCauseMap.put(MESSAGE_TYPE_UNSUPPORTED, "MESSAGE_TYPE_UNSUPPORTED");
sFailCauseMap.put(MSG_TYPE_NONCOMPATIBLE_STATE, "MSG_TYPE_NONCOMPATIBLE_STATE")1018         sFailCauseMap.put(MSG_TYPE_NONCOMPATIBLE_STATE, "MSG_TYPE_NONCOMPATIBLE_STATE");
sFailCauseMap.put(UNKNOWN_INFO_ELEMENT, "UNKNOWN_INFO_ELEMENT")1019         sFailCauseMap.put(UNKNOWN_INFO_ELEMENT, "UNKNOWN_INFO_ELEMENT");
sFailCauseMap.put(CONDITIONAL_IE_ERROR, "CONDITIONAL_IE_ERROR")1020         sFailCauseMap.put(CONDITIONAL_IE_ERROR, "CONDITIONAL_IE_ERROR");
sFailCauseMap.put(MSG_AND_PROTOCOL_STATE_UNCOMPATIBLE, "MSG_AND_PROTOCOL_STATE_UNCOMPATIBLE")1021         sFailCauseMap.put(MSG_AND_PROTOCOL_STATE_UNCOMPATIBLE,
1022                 "MSG_AND_PROTOCOL_STATE_UNCOMPATIBLE");
sFailCauseMap.put(PROTOCOL_ERRORS, "PROTOCOL_ERRORS")1023         sFailCauseMap.put(PROTOCOL_ERRORS, "PROTOCOL_ERRORS");
sFailCauseMap.put(APN_TYPE_CONFLICT, "APN_TYPE_CONFLICT")1024         sFailCauseMap.put(APN_TYPE_CONFLICT, "APN_TYPE_CONFLICT");
sFailCauseMap.put(INVALID_PCSCF_ADDR, "INVALID_PCSCF_ADDR")1025         sFailCauseMap.put(INVALID_PCSCF_ADDR, "INVALID_PCSCF_ADDR");
sFailCauseMap.put(INTERNAL_CALL_PREEMPT_BY_HIGH_PRIO_APN, "INTERNAL_CALL_PREEMPT_BY_HIGH_PRIO_APN")1026         sFailCauseMap.put(INTERNAL_CALL_PREEMPT_BY_HIGH_PRIO_APN,
1027                 "INTERNAL_CALL_PREEMPT_BY_HIGH_PRIO_APN");
sFailCauseMap.put(EMM_ACCESS_BARRED, "EMM_ACCESS_BARRED")1028         sFailCauseMap.put(EMM_ACCESS_BARRED, "EMM_ACCESS_BARRED");
sFailCauseMap.put(EMERGENCY_IFACE_ONLY, "EMERGENCY_IFACE_ONLY")1029         sFailCauseMap.put(EMERGENCY_IFACE_ONLY, "EMERGENCY_IFACE_ONLY");
sFailCauseMap.put(IFACE_MISMATCH, "IFACE_MISMATCH")1030         sFailCauseMap.put(IFACE_MISMATCH, "IFACE_MISMATCH");
sFailCauseMap.put(COMPANION_IFACE_IN_USE, "COMPANION_IFACE_IN_USE")1031         sFailCauseMap.put(COMPANION_IFACE_IN_USE, "COMPANION_IFACE_IN_USE");
sFailCauseMap.put(IP_ADDRESS_MISMATCH, "IP_ADDRESS_MISMATCH")1032         sFailCauseMap.put(IP_ADDRESS_MISMATCH, "IP_ADDRESS_MISMATCH");
sFailCauseMap.put(IFACE_AND_POL_FAMILY_MISMATCH, "IFACE_AND_POL_FAMILY_MISMATCH")1033         sFailCauseMap.put(IFACE_AND_POL_FAMILY_MISMATCH,
1034                 "IFACE_AND_POL_FAMILY_MISMATCH");
sFailCauseMap.put(EMM_ACCESS_BARRED_INFINITE_RETRY, "EMM_ACCESS_BARRED_INFINITE_RETRY")1035         sFailCauseMap.put(EMM_ACCESS_BARRED_INFINITE_RETRY,
1036                 "EMM_ACCESS_BARRED_INFINITE_RETRY");
sFailCauseMap.put(AUTH_FAILURE_ON_EMERGENCY_CALL, "AUTH_FAILURE_ON_EMERGENCY_CALL")1037         sFailCauseMap.put(AUTH_FAILURE_ON_EMERGENCY_CALL,
1038                 "AUTH_FAILURE_ON_EMERGENCY_CALL");
sFailCauseMap.put(INVALID_DNS_ADDR, "INVALID_DNS_ADDR")1039         sFailCauseMap.put(INVALID_DNS_ADDR, "INVALID_DNS_ADDR");
sFailCauseMap.put(INVALID_PCSCF_OR_DNS_ADDRESS, "INVALID_PCSCF_OR_DNS_ADDRESS")1040         sFailCauseMap.put(INVALID_PCSCF_OR_DNS_ADDRESS, "INVALID_PCSCF_OR_DNS_ADDRESS");
sFailCauseMap.put(CALL_PREEMPT_BY_EMERGENCY_APN, "CALL_PREEMPT_BY_EMERGENCY_APN")1041         sFailCauseMap.put(CALL_PREEMPT_BY_EMERGENCY_APN, "CALL_PREEMPT_BY_EMERGENCY_APN");
sFailCauseMap.put(UE_INITIATED_DETACH_OR_DISCONNECT, "UE_INITIATED_DETACH_OR_DISCONNECT")1042         sFailCauseMap.put(UE_INITIATED_DETACH_OR_DISCONNECT, "UE_INITIATED_DETACH_OR_DISCONNECT");
sFailCauseMap.put(MIP_FA_REASON_UNSPECIFIED, "MIP_FA_REASON_UNSPECIFIED")1043         sFailCauseMap.put(MIP_FA_REASON_UNSPECIFIED, "MIP_FA_REASON_UNSPECIFIED");
sFailCauseMap.put(MIP_FA_ADMIN_PROHIBITED, "MIP_FA_ADMIN_PROHIBITED")1044         sFailCauseMap.put(MIP_FA_ADMIN_PROHIBITED, "MIP_FA_ADMIN_PROHIBITED");
sFailCauseMap.put(MIP_FA_INSUFFICIENT_RESOURCES, "MIP_FA_INSUFFICIENT_RESOURCES")1045         sFailCauseMap.put(MIP_FA_INSUFFICIENT_RESOURCES, "MIP_FA_INSUFFICIENT_RESOURCES");
sFailCauseMap.put(MIP_FA_MOBILE_NODE_AUTHENTICATION_FAILURE, "MIP_FA_MOBILE_NODE_AUTHENTICATION_FAILURE")1046         sFailCauseMap.put(MIP_FA_MOBILE_NODE_AUTHENTICATION_FAILURE,
1047                 "MIP_FA_MOBILE_NODE_AUTHENTICATION_FAILURE");
sFailCauseMap.put(MIP_FA_HOME_AGENT_AUTHENTICATION_FAILURE, "MIP_FA_HOME_AGENT_AUTHENTICATION_FAILURE")1048         sFailCauseMap.put(MIP_FA_HOME_AGENT_AUTHENTICATION_FAILURE,
1049                 "MIP_FA_HOME_AGENT_AUTHENTICATION_FAILURE");
sFailCauseMap.put(MIP_FA_REQUESTED_LIFETIME_TOO_LONG, "MIP_FA_REQUESTED_LIFETIME_TOO_LONG")1050         sFailCauseMap.put(MIP_FA_REQUESTED_LIFETIME_TOO_LONG, "MIP_FA_REQUESTED_LIFETIME_TOO_LONG");
sFailCauseMap.put(MIP_FA_MALFORMED_REQUEST, "MIP_FA_MALFORMED_REQUEST")1051         sFailCauseMap.put(MIP_FA_MALFORMED_REQUEST, "MIP_FA_MALFORMED_REQUEST");
sFailCauseMap.put(MIP_FA_MALFORMED_REPLY, "MIP_FA_MALFORMED_REPLY")1052         sFailCauseMap.put(MIP_FA_MALFORMED_REPLY, "MIP_FA_MALFORMED_REPLY");
sFailCauseMap.put(MIP_FA_ENCAPSULATION_UNAVAILABLE, "MIP_FA_ENCAPSULATION_UNAVAILABLE")1053         sFailCauseMap.put(MIP_FA_ENCAPSULATION_UNAVAILABLE, "MIP_FA_ENCAPSULATION_UNAVAILABLE");
sFailCauseMap.put(MIP_FA_VJ_HEADER_COMPRESSION_UNAVAILABLE, "MIP_FA_VJ_HEADER_COMPRESSION_UNAVAILABLE")1054         sFailCauseMap.put(MIP_FA_VJ_HEADER_COMPRESSION_UNAVAILABLE,
1055                 "MIP_FA_VJ_HEADER_COMPRESSION_UNAVAILABLE");
sFailCauseMap.put(MIP_FA_REVERSE_TUNNEL_UNAVAILABLE, "MIP_FA_REVERSE_TUNNEL_UNAVAILABLE")1056         sFailCauseMap.put(MIP_FA_REVERSE_TUNNEL_UNAVAILABLE, "MIP_FA_REVERSE_TUNNEL_UNAVAILABLE");
sFailCauseMap.put(MIP_FA_REVERSE_TUNNEL_IS_MANDATORY, "MIP_FA_REVERSE_TUNNEL_IS_MANDATORY")1057         sFailCauseMap.put(MIP_FA_REVERSE_TUNNEL_IS_MANDATORY, "MIP_FA_REVERSE_TUNNEL_IS_MANDATORY");
sFailCauseMap.put(MIP_FA_DELIVERY_STYLE_NOT_SUPPORTED, "MIP_FA_DELIVERY_STYLE_NOT_SUPPORTED")1058         sFailCauseMap.put(MIP_FA_DELIVERY_STYLE_NOT_SUPPORTED,
1059                 "MIP_FA_DELIVERY_STYLE_NOT_SUPPORTED");
sFailCauseMap.put(MIP_FA_MISSING_NAI, "MIP_FA_MISSING_NAI")1060         sFailCauseMap.put(MIP_FA_MISSING_NAI, "MIP_FA_MISSING_NAI");
sFailCauseMap.put(MIP_FA_MISSING_HOME_AGENT, "MIP_FA_MISSING_HOME_AGENT")1061         sFailCauseMap.put(MIP_FA_MISSING_HOME_AGENT, "MIP_FA_MISSING_HOME_AGENT");
sFailCauseMap.put(MIP_FA_MISSING_HOME_ADDRESS, "MIP_FA_MISSING_HOME_ADDRESS")1062         sFailCauseMap.put(MIP_FA_MISSING_HOME_ADDRESS, "MIP_FA_MISSING_HOME_ADDRESS");
sFailCauseMap.put(MIP_FA_UNKNOWN_CHALLENGE, "MIP_FA_UNKNOWN_CHALLENGE")1063         sFailCauseMap.put(MIP_FA_UNKNOWN_CHALLENGE, "MIP_FA_UNKNOWN_CHALLENGE");
sFailCauseMap.put(MIP_FA_MISSING_CHALLENGE, "MIP_FA_MISSING_CHALLENGE")1064         sFailCauseMap.put(MIP_FA_MISSING_CHALLENGE, "MIP_FA_MISSING_CHALLENGE");
sFailCauseMap.put(MIP_FA_STALE_CHALLENGE, "MIP_FA_STALE_CHALLENGE")1065         sFailCauseMap.put(MIP_FA_STALE_CHALLENGE, "MIP_FA_STALE_CHALLENGE");
sFailCauseMap.put(MIP_HA_REASON_UNSPECIFIED, "MIP_HA_REASON_UNSPECIFIED")1066         sFailCauseMap.put(MIP_HA_REASON_UNSPECIFIED, "MIP_HA_REASON_UNSPECIFIED");
sFailCauseMap.put(MIP_HA_ADMIN_PROHIBITED, "MIP_HA_ADMIN_PROHIBITED")1067         sFailCauseMap.put(MIP_HA_ADMIN_PROHIBITED, "MIP_HA_ADMIN_PROHIBITED");
sFailCauseMap.put(MIP_HA_INSUFFICIENT_RESOURCES, "MIP_HA_INSUFFICIENT_RESOURCES")1068         sFailCauseMap.put(MIP_HA_INSUFFICIENT_RESOURCES, "MIP_HA_INSUFFICIENT_RESOURCES");
sFailCauseMap.put(MIP_HA_MOBILE_NODE_AUTHENTICATION_FAILURE, "MIP_HA_MOBILE_NODE_AUTHENTICATION_FAILURE")1069         sFailCauseMap.put(MIP_HA_MOBILE_NODE_AUTHENTICATION_FAILURE,
1070                 "MIP_HA_MOBILE_NODE_AUTHENTICATION_FAILURE");
sFailCauseMap.put(MIP_HA_FOREIGN_AGENT_AUTHENTICATION_FAILURE, "MIP_HA_FOREIGN_AGENT_AUTHENTICATION_FAILURE")1071         sFailCauseMap.put(MIP_HA_FOREIGN_AGENT_AUTHENTICATION_FAILURE,
1072                 "MIP_HA_FOREIGN_AGENT_AUTHENTICATION_FAILURE");
sFailCauseMap.put(MIP_HA_REGISTRATION_ID_MISMATCH, "MIP_HA_REGISTRATION_ID_MISMATCH")1073         sFailCauseMap.put(MIP_HA_REGISTRATION_ID_MISMATCH, "MIP_HA_REGISTRATION_ID_MISMATCH");
sFailCauseMap.put(MIP_HA_MALFORMED_REQUEST, "MIP_HA_MALFORMED_REQUEST")1074         sFailCauseMap.put(MIP_HA_MALFORMED_REQUEST, "MIP_HA_MALFORMED_REQUEST");
sFailCauseMap.put(MIP_HA_UNKNOWN_HOME_AGENT_ADDRESS, "MIP_HA_UNKNOWN_HOME_AGENT_ADDRESS")1075         sFailCauseMap.put(MIP_HA_UNKNOWN_HOME_AGENT_ADDRESS, "MIP_HA_UNKNOWN_HOME_AGENT_ADDRESS");
sFailCauseMap.put(MIP_HA_REVERSE_TUNNEL_UNAVAILABLE, "MIP_HA_REVERSE_TUNNEL_UNAVAILABLE")1076         sFailCauseMap.put(MIP_HA_REVERSE_TUNNEL_UNAVAILABLE, "MIP_HA_REVERSE_TUNNEL_UNAVAILABLE");
sFailCauseMap.put(MIP_HA_REVERSE_TUNNEL_IS_MANDATORY, "MIP_HA_REVERSE_TUNNEL_IS_MANDATORY")1077         sFailCauseMap.put(MIP_HA_REVERSE_TUNNEL_IS_MANDATORY, "MIP_HA_REVERSE_TUNNEL_IS_MANDATORY");
sFailCauseMap.put(MIP_HA_ENCAPSULATION_UNAVAILABLE, "MIP_HA_ENCAPSULATION_UNAVAILABLE")1078         sFailCauseMap.put(MIP_HA_ENCAPSULATION_UNAVAILABLE, "MIP_HA_ENCAPSULATION_UNAVAILABLE");
sFailCauseMap.put(CLOSE_IN_PROGRESS, "CLOSE_IN_PROGRESS")1079         sFailCauseMap.put(CLOSE_IN_PROGRESS, "CLOSE_IN_PROGRESS");
sFailCauseMap.put(NETWORK_INITIATED_TERMINATION, "NETWORK_INITIATED_TERMINATION")1080         sFailCauseMap.put(NETWORK_INITIATED_TERMINATION, "NETWORK_INITIATED_TERMINATION");
sFailCauseMap.put(MODEM_APP_PREEMPTED, "MODEM_APP_PREEMPTED")1081         sFailCauseMap.put(MODEM_APP_PREEMPTED, "MODEM_APP_PREEMPTED");
sFailCauseMap.put(PDN_IPV4_CALL_DISALLOWED, "PDN_IPV4_CALL_DISALLOWED")1082         sFailCauseMap.put(PDN_IPV4_CALL_DISALLOWED, "PDN_IPV4_CALL_DISALLOWED");
sFailCauseMap.put(PDN_IPV4_CALL_THROTTLED, "PDN_IPV4_CALL_THROTTLED")1083         sFailCauseMap.put(PDN_IPV4_CALL_THROTTLED, "PDN_IPV4_CALL_THROTTLED");
sFailCauseMap.put(PDN_IPV6_CALL_DISALLOWED, "PDN_IPV6_CALL_DISALLOWED")1084         sFailCauseMap.put(PDN_IPV6_CALL_DISALLOWED, "PDN_IPV6_CALL_DISALLOWED");
sFailCauseMap.put(PDN_IPV6_CALL_THROTTLED, "PDN_IPV6_CALL_THROTTLED")1085         sFailCauseMap.put(PDN_IPV6_CALL_THROTTLED, "PDN_IPV6_CALL_THROTTLED");
sFailCauseMap.put(MODEM_RESTART, "MODEM_RESTART")1086         sFailCauseMap.put(MODEM_RESTART, "MODEM_RESTART");
sFailCauseMap.put(PDP_PPP_NOT_SUPPORTED, "PDP_PPP_NOT_SUPPORTED")1087         sFailCauseMap.put(PDP_PPP_NOT_SUPPORTED, "PDP_PPP_NOT_SUPPORTED");
sFailCauseMap.put(UNPREFERRED_RAT, "UNPREFERRED_RAT")1088         sFailCauseMap.put(UNPREFERRED_RAT, "UNPREFERRED_RAT");
sFailCauseMap.put(PHYSICAL_LINK_CLOSE_IN_PROGRESS, "PHYSICAL_LINK_CLOSE_IN_PROGRESS")1089         sFailCauseMap.put(PHYSICAL_LINK_CLOSE_IN_PROGRESS, "PHYSICAL_LINK_CLOSE_IN_PROGRESS");
sFailCauseMap.put(APN_PENDING_HANDOVER, "APN_PENDING_HANDOVER")1090         sFailCauseMap.put(APN_PENDING_HANDOVER, "APN_PENDING_HANDOVER");
sFailCauseMap.put(PROFILE_BEARER_INCOMPATIBLE, "PROFILE_BEARER_INCOMPATIBLE")1091         sFailCauseMap.put(PROFILE_BEARER_INCOMPATIBLE, "PROFILE_BEARER_INCOMPATIBLE");
sFailCauseMap.put(SIM_CARD_CHANGED, "SIM_CARD_CHANGED")1092         sFailCauseMap.put(SIM_CARD_CHANGED, "SIM_CARD_CHANGED");
sFailCauseMap.put(LOW_POWER_MODE_OR_POWERING_DOWN, "LOW_POWER_MODE_OR_POWERING_DOWN")1093         sFailCauseMap.put(LOW_POWER_MODE_OR_POWERING_DOWN, "LOW_POWER_MODE_OR_POWERING_DOWN");
sFailCauseMap.put(APN_DISABLED, "APN_DISABLED")1094         sFailCauseMap.put(APN_DISABLED, "APN_DISABLED");
sFailCauseMap.put(MAX_PPP_INACTIVITY_TIMER_EXPIRED, "MAX_PPP_INACTIVITY_TIMER_EXPIRED")1095         sFailCauseMap.put(MAX_PPP_INACTIVITY_TIMER_EXPIRED, "MAX_PPP_INACTIVITY_TIMER_EXPIRED");
sFailCauseMap.put(IPV6_ADDRESS_TRANSFER_FAILED, "IPV6_ADDRESS_TRANSFER_FAILED")1096         sFailCauseMap.put(IPV6_ADDRESS_TRANSFER_FAILED, "IPV6_ADDRESS_TRANSFER_FAILED");
sFailCauseMap.put(TRAT_SWAP_FAILED, "TRAT_SWAP_FAILED")1097         sFailCauseMap.put(TRAT_SWAP_FAILED, "TRAT_SWAP_FAILED");
sFailCauseMap.put(EHRPD_TO_HRPD_FALLBACK, "EHRPD_TO_HRPD_FALLBACK")1098         sFailCauseMap.put(EHRPD_TO_HRPD_FALLBACK, "EHRPD_TO_HRPD_FALLBACK");
sFailCauseMap.put(MIP_CONFIG_FAILURE, "MIP_CONFIG_FAILURE")1099         sFailCauseMap.put(MIP_CONFIG_FAILURE, "MIP_CONFIG_FAILURE");
sFailCauseMap.put(PDN_INACTIVITY_TIMER_EXPIRED, "PDN_INACTIVITY_TIMER_EXPIRED")1100         sFailCauseMap.put(PDN_INACTIVITY_TIMER_EXPIRED, "PDN_INACTIVITY_TIMER_EXPIRED");
sFailCauseMap.put(MAX_IPV4_CONNECTIONS, "MAX_IPV4_CONNECTIONS")1101         sFailCauseMap.put(MAX_IPV4_CONNECTIONS, "MAX_IPV4_CONNECTIONS");
sFailCauseMap.put(MAX_IPV6_CONNECTIONS, "MAX_IPV6_CONNECTIONS")1102         sFailCauseMap.put(MAX_IPV6_CONNECTIONS, "MAX_IPV6_CONNECTIONS");
sFailCauseMap.put(APN_MISMATCH, "APN_MISMATCH")1103         sFailCauseMap.put(APN_MISMATCH, "APN_MISMATCH");
sFailCauseMap.put(IP_VERSION_MISMATCH, "IP_VERSION_MISMATCH")1104         sFailCauseMap.put(IP_VERSION_MISMATCH, "IP_VERSION_MISMATCH");
sFailCauseMap.put(DUN_CALL_DISALLOWED, "DUN_CALL_DISALLOWED")1105         sFailCauseMap.put(DUN_CALL_DISALLOWED, "DUN_CALL_DISALLOWED");
sFailCauseMap.put(INTERNAL_EPC_NONEPC_TRANSITION, "INTERNAL_EPC_NONEPC_TRANSITION")1106         sFailCauseMap.put(INTERNAL_EPC_NONEPC_TRANSITION, "INTERNAL_EPC_NONEPC_TRANSITION");
sFailCauseMap.put(INTERFACE_IN_USE, "INTERFACE_IN_USE")1107         sFailCauseMap.put(INTERFACE_IN_USE, "INTERFACE_IN_USE");
sFailCauseMap.put(APN_DISALLOWED_ON_ROAMING, "APN_DISALLOWED_ON_ROAMING")1108         sFailCauseMap.put(APN_DISALLOWED_ON_ROAMING, "APN_DISALLOWED_ON_ROAMING");
sFailCauseMap.put(APN_PARAMETERS_CHANGED, "APN_PARAMETERS_CHANGED")1109         sFailCauseMap.put(APN_PARAMETERS_CHANGED, "APN_PARAMETERS_CHANGED");
sFailCauseMap.put(NULL_APN_DISALLOWED, "NULL_APN_DISALLOWED")1110         sFailCauseMap.put(NULL_APN_DISALLOWED, "NULL_APN_DISALLOWED");
sFailCauseMap.put(THERMAL_MITIGATION, "THERMAL_MITIGATION")1111         sFailCauseMap.put(THERMAL_MITIGATION, "THERMAL_MITIGATION");
sFailCauseMap.put(DATA_SETTINGS_DISABLED, "DATA_SETTINGS_DISABLED")1112         sFailCauseMap.put(DATA_SETTINGS_DISABLED, "DATA_SETTINGS_DISABLED");
sFailCauseMap.put(DATA_ROAMING_SETTINGS_DISABLED, "DATA_ROAMING_SETTINGS_DISABLED")1113         sFailCauseMap.put(DATA_ROAMING_SETTINGS_DISABLED, "DATA_ROAMING_SETTINGS_DISABLED");
sFailCauseMap.put(DDS_SWITCHED, "DDS_SWITCHED")1114         sFailCauseMap.put(DDS_SWITCHED, "DDS_SWITCHED");
sFailCauseMap.put(FORBIDDEN_APN_NAME, "FORBIDDEN_APN_NAME")1115         sFailCauseMap.put(FORBIDDEN_APN_NAME, "FORBIDDEN_APN_NAME");
sFailCauseMap.put(DDS_SWITCH_IN_PROGRESS, "DDS_SWITCH_IN_PROGRESS")1116         sFailCauseMap.put(DDS_SWITCH_IN_PROGRESS, "DDS_SWITCH_IN_PROGRESS");
sFailCauseMap.put(CALL_DISALLOWED_IN_ROAMING, "CALL_DISALLOWED_IN_ROAMING")1117         sFailCauseMap.put(CALL_DISALLOWED_IN_ROAMING, "CALL_DISALLOWED_IN_ROAMING");
sFailCauseMap.put(NON_IP_NOT_SUPPORTED, "NON_IP_NOT_SUPPORTED")1118         sFailCauseMap.put(NON_IP_NOT_SUPPORTED, "NON_IP_NOT_SUPPORTED");
sFailCauseMap.put(PDN_NON_IP_CALL_THROTTLED, "PDN_NON_IP_CALL_THROTTLED")1119         sFailCauseMap.put(PDN_NON_IP_CALL_THROTTLED, "PDN_NON_IP_CALL_THROTTLED");
sFailCauseMap.put(PDN_NON_IP_CALL_DISALLOWED, "PDN_NON_IP_CALL_DISALLOWED")1120         sFailCauseMap.put(PDN_NON_IP_CALL_DISALLOWED, "PDN_NON_IP_CALL_DISALLOWED");
sFailCauseMap.put(CDMA_LOCK, "CDMA_LOCK")1121         sFailCauseMap.put(CDMA_LOCK, "CDMA_LOCK");
sFailCauseMap.put(CDMA_INTERCEPT, "CDMA_INTERCEPT")1122         sFailCauseMap.put(CDMA_INTERCEPT, "CDMA_INTERCEPT");
sFailCauseMap.put(CDMA_REORDER, "CDMA_REORDER")1123         sFailCauseMap.put(CDMA_REORDER, "CDMA_REORDER");
sFailCauseMap.put(CDMA_RELEASE_DUE_TO_SO_REJECTION, "CDMA_RELEASE_DUE_TO_SO_REJECTION")1124         sFailCauseMap.put(CDMA_RELEASE_DUE_TO_SO_REJECTION, "CDMA_RELEASE_DUE_TO_SO_REJECTION");
sFailCauseMap.put(CDMA_INCOMING_CALL, "CDMA_INCOMING_CALL")1125         sFailCauseMap.put(CDMA_INCOMING_CALL, "CDMA_INCOMING_CALL");
sFailCauseMap.put(CDMA_ALERT_STOP, "CDMA_ALERT_STOP")1126         sFailCauseMap.put(CDMA_ALERT_STOP, "CDMA_ALERT_STOP");
sFailCauseMap.put(CHANNEL_ACQUISITION_FAILURE, "CHANNEL_ACQUISITION_FAILURE")1127         sFailCauseMap.put(CHANNEL_ACQUISITION_FAILURE, "CHANNEL_ACQUISITION_FAILURE");
sFailCauseMap.put(MAX_ACCESS_PROBE, "MAX_ACCESS_PROBE")1128         sFailCauseMap.put(MAX_ACCESS_PROBE, "MAX_ACCESS_PROBE");
sFailCauseMap.put(CONCURRENT_SERVICE_NOT_SUPPORTED_BY_BASE_STATION, "CONCURRENT_SERVICE_NOT_SUPPORTED_BY_BASE_STATION")1129         sFailCauseMap.put(CONCURRENT_SERVICE_NOT_SUPPORTED_BY_BASE_STATION,
1130                 "CONCURRENT_SERVICE_NOT_SUPPORTED_BY_BASE_STATION");
sFailCauseMap.put(NO_RESPONSE_FROM_BASE_STATION, "NO_RESPONSE_FROM_BASE_STATION")1131         sFailCauseMap.put(NO_RESPONSE_FROM_BASE_STATION, "NO_RESPONSE_FROM_BASE_STATION");
sFailCauseMap.put(REJECTED_BY_BASE_STATION, "REJECTED_BY_BASE_STATION")1132         sFailCauseMap.put(REJECTED_BY_BASE_STATION, "REJECTED_BY_BASE_STATION");
sFailCauseMap.put(CONCURRENT_SERVICES_INCOMPATIBLE, "CONCURRENT_SERVICES_INCOMPATIBLE")1133         sFailCauseMap.put(CONCURRENT_SERVICES_INCOMPATIBLE, "CONCURRENT_SERVICES_INCOMPATIBLE");
sFailCauseMap.put(NO_CDMA_SERVICE, "NO_CDMA_SERVICE")1134         sFailCauseMap.put(NO_CDMA_SERVICE, "NO_CDMA_SERVICE");
sFailCauseMap.put(RUIM_NOT_PRESENT, "RUIM_NOT_PRESENT")1135         sFailCauseMap.put(RUIM_NOT_PRESENT, "RUIM_NOT_PRESENT");
sFailCauseMap.put(CDMA_RETRY_ORDER, "CDMA_RETRY_ORDER")1136         sFailCauseMap.put(CDMA_RETRY_ORDER, "CDMA_RETRY_ORDER");
sFailCauseMap.put(ACCESS_BLOCK, "ACCESS_BLOCK")1137         sFailCauseMap.put(ACCESS_BLOCK, "ACCESS_BLOCK");
sFailCauseMap.put(ACCESS_BLOCK_ALL, "ACCESS_BLOCK_ALL")1138         sFailCauseMap.put(ACCESS_BLOCK_ALL, "ACCESS_BLOCK_ALL");
sFailCauseMap.put(IS707B_MAX_ACCESS_PROBES, "IS707B_MAX_ACCESS_PROBES")1139         sFailCauseMap.put(IS707B_MAX_ACCESS_PROBES, "IS707B_MAX_ACCESS_PROBES");
sFailCauseMap.put(THERMAL_EMERGENCY, "THERMAL_EMERGENCY")1140         sFailCauseMap.put(THERMAL_EMERGENCY, "THERMAL_EMERGENCY");
sFailCauseMap.put(CONCURRENT_SERVICES_NOT_ALLOWED, "CONCURRENT_SERVICES_NOT_ALLOWED")1141         sFailCauseMap.put(CONCURRENT_SERVICES_NOT_ALLOWED, "CONCURRENT_SERVICES_NOT_ALLOWED");
sFailCauseMap.put(INCOMING_CALL_REJECTED, "INCOMING_CALL_REJECTED")1142         sFailCauseMap.put(INCOMING_CALL_REJECTED, "INCOMING_CALL_REJECTED");
sFailCauseMap.put(NO_SERVICE_ON_GATEWAY, "NO_SERVICE_ON_GATEWAY")1143         sFailCauseMap.put(NO_SERVICE_ON_GATEWAY, "NO_SERVICE_ON_GATEWAY");
sFailCauseMap.put(NO_GPRS_CONTEXT, "NO_GPRS_CONTEXT")1144         sFailCauseMap.put(NO_GPRS_CONTEXT, "NO_GPRS_CONTEXT");
sFailCauseMap.put(ILLEGAL_MS, "ILLEGAL_MS")1145         sFailCauseMap.put(ILLEGAL_MS, "ILLEGAL_MS");
sFailCauseMap.put(ILLEGAL_ME, "ILLEGAL_ME")1146         sFailCauseMap.put(ILLEGAL_ME, "ILLEGAL_ME");
sFailCauseMap.put(GPRS_SERVICES_AND_NON_GPRS_SERVICES_NOT_ALLOWED, "GPRS_SERVICES_AND_NON_GPRS_SERVICES_NOT_ALLOWED")1147         sFailCauseMap.put(GPRS_SERVICES_AND_NON_GPRS_SERVICES_NOT_ALLOWED,
1148                 "GPRS_SERVICES_AND_NON_GPRS_SERVICES_NOT_ALLOWED");
sFailCauseMap.put(GPRS_SERVICES_NOT_ALLOWED, "GPRS_SERVICES_NOT_ALLOWED")1149         sFailCauseMap.put(GPRS_SERVICES_NOT_ALLOWED, "GPRS_SERVICES_NOT_ALLOWED");
sFailCauseMap.put(MS_IDENTITY_CANNOT_BE_DERIVED_BY_THE_NETWORK, "MS_IDENTITY_CANNOT_BE_DERIVED_BY_THE_NETWORK")1150         sFailCauseMap.put(MS_IDENTITY_CANNOT_BE_DERIVED_BY_THE_NETWORK,
1151                 "MS_IDENTITY_CANNOT_BE_DERIVED_BY_THE_NETWORK");
sFailCauseMap.put(IMPLICITLY_DETACHED, "IMPLICITLY_DETACHED")1152         sFailCauseMap.put(IMPLICITLY_DETACHED, "IMPLICITLY_DETACHED");
sFailCauseMap.put(PLMN_NOT_ALLOWED, "PLMN_NOT_ALLOWED")1153         sFailCauseMap.put(PLMN_NOT_ALLOWED, "PLMN_NOT_ALLOWED");
sFailCauseMap.put(LOCATION_AREA_NOT_ALLOWED, "LOCATION_AREA_NOT_ALLOWED")1154         sFailCauseMap.put(LOCATION_AREA_NOT_ALLOWED, "LOCATION_AREA_NOT_ALLOWED");
sFailCauseMap.put(GPRS_SERVICES_NOT_ALLOWED_IN_THIS_PLMN, "GPRS_SERVICES_NOT_ALLOWED_IN_THIS_PLMN")1155         sFailCauseMap.put(GPRS_SERVICES_NOT_ALLOWED_IN_THIS_PLMN,
1156                 "GPRS_SERVICES_NOT_ALLOWED_IN_THIS_PLMN");
sFailCauseMap.put(PDP_DUPLICATE, "PDP_DUPLICATE")1157         sFailCauseMap.put(PDP_DUPLICATE, "PDP_DUPLICATE");
sFailCauseMap.put(UE_RAT_CHANGE, "UE_RAT_CHANGE")1158         sFailCauseMap.put(UE_RAT_CHANGE, "UE_RAT_CHANGE");
sFailCauseMap.put(CONGESTION, "CONGESTION")1159         sFailCauseMap.put(CONGESTION, "CONGESTION");
sFailCauseMap.put(NO_PDP_CONTEXT_ACTIVATED, "NO_PDP_CONTEXT_ACTIVATED")1160         sFailCauseMap.put(NO_PDP_CONTEXT_ACTIVATED, "NO_PDP_CONTEXT_ACTIVATED");
sFailCauseMap.put(ACCESS_CLASS_DSAC_REJECTION, "ACCESS_CLASS_DSAC_REJECTION")1161         sFailCauseMap.put(ACCESS_CLASS_DSAC_REJECTION, "ACCESS_CLASS_DSAC_REJECTION");
sFailCauseMap.put(PDP_ACTIVATE_MAX_RETRY_FAILED, "PDP_ACTIVATE_MAX_RETRY_FAILED")1162         sFailCauseMap.put(PDP_ACTIVATE_MAX_RETRY_FAILED, "PDP_ACTIVATE_MAX_RETRY_FAILED");
sFailCauseMap.put(RADIO_ACCESS_BEARER_FAILURE, "RADIO_ACCESS_BEARER_FAILURE")1163         sFailCauseMap.put(RADIO_ACCESS_BEARER_FAILURE, "RADIO_ACCESS_BEARER_FAILURE");
sFailCauseMap.put(ESM_UNKNOWN_EPS_BEARER_CONTEXT, "ESM_UNKNOWN_EPS_BEARER_CONTEXT")1164         sFailCauseMap.put(ESM_UNKNOWN_EPS_BEARER_CONTEXT, "ESM_UNKNOWN_EPS_BEARER_CONTEXT");
sFailCauseMap.put(DRB_RELEASED_BY_RRC, "DRB_RELEASED_BY_RRC")1165         sFailCauseMap.put(DRB_RELEASED_BY_RRC, "DRB_RELEASED_BY_RRC");
sFailCauseMap.put(CONNECTION_RELEASED, "CONNECTION_RELEASED")1166         sFailCauseMap.put(CONNECTION_RELEASED, "CONNECTION_RELEASED");
sFailCauseMap.put(EMM_DETACHED, "EMM_DETACHED")1167         sFailCauseMap.put(EMM_DETACHED, "EMM_DETACHED");
sFailCauseMap.put(EMM_ATTACH_FAILED, "EMM_ATTACH_FAILED")1168         sFailCauseMap.put(EMM_ATTACH_FAILED, "EMM_ATTACH_FAILED");
sFailCauseMap.put(EMM_ATTACH_STARTED, "EMM_ATTACH_STARTED")1169         sFailCauseMap.put(EMM_ATTACH_STARTED, "EMM_ATTACH_STARTED");
sFailCauseMap.put(LTE_NAS_SERVICE_REQUEST_FAILED, "LTE_NAS_SERVICE_REQUEST_FAILED")1170         sFailCauseMap.put(LTE_NAS_SERVICE_REQUEST_FAILED, "LTE_NAS_SERVICE_REQUEST_FAILED");
sFailCauseMap.put(DUPLICATE_BEARER_ID, "DUPLICATE_BEARER_ID")1171         sFailCauseMap.put(DUPLICATE_BEARER_ID, "DUPLICATE_BEARER_ID");
sFailCauseMap.put(ESM_COLLISION_SCENARIOS, "ESM_COLLISION_SCENARIOS")1172         sFailCauseMap.put(ESM_COLLISION_SCENARIOS, "ESM_COLLISION_SCENARIOS");
sFailCauseMap.put(ESM_BEARER_DEACTIVATED_TO_SYNC_WITH_NETWORK, "ESM_BEARER_DEACTIVATED_TO_SYNC_WITH_NETWORK")1173         sFailCauseMap.put(ESM_BEARER_DEACTIVATED_TO_SYNC_WITH_NETWORK,
1174                 "ESM_BEARER_DEACTIVATED_TO_SYNC_WITH_NETWORK");
sFailCauseMap.put(ESM_NW_ACTIVATED_DED_BEARER_WITH_ID_OF_DEF_BEARER, "ESM_NW_ACTIVATED_DED_BEARER_WITH_ID_OF_DEF_BEARER")1175         sFailCauseMap.put(ESM_NW_ACTIVATED_DED_BEARER_WITH_ID_OF_DEF_BEARER,
1176                 "ESM_NW_ACTIVATED_DED_BEARER_WITH_ID_OF_DEF_BEARER");
sFailCauseMap.put(ESM_BAD_OTA_MESSAGE, "ESM_BAD_OTA_MESSAGE")1177         sFailCauseMap.put(ESM_BAD_OTA_MESSAGE, "ESM_BAD_OTA_MESSAGE");
sFailCauseMap.put(ESM_DOWNLOAD_SERVER_REJECTED_THE_CALL, "ESM_DOWNLOAD_SERVER_REJECTED_THE_CALL")1178         sFailCauseMap.put(ESM_DOWNLOAD_SERVER_REJECTED_THE_CALL,
1179                 "ESM_DOWNLOAD_SERVER_REJECTED_THE_CALL");
sFailCauseMap.put(ESM_CONTEXT_TRANSFERRED_DUE_TO_IRAT, "ESM_CONTEXT_TRANSFERRED_DUE_TO_IRAT")1180         sFailCauseMap.put(ESM_CONTEXT_TRANSFERRED_DUE_TO_IRAT,
1181                 "ESM_CONTEXT_TRANSFERRED_DUE_TO_IRAT");
sFailCauseMap.put(DS_EXPLICIT_DEACTIVATION, "DS_EXPLICIT_DEACTIVATION")1182         sFailCauseMap.put(DS_EXPLICIT_DEACTIVATION, "DS_EXPLICIT_DEACTIVATION");
sFailCauseMap.put(ESM_LOCAL_CAUSE_NONE, "ESM_LOCAL_CAUSE_NONE")1183         sFailCauseMap.put(ESM_LOCAL_CAUSE_NONE, "ESM_LOCAL_CAUSE_NONE");
sFailCauseMap.put(LTE_THROTTLING_NOT_REQUIRED, "LTE_THROTTLING_NOT_REQUIRED")1184         sFailCauseMap.put(LTE_THROTTLING_NOT_REQUIRED, "LTE_THROTTLING_NOT_REQUIRED");
sFailCauseMap.put(ACCESS_CONTROL_LIST_CHECK_FAILURE, "ACCESS_CONTROL_LIST_CHECK_FAILURE")1185         sFailCauseMap.put(ACCESS_CONTROL_LIST_CHECK_FAILURE,
1186                 "ACCESS_CONTROL_LIST_CHECK_FAILURE");
sFailCauseMap.put(SERVICE_NOT_ALLOWED_ON_PLMN, "SERVICE_NOT_ALLOWED_ON_PLMN")1187         sFailCauseMap.put(SERVICE_NOT_ALLOWED_ON_PLMN, "SERVICE_NOT_ALLOWED_ON_PLMN");
sFailCauseMap.put(EMM_T3417_EXPIRED, "EMM_T3417_EXPIRED")1188         sFailCauseMap.put(EMM_T3417_EXPIRED, "EMM_T3417_EXPIRED");
sFailCauseMap.put(EMM_T3417_EXT_EXPIRED, "EMM_T3417_EXT_EXPIRED")1189         sFailCauseMap.put(EMM_T3417_EXT_EXPIRED, "EMM_T3417_EXT_EXPIRED");
sFailCauseMap.put(RRC_UPLINK_DATA_TRANSMISSION_FAILURE, "RRC_UPLINK_DATA_TRANSMISSION_FAILURE")1190         sFailCauseMap.put(RRC_UPLINK_DATA_TRANSMISSION_FAILURE,
1191                 "RRC_UPLINK_DATA_TRANSMISSION_FAILURE");
sFailCauseMap.put(RRC_UPLINK_DELIVERY_FAILED_DUE_TO_HANDOVER, "RRC_UPLINK_DELIVERY_FAILED_DUE_TO_HANDOVER")1192         sFailCauseMap.put(RRC_UPLINK_DELIVERY_FAILED_DUE_TO_HANDOVER,
1193                 "RRC_UPLINK_DELIVERY_FAILED_DUE_TO_HANDOVER");
sFailCauseMap.put(RRC_UPLINK_CONNECTION_RELEASE, "RRC_UPLINK_CONNECTION_RELEASE")1194         sFailCauseMap.put(RRC_UPLINK_CONNECTION_RELEASE, "RRC_UPLINK_CONNECTION_RELEASE");
sFailCauseMap.put(RRC_UPLINK_RADIO_LINK_FAILURE, "RRC_UPLINK_RADIO_LINK_FAILURE")1195         sFailCauseMap.put(RRC_UPLINK_RADIO_LINK_FAILURE, "RRC_UPLINK_RADIO_LINK_FAILURE");
sFailCauseMap.put(RRC_UPLINK_ERROR_REQUEST_FROM_NAS, "RRC_UPLINK_ERROR_REQUEST_FROM_NAS")1196         sFailCauseMap.put(RRC_UPLINK_ERROR_REQUEST_FROM_NAS, "RRC_UPLINK_ERROR_REQUEST_FROM_NAS");
sFailCauseMap.put(RRC_CONNECTION_ACCESS_STRATUM_FAILURE, "RRC_CONNECTION_ACCESS_STRATUM_FAILURE")1197         sFailCauseMap.put(RRC_CONNECTION_ACCESS_STRATUM_FAILURE,
1198                 "RRC_CONNECTION_ACCESS_STRATUM_FAILURE");
sFailCauseMap.put(RRC_CONNECTION_ANOTHER_PROCEDURE_IN_PROGRESS, "RRC_CONNECTION_ANOTHER_PROCEDURE_IN_PROGRESS")1199         sFailCauseMap.put(RRC_CONNECTION_ANOTHER_PROCEDURE_IN_PROGRESS,
1200                 "RRC_CONNECTION_ANOTHER_PROCEDURE_IN_PROGRESS");
sFailCauseMap.put(RRC_CONNECTION_ACCESS_BARRED, "RRC_CONNECTION_ACCESS_BARRED")1201         sFailCauseMap.put(RRC_CONNECTION_ACCESS_BARRED, "RRC_CONNECTION_ACCESS_BARRED");
sFailCauseMap.put(RRC_CONNECTION_CELL_RESELECTION, "RRC_CONNECTION_CELL_RESELECTION")1202         sFailCauseMap.put(RRC_CONNECTION_CELL_RESELECTION, "RRC_CONNECTION_CELL_RESELECTION");
sFailCauseMap.put(RRC_CONNECTION_CONFIG_FAILURE, "RRC_CONNECTION_CONFIG_FAILURE")1203         sFailCauseMap.put(RRC_CONNECTION_CONFIG_FAILURE, "RRC_CONNECTION_CONFIG_FAILURE");
sFailCauseMap.put(RRC_CONNECTION_TIMER_EXPIRED, "RRC_CONNECTION_TIMER_EXPIRED")1204         sFailCauseMap.put(RRC_CONNECTION_TIMER_EXPIRED, "RRC_CONNECTION_TIMER_EXPIRED");
sFailCauseMap.put(RRC_CONNECTION_LINK_FAILURE, "RRC_CONNECTION_LINK_FAILURE")1205         sFailCauseMap.put(RRC_CONNECTION_LINK_FAILURE, "RRC_CONNECTION_LINK_FAILURE");
sFailCauseMap.put(RRC_CONNECTION_CELL_NOT_CAMPED, "RRC_CONNECTION_CELL_NOT_CAMPED")1206         sFailCauseMap.put(RRC_CONNECTION_CELL_NOT_CAMPED, "RRC_CONNECTION_CELL_NOT_CAMPED");
sFailCauseMap.put(RRC_CONNECTION_SYSTEM_INTERVAL_FAILURE, "RRC_CONNECTION_SYSTEM_INTERVAL_FAILURE")1207         sFailCauseMap.put(RRC_CONNECTION_SYSTEM_INTERVAL_FAILURE,
1208                 "RRC_CONNECTION_SYSTEM_INTERVAL_FAILURE");
sFailCauseMap.put(RRC_CONNECTION_REJECT_BY_NETWORK, "RRC_CONNECTION_REJECT_BY_NETWORK")1209         sFailCauseMap.put(RRC_CONNECTION_REJECT_BY_NETWORK, "RRC_CONNECTION_REJECT_BY_NETWORK");
sFailCauseMap.put(RRC_CONNECTION_NORMAL_RELEASE, "RRC_CONNECTION_NORMAL_RELEASE")1210         sFailCauseMap.put(RRC_CONNECTION_NORMAL_RELEASE, "RRC_CONNECTION_NORMAL_RELEASE");
sFailCauseMap.put(RRC_CONNECTION_RADIO_LINK_FAILURE, "RRC_CONNECTION_RADIO_LINK_FAILURE")1211         sFailCauseMap.put(RRC_CONNECTION_RADIO_LINK_FAILURE, "RRC_CONNECTION_RADIO_LINK_FAILURE");
sFailCauseMap.put(RRC_CONNECTION_REESTABLISHMENT_FAILURE, "RRC_CONNECTION_REESTABLISHMENT_FAILURE")1212         sFailCauseMap.put(RRC_CONNECTION_REESTABLISHMENT_FAILURE,
1213                 "RRC_CONNECTION_REESTABLISHMENT_FAILURE");
sFailCauseMap.put(RRC_CONNECTION_OUT_OF_SERVICE_DURING_CELL_REGISTER, "RRC_CONNECTION_OUT_OF_SERVICE_DURING_CELL_REGISTER")1214         sFailCauseMap.put(RRC_CONNECTION_OUT_OF_SERVICE_DURING_CELL_REGISTER,
1215                 "RRC_CONNECTION_OUT_OF_SERVICE_DURING_CELL_REGISTER");
sFailCauseMap.put(RRC_CONNECTION_ABORT_REQUEST, "RRC_CONNECTION_ABORT_REQUEST")1216         sFailCauseMap.put(RRC_CONNECTION_ABORT_REQUEST, "RRC_CONNECTION_ABORT_REQUEST");
sFailCauseMap.put(RRC_CONNECTION_SYSTEM_INFORMATION_BLOCK_READ_ERROR, "RRC_CONNECTION_SYSTEM_INFORMATION_BLOCK_READ_ERROR")1217         sFailCauseMap.put(RRC_CONNECTION_SYSTEM_INFORMATION_BLOCK_READ_ERROR,
1218                 "RRC_CONNECTION_SYSTEM_INFORMATION_BLOCK_READ_ERROR");
sFailCauseMap.put(NETWORK_INITIATED_DETACH_WITH_AUTO_REATTACH, "NETWORK_INITIATED_DETACH_WITH_AUTO_REATTACH")1219         sFailCauseMap.put(NETWORK_INITIATED_DETACH_WITH_AUTO_REATTACH,
1220                 "NETWORK_INITIATED_DETACH_WITH_AUTO_REATTACH");
sFailCauseMap.put(NETWORK_INITIATED_DETACH_NO_AUTO_REATTACH, "NETWORK_INITIATED_DETACH_NO_AUTO_REATTACH")1221         sFailCauseMap.put(NETWORK_INITIATED_DETACH_NO_AUTO_REATTACH,
1222                 "NETWORK_INITIATED_DETACH_NO_AUTO_REATTACH");
sFailCauseMap.put(ESM_PROCEDURE_TIME_OUT, "ESM_PROCEDURE_TIME_OUT")1223         sFailCauseMap.put(ESM_PROCEDURE_TIME_OUT, "ESM_PROCEDURE_TIME_OUT");
sFailCauseMap.put(INVALID_CONNECTION_ID, "INVALID_CONNECTION_ID")1224         sFailCauseMap.put(INVALID_CONNECTION_ID, "INVALID_CONNECTION_ID");
sFailCauseMap.put(MAXIMIUM_NSAPIS_EXCEEDED, "MAXIMIUM_NSAPIS_EXCEEDED")1225         sFailCauseMap.put(MAXIMIUM_NSAPIS_EXCEEDED, "MAXIMIUM_NSAPIS_EXCEEDED");
sFailCauseMap.put(INVALID_PRIMARY_NSAPI, "INVALID_PRIMARY_NSAPI")1226         sFailCauseMap.put(INVALID_PRIMARY_NSAPI, "INVALID_PRIMARY_NSAPI");
sFailCauseMap.put(CANNOT_ENCODE_OTA_MESSAGE, "CANNOT_ENCODE_OTA_MESSAGE")1227         sFailCauseMap.put(CANNOT_ENCODE_OTA_MESSAGE, "CANNOT_ENCODE_OTA_MESSAGE");
sFailCauseMap.put(RADIO_ACCESS_BEARER_SETUP_FAILURE, "RADIO_ACCESS_BEARER_SETUP_FAILURE")1228         sFailCauseMap.put(RADIO_ACCESS_BEARER_SETUP_FAILURE, "RADIO_ACCESS_BEARER_SETUP_FAILURE");
sFailCauseMap.put(PDP_ESTABLISH_TIMEOUT_EXPIRED, "PDP_ESTABLISH_TIMEOUT_EXPIRED")1229         sFailCauseMap.put(PDP_ESTABLISH_TIMEOUT_EXPIRED, "PDP_ESTABLISH_TIMEOUT_EXPIRED");
sFailCauseMap.put(PDP_MODIFY_TIMEOUT_EXPIRED, "PDP_MODIFY_TIMEOUT_EXPIRED")1230         sFailCauseMap.put(PDP_MODIFY_TIMEOUT_EXPIRED, "PDP_MODIFY_TIMEOUT_EXPIRED");
sFailCauseMap.put(PDP_INACTIVE_TIMEOUT_EXPIRED, "PDP_INACTIVE_TIMEOUT_EXPIRED")1231         sFailCauseMap.put(PDP_INACTIVE_TIMEOUT_EXPIRED, "PDP_INACTIVE_TIMEOUT_EXPIRED");
sFailCauseMap.put(PDP_LOWERLAYER_ERROR, "PDP_LOWERLAYER_ERROR")1232         sFailCauseMap.put(PDP_LOWERLAYER_ERROR, "PDP_LOWERLAYER_ERROR");
sFailCauseMap.put(PDP_MODIFY_COLLISION, "PDP_MODIFY_COLLISION")1233         sFailCauseMap.put(PDP_MODIFY_COLLISION, "PDP_MODIFY_COLLISION");
sFailCauseMap.put(MAXINUM_SIZE_OF_L2_MESSAGE_EXCEEDED, "MAXINUM_SIZE_OF_L2_MESSAGE_EXCEEDED")1234         sFailCauseMap.put(MAXINUM_SIZE_OF_L2_MESSAGE_EXCEEDED,
1235                 "MAXINUM_SIZE_OF_L2_MESSAGE_EXCEEDED");
sFailCauseMap.put(NAS_REQUEST_REJECTED_BY_NETWORK, "NAS_REQUEST_REJECTED_BY_NETWORK")1236         sFailCauseMap.put(NAS_REQUEST_REJECTED_BY_NETWORK, "NAS_REQUEST_REJECTED_BY_NETWORK");
sFailCauseMap.put(RRC_CONNECTION_INVALID_REQUEST, "RRC_CONNECTION_INVALID_REQUEST")1237         sFailCauseMap.put(RRC_CONNECTION_INVALID_REQUEST, "RRC_CONNECTION_INVALID_REQUEST");
sFailCauseMap.put(RRC_CONNECTION_TRACKING_AREA_ID_CHANGED, "RRC_CONNECTION_TRACKING_AREA_ID_CHANGED")1238         sFailCauseMap.put(RRC_CONNECTION_TRACKING_AREA_ID_CHANGED,
1239                 "RRC_CONNECTION_TRACKING_AREA_ID_CHANGED");
sFailCauseMap.put(RRC_CONNECTION_RF_UNAVAILABLE, "RRC_CONNECTION_RF_UNAVAILABLE")1240         sFailCauseMap.put(RRC_CONNECTION_RF_UNAVAILABLE, "RRC_CONNECTION_RF_UNAVAILABLE");
sFailCauseMap.put(RRC_CONNECTION_ABORTED_DUE_TO_IRAT_CHANGE, "RRC_CONNECTION_ABORTED_DUE_TO_IRAT_CHANGE")1241         sFailCauseMap.put(RRC_CONNECTION_ABORTED_DUE_TO_IRAT_CHANGE,
1242                 "RRC_CONNECTION_ABORTED_DUE_TO_IRAT_CHANGE");
sFailCauseMap.put(RRC_CONNECTION_RELEASED_SECURITY_NOT_ACTIVE, "RRC_CONNECTION_RELEASED_SECURITY_NOT_ACTIVE")1243         sFailCauseMap.put(RRC_CONNECTION_RELEASED_SECURITY_NOT_ACTIVE,
1244                 "RRC_CONNECTION_RELEASED_SECURITY_NOT_ACTIVE");
sFailCauseMap.put(RRC_CONNECTION_ABORTED_AFTER_HANDOVER, "RRC_CONNECTION_ABORTED_AFTER_HANDOVER")1245         sFailCauseMap.put(RRC_CONNECTION_ABORTED_AFTER_HANDOVER,
1246                 "RRC_CONNECTION_ABORTED_AFTER_HANDOVER");
sFailCauseMap.put(RRC_CONNECTION_ABORTED_AFTER_IRAT_CELL_CHANGE, "RRC_CONNECTION_ABORTED_AFTER_IRAT_CELL_CHANGE")1247         sFailCauseMap.put(RRC_CONNECTION_ABORTED_AFTER_IRAT_CELL_CHANGE,
1248                 "RRC_CONNECTION_ABORTED_AFTER_IRAT_CELL_CHANGE");
sFailCauseMap.put(RRC_CONNECTION_ABORTED_DURING_IRAT_CELL_CHANGE, "RRC_CONNECTION_ABORTED_DURING_IRAT_CELL_CHANGE")1249         sFailCauseMap.put(RRC_CONNECTION_ABORTED_DURING_IRAT_CELL_CHANGE,
1250                 "RRC_CONNECTION_ABORTED_DURING_IRAT_CELL_CHANGE");
sFailCauseMap.put(IMSI_UNKNOWN_IN_HOME_SUBSCRIBER_SERVER, "IMSI_UNKNOWN_IN_HOME_SUBSCRIBER_SERVER")1251         sFailCauseMap.put(IMSI_UNKNOWN_IN_HOME_SUBSCRIBER_SERVER,
1252                 "IMSI_UNKNOWN_IN_HOME_SUBSCRIBER_SERVER");
sFailCauseMap.put(IMEI_NOT_ACCEPTED, "IMEI_NOT_ACCEPTED")1253         sFailCauseMap.put(IMEI_NOT_ACCEPTED, "IMEI_NOT_ACCEPTED");
sFailCauseMap.put(EPS_SERVICES_AND_NON_EPS_SERVICES_NOT_ALLOWED, "EPS_SERVICES_AND_NON_EPS_SERVICES_NOT_ALLOWED")1254         sFailCauseMap.put(EPS_SERVICES_AND_NON_EPS_SERVICES_NOT_ALLOWED,
1255                 "EPS_SERVICES_AND_NON_EPS_SERVICES_NOT_ALLOWED");
sFailCauseMap.put(EPS_SERVICES_NOT_ALLOWED_IN_PLMN, "EPS_SERVICES_NOT_ALLOWED_IN_PLMN")1256         sFailCauseMap.put(EPS_SERVICES_NOT_ALLOWED_IN_PLMN, "EPS_SERVICES_NOT_ALLOWED_IN_PLMN");
sFailCauseMap.put(MSC_TEMPORARILY_NOT_REACHABLE, "MSC_TEMPORARILY_NOT_REACHABLE")1257         sFailCauseMap.put(MSC_TEMPORARILY_NOT_REACHABLE, "MSC_TEMPORARILY_NOT_REACHABLE");
sFailCauseMap.put(CS_DOMAIN_NOT_AVAILABLE, "CS_DOMAIN_NOT_AVAILABLE")1258         sFailCauseMap.put(CS_DOMAIN_NOT_AVAILABLE, "CS_DOMAIN_NOT_AVAILABLE");
sFailCauseMap.put(ESM_FAILURE, "ESM_FAILURE")1259         sFailCauseMap.put(ESM_FAILURE, "ESM_FAILURE");
sFailCauseMap.put(MAC_FAILURE, "MAC_FAILURE")1260         sFailCauseMap.put(MAC_FAILURE, "MAC_FAILURE");
sFailCauseMap.put(SYNCHRONIZATION_FAILURE, "SYNCHRONIZATION_FAILURE")1261         sFailCauseMap.put(SYNCHRONIZATION_FAILURE, "SYNCHRONIZATION_FAILURE");
sFailCauseMap.put(UE_SECURITY_CAPABILITIES_MISMATCH, "UE_SECURITY_CAPABILITIES_MISMATCH")1262         sFailCauseMap.put(UE_SECURITY_CAPABILITIES_MISMATCH, "UE_SECURITY_CAPABILITIES_MISMATCH");
sFailCauseMap.put(SECURITY_MODE_REJECTED, "SECURITY_MODE_REJECTED")1263         sFailCauseMap.put(SECURITY_MODE_REJECTED, "SECURITY_MODE_REJECTED");
sFailCauseMap.put(UNACCEPTABLE_NON_EPS_AUTHENTICATION, "UNACCEPTABLE_NON_EPS_AUTHENTICATION")1264         sFailCauseMap.put(UNACCEPTABLE_NON_EPS_AUTHENTICATION,
1265                 "UNACCEPTABLE_NON_EPS_AUTHENTICATION");
sFailCauseMap.put(CS_FALLBACK_CALL_ESTABLISHMENT_NOT_ALLOWED, "CS_FALLBACK_CALL_ESTABLISHMENT_NOT_ALLOWED")1266         sFailCauseMap.put(CS_FALLBACK_CALL_ESTABLISHMENT_NOT_ALLOWED,
1267                 "CS_FALLBACK_CALL_ESTABLISHMENT_NOT_ALLOWED");
sFailCauseMap.put(NO_EPS_BEARER_CONTEXT_ACTIVATED, "NO_EPS_BEARER_CONTEXT_ACTIVATED")1268         sFailCauseMap.put(NO_EPS_BEARER_CONTEXT_ACTIVATED, "NO_EPS_BEARER_CONTEXT_ACTIVATED");
sFailCauseMap.put(INVALID_EMM_STATE, "INVALID_EMM_STATE")1269         sFailCauseMap.put(INVALID_EMM_STATE, "INVALID_EMM_STATE");
sFailCauseMap.put(NAS_LAYER_FAILURE, "NAS_LAYER_FAILURE")1270         sFailCauseMap.put(NAS_LAYER_FAILURE, "NAS_LAYER_FAILURE");
sFailCauseMap.put(MULTIPLE_PDP_CALL_NOT_ALLOWED, "MULTIPLE_PDP_CALL_NOT_ALLOWED")1271         sFailCauseMap.put(MULTIPLE_PDP_CALL_NOT_ALLOWED, "MULTIPLE_PDP_CALL_NOT_ALLOWED");
sFailCauseMap.put(EMBMS_NOT_ENABLED, "EMBMS_NOT_ENABLED")1272         sFailCauseMap.put(EMBMS_NOT_ENABLED, "EMBMS_NOT_ENABLED");
sFailCauseMap.put(IRAT_HANDOVER_FAILED, "IRAT_HANDOVER_FAILED")1273         sFailCauseMap.put(IRAT_HANDOVER_FAILED, "IRAT_HANDOVER_FAILED");
sFailCauseMap.put(EMBMS_REGULAR_DEACTIVATION, "EMBMS_REGULAR_DEACTIVATION")1274         sFailCauseMap.put(EMBMS_REGULAR_DEACTIVATION, "EMBMS_REGULAR_DEACTIVATION");
sFailCauseMap.put(TEST_LOOPBACK_REGULAR_DEACTIVATION, "TEST_LOOPBACK_REGULAR_DEACTIVATION")1275         sFailCauseMap.put(TEST_LOOPBACK_REGULAR_DEACTIVATION, "TEST_LOOPBACK_REGULAR_DEACTIVATION");
sFailCauseMap.put(LOWER_LAYER_REGISTRATION_FAILURE, "LOWER_LAYER_REGISTRATION_FAILURE")1276         sFailCauseMap.put(LOWER_LAYER_REGISTRATION_FAILURE, "LOWER_LAYER_REGISTRATION_FAILURE");
sFailCauseMap.put(DATA_PLAN_EXPIRED, "DATA_PLAN_EXPIRED")1277         sFailCauseMap.put(DATA_PLAN_EXPIRED, "DATA_PLAN_EXPIRED");
sFailCauseMap.put(UMTS_HANDOVER_TO_IWLAN, "UMTS_HANDOVER_TO_IWLAN")1278         sFailCauseMap.put(UMTS_HANDOVER_TO_IWLAN, "UMTS_HANDOVER_TO_IWLAN");
sFailCauseMap.put(EVDO_CONNECTION_DENY_BY_GENERAL_OR_NETWORK_BUSY, "EVDO_CONNECTION_DENY_BY_GENERAL_OR_NETWORK_BUSY")1279         sFailCauseMap.put(EVDO_CONNECTION_DENY_BY_GENERAL_OR_NETWORK_BUSY,
1280                 "EVDO_CONNECTION_DENY_BY_GENERAL_OR_NETWORK_BUSY");
sFailCauseMap.put(EVDO_CONNECTION_DENY_BY_BILLING_OR_AUTHENTICATION_FAILURE, "EVDO_CONNECTION_DENY_BY_BILLING_OR_AUTHENTICATION_FAILURE")1281         sFailCauseMap.put(EVDO_CONNECTION_DENY_BY_BILLING_OR_AUTHENTICATION_FAILURE,
1282                 "EVDO_CONNECTION_DENY_BY_BILLING_OR_AUTHENTICATION_FAILURE");
sFailCauseMap.put(EVDO_HDR_CHANGED, "EVDO_HDR_CHANGED")1283         sFailCauseMap.put(EVDO_HDR_CHANGED, "EVDO_HDR_CHANGED");
sFailCauseMap.put(EVDO_HDR_EXITED, "EVDO_HDR_EXITED")1284         sFailCauseMap.put(EVDO_HDR_EXITED, "EVDO_HDR_EXITED");
sFailCauseMap.put(EVDO_HDR_NO_SESSION, "EVDO_HDR_NO_SESSION")1285         sFailCauseMap.put(EVDO_HDR_NO_SESSION, "EVDO_HDR_NO_SESSION");
sFailCauseMap.put(EVDO_USING_GPS_FIX_INSTEAD_OF_HDR_CALL, "EVDO_USING_GPS_FIX_INSTEAD_OF_HDR_CALL")1286         sFailCauseMap.put(EVDO_USING_GPS_FIX_INSTEAD_OF_HDR_CALL,
1287                 "EVDO_USING_GPS_FIX_INSTEAD_OF_HDR_CALL");
sFailCauseMap.put(EVDO_HDR_CONNECTION_SETUP_TIMEOUT, "EVDO_HDR_CONNECTION_SETUP_TIMEOUT")1288         sFailCauseMap.put(EVDO_HDR_CONNECTION_SETUP_TIMEOUT, "EVDO_HDR_CONNECTION_SETUP_TIMEOUT");
sFailCauseMap.put(FAILED_TO_ACQUIRE_COLOCATED_HDR, "FAILED_TO_ACQUIRE_COLOCATED_HDR")1289         sFailCauseMap.put(FAILED_TO_ACQUIRE_COLOCATED_HDR, "FAILED_TO_ACQUIRE_COLOCATED_HDR");
sFailCauseMap.put(OTASP_COMMIT_IN_PROGRESS, "OTASP_COMMIT_IN_PROGRESS")1290         sFailCauseMap.put(OTASP_COMMIT_IN_PROGRESS, "OTASP_COMMIT_IN_PROGRESS");
sFailCauseMap.put(NO_HYBRID_HDR_SERVICE, "NO_HYBRID_HDR_SERVICE")1291         sFailCauseMap.put(NO_HYBRID_HDR_SERVICE, "NO_HYBRID_HDR_SERVICE");
sFailCauseMap.put(HDR_NO_LOCK_GRANTED, "HDR_NO_LOCK_GRANTED")1292         sFailCauseMap.put(HDR_NO_LOCK_GRANTED, "HDR_NO_LOCK_GRANTED");
sFailCauseMap.put(DBM_OR_SMS_IN_PROGRESS, "DBM_OR_SMS_IN_PROGRESS")1293         sFailCauseMap.put(DBM_OR_SMS_IN_PROGRESS, "DBM_OR_SMS_IN_PROGRESS");
sFailCauseMap.put(HDR_FADE, "HDR_FADE")1294         sFailCauseMap.put(HDR_FADE, "HDR_FADE");
sFailCauseMap.put(HDR_ACCESS_FAILURE, "HDR_ACCESS_FAILURE")1295         sFailCauseMap.put(HDR_ACCESS_FAILURE, "HDR_ACCESS_FAILURE");
sFailCauseMap.put(UNSUPPORTED_1X_PREV, "UNSUPPORTED_1X_PREV")1296         sFailCauseMap.put(UNSUPPORTED_1X_PREV, "UNSUPPORTED_1X_PREV");
sFailCauseMap.put(LOCAL_END, "LOCAL_END")1297         sFailCauseMap.put(LOCAL_END, "LOCAL_END");
sFailCauseMap.put(NO_SERVICE, "NO_SERVICE")1298         sFailCauseMap.put(NO_SERVICE, "NO_SERVICE");
sFailCauseMap.put(FADE, "FADE")1299         sFailCauseMap.put(FADE, "FADE");
sFailCauseMap.put(NORMAL_RELEASE, "NORMAL_RELEASE")1300         sFailCauseMap.put(NORMAL_RELEASE, "NORMAL_RELEASE");
sFailCauseMap.put(ACCESS_ATTEMPT_ALREADY_IN_PROGRESS, "ACCESS_ATTEMPT_ALREADY_IN_PROGRESS")1301         sFailCauseMap.put(ACCESS_ATTEMPT_ALREADY_IN_PROGRESS, "ACCESS_ATTEMPT_ALREADY_IN_PROGRESS");
sFailCauseMap.put(REDIRECTION_OR_HANDOFF_IN_PROGRESS, "REDIRECTION_OR_HANDOFF_IN_PROGRESS")1302         sFailCauseMap.put(REDIRECTION_OR_HANDOFF_IN_PROGRESS, "REDIRECTION_OR_HANDOFF_IN_PROGRESS");
sFailCauseMap.put(EMERGENCY_MODE, "EMERGENCY_MODE")1303         sFailCauseMap.put(EMERGENCY_MODE, "EMERGENCY_MODE");
sFailCauseMap.put(PHONE_IN_USE, "PHONE_IN_USE")1304         sFailCauseMap.put(PHONE_IN_USE, "PHONE_IN_USE");
sFailCauseMap.put(INVALID_MODE, "INVALID_MODE")1305         sFailCauseMap.put(INVALID_MODE, "INVALID_MODE");
sFailCauseMap.put(INVALID_SIM_STATE, "INVALID_SIM_STATE")1306         sFailCauseMap.put(INVALID_SIM_STATE, "INVALID_SIM_STATE");
sFailCauseMap.put(NO_COLLOCATED_HDR, "NO_COLLOCATED_HDR")1307         sFailCauseMap.put(NO_COLLOCATED_HDR, "NO_COLLOCATED_HDR");
sFailCauseMap.put(UE_IS_ENTERING_POWERSAVE_MODE, "UE_IS_ENTERING_POWERSAVE_MODE")1308         sFailCauseMap.put(UE_IS_ENTERING_POWERSAVE_MODE, "UE_IS_ENTERING_POWERSAVE_MODE");
sFailCauseMap.put(DUAL_SWITCH, "DUAL_SWITCH")1309         sFailCauseMap.put(DUAL_SWITCH, "DUAL_SWITCH");
sFailCauseMap.put(PPP_TIMEOUT, "PPP_TIMEOUT")1310         sFailCauseMap.put(PPP_TIMEOUT, "PPP_TIMEOUT");
sFailCauseMap.put(PPP_AUTH_FAILURE, "PPP_AUTH_FAILURE")1311         sFailCauseMap.put(PPP_AUTH_FAILURE, "PPP_AUTH_FAILURE");
sFailCauseMap.put(PPP_OPTION_MISMATCH, "PPP_OPTION_MISMATCH")1312         sFailCauseMap.put(PPP_OPTION_MISMATCH, "PPP_OPTION_MISMATCH");
sFailCauseMap.put(PPP_PAP_FAILURE, "PPP_PAP_FAILURE")1313         sFailCauseMap.put(PPP_PAP_FAILURE, "PPP_PAP_FAILURE");
sFailCauseMap.put(PPP_CHAP_FAILURE, "PPP_CHAP_FAILURE")1314         sFailCauseMap.put(PPP_CHAP_FAILURE, "PPP_CHAP_FAILURE");
sFailCauseMap.put(PPP_CLOSE_IN_PROGRESS, "PPP_CLOSE_IN_PROGRESS")1315         sFailCauseMap.put(PPP_CLOSE_IN_PROGRESS, "PPP_CLOSE_IN_PROGRESS");
sFailCauseMap.put(LIMITED_TO_IPV4, "LIMITED_TO_IPV4")1316         sFailCauseMap.put(LIMITED_TO_IPV4, "LIMITED_TO_IPV4");
sFailCauseMap.put(LIMITED_TO_IPV6, "LIMITED_TO_IPV6")1317         sFailCauseMap.put(LIMITED_TO_IPV6, "LIMITED_TO_IPV6");
sFailCauseMap.put(VSNCP_TIMEOUT, "VSNCP_TIMEOUT")1318         sFailCauseMap.put(VSNCP_TIMEOUT, "VSNCP_TIMEOUT");
sFailCauseMap.put(VSNCP_GEN_ERROR, "VSNCP_GEN_ERROR")1319         sFailCauseMap.put(VSNCP_GEN_ERROR, "VSNCP_GEN_ERROR");
sFailCauseMap.put(VSNCP_APN_UNATHORIZED, "VSNCP_APN_UNATHORIZED")1320         sFailCauseMap.put(VSNCP_APN_UNATHORIZED, "VSNCP_APN_UNATHORIZED");
sFailCauseMap.put(VSNCP_PDN_LIMIT_EXCEEDED, "VSNCP_PDN_LIMIT_EXCEEDED")1321         sFailCauseMap.put(VSNCP_PDN_LIMIT_EXCEEDED, "VSNCP_PDN_LIMIT_EXCEEDED");
sFailCauseMap.put(VSNCP_NO_PDN_GATEWAY_ADDRESS, "VSNCP_NO_PDN_GATEWAY_ADDRESS")1322         sFailCauseMap.put(VSNCP_NO_PDN_GATEWAY_ADDRESS, "VSNCP_NO_PDN_GATEWAY_ADDRESS");
sFailCauseMap.put(VSNCP_PDN_GATEWAY_UNREACHABLE, "VSNCP_PDN_GATEWAY_UNREACHABLE")1323         sFailCauseMap.put(VSNCP_PDN_GATEWAY_UNREACHABLE, "VSNCP_PDN_GATEWAY_UNREACHABLE");
sFailCauseMap.put(VSNCP_PDN_GATEWAY_REJECT, "VSNCP_PDN_GATEWAY_REJECT")1324         sFailCauseMap.put(VSNCP_PDN_GATEWAY_REJECT, "VSNCP_PDN_GATEWAY_REJECT");
sFailCauseMap.put(VSNCP_INSUFFICIENT_PARAMETERS, "VSNCP_INSUFFICIENT_PARAMETERS")1325         sFailCauseMap.put(VSNCP_INSUFFICIENT_PARAMETERS, "VSNCP_INSUFFICIENT_PARAMETERS");
sFailCauseMap.put(VSNCP_RESOURCE_UNAVAILABLE, "VSNCP_RESOURCE_UNAVAILABLE")1326         sFailCauseMap.put(VSNCP_RESOURCE_UNAVAILABLE, "VSNCP_RESOURCE_UNAVAILABLE");
sFailCauseMap.put(VSNCP_ADMINISTRATIVELY_PROHIBITED, "VSNCP_ADMINISTRATIVELY_PROHIBITED")1327         sFailCauseMap.put(VSNCP_ADMINISTRATIVELY_PROHIBITED, "VSNCP_ADMINISTRATIVELY_PROHIBITED");
sFailCauseMap.put(VSNCP_PDN_ID_IN_USE, "VSNCP_PDN_ID_IN_USE")1328         sFailCauseMap.put(VSNCP_PDN_ID_IN_USE, "VSNCP_PDN_ID_IN_USE");
sFailCauseMap.put(VSNCP_SUBSCRIBER_LIMITATION, "VSNCP_SUBSCRIBER_LIMITATION")1329         sFailCauseMap.put(VSNCP_SUBSCRIBER_LIMITATION, "VSNCP_SUBSCRIBER_LIMITATION");
sFailCauseMap.put(VSNCP_PDN_EXISTS_FOR_THIS_APN, "VSNCP_PDN_EXISTS_FOR_THIS_APN")1330         sFailCauseMap.put(VSNCP_PDN_EXISTS_FOR_THIS_APN, "VSNCP_PDN_EXISTS_FOR_THIS_APN");
sFailCauseMap.put(VSNCP_RECONNECT_NOT_ALLOWED, "VSNCP_RECONNECT_NOT_ALLOWED")1331         sFailCauseMap.put(VSNCP_RECONNECT_NOT_ALLOWED, "VSNCP_RECONNECT_NOT_ALLOWED");
sFailCauseMap.put(IPV6_PREFIX_UNAVAILABLE, "IPV6_PREFIX_UNAVAILABLE")1332         sFailCauseMap.put(IPV6_PREFIX_UNAVAILABLE, "IPV6_PREFIX_UNAVAILABLE");
sFailCauseMap.put(HANDOFF_PREFERENCE_CHANGED, "HANDOFF_PREFERENCE_CHANGED")1333         sFailCauseMap.put(HANDOFF_PREFERENCE_CHANGED, "HANDOFF_PREFERENCE_CHANGED");
sFailCauseMap.put(OEM_DCFAILCAUSE_1, "OEM_DCFAILCAUSE_1")1334         sFailCauseMap.put(OEM_DCFAILCAUSE_1, "OEM_DCFAILCAUSE_1");
sFailCauseMap.put(OEM_DCFAILCAUSE_2, "OEM_DCFAILCAUSE_2")1335         sFailCauseMap.put(OEM_DCFAILCAUSE_2, "OEM_DCFAILCAUSE_2");
sFailCauseMap.put(OEM_DCFAILCAUSE_3, "OEM_DCFAILCAUSE_3")1336         sFailCauseMap.put(OEM_DCFAILCAUSE_3, "OEM_DCFAILCAUSE_3");
sFailCauseMap.put(OEM_DCFAILCAUSE_4, "OEM_DCFAILCAUSE_4")1337         sFailCauseMap.put(OEM_DCFAILCAUSE_4, "OEM_DCFAILCAUSE_4");
sFailCauseMap.put(OEM_DCFAILCAUSE_5, "OEM_DCFAILCAUSE_5")1338         sFailCauseMap.put(OEM_DCFAILCAUSE_5, "OEM_DCFAILCAUSE_5");
sFailCauseMap.put(OEM_DCFAILCAUSE_6, "OEM_DCFAILCAUSE_6")1339         sFailCauseMap.put(OEM_DCFAILCAUSE_6, "OEM_DCFAILCAUSE_6");
sFailCauseMap.put(OEM_DCFAILCAUSE_7, "OEM_DCFAILCAUSE_7")1340         sFailCauseMap.put(OEM_DCFAILCAUSE_7, "OEM_DCFAILCAUSE_7");
sFailCauseMap.put(OEM_DCFAILCAUSE_8, "OEM_DCFAILCAUSE_8")1341         sFailCauseMap.put(OEM_DCFAILCAUSE_8, "OEM_DCFAILCAUSE_8");
sFailCauseMap.put(OEM_DCFAILCAUSE_9, "OEM_DCFAILCAUSE_9")1342         sFailCauseMap.put(OEM_DCFAILCAUSE_9, "OEM_DCFAILCAUSE_9");
sFailCauseMap.put(OEM_DCFAILCAUSE_10, "OEM_DCFAILCAUSE_10")1343         sFailCauseMap.put(OEM_DCFAILCAUSE_10, "OEM_DCFAILCAUSE_10");
sFailCauseMap.put(OEM_DCFAILCAUSE_11, "OEM_DCFAILCAUSE_11")1344         sFailCauseMap.put(OEM_DCFAILCAUSE_11, "OEM_DCFAILCAUSE_11");
sFailCauseMap.put(OEM_DCFAILCAUSE_12, "OEM_DCFAILCAUSE_12")1345         sFailCauseMap.put(OEM_DCFAILCAUSE_12, "OEM_DCFAILCAUSE_12");
sFailCauseMap.put(OEM_DCFAILCAUSE_13, "OEM_DCFAILCAUSE_13")1346         sFailCauseMap.put(OEM_DCFAILCAUSE_13, "OEM_DCFAILCAUSE_13");
sFailCauseMap.put(OEM_DCFAILCAUSE_14, "OEM_DCFAILCAUSE_14")1347         sFailCauseMap.put(OEM_DCFAILCAUSE_14, "OEM_DCFAILCAUSE_14");
sFailCauseMap.put(OEM_DCFAILCAUSE_15, "OEM_DCFAILCAUSE_15")1348         sFailCauseMap.put(OEM_DCFAILCAUSE_15, "OEM_DCFAILCAUSE_15");
sFailCauseMap.put(REGISTRATION_FAIL, "REGISTRATION_FAIL")1349         sFailCauseMap.put(REGISTRATION_FAIL, "REGISTRATION_FAIL");
sFailCauseMap.put(GPRS_REGISTRATION_FAIL, "GPRS_REGISTRATION_FAIL")1350         sFailCauseMap.put(GPRS_REGISTRATION_FAIL, "GPRS_REGISTRATION_FAIL");
sFailCauseMap.put(SIGNAL_LOST, "SIGNAL_LOST")1351         sFailCauseMap.put(SIGNAL_LOST, "SIGNAL_LOST");
sFailCauseMap.put(PREF_RADIO_TECH_CHANGED, "PREF_RADIO_TECH_CHANGED")1352         sFailCauseMap.put(PREF_RADIO_TECH_CHANGED, "PREF_RADIO_TECH_CHANGED");
sFailCauseMap.put(RADIO_POWER_OFF, "RADIO_POWER_OFF")1353         sFailCauseMap.put(RADIO_POWER_OFF, "RADIO_POWER_OFF");
sFailCauseMap.put(TETHERED_CALL_ACTIVE, "TETHERED_CALL_ACTIVE")1354         sFailCauseMap.put(TETHERED_CALL_ACTIVE, "TETHERED_CALL_ACTIVE");
sFailCauseMap.put(ERROR_UNSPECIFIED, "ERROR_UNSPECIFIED")1355         sFailCauseMap.put(ERROR_UNSPECIFIED, "ERROR_UNSPECIFIED");
sFailCauseMap.put(UNKNOWN, "UNKNOWN")1356         sFailCauseMap.put(UNKNOWN, "UNKNOWN");
sFailCauseMap.put(RADIO_NOT_AVAILABLE, "RADIO_NOT_AVAILABLE")1357         sFailCauseMap.put(RADIO_NOT_AVAILABLE, "RADIO_NOT_AVAILABLE");
sFailCauseMap.put(UNACCEPTABLE_NETWORK_PARAMETER, "UNACCEPTABLE_NETWORK_PARAMETER")1358         sFailCauseMap.put(UNACCEPTABLE_NETWORK_PARAMETER,
1359                 "UNACCEPTABLE_NETWORK_PARAMETER");
sFailCauseMap.put(LOST_CONNECTION, "LOST_CONNECTION")1360         sFailCauseMap.put(LOST_CONNECTION, "LOST_CONNECTION");
1361     }
1362 
DataFailCause()1363     private DataFailCause() {
1364     }
1365 
1366     /**
1367      * Map of subId -> set of data call setup permanent failure for the carrier.
1368      */
1369     private static final HashMap<Integer, Set<Integer>> sPermanentFailureCache =
1370             new HashMap<>();
1371 
1372     /**
1373      * Returns whether or not the fail cause is a failure that requires a modem restart
1374      *
1375      * @param context device context
1376      * @param cause data disconnect cause
1377      * @param subId subscription index
1378      * @return true if the fail cause code needs platform to trigger a modem restart.
1379      *
1380      * @hide
1381      */
isRadioRestartFailure(@onNull Context context, @DataFailureCause int cause, int subId)1382     public static boolean isRadioRestartFailure(@NonNull Context context,
1383                                                 @DataFailureCause int cause,
1384                                                 int subId) {
1385         CarrierConfigManager configManager = (CarrierConfigManager)
1386                 context.getSystemService(Context.CARRIER_CONFIG_SERVICE);
1387         if (configManager != null) {
1388             PersistableBundle b = configManager.getConfigForSubId(subId);
1389 
1390             if (b != null) {
1391                 if (cause == REGULAR_DEACTIVATION
1392                         && b.getBoolean(CarrierConfigManager
1393                         .KEY_RESTART_RADIO_ON_PDP_FAIL_REGULAR_DEACTIVATION_BOOL)) {
1394                     // This is for backward compatibility support. We need to continue support this
1395                     // old configuration until it gets removed in the future.
1396                     return true;
1397                 }
1398                 // Check the current configurations.
1399                 int[] causeCodes = b.getIntArray(CarrierConfigManager
1400                         .KEY_RADIO_RESTART_FAILURE_CAUSES_INT_ARRAY);
1401                 if (causeCodes != null) {
1402                     return Arrays.stream(causeCodes).anyMatch(i -> i == cause);
1403                 }
1404             }
1405         }
1406 
1407         return false;
1408     }
1409 
1410     /** @hide */
isPermanentFailure(@onNull Context context, @DataFailureCause int failCause, int subId)1411     public static boolean isPermanentFailure(@NonNull Context context,
1412                                              @DataFailureCause int failCause,
1413                                              int subId) {
1414         synchronized (sPermanentFailureCache) {
1415 
1416             Set<Integer> permanentFailureSet = sPermanentFailureCache.get(subId);
1417 
1418             // In case of cache miss, we need to look up the settings from carrier config.
1419             if (permanentFailureSet == null) {
1420                 // Retrieve the permanent failure from carrier config
1421                 CarrierConfigManager configManager = (CarrierConfigManager)
1422                         context.getSystemService(Context.CARRIER_CONFIG_SERVICE);
1423                 if (configManager != null) {
1424                     PersistableBundle b = configManager.getConfigForSubId(subId);
1425                     if (b != null) {
1426                         String[] permanentFailureStrings = b.getStringArray(CarrierConfigManager.
1427                                 KEY_CARRIER_DATA_CALL_PERMANENT_FAILURE_STRINGS);
1428                         if (permanentFailureStrings != null) {
1429                             permanentFailureSet = new HashSet<>();
1430                             for (Map.Entry<Integer, String> e : sFailCauseMap.entrySet()) {
1431                                 if (ArrayUtils.contains(permanentFailureStrings, e.getValue())) {
1432                                     permanentFailureSet.add(e.getKey());
1433                                 }
1434                             }
1435                         }
1436                     }
1437                 }
1438 
1439                 // If we are not able to find the configuration from carrier config, use the default
1440                 // ones.
1441                 if (permanentFailureSet == null) {
1442                     permanentFailureSet = new HashSet<Integer>() {
1443                         {
1444                             add(OPERATOR_BARRED);
1445                             add(MISSING_UNKNOWN_APN);
1446                             add(UNKNOWN_PDP_ADDRESS_TYPE);
1447                             add(USER_AUTHENTICATION);
1448                             add(ACTIVATION_REJECT_GGSN);
1449                             add(SERVICE_OPTION_NOT_SUPPORTED);
1450                             add(SERVICE_OPTION_NOT_SUBSCRIBED);
1451                             add(NSAPI_IN_USE);
1452                             add(ONLY_IPV4_ALLOWED);
1453                             add(ONLY_IPV6_ALLOWED);
1454                             add(PROTOCOL_ERRORS);
1455                             add(RADIO_POWER_OFF);
1456                             add(TETHERED_CALL_ACTIVE);
1457                             add(RADIO_NOT_AVAILABLE);
1458                             add(UNACCEPTABLE_NETWORK_PARAMETER);
1459                             add(SIGNAL_LOST);
1460                         }
1461                     };
1462                 }
1463 
1464                 sPermanentFailureCache.put(subId, permanentFailureSet);
1465             }
1466 
1467             return permanentFailureSet.contains(failCause);
1468         }
1469     }
1470 
1471     /** @hide */
isEventLoggable(@ataFailureCause int dataFailCause)1472     public static boolean isEventLoggable(@DataFailureCause int dataFailCause) {
1473         return (dataFailCause == OPERATOR_BARRED) || (dataFailCause == INSUFFICIENT_RESOURCES)
1474                 || (dataFailCause == UNKNOWN_PDP_ADDRESS_TYPE)
1475                 || (dataFailCause == USER_AUTHENTICATION)
1476                 || (dataFailCause == ACTIVATION_REJECT_GGSN)
1477                 || (dataFailCause == ACTIVATION_REJECT_UNSPECIFIED)
1478                 || (dataFailCause == SERVICE_OPTION_NOT_SUBSCRIBED)
1479                 || (dataFailCause == SERVICE_OPTION_NOT_SUPPORTED)
1480                 || (dataFailCause == SERVICE_OPTION_OUT_OF_ORDER)
1481                 || (dataFailCause == NSAPI_IN_USE)
1482                 || (dataFailCause == ONLY_IPV4_ALLOWED)
1483                 || (dataFailCause == ONLY_IPV6_ALLOWED)
1484                 || (dataFailCause == PROTOCOL_ERRORS)
1485                 || (dataFailCause == SIGNAL_LOST)
1486                 || (dataFailCause == RADIO_POWER_OFF)
1487                 || (dataFailCause == TETHERED_CALL_ACTIVE)
1488                 || (dataFailCause == UNACCEPTABLE_NETWORK_PARAMETER);
1489     }
1490 
1491     /** @hide */
toString(@ataFailureCause int dataFailCause)1492     public static String toString(@DataFailureCause int dataFailCause) {
1493         int cause = getFailCause(dataFailCause);
1494         return (cause == UNKNOWN) ? "UNKNOWN(" + dataFailCause + ")" : sFailCauseMap.get(cause);
1495     }
1496 
1497     /** @hide */
getFailCause(@ataFailureCause int failCause)1498     public static int getFailCause(@DataFailureCause int failCause) {
1499         if (sFailCauseMap.containsKey(failCause)) {
1500             return failCause;
1501         } else {
1502             return UNKNOWN;
1503         }
1504     }
1505 }
1506