/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | ApnSettingTest.java | 19 import static com.android.internal.telephony.PhoneConstants.APN_TYPE_ALL; 20 import static com.android.internal.telephony.PhoneConstants.APN_TYPE_DEFAULT; 21 import static com.android.internal.telephony.PhoneConstants.APN_TYPE_HIPRI; 22 import static com.android.internal.telephony.PhoneConstants.APN_TYPE_IA; 23 import static com.android.internal.telephony.PhoneConstants.APN_TYPE_MMS; 24 import static com.android.internal.telephony.PhoneConstants.APN_TYPE_SUPL; 38 import com.android.internal.telephony.PhoneConstants; 316 new String[]{PhoneConstants.APN_TYPE_DEFAULT, PhoneConstants.APN_TYPE_MMS}); in testIsMetered() 321 new String[]{PhoneConstants.APN_TYPE_DEFAULT}).isMetered(mPhone)); in testIsMetered() 324 new String[]{PhoneConstants.APN_TYPE_DEFAULT, PhoneConstants.APN_TYPE_MMS}). in testIsMetered() [all …]
|
D | DcTrackerTest.java | 79 import com.android.internal.telephony.PhoneConstants; 447 doReturn(PhoneConstants.State.IDLE).when(mCT).getState(); in setUp() 535 eq(PhoneConstants.APN_TYPE_DEFAULT)); in verifyDataConnected() 540 assertEquals(apnSetting, mDct.getActiveApnString(PhoneConstants.APN_TYPE_DEFAULT)); in verifyDataConnected() 541 assertArrayEquals(new String[]{PhoneConstants.APN_TYPE_DEFAULT}, mDct.getActiveApnTypes()); in verifyDataConnected() 544 assertEquals(DctConstants.State.CONNECTED, mDct.getState(PhoneConstants.APN_TYPE_DEFAULT)); in verifyDataConnected() 546 LinkProperties linkProperties = mDct.getLinkProperties(PhoneConstants.APN_TYPE_DEFAULT); in verifyDataConnected() 587 eq(PhoneConstants.DataState.DISCONNECTED)); in testDataSetup() 598 eq(PhoneConstants.DataState.DISCONNECTED)); in testDataSetup() 605 eq(PhoneConstants.DataState.DISCONNECTED)); in testDataSetup() [all …]
|
/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 | DriverCall.java | 97 ret.numberPresentation = PhoneConstants.PRESENTATION_ALLOWED; in fromCLCCLine() 163 case 0: return PhoneConstants.PRESENTATION_ALLOWED; in presentationFromCLIP() 164 case 1: return PhoneConstants.PRESENTATION_RESTRICTED; in presentationFromCLIP() 165 case 2: return PhoneConstants.PRESENTATION_UNKNOWN; in presentationFromCLIP() 166 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 | GsmCdmaPhone.java | 214 super(precisePhoneType == PhoneConstants.PHONE_TYPE_GSM ? "GSM" : "CDMA", in GsmCdmaPhone() 302 mCi.setPhoneType(PhoneConstants.PHONE_TYPE_GSM); in initRatSpecific() 303 tm.setPhoneType(getPhoneId(), PhoneConstants.PHONE_TYPE_GSM); in initRatSpecific() 317 mCi.setPhoneType(PhoneConstants.PHONE_TYPE_CDMA); in initRatSpecific() 318 tm.setPhoneType(getPhoneId(), PhoneConstants.PHONE_TYPE_CDMA); in initRatSpecific() 377 return mPrecisePhoneType == PhoneConstants.PHONE_TYPE_GSM; in isPhoneTypeGsm() 381 return mPrecisePhoneType == PhoneConstants.PHONE_TYPE_CDMA; in isPhoneTypeCdma() 385 return mPrecisePhoneType == PhoneConstants.PHONE_TYPE_CDMA_LTE; in isPhoneTypeCdmaLte() 394 setPhoneName(precisePhoneType == PhoneConstants.PHONE_TYPE_GSM ? "GSM" : "CDMA"); in switchPhoneType() 460 public PhoneConstants.State getState() { in getState() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | PhoneConstantConversions.java | 23 import com.android.internal.telephony.PhoneConstants; 32 public static int convertCallState(PhoneConstants.State state) { in convertCallState() 47 public static PhoneConstants.State convertCallState(int state) { in convertCallState() 50 return PhoneConstants.State.RINGING; in convertCallState() 52 return PhoneConstants.State.OFFHOOK; in convertCallState() 54 return PhoneConstants.State.IDLE; in convertCallState() 62 public static int convertDataState(PhoneConstants.DataState state) { in convertDataState() 79 public static PhoneConstants.DataState convertDataState(int state) { in convertDataState() 82 return PhoneConstants.DataState.CONNECTING; in convertDataState() 84 return PhoneConstants.DataState.CONNECTED; in convertDataState() [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()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | ApnContext.java | 32 import com.android.internal.telephony.PhoneConstants; 642 case PhoneConstants.APN_TYPE_DEFAULT: in apnIdForApnName() 644 case PhoneConstants.APN_TYPE_MMS: in apnIdForApnName() 646 case PhoneConstants.APN_TYPE_SUPL: in apnIdForApnName() 648 case PhoneConstants.APN_TYPE_DUN: in apnIdForApnName() 650 case PhoneConstants.APN_TYPE_HIPRI: in apnIdForApnName() 652 case PhoneConstants.APN_TYPE_IMS: in apnIdForApnName() 654 case PhoneConstants.APN_TYPE_FOTA: in apnIdForApnName() 656 case PhoneConstants.APN_TYPE_CBS: in apnIdForApnName() 658 case PhoneConstants.APN_TYPE_IA: in apnIdForApnName() [all …]
|
D | ApnSetting.java | 31 import com.android.internal.telephony.PhoneConstants; 352 int mtu = PhoneConstants.UNSET_MTU; in fromString() 485 if (PhoneConstants.APN_TYPE_IA.equalsIgnoreCase(type)) wildcardable = false; in canHandleType() 489 (wildcardable && t.equalsIgnoreCase(PhoneConstants.APN_TYPE_ALL)) || in canHandleType() 490 (t.equalsIgnoreCase(PhoneConstants.APN_TYPE_DEFAULT) && in canHandleType() 491 type.equalsIgnoreCase(PhoneConstants.APN_TYPE_HIPRI))) { in canHandleType() 620 if (meteredApnSet.contains(PhoneConstants.APN_TYPE_ALL)) { in isMeteredApnType() 628 } else if (type.equals(PhoneConstants.APN_TYPE_ALL)) { in isMeteredApnType() 755 return (!this.canHandleType(PhoneConstants.APN_TYPE_DUN) in similar() 756 && !other.canHandleType(PhoneConstants.APN_TYPE_DUN) in similar() [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() 98 case PhoneConstants.PHONE_TYPE_CDMA: in getEmpty() 100 case PhoneConstants.PHONE_TYPE_GSM: in getEmpty()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/ |
D | SipPhoneBase.java | 43 import com.android.internal.telephony.PhoneConstants; 56 private PhoneConstants.State mState = PhoneConstants.State.IDLE; 113 public PhoneConstants.State getState() { in getState() 119 return PhoneConstants.PHONE_TYPE_SIP; in getPhoneType() 143 public PhoneConstants.DataState getDataConnectionState() { in getDataConnectionState() 144 return PhoneConstants.DataState.DISCONNECTED; in getDataConnectionState() 148 public PhoneConstants.DataState getDataConnectionState(String apnType) { in getDataConnectionState() 149 return PhoneConstants.DataState.DISCONNECTED; in getDataConnectionState() 511 PhoneConstants.State oldState = mState; in updatePhoneState() 514 mState = PhoneConstants.State.RINGING; in updatePhoneState() [all …]
|
D | SipConnectionBase.java | 22 import com.android.internal.telephony.PhoneConstants; 54 super(PhoneConstants.PHONE_TYPE_SIP); in SipConnectionBase() 163 return PhoneConstants.PRESENTATION_ALLOWED; in getNumberPresentation()
|
/frameworks/base/telephony/java/android/telephony/ims/ |
D | ImsCallProfile.java | 27 import com.android.internal.telephony.PhoneConstants; 573 case PhoneConstants.PRESENTATION_RESTRICTED: in presentationToOIR() 575 case PhoneConstants.PRESENTATION_ALLOWED: in presentationToOIR() 577 case PhoneConstants.PRESENTATION_PAYPHONE: in presentationToOIR() 579 case PhoneConstants.PRESENTATION_UNKNOWN: in presentationToOIR() 604 return PhoneConstants.PRESENTATION_RESTRICTED; in OIRToPresentation() 606 return PhoneConstants.PRESENTATION_ALLOWED; in OIRToPresentation() 608 return PhoneConstants.PRESENTATION_PAYPHONE; in OIRToPresentation() 610 return PhoneConstants.PRESENTATION_UNKNOWN; in OIRToPresentation() 612 return PhoneConstants.PRESENTATION_UNKNOWN; in OIRToPresentation()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SmsDispatchersControllerTest.java | 100 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_GSM); in testSmsHandleStateUpdate() 105 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_CDMA); in testSmsHandleStateUpdate() 112 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_GSM); in testSendImsGmsTest() 122 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_GSM); in testSendImsGmsTestWithOutDesAddr() 131 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_CDMA); in testSendImsCdmaTest() 142 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_CDMA); in testSendRetrySmsCdmaTest() 145 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType(); in testSendRetrySmsCdmaTest() 156 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_GSM); in testSendRetrySmsGsmTest()
|
D | GsmCdmaPhoneTest.java | 100 PhoneConstants.PHONE_TYPE_GSM, mTelephonyComponentFactory); in onLooperPrepared() 111 assertEquals(PhoneConstants.PHONE_TYPE_GSM, mPhoneUT.getPhoneType()); in switchToGsm() 120 assertEquals(PhoneConstants.PHONE_TYPE_CDMA, mPhoneUT.getPhoneType()); in switchToCdma() 280 assertEquals(PhoneConstants.PHONE_TYPE_GSM, mPhoneUT.getPhoneType()); in testGetPhoneType() 285 assertEquals(PhoneConstants.PHONE_TYPE_CDMA, mPhoneUT.getPhoneType()); in testGetPhoneType() 294 assertEquals(PhoneConstants.DataState.DISCONNECTED, mPhoneUT.getDataConnectionState( in testGetDataConnectionState() 295 PhoneConstants.APN_TYPE_ALL)); in testGetDataConnectionState() 300 PhoneConstants.APN_TYPE_EMERGENCY); in testGetDataConnectionState() 301 assertEquals(PhoneConstants.DataState.DISCONNECTED, mPhoneUT.getDataConnectionState( in testGetDataConnectionState() 302 PhoneConstants.APN_TYPE_EMERGENCY)); in testGetDataConnectionState() [all …]
|
D | GsmCdmaCallTrackerTest.java | 100 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testMOCallDial() 112 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMOCallDial() 144 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMOCallHangup() 156 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testMOCallHangup() 166 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMOCallDialPickUpHangup() 182 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testMOCallDialPickUpHangup() 205 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testMOCallPendingHangUp() 240 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testMTCallRinging() 247 assertEquals(PhoneConstants.State.RINGING, mCTUT.getState()); in testMTCallRinging() 268 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMTCallAccept() [all …]
|
D | GsmCdmaConnectionTest.java | 84 assertEquals(PhoneConstants.PRESENTATION_ALLOWED, connection.getNumberPresentation()); in testSanityGSM() 92 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType(); in testSanityCDMA() 102 assertEquals(PhoneConstants.PRESENTATION_ALLOWED, connection.getNumberPresentation()); in testSanityCDMA() 128 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType(); in testCDMAPostDialPause() 164 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType(); in testPostDialWait()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
D | ImsPhoneBase.java | 43 import com.android.internal.telephony.PhoneConstants; 58 private PhoneConstants.State mState = PhoneConstants.State.IDLE; 162 public PhoneConstants.State getState() { in getState() 168 return PhoneConstants.PHONE_TYPE_IMS; in getPhoneType() 192 public PhoneConstants.DataState getDataConnectionState() { in getDataConnectionState() 193 return PhoneConstants.DataState.DISCONNECTED; in getDataConnectionState() 197 public PhoneConstants.DataState getDataConnectionState(String apnType) { in getDataConnectionState() 198 return PhoneConstants.DataState.DISCONNECTED; in getDataConnectionState() 556 PhoneConstants.State oldState = mState; in updatePhoneState() 559 mState = PhoneConstants.State.RINGING; in updatePhoneState() [all …]
|
D | ImsExternalConnection.java | 24 import com.android.internal.telephony.PhoneConstants; 90 mNumberPresentation = PhoneConstants.PRESENTATION_ALLOWED; in ImsExternalConnection() 232 mCnapNamePresentation = PhoneConstants.PRESENTATION_ALLOWED; in setExternalConnectionAddress() 234 mNumberPresentation = PhoneConstants.PRESENTATION_RESTRICTED; in setExternalConnectionAddress()
|
/frameworks/base/services/core/java/com/android/server/ |
D | TelephonyRegistry.java | 58 import com.android.internal.telephony.PhoneConstants; 290 PhoneConstants.SUBSCRIPTION_KEY, 292 int newDefaultPhoneId = intent.getIntExtra(PhoneConstants.SLOT_KEY, 850 case PhoneConstants.SIM_ACTIVATION_TYPE_VOICE: in notifySimActivationStateChangedForPhoneId() 853 case PhoneConstants.SIM_ACTIVATION_TYPE_DATA: in notifySimActivationStateChangedForPhoneId() 866 if ((activationType == PhoneConstants.SIM_ACTIVATION_TYPE_VOICE) && in notifySimActivationStateChangedForPhoneId() 877 if ((activationType == PhoneConstants.SIM_ACTIVATION_TYPE_DATA) && in notifySimActivationStateChangedForPhoneId() 1195 if (PhoneConstants.APN_TYPE_DEFAULT.equals(apnType) in notifyDataConnectionForSubscriber() 1527 intent.putExtra(PhoneConstants.SUBSCRIPTION_KEY, subId); in broadcastServiceStateChanged() 1528 intent.putExtra(PhoneConstants.SLOT_KEY, phoneId); in broadcastServiceStateChanged() [all …]
|
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
D | CarrierActionUtils.java | 32 import com.android.internal.telephony.PhoneConstants; 101 int subId = intent.getIntExtra(PhoneConstants.SUBSCRIPTION_KEY, in onDisableAllMeteredApns() 109 int subId = intent.getIntExtra(PhoneConstants.SUBSCRIPTION_KEY, in onEnableAllMeteredApns() 133 int subId = intent.getIntExtra(PhoneConstants.SUBSCRIPTION_KEY, in onRegisterDefaultNetworkAvail() 141 int subId = intent.getIntExtra(PhoneConstants.SUBSCRIPTION_KEY, in onDeregisterDefaultNetworkAvail() 149 int subId = intent.getIntExtra(PhoneConstants.SUBSCRIPTION_KEY, in onDisableRadio() 157 int subId = intent.getIntExtra(PhoneConstants.SUBSCRIPTION_KEY, in onEnableRadio()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
D | 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 …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/ |
D | ImsPhoneConnectionTest.java | 33 import com.android.internal.telephony.PhoneConstants; 94 assertEquals(PhoneConstants.PRESENTATION_UNKNOWN, mConnectionUT.getNumberPresentation()); in testImsConnectionSanity() 95 assertEquals(PhoneConstants.PRESENTATION_UNKNOWN, mConnectionUT.getCnapNamePresentation()); in testImsConnectionSanity() 108 assertEquals(PhoneConstants.PRESENTATION_ALLOWED, mConnectionUT.getNumberPresentation()); in testImsConnectionSanity() 109 assertEquals(PhoneConstants.PRESENTATION_ALLOWED, mConnectionUT.getCnapNamePresentation()); in testImsConnectionSanity() 160 assertEquals(PhoneConstants.PRESENTATION_UNKNOWN, mConnectionUT.getNumberPresentation()); in testUpdateAddressDisplay() 161 assertEquals(PhoneConstants.PRESENTATION_UNKNOWN, mConnectionUT.getCnapNamePresentation()); in testUpdateAddressDisplay()
|
D | ImsPhoneCallTrackerTest.java | 70 import com.android.internal.telephony.PhoneConstants; 345 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testImsMTCall() 351 assertEquals(PhoneConstants.State.RINGING, mCTUT.getState()); in testImsMTCall() 373 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testImsMTCallAccept() 392 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testImsMTCallReject() 400 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testImsMTCallAcceptHangUp() 407 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testImsMTCallAcceptHangUp() 417 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testImsMTCallAcceptHold() 432 assertEquals(PhoneConstants.State.RINGING, mCTUT.getState()); in testImsMTCallAcceptHold() 519 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testImsMOCallDial() [all …]
|