This repository has been archived by the owner on Nov 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new AndroidManifest permission: android.permission.READ_PRECISE_PHONE_STATE Added the following PhoneStateListeners and corresponding broadcast intents: onPreciseCallStateChanged(PreciseCallState callState); onPreciseDataConnectionStateChanged(PreciseDataConnectionState dataConnectionState); broadcastPreciseCallStateChanged(int ringingCallState, int foregroundCallState, int backgroundCallState, int disconnectCause, int preciseDisconnectCause) broadcastPreciseDataConnectionStateChanged(int state, int networkType, String apnType, String apn, String reason, LinkProperties linkProperties, String failCause) Added TelephonyManager intent actions with their extras and constants: public static final String ACTION_PRECISE_CALL_STATE_CHANGED = "android.intent.action.PRECISE_CALL_STATE"; public static final String ACTION_PRECISE_DATA_CONNECTION_STATE_CHANGED = "android.intent.action.PRECISE_DATA_CONNECTION_STATE_CHANGED"; public static final int PRECISE_CALL_STATE_* Moved public static final int DISCONNECT_CAUSE_* from PreciseCallState.java to a new class DisconnectCause.java Moved public static final int PRECISE_DISCONNECT_CAUSE_* from PreciseCallState.java to a new class PreciseDisconnectCause.java Change-Id: If3b88c679507c529b746046c4a17cf6d9974bd09
- Loading branch information
Antonio Marín Cerezuela
committed
Jan 10, 2014
1 parent
de8c3cf
commit c5ac15a
Showing
14 changed files
with
1,351 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
/* | ||
* Copyright (C) 2014 The Android Open Source Project | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package android.telephony; | ||
|
||
/** | ||
* Contains disconnect call causes generated by the | ||
* framework and the RIL. | ||
* | ||
* @hide | ||
*/ | ||
public class DisconnectCause { | ||
|
||
/** The disconnect cause is not valid (Not received a disconnect cause) */ | ||
public static final int NOT_VALID = -1; | ||
/** Has not yet disconnected */ | ||
public static final int NOT_DISCONNECTED = 0; | ||
/** An incoming call that was missed and never answered */ | ||
public static final int INCOMING_MISSED = 1; | ||
/** Normal; Remote hangup*/ | ||
public static final int NORMAL = 2; | ||
/** Normal; Local hangup */ | ||
public static final int LOCAL = 3; | ||
/** Outgoing call to busy line */ | ||
public static final int BUSY = 4; | ||
/** Outgoing call to congested network */ | ||
public static final int CONGESTION = 5; | ||
/** Not presently used */ | ||
public static final int MMI = 6; | ||
/** Invalid dial string */ | ||
public static final int INVALID_NUMBER = 7; | ||
/** Cannot reach the peer */ | ||
public static final int NUMBER_UNREACHABLE = 8; | ||
/** Cannot reach the server */ | ||
public static final int SERVER_UNREACHABLE = 9; | ||
/** Invalid credentials */ | ||
public static final int INVALID_CREDENTIALS = 10; | ||
/** Calling from out of network is not allowed */ | ||
public static final int OUT_OF_NETWORK = 11; | ||
/** Server error */ | ||
public static final int SERVER_ERROR = 12; | ||
/** Client timed out */ | ||
public static final int TIMED_OUT = 13; | ||
/** Client went out of network range */ | ||
public static final int LOST_SIGNAL = 14; | ||
/** GSM or CDMA ACM limit exceeded */ | ||
public static final int LIMIT_EXCEEDED = 15; | ||
/** An incoming call that was rejected */ | ||
public static final int INCOMING_REJECTED = 16; | ||
/** Radio is turned off explicitly */ | ||
public static final int POWER_OFF = 17; | ||
/** Out of service */ | ||
public static final int OUT_OF_SERVICE = 18; | ||
/** No ICC, ICC locked, or other ICC error */ | ||
public static final int ICC_ERROR = 19; | ||
/** Call was blocked by call barring */ | ||
public static final int CALL_BARRED = 20; | ||
/** Call was blocked by fixed dial number */ | ||
public static final int FDN_BLOCKED = 21; | ||
/** Call was blocked by restricted all voice access */ | ||
public static final int CS_RESTRICTED = 22; | ||
/** Call was blocked by restricted normal voice access */ | ||
public static final int CS_RESTRICTED_NORMAL = 23; | ||
/** Call was blocked by restricted emergency voice access */ | ||
public static final int CS_RESTRICTED_EMERGENCY = 24; | ||
/** Unassigned number */ | ||
public static final int UNOBTAINABLE_NUMBER = 25; | ||
/** MS is locked until next power cycle */ | ||
public static final int CDMA_LOCKED_UNTIL_POWER_CYCLE = 26; | ||
/** Drop call*/ | ||
public static final int CDMA_DROP = 27; | ||
/** INTERCEPT order received, MS state idle entered */ | ||
public static final int CDMA_INTERCEPT = 28; | ||
/** MS has been redirected, call is cancelled */ | ||
public static final int CDMA_REORDER = 29; | ||
/** Service option rejection */ | ||
public static final int CDMA_SO_REJECT = 30; | ||
/** Requested service is rejected, retry delay is set */ | ||
public static final int CDMA_RETRY_ORDER = 31; | ||
/** Unable to obtain access to the CDMA system */ | ||
public static final int CDMA_ACCESS_FAILURE = 32; | ||
/** Not a preempted call */ | ||
public static final int CDMA_PREEMPTED = 33; | ||
/** Not an emergency call */ | ||
public static final int CDMA_NOT_EMERGENCY = 34; | ||
/** Access Blocked by CDMA network */ | ||
public static final int CDMA_ACCESS_BLOCKED = 35; | ||
/** Unknown error or not specified */ | ||
public static final int ERROR_UNSPECIFIED = 36; | ||
|
||
/** Private constructor to avoid class instantiation. */ | ||
private DisconnectCause() { | ||
// Do nothing. | ||
} | ||
} |
Oops, something went wrong.