1 package android.telephony;
2 
3 import android.annotation.IntDef;
4 import android.telecom.Connection;
5 import android.telephony.data.ApnSetting;
6 
7 import java.lang.annotation.Retention;
8 import java.lang.annotation.RetentionPolicy;
9 
10 /**
11  * Telephony Annotations.
12  * Telephony sdk is a mainline module and others cannot reference hidden @IntDef. Moving some
13  * telephony annotations to a separate class to allow others statically link to it.
14  *
15  * @hide
16  */
17 public class Annotation {
18     @IntDef(prefix = {"DATA_"}, value = {
19             TelephonyManager.DATA_ACTIVITY_NONE,
20             TelephonyManager.DATA_ACTIVITY_IN,
21             TelephonyManager.DATA_ACTIVITY_OUT,
22             TelephonyManager.DATA_ACTIVITY_INOUT,
23             TelephonyManager.DATA_ACTIVITY_DORMANT,
24     })
25     @Retention(RetentionPolicy.SOURCE)
26     public @interface DataActivityType {
27     }
28 
29     @IntDef(prefix = {"DATA_"}, value = {
30             TelephonyManager.DATA_UNKNOWN,
31             TelephonyManager.DATA_DISCONNECTED,
32             TelephonyManager.DATA_CONNECTING,
33             TelephonyManager.DATA_CONNECTED,
34             TelephonyManager.DATA_SUSPENDED,
35     })
36     @Retention(RetentionPolicy.SOURCE)
37     public @interface DataState {
38     }
39 
40     @Retention(RetentionPolicy.SOURCE)
41     @IntDef(prefix = {"RADIO_POWER_"},
42             value = {
43                     TelephonyManager.RADIO_POWER_OFF,
44                     TelephonyManager.RADIO_POWER_ON,
45                     TelephonyManager.RADIO_POWER_UNAVAILABLE,
46             })
47     public @interface RadioPowerState {
48     }
49 
50     @IntDef({
51             TelephonyManager.SIM_ACTIVATION_STATE_UNKNOWN,
52             TelephonyManager.SIM_ACTIVATION_STATE_ACTIVATING,
53             TelephonyManager.SIM_ACTIVATION_STATE_ACTIVATED,
54             TelephonyManager.SIM_ACTIVATION_STATE_DEACTIVATED,
55             TelephonyManager.SIM_ACTIVATION_STATE_RESTRICTED
56     })
57     @Retention(RetentionPolicy.SOURCE)
58     public @interface SimActivationState {
59     }
60 
61     @Retention(RetentionPolicy.SOURCE)
62     @IntDef(prefix = {"SRVCC_STATE_"},
63             value = {
64                     TelephonyManager.SRVCC_STATE_HANDOVER_NONE,
65                     TelephonyManager.SRVCC_STATE_HANDOVER_STARTED,
66                     TelephonyManager.SRVCC_STATE_HANDOVER_COMPLETED,
67                     TelephonyManager.SRVCC_STATE_HANDOVER_FAILED,
68                     TelephonyManager.SRVCC_STATE_HANDOVER_CANCELED})
69     public @interface SrvccState {
70     }
71 
72     @IntDef(prefix = {"CALL_STATE_"}, value = {
73             TelephonyManager.CALL_STATE_IDLE,
74             TelephonyManager.CALL_STATE_RINGING,
75             TelephonyManager.CALL_STATE_OFFHOOK
76     })
77     @Retention(RetentionPolicy.SOURCE)
78     public @interface CallState {
79     }
80 
81     @IntDef({
82             TelephonyManager.NETWORK_TYPE_UNKNOWN,
83             TelephonyManager.NETWORK_TYPE_GPRS,
84             TelephonyManager.NETWORK_TYPE_EDGE,
85             TelephonyManager.NETWORK_TYPE_UMTS,
86             TelephonyManager.NETWORK_TYPE_CDMA,
87             TelephonyManager.NETWORK_TYPE_EVDO_0,
88             TelephonyManager.NETWORK_TYPE_EVDO_A,
89             TelephonyManager.NETWORK_TYPE_1xRTT,
90             TelephonyManager.NETWORK_TYPE_HSDPA,
91             TelephonyManager.NETWORK_TYPE_HSUPA,
92             TelephonyManager.NETWORK_TYPE_HSPA,
93             TelephonyManager.NETWORK_TYPE_IDEN,
94             TelephonyManager.NETWORK_TYPE_EVDO_B,
95             TelephonyManager.NETWORK_TYPE_LTE,
96             TelephonyManager.NETWORK_TYPE_EHRPD,
97             TelephonyManager.NETWORK_TYPE_HSPAP,
98             TelephonyManager.NETWORK_TYPE_GSM,
99             TelephonyManager.NETWORK_TYPE_TD_SCDMA,
100             TelephonyManager.NETWORK_TYPE_IWLAN,
101 
102             //TODO: In order for @SystemApi methods to use this class, there cannot be any
103             // public hidden members.  This network type is marked as hidden because it is not a
104             // true network type and we are looking to remove it completely from the available list
105             // of network types.
106             //TelephonyManager.NETWORK_TYPE_LTE_CA,
107 
108             TelephonyManager.NETWORK_TYPE_NR,
109     })
110     @Retention(RetentionPolicy.SOURCE)
111     public @interface NetworkType {
112     }
113 
114     @IntDef(flag = true, prefix = {"TYPE_"}, value = {
115             ApnSetting.TYPE_DEFAULT,
116             ApnSetting.TYPE_MMS,
117             ApnSetting.TYPE_SUPL,
118             ApnSetting.TYPE_DUN,
119             ApnSetting.TYPE_HIPRI,
120             ApnSetting.TYPE_FOTA,
121             ApnSetting.TYPE_IMS,
122             ApnSetting.TYPE_CBS,
123             ApnSetting.TYPE_IA,
124             ApnSetting.TYPE_EMERGENCY,
125             ApnSetting.TYPE_MCX,
126             ApnSetting.TYPE_XCAP,
127     })
128     @Retention(RetentionPolicy.SOURCE)
129     public @interface ApnType {
130     }
131 
132     @IntDef(value = {
133             DataFailCause.NONE,
134             DataFailCause.OPERATOR_BARRED,
135             DataFailCause.NAS_SIGNALLING,
136             DataFailCause.LLC_SNDCP,
137             DataFailCause.INSUFFICIENT_RESOURCES,
138             DataFailCause.MISSING_UNKNOWN_APN,
139             DataFailCause.UNKNOWN_PDP_ADDRESS_TYPE,
140             DataFailCause.USER_AUTHENTICATION,
141             DataFailCause.ACTIVATION_REJECT_GGSN,
142             DataFailCause.ACTIVATION_REJECT_UNSPECIFIED,
143             DataFailCause.SERVICE_OPTION_NOT_SUPPORTED,
144             DataFailCause.SERVICE_OPTION_NOT_SUBSCRIBED,
145             DataFailCause.SERVICE_OPTION_OUT_OF_ORDER,
146             DataFailCause.NSAPI_IN_USE,
147             DataFailCause.REGULAR_DEACTIVATION,
148             DataFailCause.QOS_NOT_ACCEPTED,
149             DataFailCause.NETWORK_FAILURE,
150             DataFailCause.UMTS_REACTIVATION_REQ,
151             DataFailCause.FEATURE_NOT_SUPP,
152             DataFailCause.TFT_SEMANTIC_ERROR,
153             DataFailCause.TFT_SYTAX_ERROR,
154             DataFailCause.UNKNOWN_PDP_CONTEXT,
155             DataFailCause.FILTER_SEMANTIC_ERROR,
156             DataFailCause.FILTER_SYTAX_ERROR,
157             DataFailCause.PDP_WITHOUT_ACTIVE_TFT,
158             DataFailCause.ACTIVATION_REJECTED_BCM_VIOLATION,
159             DataFailCause.ONLY_IPV4_ALLOWED,
160             DataFailCause.ONLY_IPV6_ALLOWED,
161             DataFailCause.ONLY_SINGLE_BEARER_ALLOWED,
162             DataFailCause.ESM_INFO_NOT_RECEIVED,
163             DataFailCause.PDN_CONN_DOES_NOT_EXIST,
164             DataFailCause.MULTI_CONN_TO_SAME_PDN_NOT_ALLOWED,
165             DataFailCause.COLLISION_WITH_NETWORK_INITIATED_REQUEST,
166             DataFailCause.ONLY_IPV4V6_ALLOWED,
167             DataFailCause.ONLY_NON_IP_ALLOWED,
168             DataFailCause.UNSUPPORTED_QCI_VALUE,
169             DataFailCause.BEARER_HANDLING_NOT_SUPPORTED,
170             DataFailCause.ACTIVE_PDP_CONTEXT_MAX_NUMBER_REACHED,
171             DataFailCause.UNSUPPORTED_APN_IN_CURRENT_PLMN,
172             DataFailCause.INVALID_TRANSACTION_ID,
173             DataFailCause.MESSAGE_INCORRECT_SEMANTIC,
174             DataFailCause.INVALID_MANDATORY_INFO,
175             DataFailCause.MESSAGE_TYPE_UNSUPPORTED,
176             DataFailCause.MSG_TYPE_NONCOMPATIBLE_STATE,
177             DataFailCause.UNKNOWN_INFO_ELEMENT,
178             DataFailCause.CONDITIONAL_IE_ERROR,
179             DataFailCause.MSG_AND_PROTOCOL_STATE_UNCOMPATIBLE,
180             DataFailCause.PROTOCOL_ERRORS,
181             DataFailCause.APN_TYPE_CONFLICT,
182             DataFailCause.INVALID_PCSCF_ADDR,
183             DataFailCause.INTERNAL_CALL_PREEMPT_BY_HIGH_PRIO_APN,
184             DataFailCause.EMM_ACCESS_BARRED,
185             DataFailCause.EMERGENCY_IFACE_ONLY,
186             DataFailCause.IFACE_MISMATCH,
187             DataFailCause.COMPANION_IFACE_IN_USE,
188             DataFailCause.IP_ADDRESS_MISMATCH,
189             DataFailCause.IFACE_AND_POL_FAMILY_MISMATCH,
190             DataFailCause.EMM_ACCESS_BARRED_INFINITE_RETRY,
191             DataFailCause.AUTH_FAILURE_ON_EMERGENCY_CALL,
192             DataFailCause.INVALID_DNS_ADDR,
193             DataFailCause.INVALID_PCSCF_OR_DNS_ADDRESS,
194             DataFailCause.CALL_PREEMPT_BY_EMERGENCY_APN,
195             DataFailCause.UE_INITIATED_DETACH_OR_DISCONNECT,
196             DataFailCause.MIP_FA_REASON_UNSPECIFIED,
197             DataFailCause.MIP_FA_ADMIN_PROHIBITED,
198             DataFailCause.MIP_FA_INSUFFICIENT_RESOURCES,
199             DataFailCause.MIP_FA_MOBILE_NODE_AUTHENTICATION_FAILURE,
200             DataFailCause.MIP_FA_HOME_AGENT_AUTHENTICATION_FAILURE,
201             DataFailCause.MIP_FA_REQUESTED_LIFETIME_TOO_LONG,
202             DataFailCause.MIP_FA_MALFORMED_REQUEST,
203             DataFailCause.MIP_FA_MALFORMED_REPLY,
204             DataFailCause.MIP_FA_ENCAPSULATION_UNAVAILABLE,
205             DataFailCause.MIP_FA_VJ_HEADER_COMPRESSION_UNAVAILABLE,
206             DataFailCause.MIP_FA_REVERSE_TUNNEL_UNAVAILABLE,
207             DataFailCause.MIP_FA_REVERSE_TUNNEL_IS_MANDATORY,
208             DataFailCause.MIP_FA_DELIVERY_STYLE_NOT_SUPPORTED,
209             DataFailCause.MIP_FA_MISSING_NAI,
210             DataFailCause.MIP_FA_MISSING_HOME_AGENT,
211             DataFailCause.MIP_FA_MISSING_HOME_ADDRESS,
212             DataFailCause.MIP_FA_UNKNOWN_CHALLENGE,
213             DataFailCause.MIP_FA_MISSING_CHALLENGE,
214             DataFailCause.MIP_FA_STALE_CHALLENGE,
215             DataFailCause.MIP_HA_REASON_UNSPECIFIED,
216             DataFailCause.MIP_HA_ADMIN_PROHIBITED,
217             DataFailCause.MIP_HA_INSUFFICIENT_RESOURCES,
218             DataFailCause.MIP_HA_MOBILE_NODE_AUTHENTICATION_FAILURE,
219             DataFailCause.MIP_HA_FOREIGN_AGENT_AUTHENTICATION_FAILURE,
220             DataFailCause.MIP_HA_REGISTRATION_ID_MISMATCH,
221             DataFailCause.MIP_HA_MALFORMED_REQUEST,
222             DataFailCause.MIP_HA_UNKNOWN_HOME_AGENT_ADDRESS,
223             DataFailCause.MIP_HA_REVERSE_TUNNEL_UNAVAILABLE,
224             DataFailCause.MIP_HA_REVERSE_TUNNEL_IS_MANDATORY,
225             DataFailCause.MIP_HA_ENCAPSULATION_UNAVAILABLE,
226             DataFailCause.CLOSE_IN_PROGRESS,
227             DataFailCause.NETWORK_INITIATED_TERMINATION,
228             DataFailCause.MODEM_APP_PREEMPTED,
229             DataFailCause.PDN_IPV4_CALL_DISALLOWED,
230             DataFailCause.PDN_IPV4_CALL_THROTTLED,
231             DataFailCause.PDN_IPV6_CALL_DISALLOWED,
232             DataFailCause.PDN_IPV6_CALL_THROTTLED,
233             DataFailCause.MODEM_RESTART,
234             DataFailCause.PDP_PPP_NOT_SUPPORTED,
235             DataFailCause.UNPREFERRED_RAT,
236             DataFailCause.PHYSICAL_LINK_CLOSE_IN_PROGRESS,
237             DataFailCause.APN_PENDING_HANDOVER,
238             DataFailCause.PROFILE_BEARER_INCOMPATIBLE,
239             DataFailCause.SIM_CARD_CHANGED,
240             DataFailCause.LOW_POWER_MODE_OR_POWERING_DOWN,
241             DataFailCause.APN_DISABLED,
242             DataFailCause.MAX_PPP_INACTIVITY_TIMER_EXPIRED,
243             DataFailCause.IPV6_ADDRESS_TRANSFER_FAILED,
244             DataFailCause.TRAT_SWAP_FAILED,
245             DataFailCause.EHRPD_TO_HRPD_FALLBACK,
246             DataFailCause.MIP_CONFIG_FAILURE,
247             DataFailCause.PDN_INACTIVITY_TIMER_EXPIRED,
248             DataFailCause.MAX_IPV4_CONNECTIONS,
249             DataFailCause.MAX_IPV6_CONNECTIONS,
250             DataFailCause.APN_MISMATCH,
251             DataFailCause.IP_VERSION_MISMATCH,
252             DataFailCause.DUN_CALL_DISALLOWED,
253             DataFailCause.INTERNAL_EPC_NONEPC_TRANSITION,
254             DataFailCause.INTERFACE_IN_USE,
255             DataFailCause.APN_DISALLOWED_ON_ROAMING,
256             DataFailCause.APN_PARAMETERS_CHANGED,
257             DataFailCause.NULL_APN_DISALLOWED,
258             DataFailCause.THERMAL_MITIGATION,
259             DataFailCause.DATA_SETTINGS_DISABLED,
260             DataFailCause.DATA_ROAMING_SETTINGS_DISABLED,
261             DataFailCause.DDS_SWITCHED,
262             DataFailCause.FORBIDDEN_APN_NAME,
263             DataFailCause.DDS_SWITCH_IN_PROGRESS,
264             DataFailCause.CALL_DISALLOWED_IN_ROAMING,
265             DataFailCause.NON_IP_NOT_SUPPORTED,
266             DataFailCause.PDN_NON_IP_CALL_THROTTLED,
267             DataFailCause.PDN_NON_IP_CALL_DISALLOWED,
268             DataFailCause.CDMA_LOCK,
269             DataFailCause.CDMA_INTERCEPT,
270             DataFailCause.CDMA_REORDER,
271             DataFailCause.CDMA_RELEASE_DUE_TO_SO_REJECTION,
272             DataFailCause.CDMA_INCOMING_CALL,
273             DataFailCause.CDMA_ALERT_STOP,
274             DataFailCause.CHANNEL_ACQUISITION_FAILURE,
275             DataFailCause.MAX_ACCESS_PROBE,
276             DataFailCause.CONCURRENT_SERVICE_NOT_SUPPORTED_BY_BASE_STATION,
277             DataFailCause.NO_RESPONSE_FROM_BASE_STATION,
278             DataFailCause.REJECTED_BY_BASE_STATION,
279             DataFailCause.CONCURRENT_SERVICES_INCOMPATIBLE,
280             DataFailCause.NO_CDMA_SERVICE,
281             DataFailCause.RUIM_NOT_PRESENT,
282             DataFailCause.CDMA_RETRY_ORDER,
283             DataFailCause.ACCESS_BLOCK,
284             DataFailCause.ACCESS_BLOCK_ALL,
285             DataFailCause.IS707B_MAX_ACCESS_PROBES,
286             DataFailCause.THERMAL_EMERGENCY,
287             DataFailCause.CONCURRENT_SERVICES_NOT_ALLOWED,
288             DataFailCause.INCOMING_CALL_REJECTED,
289             DataFailCause.NO_SERVICE_ON_GATEWAY,
290             DataFailCause.NO_GPRS_CONTEXT,
291             DataFailCause.ILLEGAL_MS,
292             DataFailCause.ILLEGAL_ME,
293             DataFailCause.GPRS_SERVICES_AND_NON_GPRS_SERVICES_NOT_ALLOWED,
294             DataFailCause.GPRS_SERVICES_NOT_ALLOWED,
295             DataFailCause.MS_IDENTITY_CANNOT_BE_DERIVED_BY_THE_NETWORK,
296             DataFailCause.IMPLICITLY_DETACHED,
297             DataFailCause.PLMN_NOT_ALLOWED,
298             DataFailCause.LOCATION_AREA_NOT_ALLOWED,
299             DataFailCause.GPRS_SERVICES_NOT_ALLOWED_IN_THIS_PLMN,
300             DataFailCause.PDP_DUPLICATE,
301             DataFailCause.UE_RAT_CHANGE,
302             DataFailCause.CONGESTION,
303             DataFailCause.NO_PDP_CONTEXT_ACTIVATED,
304             DataFailCause.ACCESS_CLASS_DSAC_REJECTION,
305             DataFailCause.PDP_ACTIVATE_MAX_RETRY_FAILED,
306             DataFailCause.RADIO_ACCESS_BEARER_FAILURE,
307             DataFailCause.ESM_UNKNOWN_EPS_BEARER_CONTEXT,
308             DataFailCause.DRB_RELEASED_BY_RRC,
309             DataFailCause.CONNECTION_RELEASED,
310             DataFailCause.EMM_DETACHED,
311             DataFailCause.EMM_ATTACH_FAILED,
312             DataFailCause.EMM_ATTACH_STARTED,
313             DataFailCause.LTE_NAS_SERVICE_REQUEST_FAILED,
314             DataFailCause.DUPLICATE_BEARER_ID,
315             DataFailCause.ESM_COLLISION_SCENARIOS,
316             DataFailCause.ESM_BEARER_DEACTIVATED_TO_SYNC_WITH_NETWORK,
317             DataFailCause.ESM_NW_ACTIVATED_DED_BEARER_WITH_ID_OF_DEF_BEARER,
318             DataFailCause.ESM_BAD_OTA_MESSAGE,
319             DataFailCause.ESM_DOWNLOAD_SERVER_REJECTED_THE_CALL,
320             DataFailCause.ESM_CONTEXT_TRANSFERRED_DUE_TO_IRAT,
321             DataFailCause.DS_EXPLICIT_DEACTIVATION,
322             DataFailCause.ESM_LOCAL_CAUSE_NONE,
323             DataFailCause.LTE_THROTTLING_NOT_REQUIRED,
324             DataFailCause.ACCESS_CONTROL_LIST_CHECK_FAILURE,
325             DataFailCause.SERVICE_NOT_ALLOWED_ON_PLMN,
326             DataFailCause.EMM_T3417_EXPIRED,
327             DataFailCause.EMM_T3417_EXT_EXPIRED,
328             DataFailCause.RRC_UPLINK_DATA_TRANSMISSION_FAILURE,
329             DataFailCause.RRC_UPLINK_DELIVERY_FAILED_DUE_TO_HANDOVER,
330             DataFailCause.RRC_UPLINK_CONNECTION_RELEASE,
331             DataFailCause.RRC_UPLINK_RADIO_LINK_FAILURE,
332             DataFailCause.RRC_UPLINK_ERROR_REQUEST_FROM_NAS,
333             DataFailCause.RRC_CONNECTION_ACCESS_STRATUM_FAILURE,
334             DataFailCause.RRC_CONNECTION_ANOTHER_PROCEDURE_IN_PROGRESS,
335             DataFailCause.RRC_CONNECTION_ACCESS_BARRED,
336             DataFailCause.RRC_CONNECTION_CELL_RESELECTION,
337             DataFailCause.RRC_CONNECTION_CONFIG_FAILURE,
338             DataFailCause.RRC_CONNECTION_TIMER_EXPIRED,
339             DataFailCause.RRC_CONNECTION_LINK_FAILURE,
340             DataFailCause.RRC_CONNECTION_CELL_NOT_CAMPED,
341             DataFailCause.RRC_CONNECTION_SYSTEM_INTERVAL_FAILURE,
342             DataFailCause.RRC_CONNECTION_REJECT_BY_NETWORK,
343             DataFailCause.RRC_CONNECTION_NORMAL_RELEASE,
344             DataFailCause.RRC_CONNECTION_RADIO_LINK_FAILURE,
345             DataFailCause.RRC_CONNECTION_REESTABLISHMENT_FAILURE,
346             DataFailCause.RRC_CONNECTION_OUT_OF_SERVICE_DURING_CELL_REGISTER,
347             DataFailCause.RRC_CONNECTION_ABORT_REQUEST,
348             DataFailCause.RRC_CONNECTION_SYSTEM_INFORMATION_BLOCK_READ_ERROR,
349             DataFailCause.NETWORK_INITIATED_DETACH_WITH_AUTO_REATTACH,
350             DataFailCause.NETWORK_INITIATED_DETACH_NO_AUTO_REATTACH,
351             DataFailCause.ESM_PROCEDURE_TIME_OUT,
352             DataFailCause.INVALID_CONNECTION_ID,
353             DataFailCause.MAXIMIUM_NSAPIS_EXCEEDED,
354             DataFailCause.INVALID_PRIMARY_NSAPI,
355             DataFailCause.CANNOT_ENCODE_OTA_MESSAGE,
356             DataFailCause.RADIO_ACCESS_BEARER_SETUP_FAILURE,
357             DataFailCause.PDP_ESTABLISH_TIMEOUT_EXPIRED,
358             DataFailCause.PDP_MODIFY_TIMEOUT_EXPIRED,
359             DataFailCause.PDP_INACTIVE_TIMEOUT_EXPIRED,
360             DataFailCause.PDP_LOWERLAYER_ERROR,
361             DataFailCause.PDP_MODIFY_COLLISION,
362             DataFailCause.MAXINUM_SIZE_OF_L2_MESSAGE_EXCEEDED,
363             DataFailCause.NAS_REQUEST_REJECTED_BY_NETWORK,
364             DataFailCause.RRC_CONNECTION_INVALID_REQUEST,
365             DataFailCause.RRC_CONNECTION_TRACKING_AREA_ID_CHANGED,
366             DataFailCause.RRC_CONNECTION_RF_UNAVAILABLE,
367             DataFailCause.RRC_CONNECTION_ABORTED_DUE_TO_IRAT_CHANGE,
368             DataFailCause.RRC_CONNECTION_RELEASED_SECURITY_NOT_ACTIVE,
369             DataFailCause.RRC_CONNECTION_ABORTED_AFTER_HANDOVER,
370             DataFailCause.RRC_CONNECTION_ABORTED_AFTER_IRAT_CELL_CHANGE,
371             DataFailCause.RRC_CONNECTION_ABORTED_DURING_IRAT_CELL_CHANGE,
372             DataFailCause.IMSI_UNKNOWN_IN_HOME_SUBSCRIBER_SERVER,
373             DataFailCause.IMEI_NOT_ACCEPTED,
374             DataFailCause.EPS_SERVICES_AND_NON_EPS_SERVICES_NOT_ALLOWED,
375             DataFailCause.EPS_SERVICES_NOT_ALLOWED_IN_PLMN,
376             DataFailCause.MSC_TEMPORARILY_NOT_REACHABLE,
377             DataFailCause.CS_DOMAIN_NOT_AVAILABLE,
378             DataFailCause.ESM_FAILURE,
379             DataFailCause.MAC_FAILURE,
380             DataFailCause.SYNCHRONIZATION_FAILURE,
381             DataFailCause.UE_SECURITY_CAPABILITIES_MISMATCH,
382             DataFailCause.SECURITY_MODE_REJECTED,
383             DataFailCause.UNACCEPTABLE_NON_EPS_AUTHENTICATION,
384             DataFailCause.CS_FALLBACK_CALL_ESTABLISHMENT_NOT_ALLOWED,
385             DataFailCause.NO_EPS_BEARER_CONTEXT_ACTIVATED,
386             DataFailCause.INVALID_EMM_STATE,
387             DataFailCause.NAS_LAYER_FAILURE,
388             DataFailCause.MULTIPLE_PDP_CALL_NOT_ALLOWED,
389             DataFailCause.EMBMS_NOT_ENABLED,
390             DataFailCause.IRAT_HANDOVER_FAILED,
391             DataFailCause.EMBMS_REGULAR_DEACTIVATION,
392             DataFailCause.TEST_LOOPBACK_REGULAR_DEACTIVATION,
393             DataFailCause.LOWER_LAYER_REGISTRATION_FAILURE,
394             DataFailCause.DATA_PLAN_EXPIRED,
395             DataFailCause.UMTS_HANDOVER_TO_IWLAN,
396             DataFailCause.EVDO_CONNECTION_DENY_BY_GENERAL_OR_NETWORK_BUSY,
397             DataFailCause.EVDO_CONNECTION_DENY_BY_BILLING_OR_AUTHENTICATION_FAILURE,
398             DataFailCause.EVDO_HDR_CHANGED,
399             DataFailCause.EVDO_HDR_EXITED,
400             DataFailCause.EVDO_HDR_NO_SESSION,
401             DataFailCause.EVDO_USING_GPS_FIX_INSTEAD_OF_HDR_CALL,
402             DataFailCause.EVDO_HDR_CONNECTION_SETUP_TIMEOUT,
403             DataFailCause.FAILED_TO_ACQUIRE_COLOCATED_HDR,
404             DataFailCause.OTASP_COMMIT_IN_PROGRESS,
405             DataFailCause.NO_HYBRID_HDR_SERVICE,
406             DataFailCause.HDR_NO_LOCK_GRANTED,
407             DataFailCause.DBM_OR_SMS_IN_PROGRESS,
408             DataFailCause.HDR_FADE,
409             DataFailCause.HDR_ACCESS_FAILURE,
410             DataFailCause.UNSUPPORTED_1X_PREV,
411             DataFailCause.LOCAL_END,
412             DataFailCause.NO_SERVICE,
413             DataFailCause.FADE,
414             DataFailCause.NORMAL_RELEASE,
415             DataFailCause.ACCESS_ATTEMPT_ALREADY_IN_PROGRESS,
416             DataFailCause.REDIRECTION_OR_HANDOFF_IN_PROGRESS,
417             DataFailCause.EMERGENCY_MODE,
418             DataFailCause.PHONE_IN_USE,
419             DataFailCause.INVALID_MODE,
420             DataFailCause.INVALID_SIM_STATE,
421             DataFailCause.NO_COLLOCATED_HDR,
422             DataFailCause.UE_IS_ENTERING_POWERSAVE_MODE,
423             DataFailCause.DUAL_SWITCH,
424             DataFailCause.PPP_TIMEOUT,
425             DataFailCause.PPP_AUTH_FAILURE,
426             DataFailCause.PPP_OPTION_MISMATCH,
427             DataFailCause.PPP_PAP_FAILURE,
428             DataFailCause.PPP_CHAP_FAILURE,
429             DataFailCause.PPP_CLOSE_IN_PROGRESS,
430             DataFailCause.LIMITED_TO_IPV4,
431             DataFailCause.LIMITED_TO_IPV6,
432             DataFailCause.VSNCP_TIMEOUT,
433             DataFailCause.VSNCP_GEN_ERROR,
434             DataFailCause.VSNCP_APN_UNATHORIZED,
435             DataFailCause.VSNCP_PDN_LIMIT_EXCEEDED,
436             DataFailCause.VSNCP_NO_PDN_GATEWAY_ADDRESS,
437             DataFailCause.VSNCP_PDN_GATEWAY_UNREACHABLE,
438             DataFailCause.VSNCP_PDN_GATEWAY_REJECT,
439             DataFailCause.VSNCP_INSUFFICIENT_PARAMETERS,
440             DataFailCause.VSNCP_RESOURCE_UNAVAILABLE,
441             DataFailCause.VSNCP_ADMINISTRATIVELY_PROHIBITED,
442             DataFailCause.VSNCP_PDN_ID_IN_USE,
443             DataFailCause.VSNCP_SUBSCRIBER_LIMITATION,
444             DataFailCause.VSNCP_PDN_EXISTS_FOR_THIS_APN,
445             DataFailCause.VSNCP_RECONNECT_NOT_ALLOWED,
446             DataFailCause.IPV6_PREFIX_UNAVAILABLE,
447             DataFailCause.HANDOFF_PREFERENCE_CHANGED,
448             DataFailCause.OEM_DCFAILCAUSE_1,
449             DataFailCause.OEM_DCFAILCAUSE_2,
450             DataFailCause.OEM_DCFAILCAUSE_3,
451             DataFailCause.OEM_DCFAILCAUSE_4,
452             DataFailCause.OEM_DCFAILCAUSE_5,
453             DataFailCause.OEM_DCFAILCAUSE_6,
454             DataFailCause.OEM_DCFAILCAUSE_7,
455             DataFailCause.OEM_DCFAILCAUSE_8,
456             DataFailCause.OEM_DCFAILCAUSE_9,
457             DataFailCause.OEM_DCFAILCAUSE_10,
458             DataFailCause.OEM_DCFAILCAUSE_11,
459             DataFailCause.OEM_DCFAILCAUSE_12,
460             DataFailCause.OEM_DCFAILCAUSE_13,
461             DataFailCause.OEM_DCFAILCAUSE_14,
462             DataFailCause.OEM_DCFAILCAUSE_15,
463             DataFailCause.REGISTRATION_FAIL,
464             DataFailCause.GPRS_REGISTRATION_FAIL,
465             DataFailCause.SIGNAL_LOST,
466             DataFailCause.PREF_RADIO_TECH_CHANGED,
467             DataFailCause.RADIO_POWER_OFF,
468             DataFailCause.TETHERED_CALL_ACTIVE,
469             DataFailCause.ERROR_UNSPECIFIED,
470             DataFailCause.UNKNOWN,
471             DataFailCause.RADIO_NOT_AVAILABLE,
472             DataFailCause.UNACCEPTABLE_NETWORK_PARAMETER,
473             DataFailCause.LOST_CONNECTION,
474     })
475     @Retention(RetentionPolicy.SOURCE)
476     public @interface DataFailureCause {
477     }
478 
479     @Retention(RetentionPolicy.SOURCE)
480     @IntDef(prefix = {"PRECISE_CALL_STATE_"},
481             value = {
482             PreciseCallState.PRECISE_CALL_STATE_NOT_VALID,
483             PreciseCallState.PRECISE_CALL_STATE_IDLE,
484             PreciseCallState.PRECISE_CALL_STATE_ACTIVE,
485             PreciseCallState.PRECISE_CALL_STATE_HOLDING,
486             PreciseCallState.PRECISE_CALL_STATE_DIALING,
487             PreciseCallState.PRECISE_CALL_STATE_ALERTING,
488             PreciseCallState. PRECISE_CALL_STATE_INCOMING,
489             PreciseCallState.PRECISE_CALL_STATE_WAITING,
490             PreciseCallState.PRECISE_CALL_STATE_DISCONNECTED,
491             PreciseCallState.PRECISE_CALL_STATE_DISCONNECTING})
492     public @interface PreciseCallStates {}
493 
494     @IntDef(value = {
495             DisconnectCause.NOT_VALID,
496             DisconnectCause.NOT_DISCONNECTED,
497             DisconnectCause.INCOMING_MISSED,
498             DisconnectCause.NORMAL,
499             DisconnectCause.LOCAL,
500             DisconnectCause.BUSY,
501             DisconnectCause.CONGESTION,
502             DisconnectCause.MMI,
503             DisconnectCause.INVALID_NUMBER,
504             DisconnectCause.NUMBER_UNREACHABLE,
505             DisconnectCause.SERVER_UNREACHABLE,
506             DisconnectCause.INVALID_CREDENTIALS,
507             DisconnectCause.OUT_OF_NETWORK,
508             DisconnectCause.SERVER_ERROR,
509             DisconnectCause.TIMED_OUT,
510             DisconnectCause.LOST_SIGNAL,
511             DisconnectCause.LIMIT_EXCEEDED,
512             DisconnectCause.INCOMING_REJECTED,
513             DisconnectCause.POWER_OFF,
514             DisconnectCause.OUT_OF_SERVICE,
515             DisconnectCause.ICC_ERROR,
516             DisconnectCause.CALL_BARRED,
517             DisconnectCause.FDN_BLOCKED,
518             DisconnectCause.CS_RESTRICTED,
519             DisconnectCause.CS_RESTRICTED_NORMAL,
520             DisconnectCause.CS_RESTRICTED_EMERGENCY,
521             DisconnectCause.UNOBTAINABLE_NUMBER,
522             DisconnectCause.CDMA_LOCKED_UNTIL_POWER_CYCLE,
523             DisconnectCause.CDMA_DROP,
524             DisconnectCause.CDMA_INTERCEPT,
525             DisconnectCause.CDMA_REORDER,
526             DisconnectCause.CDMA_SO_REJECT,
527             DisconnectCause.CDMA_RETRY_ORDER,
528             DisconnectCause.CDMA_ACCESS_FAILURE,
529             DisconnectCause.CDMA_PREEMPTED,
530             DisconnectCause.CDMA_NOT_EMERGENCY,
531             DisconnectCause.CDMA_ACCESS_BLOCKED,
532             DisconnectCause.ERROR_UNSPECIFIED,
533     })
534     @Retention(RetentionPolicy.SOURCE)
535     public @interface DisconnectCauses {
536     }
537 
538     @IntDef(value = {
539             PreciseDisconnectCause.NOT_VALID,
540             PreciseDisconnectCause.NO_DISCONNECT_CAUSE_AVAILABLE,
541             PreciseDisconnectCause.UNOBTAINABLE_NUMBER,
542             PreciseDisconnectCause.NORMAL,
543             PreciseDisconnectCause.BUSY,
544             PreciseDisconnectCause.NUMBER_CHANGED,
545             PreciseDisconnectCause.STATUS_ENQUIRY,
546             PreciseDisconnectCause.NORMAL_UNSPECIFIED,
547             PreciseDisconnectCause.NO_CIRCUIT_AVAIL,
548             PreciseDisconnectCause.TEMPORARY_FAILURE,
549             PreciseDisconnectCause.SWITCHING_CONGESTION,
550             PreciseDisconnectCause.CHANNEL_NOT_AVAIL,
551             PreciseDisconnectCause.QOS_NOT_AVAIL,
552             PreciseDisconnectCause.BEARER_NOT_AVAIL,
553             PreciseDisconnectCause.ACM_LIMIT_EXCEEDED,
554             PreciseDisconnectCause.CALL_BARRED,
555             PreciseDisconnectCause.FDN_BLOCKED,
556             PreciseDisconnectCause.IMSI_UNKNOWN_IN_VLR,
557             PreciseDisconnectCause.IMEI_NOT_ACCEPTED,
558             PreciseDisconnectCause.CDMA_LOCKED_UNTIL_POWER_CYCLE,
559             PreciseDisconnectCause.CDMA_DROP,
560             PreciseDisconnectCause.CDMA_INTERCEPT,
561             PreciseDisconnectCause.CDMA_REORDER,
562             PreciseDisconnectCause.CDMA_SO_REJECT,
563             PreciseDisconnectCause.CDMA_RETRY_ORDER,
564             PreciseDisconnectCause.CDMA_ACCESS_FAILURE,
565             PreciseDisconnectCause.CDMA_PREEMPTED,
566             PreciseDisconnectCause.CDMA_NOT_EMERGENCY,
567             PreciseDisconnectCause.CDMA_ACCESS_BLOCKED,
568             PreciseDisconnectCause.ERROR_UNSPECIFIED,
569     })
570     @Retention(RetentionPolicy.SOURCE)
571     public @interface PreciseDisconnectCauses {
572     }
573 
574     /**
575      * Carrier Privilege Status.
576      */
577     @IntDef(prefix = { "CARRIER_PRIVILEGE_STATUS_" }, value = {
578         TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS,
579         TelephonyManager.CARRIER_PRIVILEGE_STATUS_NO_ACCESS,
580         TelephonyManager.CARRIER_PRIVILEGE_STATUS_RULES_NOT_LOADED,
581         TelephonyManager.CARRIER_PRIVILEGE_STATUS_ERROR_LOADING_RULES,
582     })
583     @Retention(RetentionPolicy.SOURCE)
584     public @interface CarrierPrivilegeStatus {
585     }
586 
587     @IntDef({
588             Connection.AUDIO_CODEC_NONE,
589             Connection.AUDIO_CODEC_AMR,
590             Connection.AUDIO_CODEC_AMR_WB,
591             Connection.AUDIO_CODEC_QCELP13K,
592             Connection.AUDIO_CODEC_EVRC,
593             Connection.AUDIO_CODEC_EVRC_B,
594             Connection.AUDIO_CODEC_EVRC_WB,
595             Connection.AUDIO_CODEC_EVRC_NW,
596             Connection.AUDIO_CODEC_GSM_EFR,
597             Connection.AUDIO_CODEC_GSM_FR,
598             Connection.AUDIO_CODEC_G711U,
599             Connection.AUDIO_CODEC_G723,
600             Connection.AUDIO_CODEC_G711A,
601             Connection.AUDIO_CODEC_G722,
602             Connection.AUDIO_CODEC_G711AB,
603             Connection.AUDIO_CODEC_G729,
604             Connection.AUDIO_CODEC_EVS_NB,
605             Connection.AUDIO_CODEC_EVS_WB,
606             Connection.AUDIO_CODEC_EVS_SWB,
607             Connection.AUDIO_CODEC_EVS_FB
608     })
609     @Retention(RetentionPolicy.SOURCE)
610     public @interface ImsAudioCodec {
611     }
612 
613     /**
614      * UICC SIM Application Types
615      */
616     @IntDef(prefix = { "APPTYPE_" }, value = {
617             TelephonyManager.APPTYPE_SIM,
618             TelephonyManager.APPTYPE_USIM,
619             TelephonyManager.APPTYPE_RUIM,
620             TelephonyManager.APPTYPE_CSIM,
621             TelephonyManager.APPTYPE_ISIM
622     })
623     @Retention(RetentionPolicy.SOURCE)
624     public @interface UiccAppType{}
625 
626     /**
627      * Override network type
628      */
629     @Retention(RetentionPolicy.SOURCE)
630     @IntDef(prefix = "OVERRIDE_NETWORK_TYPE_", value = {
631             TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_NONE,
632             TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_LTE_CA,
633             TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_LTE_ADVANCED_PRO,
634             TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_NR_NSA,
635             TelephonyDisplayInfo.OVERRIDE_NETWORK_TYPE_NR_NSA_MMWAVE})
636     public @interface OverrideNetworkType {}
637 }
638