DisconnectCause.java revision c5ac15a3e11c03951e269b243674858411204b67
1/*
2 * Copyright (C) 2014 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
17package android.telephony;
18
19/**
20 * Contains disconnect call causes generated by the
21 * framework and the RIL.
22 *
23 * @hide
24 */
25public class DisconnectCause {
26
27    /** The disconnect cause is not valid (Not received a disconnect cause) */
28    public static final int NOT_VALID                      = -1;
29    /** Has not yet disconnected */
30    public static final int NOT_DISCONNECTED               = 0;
31    /** An incoming call that was missed and never answered */
32    public static final int INCOMING_MISSED                = 1;
33    /** Normal; Remote hangup*/
34    public static final int NORMAL                         = 2;
35    /** Normal; Local hangup */
36    public static final int LOCAL                          = 3;
37    /** Outgoing call to busy line */
38    public static final int BUSY                           = 4;
39    /** Outgoing call to congested network */
40    public static final int CONGESTION                     = 5;
41    /** Not presently used */
42    public static final int MMI                            = 6;
43    /** Invalid dial string */
44    public static final int INVALID_NUMBER                 = 7;
45    /** Cannot reach the peer */
46    public static final int NUMBER_UNREACHABLE             = 8;
47    /** Cannot reach the server */
48    public static final int SERVER_UNREACHABLE             = 9;
49    /** Invalid credentials */
50    public static final int INVALID_CREDENTIALS            = 10;
51    /** Calling from out of network is not allowed */
52    public static final int OUT_OF_NETWORK                 = 11;
53    /** Server error */
54    public static final int SERVER_ERROR                   = 12;
55    /** Client timed out */
56    public static final int TIMED_OUT                      = 13;
57    /** Client went out of network range */
58    public static final int LOST_SIGNAL                    = 14;
59    /** GSM or CDMA ACM limit exceeded */
60    public static final int LIMIT_EXCEEDED                 = 15;
61    /** An incoming call that was rejected */
62    public static final int INCOMING_REJECTED              = 16;
63    /** Radio is turned off explicitly */
64    public static final int POWER_OFF                      = 17;
65    /** Out of service */
66    public static final int OUT_OF_SERVICE                 = 18;
67    /** No ICC, ICC locked, or other ICC error */
68    public static final int ICC_ERROR                      = 19;
69    /** Call was blocked by call barring */
70    public static final int CALL_BARRED                    = 20;
71    /** Call was blocked by fixed dial number */
72    public static final int FDN_BLOCKED                    = 21;
73    /** Call was blocked by restricted all voice access */
74    public static final int CS_RESTRICTED                  = 22;
75    /** Call was blocked by restricted normal voice access */
76    public static final int CS_RESTRICTED_NORMAL           = 23;
77    /** Call was blocked by restricted emergency voice access */
78    public static final int CS_RESTRICTED_EMERGENCY        = 24;
79    /** Unassigned number */
80    public static final int UNOBTAINABLE_NUMBER            = 25;
81    /** MS is locked until next power cycle */
82    public static final int CDMA_LOCKED_UNTIL_POWER_CYCLE  = 26;
83    /** Drop call*/
84    public static final int CDMA_DROP                      = 27;
85    /** INTERCEPT order received, MS state idle entered */
86    public static final int CDMA_INTERCEPT                 = 28;
87    /** MS has been redirected, call is cancelled */
88    public static final int CDMA_REORDER                   = 29;
89    /** Service option rejection */
90    public static final int CDMA_SO_REJECT                 = 30;
91    /** Requested service is rejected, retry delay is set */
92    public static final int CDMA_RETRY_ORDER               = 31;
93    /** Unable to obtain access to the CDMA system */
94    public static final int CDMA_ACCESS_FAILURE            = 32;
95    /** Not a preempted call */
96    public static final int CDMA_PREEMPTED                 = 33;
97    /** Not an emergency call */
98    public static final int CDMA_NOT_EMERGENCY             = 34;
99    /** Access Blocked by CDMA network */
100    public static final int CDMA_ACCESS_BLOCKED            = 35;
101    /** Unknown error or not specified */
102    public static final int ERROR_UNSPECIFIED              = 36;
103
104    /** Private constructor to avoid class instantiation. */
105    private DisconnectCause() {
106        // Do nothing.
107    }
108}
109