/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | TelephonyCapabilities.java | 50 return (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA || in supportsEcm() 72 return (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA); in supportsOtasp() 93 return (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_GSM); in supportsNetworkSelection() 105 if (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_GSM) { in getDeviceIdLabel() 107 } else if (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA) { in getDeviceIdLabel() 127 return ((phone.getPhoneType() == PhoneConstants.PHONE_TYPE_GSM) in supportsConferenceCallManagement() 128 || (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_SIP)); in supportsConferenceCallManagement() 141 return ((phone.getPhoneType() == PhoneConstants.PHONE_TYPE_GSM) in supportsHoldAndUnhold() 142 || (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_SIP) in supportsHoldAndUnhold() 143 || (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_IMS)); in supportsHoldAndUnhold() [all …]
|
D | DefaultPhoneNotifier.java | 38 import com.android.internal.telephony.PhoneConstants; 153 PhoneConstants.DataState state) { in notifyDataConnection() 158 PhoneConstants.DataState state) { in doNotifyDataConnection() 171 if (state == PhoneConstants.DataState.CONNECTED) { in doNotifyDataConnection() 315 public static int convertCallState(PhoneConstants.State state) { in convertCallState() 330 public static PhoneConstants.State convertCallState(int state) { in convertCallState() 333 return PhoneConstants.State.RINGING; in convertCallState() 335 return PhoneConstants.State.OFFHOOK; in convertCallState() 337 return PhoneConstants.State.IDLE; in convertCallState() 345 public static int convertDataState(PhoneConstants.DataState state) { in convertDataState() [all …]
|
D | DriverCall.java | 72 ret.numberPresentation = PhoneConstants.PRESENTATION_ALLOWED; in fromCLCCLine() 137 case 0: return PhoneConstants.PRESENTATION_ALLOWED; in presentationFromCLIP() 138 case 1: return PhoneConstants.PRESENTATION_RESTRICTED; in presentationFromCLIP() 139 case 2: return PhoneConstants.PRESENTATION_UNKNOWN; in presentationFromCLIP() 140 case 3: return PhoneConstants.PRESENTATION_PAYPHONE; in presentationFromCLIP()
|
D | PhoneStateIntentReceiver.java | 47 PhoneConstants.State mPhoneState = PhoneConstants.State.IDLE; 78 public PhoneConstants.State getPhoneState() { in getPhoneState() 175 + intent.getStringExtra(PhoneConstants.STATE_KEY)); in onReceive() 176 String phoneState = intent.getStringExtra(PhoneConstants.STATE_KEY); in onReceive() 178 PhoneConstants.State.class, phoneState); in onReceive()
|
D | CallManager.java | 273 public PhoneConstants.State getState() { in getState() 274 PhoneConstants.State s = PhoneConstants.State.IDLE; in getState() 277 if (phone.getState() == PhoneConstants.State.RINGING) { in getState() 278 s = PhoneConstants.State.RINGING; in getState() 279 } else if (phone.getState() == PhoneConstants.State.OFFHOOK) { in getState() 280 if (s == PhoneConstants.State.IDLE) s = PhoneConstants.State.OFFHOOK; in getState() 292 public PhoneConstants.State getState(int subId) { in getState() 293 PhoneConstants.State s = PhoneConstants.State.IDLE; in getState() 297 if (phone.getState() == PhoneConstants.State.RINGING) { in getState() 298 s = PhoneConstants.State.RINGING; in getState() [all …]
|
/frameworks/base/core/java/android/net/ |
D | MobileDataStateTracker.java | 39 import com.android.internal.telephony.PhoneConstants; 60 private PhoneConstants.DataState mMobileDataState; 118 mMobileDataState = PhoneConstants.DataState.DISCONNECTED; in startMonitoring() 195 PhoneConstants.DATA_LINK_PROPERTIES_KEY); in updateLinkProperitesAndCapatilities() 203 PhoneConstants.DATA_NETWORK_CAPABILITIES_KEY); in updateLinkProperitesAndCapatilities() 215 String apnName = intent.getStringExtra(PhoneConstants.DATA_APN_KEY); in onReceive() 216 String apnType = intent.getStringExtra(PhoneConstants.DATA_APN_TYPE_KEY); in onReceive() 226 mMobileDataState = PhoneConstants.DataState.CONNECTING; in onReceive() 235 String apnType = intent.getStringExtra(PhoneConstants.DATA_APN_TYPE_KEY); in onReceive() 260 PhoneConstants.DataState state = Enum.valueOf(PhoneConstants.DataState.class, in onReceive() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
D | CdmaCallWaitingNotification.java | 20 import com.android.internal.telephony.PhoneConstants; 60 case 0: return PhoneConstants.PRESENTATION_ALLOWED; in presentationFromCLIP() 61 case 1: return PhoneConstants.PRESENTATION_RESTRICTED; in presentationFromCLIP() 62 case 2: return PhoneConstants.PRESENTATION_UNKNOWN; in presentationFromCLIP() 66 return PhoneConstants.PRESENTATION_UNKNOWN; in presentationFromCLIP()
|
D | CDMALTEPhone.java | 45 import com.android.internal.telephony.PhoneConstants; 147 public PhoneConstants.DataState getDataConnectionState(String apnType) { in getDataConnectionState() 148 PhoneConstants.DataState ret = PhoneConstants.DataState.DISCONNECTED; in getDataConnectionState() 154 ret = PhoneConstants.DataState.DISCONNECTED; in getDataConnectionState() 156 ret = PhoneConstants.DataState.DISCONNECTED; in getDataConnectionState() 162 ret = PhoneConstants.DataState.DISCONNECTED; in getDataConnectionState() 167 if (mCT.mState != PhoneConstants.State.IDLE && in getDataConnectionState() 169 ret = PhoneConstants.DataState.SUSPENDED; in getDataConnectionState() 171 ret = PhoneConstants.DataState.CONNECTED; in getDataConnectionState() 177 ret = PhoneConstants.DataState.CONNECTING; in getDataConnectionState() [all …]
|
D | CDMAPhone.java | 60 import com.android.internal.telephony.PhoneConstants; 157 mCi.setPhoneType(PhoneConstants.PHONE_TYPE_CDMA); in init() 181 tm.setPhoneType(getPhoneId(), PhoneConstants.PHONE_TYPE_CDMA); in init() 295 public PhoneConstants.State getState() { in getState() 297 PhoneConstants.State imsState = mImsPhone.getState(); in getState() 298 if (imsState != PhoneConstants.State.IDLE) { in getState() 313 return PhoneConstants.PHONE_TYPE_CDMA; in getPhoneType() 773 public PhoneConstants.DataState getDataConnectionState(String apnType) { in getDataConnectionState() 774 PhoneConstants.DataState ret = PhoneConstants.DataState.DISCONNECTED; in getDataConnectionState() 780 ret = PhoneConstants.DataState.DISCONNECTED; in getDataConnectionState() [all …]
|
/frameworks/base/telephony/java/android/telephony/ |
D | CellLocation.java | 26 import com.android.internal.telephony.PhoneConstants; 64 case PhoneConstants.PHONE_TYPE_CDMA: in newFromBundle() 66 case PhoneConstants.PHONE_TYPE_GSM: in newFromBundle() 92 case PhoneConstants.PHONE_TYPE_CDMA: in getEmpty() 94 case PhoneConstants.PHONE_TYPE_GSM: in getEmpty()
|
D | TelephonyManager.java | 38 import com.android.internal.telephony.PhoneConstants; 173 phoneCount = PhoneConstants.MAX_PHONE_COUNT_DUAL_SIM; in getPhoneCount() 176 phoneCount = PhoneConstants.MAX_PHONE_COUNT_TRI_SIM; in getPhoneCount() 278 public static final String EXTRA_STATE = PhoneConstants.STATE_KEY; 284 public static final String EXTRA_STATE_IDLE = PhoneConstants.State.IDLE.toString(); 290 public static final String EXTRA_STATE_RINGING = PhoneConstants.State.RINGING.toString(); 296 public static final String EXTRA_STATE_OFFHOOK = PhoneConstants.State.OFFHOOK.toString(); 480 public static final String EXTRA_DATA_STATE = PhoneConstants.STATE_KEY; 509 public static final String EXTRA_DATA_NETWORK_TYPE = PhoneConstants.DATA_NETWORK_TYPE_KEY; 521 public static final String EXTRA_DATA_APN_TYPE = PhoneConstants.DATA_APN_TYPE_KEY; [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/ |
D | SipPhoneBase.java | 43 import com.android.internal.telephony.PhoneConstants; 57 private PhoneConstants.State mState = PhoneConstants.State.IDLE; 119 public PhoneConstants.State getState() { in getState() 125 return PhoneConstants.PHONE_TYPE_SIP; in getPhoneType() 149 public PhoneConstants.DataState getDataConnectionState() { in getDataConnectionState() 150 return PhoneConstants.DataState.DISCONNECTED; in getDataConnectionState() 154 public PhoneConstants.DataState getDataConnectionState(String apnType) { in getDataConnectionState() 155 return PhoneConstants.DataState.DISCONNECTED; in getDataConnectionState() 506 PhoneConstants.State oldState = mState; in updatePhoneState() 509 mState = PhoneConstants.State.RINGING; in updatePhoneState() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
D | ImsPhoneBase.java | 46 import com.android.internal.telephony.PhoneConstants; 62 private PhoneConstants.State mState = PhoneConstants.State.IDLE; 159 public PhoneConstants.State getState() { in getState() 165 return PhoneConstants.PHONE_TYPE_IMS; in getPhoneType() 189 public PhoneConstants.DataState getDataConnectionState() { in getDataConnectionState() 190 return PhoneConstants.DataState.DISCONNECTED; in getDataConnectionState() 194 public PhoneConstants.DataState getDataConnectionState(String apnType) { in getDataConnectionState() 195 return PhoneConstants.DataState.DISCONNECTED; in getDataConnectionState() 544 PhoneConstants.State oldState = mState; in updatePhoneState() 547 mState = PhoneConstants.State.RINGING; in updatePhoneState() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
D | GSMPhoneTest.java | 33 import com.android.internal.telephony.PhoneConstants; 144 assertEquals(PhoneConstants.State.IDLE, mGSMPhone.getState()); in brokenTestGeneral() 163 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState()); in brokenTestGeneral() 168 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState()); in brokenTestGeneral() 205 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState()); in brokenTestGeneral() 232 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState()); in brokenTestGeneral() 257 assertEquals(PhoneConstants.State.IDLE, mGSMPhone.getState()); in brokenTestGeneral() 281 assertEquals(PhoneConstants.State.IDLE, mGSMPhone.getState()); in brokenTestGeneral() 308 assertEquals(PhoneConstants.State.RINGING, mGSMPhone.getState()); in brokenTestGeneral() 343 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState()); in brokenTestGeneral() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DcSwitchStateMachine.java | 24 import com.android.internal.telephony.PhoneConstants; 100 PhoneConstants.APN_REQUEST_STARTED); in processMessage() 154 PhoneConstants.APN_REQUEST_STARTED); in processMessage() 173 PhoneConstants.APN_REQUEST_STARTED); in processMessage() 213 PhoneConstants.APN_REQUEST_STARTED); in processMessage() 226 PhoneConstants.APN_REQUEST_STARTED); in processMessage() 238 PhoneConstants.APN_REQUEST_STARTED); in processMessage() 294 PhoneConstants.APN_REQUEST_STARTED); in processMessage()
|
D | DcTracker.java | 73 import com.android.internal.telephony.PhoneConstants; 377 boolean isEmergencyApn = apnContext.getApnType().equals(PhoneConstants.APN_TYPE_EMERGENCY); in isDataPossible() 430 apnContext = addApnContext(PhoneConstants.APN_TYPE_DEFAULT, networkConfig); in initApnContexts() 433 apnContext = addApnContext(PhoneConstants.APN_TYPE_MMS, networkConfig); in initApnContexts() 436 apnContext = addApnContext(PhoneConstants.APN_TYPE_SUPL, networkConfig); in initApnContexts() 439 apnContext = addApnContext(PhoneConstants.APN_TYPE_DUN, networkConfig); in initApnContexts() 442 apnContext = addApnContext(PhoneConstants.APN_TYPE_HIPRI, networkConfig); in initApnContexts() 445 apnContext = addApnContext(PhoneConstants.APN_TYPE_FOTA, networkConfig); in initApnContexts() 448 apnContext = addApnContext(PhoneConstants.APN_TYPE_IMS, networkConfig); in initApnContexts() 451 apnContext = addApnContext(PhoneConstants.APN_TYPE_CBS, networkConfig); in initApnContexts() [all …]
|
D | DcTrackerBase.java | 57 import com.android.internal.telephony.PhoneConstants; 122 protected String mRequestedApnType = PhoneConstants.APN_TYPE_DEFAULT; 509 int currSubId = intent.getIntExtra(PhoneConstants.SUBSCRIPTION_KEY, in onActionIntentReconnectAlarm() 682 if (PhoneConstants.APN_TYPE_DUN.equals(type)) { in isApnTypeActive() 761 result[0] = PhoneConstants.APN_TYPE_DEFAULT; in getActiveApnTypes() 1162 if (TextUtils.equals(type, PhoneConstants.APN_TYPE_DEFAULT)) { in apnTypeToId() 1164 } else if (TextUtils.equals(type, PhoneConstants.APN_TYPE_MMS)) { in apnTypeToId() 1166 } else if (TextUtils.equals(type, PhoneConstants.APN_TYPE_SUPL)) { in apnTypeToId() 1168 } else if (TextUtils.equals(type, PhoneConstants.APN_TYPE_DUN)) { in apnTypeToId() 1170 } else if (TextUtils.equals(type, PhoneConstants.APN_TYPE_HIPRI)) { in apnTypeToId() [all …]
|
D | DcSwitchAsyncChannel.java | 21 import com.android.internal.telephony.PhoneConstants; 110 return PhoneConstants.APN_REQUEST_FAILED; in connectSync() 126 return PhoneConstants.APN_REQUEST_FAILED; in disconnectSync() 142 return PhoneConstants.APN_REQUEST_FAILED; in disconnectAllSync()
|
D | DctController.java | 37 import com.android.internal.telephony.PhoneConstants; 292 return PhoneConstants.APN_REQUEST_STARTED; in requestNetwork() 302 return PhoneConstants.APN_REQUEST_STARTED; in releaseNetwork() 515 name = PhoneConstants.APN_TYPE_DEFAULT; in apnForNetworkRequest() 520 name = PhoneConstants.APN_TYPE_MMS; in apnForNetworkRequest() 525 name = PhoneConstants.APN_TYPE_SUPL; in apnForNetworkRequest() 530 name = PhoneConstants.APN_TYPE_DUN; in apnForNetworkRequest() 535 name = PhoneConstants.APN_TYPE_FOTA; in apnForNetworkRequest() 540 name = PhoneConstants.APN_TYPE_IMS; in apnForNetworkRequest() 545 name = PhoneConstants.APN_TYPE_CBS; in apnForNetworkRequest() [all …]
|
D | ApnSetting.java | 21 import com.android.internal.telephony.PhoneConstants; 190 int mtu = PhoneConstants.UNSET_MTU; in fromString() 312 t.equalsIgnoreCase(PhoneConstants.APN_TYPE_ALL) || in canHandleType() 313 (t.equalsIgnoreCase(PhoneConstants.APN_TYPE_DEFAULT) && in canHandleType() 314 type.equalsIgnoreCase(PhoneConstants.APN_TYPE_HIPRI))) { in canHandleType()
|
/frameworks/base/telephony/java/com/android/ims/ |
D | ImsCallProfile.java | 24 import com.android.internal.telephony.PhoneConstants; 364 case PhoneConstants.PRESENTATION_RESTRICTED: in presentationToOIR() 366 case PhoneConstants.PRESENTATION_ALLOWED: in presentationToOIR() 381 return PhoneConstants.PRESENTATION_RESTRICTED; in OIRToPresentation() 383 return PhoneConstants.PRESENTATION_ALLOWED; in OIRToPresentation() 385 return PhoneConstants.PRESENTATION_UNKNOWN; in OIRToPresentation()
|
/frameworks/base/services/core/java/com/android/server/ |
D | TelephonyRegistry.java | 61 import com.android.internal.telephony.PhoneConstants; 253 PhoneConstants.SUBSCRIPTION_KEY, SubscriptionManager.getDefaultSubId())); 254 int newDefaultPhoneId = intent.getIntExtra(PhoneConstants.SLOT_KEY, 1306 intent.putExtra(PhoneConstants.SUBSCRIPTION_KEY, subId); in broadcastServiceStateChanged() 1325 intent.putExtra(PhoneConstants.SUBSCRIPTION_KEY, subId); in broadcastSignalStrengthChanged() 1344 intent.putExtra(PhoneConstants.STATE_KEY, in broadcastCallStateChanged() 1349 intent.putExtra(PhoneConstants.SUBSCRIPTION_KEY, subId); in broadcastCallStateChanged() 1362 intent.putExtra(PhoneConstants.STATE_KEY, in broadcastDataConnectionStateChanged() 1365 intent.putExtra(PhoneConstants.NETWORK_UNAVAILABLE_KEY, true); in broadcastDataConnectionStateChanged() 1368 intent.putExtra(PhoneConstants.STATE_CHANGE_REASON_KEY, reason); in broadcastDataConnectionStateChanged() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | TestPhoneNotifier.java | 20 import com.android.internal.telephony.PhoneConstants; 55 PhoneConstants.DataState state) { in notifyDataConnection()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
D | GSMPhone.java | 69 import com.android.internal.telephony.PhoneConstants; 155 mCi.setPhoneType(PhoneConstants.PHONE_TYPE_GSM); in GSMPhone() 190 mCi.setPhoneType(PhoneConstants.PHONE_TYPE_GSM); in GSMPhone() 216 TelephonyManager.from(mContext).setPhoneType(getPhoneId(), PhoneConstants.PHONE_TYPE_GSM); in setProperties() 287 public PhoneConstants.State getState() { in getState() 289 PhoneConstants.State imsState = mImsPhone.getState(); in getState() 290 if (imsState != PhoneConstants.State.IDLE) { in getState() 300 return PhoneConstants.PHONE_TYPE_GSM; in getPhoneType() 337 public PhoneConstants.DataState getDataConnectionState(String apnType) { in getDataConnectionState() 338 PhoneConstants.DataState ret = PhoneConstants.DataState.DISCONNECTED; in getDataConnectionState() [all …]
|
D | GsmCallTracker.java | 42 import com.android.internal.telephony.PhoneConstants; 93 PhoneConstants.State mState = PhoneConstants.State.IDLE; 396 PhoneConstants.State oldState = mState; in updatePhoneState() 398 mState = PhoneConstants.State.RINGING; in updatePhoneState() 401 mState = PhoneConstants.State.OFFHOOK; in updatePhoneState() 404 if ( mState == PhoneConstants.State.OFFHOOK && (imsPhone != null)){ in updatePhoneState() 407 mState = PhoneConstants.State.IDLE; in updatePhoneState() 410 if (mState == PhoneConstants.State.IDLE && oldState != mState) { in updatePhoneState() 413 } else if (oldState == PhoneConstants.State.IDLE && oldState != mState) { in updatePhoneState() 995 public PhoneConstants.State getState() { in getState()
|