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