/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...] |
DefaultPhoneNotifier.java | 37 import com.android.internal.telephony.PhoneConstants; 157 PhoneConstants.DataState state) { 162 PhoneConstants.DataState state) { 175 if (state == PhoneConstants.DataState.CONNECTED) { 306 * Convert the {@link PhoneConstants.State} enum into the TelephonyManager.CALL_STATE_* 309 public static int convertCallState(PhoneConstants.State state) { 322 * {@link PhoneConstants.State} enum for the public API. 324 public static PhoneConstants.State convertCallState(int state) { 327 return PhoneConstants.State.RINGING; 329 return PhoneConstants.State.OFFHOOK [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);
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
ApnSettingTest.java | 23 import com.android.internal.telephony.PhoneConstants; 212 new String[]{PhoneConstants.APN_TYPE_DEFAULT, PhoneConstants.APN_TYPE_MMS}); 215 new String[]{PhoneConstants.APN_TYPE_DEFAULT}). 219 new String[]{PhoneConstants.APN_TYPE_DEFAULT, PhoneConstants.APN_TYPE_MMS}). 223 new String[]{PhoneConstants.APN_TYPE_MMS}). 227 new String[]{PhoneConstants.APN_TYPE_MMS, PhoneConstants.APN_TYPE_SUPL}). 231 new String[]{PhoneConstants.APN_TYPE_DEFAULT, PhoneConstants.APN_TYPE_DUN}) [all...] |
DcTrackerTest.java | 48 import com.android.internal.telephony.PhoneConstants; 309 doReturn(PhoneConstants.State.IDLE).when(mCT).getState(); 372 eq(PhoneConstants.APN_TYPE_DEFAULT)); 377 assertEquals(apnSetting, mDct.getActiveApnString(PhoneConstants.APN_TYPE_DEFAULT)); 378 assertArrayEquals(new String[]{PhoneConstants.APN_TYPE_DEFAULT}, mDct.getActiveApnTypes()); 382 assertEquals(DctConstants.State.CONNECTED, mDct.getState(PhoneConstants.APN_TYPE_DEFAULT)); 384 LinkProperties linkProperties = mDct.getLinkProperties(PhoneConstants.APN_TYPE_DEFAULT); 425 eq(PhoneConstants.DataState.DISCONNECTED)); 436 eq(PhoneConstants.DataState.DISCONNECTED)); 443 eq(PhoneConstants.DataState.DISCONNECTED)) [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: 98 case PhoneConstants.PHONE_TYPE_CDMA: 100 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;
|
/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) {
|
ImsSMSDispatcherTest.java | 103 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_GSM); 108 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_CDMA); 115 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_GSM); 125 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_GSM); 134 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_CDMA); 145 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_CDMA); 148 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType(); 159 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_GSM);
|
GsmCdmaCallTrackerTest.java | 92 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); 103 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); 133 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); 145 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); 153 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); 169 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); 190 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); 223 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); 230 assertEquals(PhoneConstants.State.RINGING, mCTUT.getState()); 249 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()) [all...] |
/packages/services/Telephony/src/com/android/services/telephony/ |
ConferenceParticipantConnection.java | 20 import com.android.internal.telephony.PhoneConstants; 69 if (presentation != PhoneConstants.PRESENTATION_ALLOWED) { 173 return PhoneConstants.PRESENTATION_RESTRICTED; 179 return PhoneConstants.PRESENTATION_RESTRICTED; 197 return PhoneConstants.PRESENTATION_ALLOWED; 204 return PhoneConstants.PRESENTATION_RESTRICTED; 207 return PhoneConstants.PRESENTATION_ALLOWED;
|
/frameworks/base/telephony/java/com/android/ims/ |
ImsCallProfile.java | 24 import com.android.internal.telephony.PhoneConstants; 417 case PhoneConstants.PRESENTATION_RESTRICTED: 419 case PhoneConstants.PRESENTATION_ALLOWED: 421 case PhoneConstants.PRESENTATION_PAYPHONE: 423 case PhoneConstants.PRESENTATION_UNKNOWN: 438 return PhoneConstants.PRESENTATION_RESTRICTED; 440 return PhoneConstants.PRESENTATION_ALLOWED; 442 return PhoneConstants.PRESENTATION_PAYPHONE; 444 return PhoneConstants.PRESENTATION_UNKNOWN; 446 return PhoneConstants.PRESENTATION_UNKNOWN [all...] |
/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 | 53 import com.android.internal.telephony.PhoneConstants; 186 PhoneConstants.State phoneState; 580 PhoneConstants.State state = mCM.getState(); 590 boolean isSpeakerInUse = (state == PhoneConstants.State.OFFHOOK) && PhoneUtils.isSpeakerOn(this); 607 boolean isRinging = (state == PhoneConstants.State.RINGING); 638 Settings.Global.CELL_ON, PhoneConstants.CELL_ON_FLAG); 641 case PhoneConstants.CELL_OFF_FLAG: 645 case PhoneConstants.CELL_ON_FLAG: 648 case PhoneConstants.CELL_OFF_DUE_TO_AIRPLANE_MODE_FLAG: 667 PhoneConstants.CELL_OFF_DUE_TO_AIRPLANE_MODE_FLAG) [all...] |
PhoneUtils.java | 61 import com.android.internal.telephony.PhoneConstants; 219 final boolean phoneIsCdma = (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA); 597 final boolean initiallyIdle = app.mCM.getState() == PhoneConstants.State.IDLE; 624 if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) { 692 if (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA) { 741 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/dataconnection/ |
ApnContext.java | 33 import com.android.internal.telephony.PhoneConstants; 642 case PhoneConstants.APN_TYPE_DEFAULT: 644 case PhoneConstants.APN_TYPE_MMS: 646 case PhoneConstants.APN_TYPE_SUPL: 648 case PhoneConstants.APN_TYPE_DUN: 650 case PhoneConstants.APN_TYPE_HIPRI: 652 case PhoneConstants.APN_TYPE_IMS: 654 case PhoneConstants.APN_TYPE_FOTA: 656 case PhoneConstants.APN_TYPE_CBS: 658 case PhoneConstants.APN_TYPE_IA [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
ImsPhoneBase.java | 41 import com.android.internal.telephony.PhoneConstants; 55 private PhoneConstants.State mState = PhoneConstants.State.IDLE; 158 public PhoneConstants.State getState() { 164 return PhoneConstants.PHONE_TYPE_IMS; 188 public PhoneConstants.DataState getDataConnectionState() { 189 return PhoneConstants.DataState.DISCONNECTED; 193 public PhoneConstants.DataState getDataConnectionState(String apnType) { 194 return PhoneConstants.DataState.DISCONNECTED; 204 * {@link com.android.internal.telephony.PhoneConstants.State [all...] |
ImsExternalConnection.java | 24 import com.android.internal.telephony.PhoneConstants; 92 mNumberPresentation = PhoneConstants.PRESENTATION_ALLOWED; 228 mCnapNamePresentation = PhoneConstants.PRESENTATION_ALLOWED; 230 mNumberPresentation = PhoneConstants.PRESENTATION_RESTRICTED;
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/ |
SipPhoneBase.java | 41 import com.android.internal.telephony.PhoneConstants; 54 private PhoneConstants.State mState = PhoneConstants.State.IDLE; 118 public PhoneConstants.State getState() { 124 return PhoneConstants.PHONE_TYPE_SIP; 148 public PhoneConstants.DataState getDataConnectionState() { 149 return PhoneConstants.DataState.DISCONNECTED; 153 public PhoneConstants.DataState getDataConnectionState(String apnType) { 154 return PhoneConstants.DataState.DISCONNECTED; 510 PhoneConstants.State oldState = mState [all...] |
SipConnectionBase.java | 22 import com.android.internal.telephony.PhoneConstants; 54 super(PhoneConstants.PHONE_TYPE_SIP); 163 return PhoneConstants.PRESENTATION_ALLOWED;
|