/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | PhoneConstantConversions.java | 21 import com.android.internal.telephony.PhoneConstants; 28 public static int convertCallState(PhoneConstants.State state) { in convertCallState() 43 public static PhoneConstants.State convertCallState(int state) { in convertCallState() 46 return PhoneConstants.State.RINGING; in convertCallState() 48 return PhoneConstants.State.OFFHOOK; in convertCallState() 50 return PhoneConstants.State.IDLE; in convertCallState() 58 public static int convertDataState(PhoneConstants.DataState state) { in convertDataState() 77 public static PhoneConstants.DataState convertDataState(int state) { in convertDataState() 80 return PhoneConstants.DataState.CONNECTING; in convertDataState() 82 return PhoneConstants.DataState.CONNECTED; in convertDataState() [all …]
|
/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 | 114 ret.numberPresentation = PhoneConstants.PRESENTATION_ALLOWED; in fromCLCCLine() 181 case 0: return PhoneConstants.PRESENTATION_ALLOWED; in presentationFromCLIP() 182 case 1: return PhoneConstants.PRESENTATION_RESTRICTED; in presentationFromCLIP() 183 case 2: return PhoneConstants.PRESENTATION_UNKNOWN; in presentationFromCLIP() 184 case 3: return PhoneConstants.PRESENTATION_PAYPHONE; in presentationFromCLIP()
|
D | CallManager.java | 218 phone.getPhoneType() != PhoneConstants.PHONE_TYPE_IMS) { in getPhone() 233 public PhoneConstants.State getState() { in getState() 234 PhoneConstants.State s = PhoneConstants.State.IDLE; in getState() 237 if (phone.getState() == PhoneConstants.State.RINGING) { in getState() 238 s = PhoneConstants.State.RINGING; in getState() 239 } else if (phone.getState() == PhoneConstants.State.OFFHOOK) { in getState() 240 if (s == PhoneConstants.State.IDLE) s = PhoneConstants.State.OFFHOOK; in getState() 253 public PhoneConstants.State getState(int subId) { in getState() 254 PhoneConstants.State s = PhoneConstants.State.IDLE; in getState() 258 if (phone.getState() == PhoneConstants.State.RINGING) { in getState() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
D | CdmaCallWaitingNotification.java | 21 import com.android.internal.telephony.PhoneConstants; 63 case 0: return PhoneConstants.PRESENTATION_ALLOWED; in presentationFromCLIP() 64 case 1: return PhoneConstants.PRESENTATION_RESTRICTED; in presentationFromCLIP() 65 case 2: return PhoneConstants.PRESENTATION_UNKNOWN; in presentationFromCLIP() 69 return PhoneConstants.PRESENTATION_UNKNOWN; in presentationFromCLIP()
|
/frameworks/base/telephony/java/android/telephony/ |
D | CellLocation.java | 28 import com.android.internal.telephony.PhoneConstants; 89 case PhoneConstants.PHONE_TYPE_CDMA: in newFromBundle() 91 case PhoneConstants.PHONE_TYPE_GSM: in newFromBundle() 128 case PhoneConstants.PHONE_TYPE_CDMA: in getEmpty() 130 case PhoneConstants.PHONE_TYPE_GSM: in getEmpty()
|
D | PinResult.java | 26 import com.android.internal.telephony.PhoneConstants; 54 public static final int PIN_RESULT_TYPE_SUCCESS = PhoneConstants.PIN_RESULT_SUCCESS; 59 public static final int PIN_RESULT_TYPE_INCORRECT = PhoneConstants.PIN_PASSWORD_INCORRECT; 64 public static final int PIN_RESULT_TYPE_FAILURE = PhoneConstants.PIN_GENERAL_FAILURE; 69 public static final int PIN_RESULT_TYPE_ABORTED = PhoneConstants.PIN_OPERATION_ABORTED;
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SmsDispatchersControllerTest.java | 82 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_GSM); in testSmsHandleStateUpdate() 87 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_CDMA); in testSmsHandleStateUpdate() 94 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_GSM); in testSendImsGmsTest() 104 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_GSM); in testSendImsGmsTestWithOutDesAddr() 113 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_CDMA); in testSendImsCdmaTest() 124 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_CDMA); in testSendRetrySmsCdmaTest() 127 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType(); in testSendRetrySmsCdmaTest() 138 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_GSM); in testSendRetrySmsGsmTest() 153 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_GSM); in testSendRetrySmsNullPdu()
|
D | GsmCdmaCallTrackerTest.java | 102 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testMOCallDial() 114 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMOCallDial() 145 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMOCallHangup() 157 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testMOCallHangup() 167 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() 245 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in setupRingingCall() 253 assertEquals(PhoneConstants.State.RINGING, mCTUT.getState()); in setupRingingCall() 277 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMTCallAccept() [all …]
|
D | GsmCdmaConnectionTest.java | 90 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType(); in testOriginalDialString() 95 doReturn(PhoneConstants.PHONE_TYPE_GSM).when(mPhone).getPhoneType(); in testOriginalDialString() 112 assertEquals(PhoneConstants.PRESENTATION_ALLOWED, connection.getNumberPresentation()); in testSanityGSM() 120 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType(); in testSanityCDMA() 130 assertEquals(PhoneConstants.PRESENTATION_ALLOWED, connection.getNumberPresentation()); in testSanityCDMA() 157 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType(); in testCDMAPostDialPause() 195 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType(); in testPostDialWait()
|
D | ImsSmsDispatcherTest.java | 102 when(mPhone.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_GSM); in testSendSms() 124 when(mPhone.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_GSM); in testFallbackGsmRetry() 151 when(mPhone.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_GSM); in testErrorImsRetry() 182 when(mPhone.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_GSM); in testReceiveGsmSmsStatusReport() 209 when(mPhone.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_GSM); in testNetworkError()
|
D | TestPhoneNotifier.java.broken | 20 import com.android.internal.telephony.PhoneConstants; 55 PhoneConstants.DataState state) {
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
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/sip/ |
D | SipPhoneBase.java | 38 import com.android.internal.telephony.PhoneConstants; 50 private PhoneConstants.State mState = PhoneConstants.State.IDLE; 102 public PhoneConstants.State getState() { in getState() 108 return PhoneConstants.PHONE_TYPE_SIP; in getPhoneType() 132 public PhoneConstants.DataState getDataConnectionState() { in getDataConnectionState() 133 return PhoneConstants.DataState.DISCONNECTED; in getDataConnectionState() 496 PhoneConstants.State oldState = mState; in updatePhoneState() 499 mState = PhoneConstants.State.RINGING; in updatePhoneState() 502 mState = PhoneConstants.State.IDLE; in updatePhoneState() 504 mState = PhoneConstants.State.OFFHOOK; in updatePhoneState()
|
D | SipConnectionBase.java | 25 import com.android.internal.telephony.PhoneConstants; 53 super(PhoneConstants.PHONE_TYPE_SIP); in SipConnectionBase() 162 return PhoneConstants.PRESENTATION_ALLOWED; in getNumberPresentation()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
D | ImsPhoneBase.java | 41 import com.android.internal.telephony.PhoneConstants; 56 private PhoneConstants.State mState = PhoneConstants.State.IDLE; 151 public PhoneConstants.State getState() { in getState() 157 return PhoneConstants.PHONE_TYPE_IMS; in getPhoneType() 176 public PhoneConstants.DataState getDataConnectionState() { in getDataConnectionState() 177 return PhoneConstants.DataState.DISCONNECTED; in getDataConnectionState() 533 PhoneConstants.State oldState = mState; in updatePhoneState() 536 mState = PhoneConstants.State.RINGING; in updatePhoneState() 539 mState = PhoneConstants.State.IDLE; in updatePhoneState() 541 mState = PhoneConstants.State.OFFHOOK; in updatePhoneState()
|
D | ImsExternalConnection.java | 31 import com.android.internal.telephony.PhoneConstants; 91 mNumberPresentation = PhoneConstants.PRESENTATION_ALLOWED; in ImsExternalConnection() 246 mCnapNamePresentation = PhoneConstants.PRESENTATION_ALLOWED; in setExternalConnectionAddress() 248 mNumberPresentation = PhoneConstants.PRESENTATION_RESTRICTED; in setExternalConnectionAddress()
|
D | ImsExternalCallTracker.java | 35 import com.android.internal.telephony.PhoneConstants; 204 public void onPhoneStateChanged(PhoneConstants.State oldState, PhoneConstants.State newState) { in onPhoneStateChanged() 205 mHasActiveCalls = newState != PhoneConstants.State.IDLE; in onPhoneStateChanged()
|
/frameworks/opt/net/ims/src/java/com/android/ims/internal/ |
D | ConferenceParticipant.java | 28 import com.android.internal.telephony.PhoneConstants; 147 return PhoneConstants.PRESENTATION_RESTRICTED; in getParticipantPresentation() 153 return PhoneConstants.PRESENTATION_RESTRICTED; in getParticipantPresentation() 171 return PhoneConstants.PRESENTATION_ALLOWED; in getParticipantPresentation() 178 return PhoneConstants.PRESENTATION_RESTRICTED; in getParticipantPresentation() 181 return PhoneConstants.PRESENTATION_ALLOWED; in getParticipantPresentation()
|
/frameworks/base/telephony/java/android/telephony/ims/ |
D | ImsCallProfile.java | 38 import com.android.internal.telephony.PhoneConstants; 984 case PhoneConstants.PRESENTATION_RESTRICTED: in presentationToOIR() 986 case PhoneConstants.PRESENTATION_ALLOWED: in presentationToOIR() 988 case PhoneConstants.PRESENTATION_PAYPHONE: in presentationToOIR() 990 case PhoneConstants.PRESENTATION_UNKNOWN: in presentationToOIR() 1015 return PhoneConstants.PRESENTATION_RESTRICTED; in OIRToPresentation() 1017 return PhoneConstants.PRESENTATION_ALLOWED; in OIRToPresentation() 1019 return PhoneConstants.PRESENTATION_PAYPHONE; in OIRToPresentation() 1021 return PhoneConstants.PRESENTATION_UNKNOWN; in OIRToPresentation() 1023 return PhoneConstants.PRESENTATION_UNKNOWN; in OIRToPresentation()
|
/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 …]
|
D | GsmMmiCodeTest.java | 31 import com.android.internal.telephony.PhoneConstants; 65 PhoneConstants.PHONE_TYPE_GSM, mTelephonyComponentFactory, (c, p) -> mImsManager); in setUp()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/ |
D | ImsPhoneCallTrackerTest.java | 94 import com.android.internal.telephony.PhoneConstants; 360 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testImsMTCall() 366 assertEquals(PhoneConstants.State.RINGING, mCTUT.getState()); in testImsMTCall() 390 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testImsMTCallAccept() 476 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testImsMTCallReject() 484 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testImsMTCallAcceptHangUp() 491 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testImsMTCallAcceptHangUp() 501 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testImsMTCallAcceptHold() 516 assertEquals(PhoneConstants.State.RINGING, mCTUT.getState()); in testImsMTCallAcceptHold() 539 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testImsMTActiveHoldServiceDisconnect() [all …]
|
D | ImsPhoneTest.java | 79 import com.android.internal.telephony.PhoneConstants; 387 doReturn(PhoneConstants.State.IDLE).when(mImsCT).getState(); in testGettersAndPassThroughs() 388 assertEquals(PhoneConstants.State.IDLE, mImsPhoneUT.getState()); in testGettersAndPassThroughs() 389 doReturn(PhoneConstants.State.RINGING).when(mImsCT).getState(); in testGettersAndPassThroughs() 390 assertEquals(PhoneConstants.State.RINGING, mImsPhoneUT.getState()); in testGettersAndPassThroughs() 438 doReturn(PhoneConstants.State.IDLE).when(mImsCT).getState(); in testDtmf() 447 doReturn(PhoneConstants.State.OFFHOOK).when(mImsCT).getState(); in testDtmf() 468 doReturn(PhoneConstants.State.IDLE).when(mImsCT).getState(); in testIncomingRing() 714 doReturn(PhoneConstants.State.IDLE).when(mImsCT).getState(); in testRoamingDuplicateMessages() 737 doReturn(PhoneConstants.State.IDLE).when(mImsCT).getState(); in testRoamingToAirplanModeIwlanInService() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | DataStallRecoveryStats.java | 24 import com.android.internal.telephony.PhoneConstants; 40 if (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_IMS) { in onDataStallEvent()
|