/packages/apps/PhoneCommon/src/com/android/phone/common/ |
PhoneConstants.java | 22 public class PhoneConstants {
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
TelephonyCapabilities.java | 50 return (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA || 72 return (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA); 93 return (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_GSM); 105 if (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_GSM) { 107 } else if (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA) { 127 return ((phone.getPhoneType() == PhoneConstants.PHONE_TYPE_GSM) 128 || (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_SIP)); 141 return ((phone.getPhoneType() == PhoneConstants.PHONE_TYPE_GSM) 142 || (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_SIP) 143 || (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_IMS)) [all...] |
DriverCall.java | 72 ret.numberPresentation = PhoneConstants.PRESENTATION_ALLOWED; 137 case 0: return PhoneConstants.PRESENTATION_ALLOWED; 138 case 1: return PhoneConstants.PRESENTATION_RESTRICTED; 139 case 2: return PhoneConstants.PRESENTATION_UNKNOWN; 140 case 3: return PhoneConstants.PRESENTATION_PAYPHONE;
|
PhoneStateIntentReceiver.java | 47 PhoneConstants.State mPhoneState = PhoneConstants.State.IDLE; 78 public PhoneConstants.State getPhoneState() { 175 + intent.getStringExtra(PhoneConstants.STATE_KEY)); 176 String phoneState = intent.getStringExtra(PhoneConstants.STATE_KEY); 178 PhoneConstants.State.class, phoneState);
|
DefaultPhoneNotifier.java | 38 import com.android.internal.telephony.PhoneConstants; 153 PhoneConstants.DataState state) { 158 PhoneConstants.DataState state) { 171 if (state == PhoneConstants.DataState.CONNECTED) { 312 * Convert the {@link PhoneConstants.State} enum into the TelephonyManager.CALL_STATE_* 315 public static int convertCallState(PhoneConstants.State state) { 328 * {@link PhoneConstants.State} enum for the public API. 330 public static PhoneConstants.State convertCallState(int state) { 333 return PhoneConstants.State.RINGING; 335 return PhoneConstants.State.OFFHOOK [all...] |
/frameworks/base/telephony/java/android/telephony/ |
CellLocation.java | 26 import com.android.internal.telephony.PhoneConstants; 64 case PhoneConstants.PHONE_TYPE_CDMA: 66 case PhoneConstants.PHONE_TYPE_GSM: 92 case PhoneConstants.PHONE_TYPE_CDMA: 94 case PhoneConstants.PHONE_TYPE_GSM:
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
CdmaCallWaitingNotification.java | 20 import com.android.internal.telephony.PhoneConstants; 60 case 0: return PhoneConstants.PRESENTATION_ALLOWED; 61 case 1: return PhoneConstants.PRESENTATION_RESTRICTED; 62 case 2: return PhoneConstants.PRESENTATION_UNKNOWN; 66 return PhoneConstants.PRESENTATION_UNKNOWN;
|
CDMALTEPhone.java | 45 import com.android.internal.telephony.PhoneConstants; 147 public PhoneConstants.DataState getDataConnectionState(String apnType) { 148 PhoneConstants.DataState ret = PhoneConstants.DataState.DISCONNECTED; 154 ret = PhoneConstants.DataState.DISCONNECTED; 156 ret = PhoneConstants.DataState.DISCONNECTED; 162 ret = PhoneConstants.DataState.DISCONNECTED; 167 if (mCT.mState != PhoneConstants.State.IDLE && 169 ret = PhoneConstants.DataState.SUSPENDED; 171 ret = PhoneConstants.DataState.CONNECTED [all...] |
/packages/services/Telephony/tests/src/com/android/phone/ |
CnapTest.java | 25 import static com.android.internal.telephony.PhoneConstants.PRESENTATION_ALLOWED; 26 import static com.android.internal.telephony.PhoneConstants.PRESENTATION_PAYPHONE; 27 import static com.android.internal.telephony.PhoneConstants.PRESENTATION_RESTRICTED; 28 import static com.android.internal.telephony.PhoneConstants.PRESENTATION_UNKNOWN;
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
TestPhoneNotifier.java.broken | 20 import com.android.internal.telephony.PhoneConstants; 55 PhoneConstants.DataState state) {
|
/frameworks/base/telephony/java/com/android/ims/ |
ImsCallProfile.java | 24 import com.android.internal.telephony.PhoneConstants; 374 case PhoneConstants.PRESENTATION_RESTRICTED: 376 case PhoneConstants.PRESENTATION_ALLOWED: 378 case PhoneConstants.PRESENTATION_PAYPHONE: 380 case PhoneConstants.PRESENTATION_UNKNOWN: 395 return PhoneConstants.PRESENTATION_RESTRICTED; 397 return PhoneConstants.PRESENTATION_ALLOWED; 399 return PhoneConstants.PRESENTATION_PAYPHONE; 401 return PhoneConstants.PRESENTATION_UNKNOWN; 403 return PhoneConstants.PRESENTATION_UNKNOWN [all...] |
/packages/services/Telephony/src/com/android/services/telephony/ |
ConferenceParticipantConnection.java | 19 import com.android.internal.telephony.PhoneConstants; 56 setAddress(participant.getHandle(), PhoneConstants.PRESENTATION_ALLOWED); 57 setCallerDisplayName(participant.getDisplayName(), PhoneConstants.PRESENTATION_ALLOWED);
|
EmergencyCallHelper.java | 31 import com.android.internal.telephony.PhoneConstants; 180 private boolean isOkToCall(int serviceState, PhoneConstants.State phoneState) { 183 return ((phoneState == PhoneConstants.State.OFFHOOK) 196 PhoneConstants.State phoneState = mPhone.getState();
|
/packages/services/Telephony/src/com/android/phone/ |
MMIDialogActivity.java | 31 import com.android.internal.telephony.PhoneConstants; 66 if (mCM.getState() == PhoneConstants.State.OFFHOOK) { 107 if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) { 109 } else if (phoneType == PhoneConstants.PHONE_TYPE_GSM) {
|
GsmUmtsCallOptions.java | 27 import com.android.internal.telephony.PhoneConstants; 47 if (subInfoHelper.getPhone().getPhoneType() != PhoneConstants.PHONE_TYPE_GSM) {
|
PhoneGlobals.java | 64 import com.android.internal.telephony.PhoneConstants; 180 private PhoneConstants.State mLastPhoneState = PhoneConstants.State.IDLE; 229 PhoneConstants.State phoneState; 309 if (phoneState == PhoneConstants.State.OFFHOOK && 685 PhoneConstants.State state = mCM.getState(); 695 boolean isSpeakerInUse = (state == PhoneConstants.State.OFFHOOK) && PhoneUtils.isSpeakerOn(this); 712 boolean isRinging = (state == PhoneConstants.State.RINGING); 736 /* package */ void updatePhoneState(PhoneConstants.State state) { 744 if (state != PhoneConstants.State.IDLE) [all...] |
PhoneUtils.java | 61 import com.android.internal.telephony.PhoneConstants; 215 final boolean phoneIsCdma = (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA); 613 final boolean initiallyIdle = app.mCM.getState() == PhoneConstants.State.IDLE; 640 if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) { 722 if (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA) { 771 if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) { [all...] |
CdmaCallOptions.java | 20 import com.android.internal.telephony.PhoneConstants; 61 if (subInfoHelper.getPhone().getPhoneType() != PhoneConstants.PHONE_TYPE_CDMA
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
ImsPhoneBase.java | 47 import com.android.internal.telephony.PhoneConstants; 63 private PhoneConstants.State mState = PhoneConstants.State.IDLE; 153 public PhoneConstants.State getState() { 159 return PhoneConstants.PHONE_TYPE_IMS; 183 public PhoneConstants.DataState getDataConnectionState() { 184 return PhoneConstants.DataState.DISCONNECTED; 188 public PhoneConstants.DataState getDataConnectionState(String apnType) { 189 return PhoneConstants.DataState.DISCONNECTED; 199 * {@link com.android.internal.telephony.PhoneConstants.State [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/ |
SipPhoneBase.java | 44 import com.android.internal.telephony.PhoneConstants; 58 private PhoneConstants.State mState = PhoneConstants.State.IDLE; 120 public PhoneConstants.State getState() { 126 return PhoneConstants.PHONE_TYPE_SIP; 150 public PhoneConstants.DataState getDataConnectionState() { 151 return PhoneConstants.DataState.DISCONNECTED; 155 public PhoneConstants.DataState getDataConnectionState(String apnType) { 156 return PhoneConstants.DataState.DISCONNECTED; 522 PhoneConstants.State oldState = mState [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/ |
CallUtil.java | 20 import com.android.phone.common.PhoneConstants; 65 intent.putExtra(PhoneConstants.EXTRA_CALL_ORIGIN, callOrigin);
|
/packages/apps/CellBroadcastReceiver/tests/src/com/android/cellbroadcastreceiver/tests/ |
SendCdmaCmasMessages.java | 28 import com.android.internal.telephony.PhoneConstants; 65 intent.putExtra(PhoneConstants.SUBSCRIPTION_KEY, subId); 80 intent.putExtra(PhoneConstants.SUBSCRIPTION_KEY, subId); 95 intent.putExtra(PhoneConstants.SUBSCRIPTION_KEY, subId); 110 intent.putExtra(PhoneConstants.SUBSCRIPTION_KEY, subId); 125 intent.putExtra(PhoneConstants.SUBSCRIPTION_KEY, subId);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
DcTracker.java | 71 import com.android.internal.telephony.PhoneConstants; 375 boolean isEmergencyApn = apnContext.getApnType().equals(PhoneConstants.APN_TYPE_EMERGENCY); 381 if ((apnContext.getApnType().equals(PhoneConstants.APN_TYPE_DEFAULT) 382 || apnContext.getApnType().equals(PhoneConstants.APN_TYPE_IA)) 422 apnContext = addApnContext(PhoneConstants.APN_TYPE_DEFAULT, networkConfig); 425 apnContext = addApnContext(PhoneConstants.APN_TYPE_MMS, networkConfig); 428 apnContext = addApnContext(PhoneConstants.APN_TYPE_SUPL, networkConfig); 431 apnContext = addApnContext(PhoneConstants.APN_TYPE_DUN, networkConfig); 434 apnContext = addApnContext(PhoneConstants.APN_TYPE_HIPRI, networkConfig); 437 apnContext = addApnContext(PhoneConstants.APN_TYPE_FOTA, networkConfig) [all...] |
DcSwitchAsyncChannel.java | 26 import com.android.internal.telephony.PhoneConstants; 112 return PhoneConstants.APN_REQUEST_STARTED; 121 return PhoneConstants.APN_REQUEST_STARTED;
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
GSMPhoneTest.java.broken | 33 import com.android.internal.telephony.PhoneConstants; 144 assertEquals(PhoneConstants.State.IDLE, mGSMPhone.getState()); 163 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState()); 168 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState()); 205 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState()); 232 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState()); 257 assertEquals(PhoneConstants.State.IDLE, mGSMPhone.getState()); 281 assertEquals(PhoneConstants.State.IDLE, mGSMPhone.getState()); 308 assertEquals(PhoneConstants.State.RINGING, mGSMPhone.getState()); 343 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState()) [all...] |