/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 | 48 return (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA); 69 return (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA); 78 return (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA); 90 return (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_GSM); 102 if (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_GSM) { 104 } else if (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA) { 124 return ((phone.getPhoneType() == PhoneConstants.PHONE_TYPE_GSM) 125 || (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_SIP)); 138 return ((phone.getPhoneType() == PhoneConstants.PHONE_TYPE_GSM) 139 || (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_SIP)) [all...] |
PhoneFactory.java | 104 if (TelephonyManager.getLteOnCdmaModeStatic() == PhoneConstants.LTE_ON_CDMA_TRUE) { 118 case PhoneConstants.LTE_ON_CDMA_FALSE: 122 case PhoneConstants.LTE_ON_CDMA_TRUE: 126 case PhoneConstants.LTE_ON_CDMA_UNKNOWN: 144 if (phoneType == PhoneConstants.PHONE_TYPE_GSM) { 148 } else if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) { 150 case PhoneConstants.LTE_ON_CDMA_TRUE: 155 case PhoneConstants.LTE_ON_CDMA_FALSE: 185 case PhoneConstants.LTE_ON_CDMA_TRUE: { 189 case PhoneConstants.LTE_ON_CDMA_FALSE [all...] |
DefaultPhoneNotifier.java | 111 PhoneConstants.DataState state) { 116 PhoneConstants.DataState state) { 125 if (state == PhoneConstants.DataState.CONNECTED) { 187 * Convert the {@link PhoneConstants.State} enum into the TelephonyManager.CALL_STATE_* 190 public static int convertCallState(PhoneConstants.State state) { 203 * {@link PhoneConstants.State} enum for the public API. 205 public static PhoneConstants.State convertCallState(int state) { 208 return PhoneConstants.State.RINGING; 210 return PhoneConstants.State.OFFHOOK; 212 return PhoneConstants.State.IDLE [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);
|
PhoneNotifier.java | 42 PhoneConstants.DataState state);
|
/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 | 32 import com.android.internal.telephony.PhoneConstants; 115 public PhoneConstants.DataState getDataConnectionState(String apnType) { 116 PhoneConstants.DataState ret = PhoneConstants.DataState.DISCONNECTED; 122 ret = PhoneConstants.DataState.DISCONNECTED; 124 ret = PhoneConstants.DataState.DISCONNECTED; 130 ret = PhoneConstants.DataState.DISCONNECTED; 135 if (mCT.mState != PhoneConstants.State.IDLE && 137 ret = PhoneConstants.DataState.SUSPENDED; 139 ret = PhoneConstants.DataState.CONNECTED [all...] |
/frameworks/base/telephony/java/android/telephony/ |
CellLocation.java | 29 import com.android.internal.telephony.PhoneConstants; 67 case PhoneConstants.PHONE_TYPE_CDMA: 69 case PhoneConstants.PHONE_TYPE_GSM: 95 case PhoneConstants.PHONE_TYPE_CDMA: 97 case PhoneConstants.PHONE_TYPE_GSM:
|
TelephonyManager.java | 31 import com.android.internal.telephony.PhoneConstants; 162 public static final String EXTRA_STATE = PhoneConstants.STATE_KEY; 168 public static final String EXTRA_STATE_IDLE = PhoneConstants.State.IDLE.toString(); 174 public static final String EXTRA_STATE_RINGING = PhoneConstants.State.RINGING.toString(); 180 public static final String EXTRA_STATE_OFFHOOK = PhoneConstants.State.OFFHOOK.toString(); 321 public static final int PHONE_TYPE_NONE = PhoneConstants.PHONE_TYPE_NONE; 323 public static final int PHONE_TYPE_GSM = PhoneConstants.PHONE_TYPE_GSM; 325 public static final int PHONE_TYPE_CDMA = PhoneConstants.PHONE_TYPE_CDMA; 327 public static final int PHONE_TYPE_SIP = PhoneConstants.PHONE_TYPE_SIP; 407 return PhoneConstants.PHONE_TYPE_CDMA [all...] |
/frameworks/base/core/java/android/net/ |
MobileDataStateTracker.java | 37 import com.android.internal.telephony.PhoneConstants; 57 private PhoneConstants.DataState mMobileDataState; 107 mMobileDataState = PhoneConstants.DataState.DISCONNECTED; 176 String apnType = intent.getStringExtra(PhoneConstants.DATA_APN_TYPE_KEY); 196 PhoneConstants.DataState state = Enum.valueOf(PhoneConstants.DataState.class, 197 intent.getStringExtra(PhoneConstants.STATE_KEY)); 198 String reason = intent.getStringExtra(PhoneConstants.STATE_CHANGE_REASON_KEY); 199 String apnName = intent.getStringExtra(PhoneConstants.DATA_APN_KEY); 201 PhoneConstants.DATA_NETWORK_ROAMING_KEY, false)) [all...] |
/packages/apps/Phone/src/com/android/phone/ |
GsmUmtsCallOptions.java | 26 import com.android.internal.telephony.PhoneConstants; 38 if (PhoneGlobals.getPhone().getPhoneType() != PhoneConstants.PHONE_TYPE_GSM) {
|
CdmaCallOptions.java | 20 import com.android.internal.telephony.PhoneConstants; 47 if (PhoneGlobals.getPhone().getPhoneType() != PhoneConstants.PHONE_TYPE_CDMA
|
GsmUmtsOptions.java | 26 import com.android.internal.telephony.PhoneConstants; 57 if (PhoneFactory.getDefaultPhone().getPhoneType() != PhoneConstants.PHONE_TYPE_GSM) {
|
CallCard.java | 50 import com.android.internal.telephony.PhoneConstants; 253 PhoneConstants.State state = cm.getState(); // IDLE, RINGING, or OFFHOOK 320 private void updateCallInfoLayout(PhoneConstants.State state) { 321 boolean ringing = (state == PhoneConstants.State.RINGING); 369 if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) { 379 } else if ((phoneType == PhoneConstants.PHONE_TYPE_GSM) 380 || (phoneType == PhoneConstants.PHONE_TYPE_SIP)) { 531 if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) { 533 } else if ((phoneType == PhoneConstants.PHONE_TYPE_GSM) 534 || (phoneType == PhoneConstants.PHONE_TYPE_SIP)) [all...] |
CallNotifier.java | 25 import com.android.internal.telephony.PhoneConstants; 263 if ((pb.getState() == PhoneConstants.State.RINGING) 661 if (mCM.getState() != PhoneConstants.State.RINGING) { 678 PhoneConstants.State state = mCM.getState(); 680 if (state == PhoneConstants.State.OFFHOOK) { [all...] |
/packages/apps/Phone/tests/src/com/android/phone/unit/ |
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 | 20 import com.android.internal.telephony.PhoneConstants; 55 PhoneConstants.DataState state) {
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/ |
CallUtil.java | 24 import com.android.phone.common.PhoneConstants; 72 intent.putExtra(PhoneConstants.EXTRA_CALL_ORIGIN, callOrigin);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
DcTrackerBase.java | 54 import com.android.internal.telephony.PhoneConstants; 114 protected String mRequestedApnType = PhoneConstants.APN_TYPE_DEFAULT; 547 if (PhoneConstants.APN_TYPE_DUN.equals(type)) { 582 result[0] = PhoneConstants.APN_TYPE_DEFAULT; [all...] |
ApnSetting.java | 19 import com.android.internal.telephony.PhoneConstants; 187 t.equalsIgnoreCase(PhoneConstants.APN_TYPE_ALL) || 188 (t.equalsIgnoreCase(PhoneConstants.APN_TYPE_DEFAULT) && 189 type.equalsIgnoreCase(PhoneConstants.APN_TYPE_HIPRI))) {
|
DcTracker.java | 57 import com.android.internal.telephony.PhoneConstants; 244 apnContext = addApnContext(PhoneConstants.APN_TYPE_DEFAULT); 248 apnContext = addApnContext(PhoneConstants.APN_TYPE_MMS); 251 apnContext = addApnContext(PhoneConstants.APN_TYPE_SUPL); 254 apnContext = addApnContext(PhoneConstants.APN_TYPE_DUN); 257 apnContext = addApnContext(PhoneConstants.APN_TYPE_HIPRI); 258 ApnContext defaultContext = mApnContexts.get(PhoneConstants.APN_TYPE_DEFAULT); 267 apnContext = addApnContext(PhoneConstants.APN_TYPE_FOTA); 270 apnContext = addApnContext(PhoneConstants.APN_TYPE_IMS); 273 apnContext = addApnContext(PhoneConstants.APN_TYPE_CBS) [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/ |
SipPhoneBase.java | 43 import com.android.internal.telephony.PhoneConstants; 57 private PhoneConstants.State mState = PhoneConstants.State.IDLE; 142 public PhoneConstants.State getState() { 148 return PhoneConstants.PHONE_TYPE_SIP; 172 public PhoneConstants.DataState getDataConnectionState() { 173 return PhoneConstants.DataState.DISCONNECTED; 177 public PhoneConstants.DataState getDataConnectionState(String apnType) { 178 return PhoneConstants.DataState.DISCONNECTED; 188 * {@link com.android.internal.telephony.PhoneConstants.State [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
GSMPhoneTest.java | 31 import com.android.internal.telephony.PhoneConstants; 142 assertEquals(PhoneConstants.State.IDLE, mGSMPhone.getState()); 161 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState()); 166 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState()); 203 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState()); 230 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState()); 255 assertEquals(PhoneConstants.State.IDLE, mGSMPhone.getState()); 279 assertEquals(PhoneConstants.State.IDLE, mGSMPhone.getState()); 306 assertEquals(PhoneConstants.State.RINGING, mGSMPhone.getState()); 341 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState()) [all...] |