/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | TelephonyCapabilities.java | 51 return (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA || in supportsEcm() 73 return (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA); in supportsOtasp() 94 return (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_GSM); in supportsNetworkSelection() 106 if (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_GSM) { in getDeviceIdLabel() 108 } else if (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA) { in getDeviceIdLabel() 128 return ((phone.getPhoneType() == PhoneConstants.PHONE_TYPE_GSM) in supportsConferenceCallManagement() 129 || (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_SIP)); in supportsConferenceCallManagement() 142 return ((phone.getPhoneType() == PhoneConstants.PHONE_TYPE_GSM) in supportsHoldAndUnhold() 143 || (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_SIP) in supportsHoldAndUnhold() 144 || (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_IMS)); in supportsHoldAndUnhold() [all …]
|
D | DriverCall.java | 111 ret.numberPresentation = PhoneConstants.PRESENTATION_ALLOWED; in fromCLCCLine() 178 case 0: return PhoneConstants.PRESENTATION_ALLOWED; in presentationFromCLIP() 179 case 1: return PhoneConstants.PRESENTATION_RESTRICTED; in presentationFromCLIP() 180 case 2: return PhoneConstants.PRESENTATION_UNKNOWN; in presentationFromCLIP() 181 case 3: return PhoneConstants.PRESENTATION_PAYPHONE; in presentationFromCLIP()
|
D | PhoneStateIntentReceiver.java | 48 PhoneConstants.State mPhoneState = PhoneConstants.State.IDLE; 82 public PhoneConstants.State getPhoneState() { in getPhoneState() 184 + intent.getStringExtra(PhoneConstants.STATE_KEY)); in onReceive() 185 String phoneState = intent.getStringExtra(PhoneConstants.STATE_KEY); in onReceive() 187 PhoneConstants.State.class, phoneState); in onReceive()
|
D | CallManager.java | 219 phone.getPhoneType() != PhoneConstants.PHONE_TYPE_IMS) { in getPhone() 234 public PhoneConstants.State getState() { in getState() 235 PhoneConstants.State s = PhoneConstants.State.IDLE; in getState() 238 if (phone.getState() == PhoneConstants.State.RINGING) { in getState() 239 s = PhoneConstants.State.RINGING; in getState() 240 } else if (phone.getState() == PhoneConstants.State.OFFHOOK) { in getState() 241 if (s == PhoneConstants.State.IDLE) s = PhoneConstants.State.OFFHOOK; in getState() 254 public PhoneConstants.State getState(int subId) { in getState() 255 PhoneConstants.State s = PhoneConstants.State.IDLE; in getState() 259 if (phone.getState() == PhoneConstants.State.RINGING) { in getState() [all …]
|
D | GsmCdmaPhone.java | 228 super(precisePhoneType == PhoneConstants.PHONE_TYPE_GSM ? "GSM" : "CDMA", in GsmCdmaPhone() 370 mCi.setPhoneType(PhoneConstants.PHONE_TYPE_GSM); in initRatSpecific() 371 tm.setPhoneType(getPhoneId(), PhoneConstants.PHONE_TYPE_GSM); in initRatSpecific() 385 mCi.setPhoneType(PhoneConstants.PHONE_TYPE_CDMA); in initRatSpecific() 386 tm.setPhoneType(getPhoneId(), PhoneConstants.PHONE_TYPE_CDMA); in initRatSpecific() 445 return mPrecisePhoneType == PhoneConstants.PHONE_TYPE_GSM; in isPhoneTypeGsm() 449 return mPrecisePhoneType == PhoneConstants.PHONE_TYPE_CDMA; in isPhoneTypeCdma() 453 return mPrecisePhoneType == PhoneConstants.PHONE_TYPE_CDMA_LTE; in isPhoneTypeCdmaLte() 462 setPhoneName(precisePhoneType == PhoneConstants.PHONE_TYPE_GSM ? "GSM" : "CDMA"); in switchPhoneType() 521 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/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | DcTrackerTest.java | 87 import com.android.internal.telephony.PhoneConstants; 491 doReturn(PhoneConstants.State.IDLE).when(mCT).getState(); in setUp() 581 eq(PhoneConstants.APN_TYPE_DEFAULT)); in verifyDataConnected() 586 assertEquals(apnSetting, mDct.getActiveApnString(PhoneConstants.APN_TYPE_DEFAULT)); in verifyDataConnected() 587 assertArrayEquals(new String[]{PhoneConstants.APN_TYPE_DEFAULT}, mDct.getActiveApnTypes()); in verifyDataConnected() 590 assertEquals(DctConstants.State.CONNECTED, mDct.getState(PhoneConstants.APN_TYPE_DEFAULT)); in verifyDataConnected() 592 LinkProperties linkProperties = mDct.getLinkProperties(PhoneConstants.APN_TYPE_DEFAULT); in verifyDataConnected() 705 intent.putExtra("reconnect_alarm_extra_type", PhoneConstants.APN_TYPE_DEFAULT); in testDataRetry() 708 intent.putExtra(PhoneConstants.SUBSCRIPTION_KEY, 0); in testDataRetry() 733 new String[]{PhoneConstants.APN_TYPE_DEFAULT, PhoneConstants.APN_TYPE_MMS}); in testUserDisableData() [all …]
|
D | DataEnabledOverrideTest.java | 29 import com.android.internal.telephony.PhoneConstants; 71 doReturn(PhoneConstants.State.IDLE).when(mPhone).getState(); in testOverrideEnabled() 76 doReturn(PhoneConstants.State.OFFHOOK).when(mPhone).getState(); in testOverrideEnabled() 101 doReturn(PhoneConstants.State.IDLE).when(mPhone).getState(); in testUpdateRules() 106 doReturn(PhoneConstants.State.OFFHOOK).when(mPhone).getState(); in testUpdateRules() 141 doReturn(PhoneConstants.State.OFFHOOK).when(mPhone).getState(); in testAllApnTypesInRule() 212 doReturn(PhoneConstants.State.OFFHOOK).when(mPhone).getState(); in testSetDataAllowedInVoiceCall()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
D | CdmaCallWaitingNotification.java | 21 import com.android.internal.telephony.PhoneConstants; 62 case 0: return PhoneConstants.PRESENTATION_ALLOWED; in presentationFromCLIP() 63 case 1: return PhoneConstants.PRESENTATION_RESTRICTED; in presentationFromCLIP() 64 case 2: return PhoneConstants.PRESENTATION_UNKNOWN; in presentationFromCLIP() 68 return PhoneConstants.PRESENTATION_UNKNOWN; in presentationFromCLIP()
|
/frameworks/base/telephony/java/android/telephony/ |
D | CellLocation.java | 27 import com.android.internal.telephony.PhoneConstants; 66 case PhoneConstants.PHONE_TYPE_CDMA: in newFromBundle() 68 case PhoneConstants.PHONE_TYPE_GSM: in newFromBundle() 102 case PhoneConstants.PHONE_TYPE_CDMA: in getEmpty() 104 case PhoneConstants.PHONE_TYPE_GSM: in getEmpty()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SmsDispatchersControllerTest.java | 94 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_GSM); in testSmsHandleStateUpdate() 99 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_CDMA); in testSmsHandleStateUpdate() 106 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_GSM); in testSendImsGmsTest() 116 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_GSM); in testSendImsGmsTestWithOutDesAddr() 125 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_CDMA); in testSendImsCdmaTest() 136 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_CDMA); in testSendRetrySmsCdmaTest() 139 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType(); in testSendRetrySmsCdmaTest() 150 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_GSM); in testSendRetrySmsGsmTest()
|
D | GsmCdmaPhoneTest.java | 104 PhoneConstants.PHONE_TYPE_GSM, mTelephonyComponentFactory); in onLooperPrepared() 115 assertEquals(PhoneConstants.PHONE_TYPE_GSM, mPhoneUT.getPhoneType()); in switchToGsm() 124 assertEquals(PhoneConstants.PHONE_TYPE_CDMA, mPhoneUT.getPhoneType()); in switchToCdma() 246 assertEquals(PhoneConstants.PHONE_TYPE_GSM, mPhoneUT.getPhoneType()); in testGetPhoneType() 251 assertEquals(PhoneConstants.PHONE_TYPE_CDMA, mPhoneUT.getPhoneType()); in testGetPhoneType() 260 assertEquals(PhoneConstants.DataState.DISCONNECTED, mPhoneUT.getDataConnectionState( in testGetDataConnectionState() 261 PhoneConstants.APN_TYPE_ALL)); in testGetDataConnectionState() 266 PhoneConstants.APN_TYPE_EMERGENCY); in testGetDataConnectionState() 267 assertEquals(PhoneConstants.DataState.DISCONNECTED, mPhoneUT.getDataConnectionState( in testGetDataConnectionState() 268 PhoneConstants.APN_TYPE_EMERGENCY)); in testGetDataConnectionState() [all …]
|
D | GsmCdmaCallTrackerTest.java | 107 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testMOCallDial() 119 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMOCallDial() 150 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMOCallHangup() 162 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testMOCallHangup() 172 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMOCallDialPickUpHangup() 188 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testMOCallDialPickUpHangup() 211 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testMOCallPendingHangUp() 251 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in setupRingingCall() 261 assertEquals(PhoneConstants.State.RINGING, mCTUT.getState()); in setupRingingCall() 287 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMTCallAccept() [all …]
|
D | GsmCdmaConnectionTest.java | 75 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType(); in testOriginalDialString() 80 doReturn(PhoneConstants.PHONE_TYPE_GSM).when(mPhone).getPhoneType(); in testOriginalDialString() 97 assertEquals(PhoneConstants.PRESENTATION_ALLOWED, connection.getNumberPresentation()); in testSanityGSM() 105 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType(); in testSanityCDMA() 115 assertEquals(PhoneConstants.PRESENTATION_ALLOWED, connection.getNumberPresentation()); in testSanityCDMA() 140 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType(); in testCDMAPostDialPause() 176 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType(); in testPostDialWait()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/ |
D | SipPhoneBase.java | 39 import com.android.internal.telephony.PhoneConstants; 51 private PhoneConstants.State mState = PhoneConstants.State.IDLE; 103 public PhoneConstants.State getState() { in getState() 109 return PhoneConstants.PHONE_TYPE_SIP; in getPhoneType() 133 public PhoneConstants.DataState getDataConnectionState() { in getDataConnectionState() 134 return PhoneConstants.DataState.DISCONNECTED; in getDataConnectionState() 487 PhoneConstants.State oldState = mState; in updatePhoneState() 490 mState = PhoneConstants.State.RINGING; in updatePhoneState() 493 mState = PhoneConstants.State.IDLE; in updatePhoneState() 495 mState = PhoneConstants.State.OFFHOOK; in updatePhoneState()
|
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/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
D | ImsPhoneBase.java | 42 import com.android.internal.telephony.PhoneConstants; 57 private PhoneConstants.State mState = PhoneConstants.State.IDLE; 152 public PhoneConstants.State getState() { in getState() 158 return PhoneConstants.PHONE_TYPE_IMS; in getPhoneType() 182 public PhoneConstants.DataState getDataConnectionState() { in getDataConnectionState() 183 return PhoneConstants.DataState.DISCONNECTED; in getDataConnectionState() 534 PhoneConstants.State oldState = mState; in updatePhoneState() 537 mState = PhoneConstants.State.RINGING; in updatePhoneState() 540 mState = PhoneConstants.State.IDLE; in updatePhoneState() 542 mState = PhoneConstants.State.OFFHOOK; in updatePhoneState()
|
D | ImsExternalConnection.java | 24 import com.android.internal.telephony.PhoneConstants; 91 mNumberPresentation = PhoneConstants.PRESENTATION_ALLOWED; in ImsExternalConnection() 234 mCnapNamePresentation = PhoneConstants.PRESENTATION_ALLOWED; in setExternalConnectionAddress() 236 mNumberPresentation = PhoneConstants.PRESENTATION_RESTRICTED; in setExternalConnectionAddress()
|
/frameworks/base/telecomm/java/android/telecom/ |
D | ConferenceParticipant.java | 26 import com.android.internal.telephony.PhoneConstants; 144 return PhoneConstants.PRESENTATION_RESTRICTED; in getParticipantPresentation() 150 return PhoneConstants.PRESENTATION_RESTRICTED; in getParticipantPresentation() 168 return PhoneConstants.PRESENTATION_ALLOWED; in getParticipantPresentation() 175 return PhoneConstants.PRESENTATION_RESTRICTED; in getParticipantPresentation() 178 return PhoneConstants.PRESENTATION_ALLOWED; in getParticipantPresentation()
|
/frameworks/base/telephony/java/android/telephony/ims/ |
D | ImsCallProfile.java | 33 import com.android.internal.telephony.PhoneConstants; 698 case PhoneConstants.PRESENTATION_RESTRICTED: in presentationToOIR() 700 case PhoneConstants.PRESENTATION_ALLOWED: in presentationToOIR() 702 case PhoneConstants.PRESENTATION_PAYPHONE: in presentationToOIR() 704 case PhoneConstants.PRESENTATION_UNKNOWN: in presentationToOIR() 729 return PhoneConstants.PRESENTATION_RESTRICTED; in OIRToPresentation() 731 return PhoneConstants.PRESENTATION_ALLOWED; in OIRToPresentation() 733 return PhoneConstants.PRESENTATION_PAYPHONE; in OIRToPresentation() 735 return PhoneConstants.PRESENTATION_UNKNOWN; in OIRToPresentation() 737 return PhoneConstants.PRESENTATION_UNKNOWN; in OIRToPresentation()
|
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
D | CarrierActionUtils.java | 32 import com.android.internal.telephony.PhoneConstants; 105 int subId = intent.getIntExtra(PhoneConstants.SUBSCRIPTION_KEY, in onDisableAllMeteredApns() 113 int subId = intent.getIntExtra(PhoneConstants.SUBSCRIPTION_KEY, in onEnableAllMeteredApns() 137 int subId = intent.getIntExtra(PhoneConstants.SUBSCRIPTION_KEY, in onRegisterDefaultNetworkAvail() 145 int subId = intent.getIntExtra(PhoneConstants.SUBSCRIPTION_KEY, in onDeregisterDefaultNetworkAvail() 153 int subId = intent.getIntExtra(PhoneConstants.SUBSCRIPTION_KEY, in onDisableRadio() 161 int subId = intent.getIntExtra(PhoneConstants.SUBSCRIPTION_KEY, in onEnableRadio() 204 int subId = intent.getIntExtra(PhoneConstants.SUBSCRIPTION_KEY, in onResetAllCarrierActions()
|
/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/base/services/core/java/com/android/server/ |
D | TelephonyRegistry.java | 66 import com.android.internal.telephony.PhoneConstants; 341 PhoneConstants.SUBSCRIPTION_KEY, 343 int newDefaultPhoneId = intent.getIntExtra(PhoneConstants.PHONE_KEY, 1081 case PhoneConstants.SIM_ACTIVATION_TYPE_VOICE: in notifySimActivationStateChangedForPhoneId() 1084 case PhoneConstants.SIM_ACTIVATION_TYPE_DATA: in notifySimActivationStateChangedForPhoneId() 1097 if ((activationType == PhoneConstants.SIM_ACTIVATION_TYPE_VOICE) && in notifySimActivationStateChangedForPhoneId() 1108 if ((activationType == PhoneConstants.SIM_ACTIVATION_TYPE_DATA) && in notifySimActivationStateChangedForPhoneId() 1439 if (PhoneConstants.APN_TYPE_DEFAULT.equals(apnType) in notifyDataConnectionForSubscriber() 2040 intent.putExtra(PhoneConstants.SUBSCRIPTION_KEY, subId); in broadcastServiceStateChanged() 2042 intent.putExtra(PhoneConstants.SLOT_KEY, phoneId); in broadcastServiceStateChanged() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/ |
D | ImsPhoneTest.java | 69 import com.android.internal.telephony.PhoneConstants; 353 doReturn(PhoneConstants.State.IDLE).when(mImsCT).getState(); in testGettersAndPassThroughs() 354 assertEquals(PhoneConstants.State.IDLE, mImsPhoneUT.getState()); in testGettersAndPassThroughs() 355 doReturn(PhoneConstants.State.RINGING).when(mImsCT).getState(); in testGettersAndPassThroughs() 356 assertEquals(PhoneConstants.State.RINGING, mImsPhoneUT.getState()); in testGettersAndPassThroughs() 404 doReturn(PhoneConstants.State.IDLE).when(mImsCT).getState(); in testDtmf() 413 doReturn(PhoneConstants.State.OFFHOOK).when(mImsCT).getState(); in testDtmf() 434 doReturn(PhoneConstants.State.IDLE).when(mImsCT).getState(); in testIncomingRing() 566 assertEquals(true, intent.getBooleanExtra(PhoneConstants.PHONE_IN_ECM_STATE, false)); in testEcbm() 594 assertEquals(false, intent.getBooleanExtra(PhoneConstants.PHONE_IN_ECM_STATE, true)); in testEcbm() [all …]
|
D | ImsPhoneConnectionTest.java | 33 import com.android.internal.telephony.PhoneConstants; 95 assertEquals(PhoneConstants.PRESENTATION_UNKNOWN, mConnectionUT.getNumberPresentation()); in testImsConnectionSanity() 96 assertEquals(PhoneConstants.PRESENTATION_UNKNOWN, mConnectionUT.getCnapNamePresentation()); in testImsConnectionSanity() 109 assertEquals(PhoneConstants.PRESENTATION_ALLOWED, mConnectionUT.getNumberPresentation()); in testImsConnectionSanity() 110 assertEquals(PhoneConstants.PRESENTATION_ALLOWED, mConnectionUT.getCnapNamePresentation()); in testImsConnectionSanity() 161 assertEquals(PhoneConstants.PRESENTATION_UNKNOWN, mConnectionUT.getNumberPresentation()); in testUpdateAddressDisplay() 162 assertEquals(PhoneConstants.PRESENTATION_UNKNOWN, mConnectionUT.getCnapNamePresentation()); in testUpdateAddressDisplay()
|