Home
last modified time | relevance | path

Searched refs:PhoneConstants (Results 1 – 25 of 76) sorted by relevance

1234

/frameworks/base/telephony/java/com/android/internal/telephony/
DPhoneConstantConversions.java21 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/
DTelephonyCapabilities.java50 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 …]
DDriverCall.java113 ret.numberPresentation = PhoneConstants.PRESENTATION_ALLOWED; in fromCLCCLine()
180 case 0: return PhoneConstants.PRESENTATION_ALLOWED; in presentationFromCLIP()
181 case 1: return PhoneConstants.PRESENTATION_RESTRICTED; in presentationFromCLIP()
182 case 2: return PhoneConstants.PRESENTATION_UNKNOWN; in presentationFromCLIP()
183 case 3: return PhoneConstants.PRESENTATION_PAYPHONE; in presentationFromCLIP()
DCallManager.java216 phone.getPhoneType() != PhoneConstants.PHONE_TYPE_IMS) { in getPhone()
231 public PhoneConstants.State getState() { in getState()
232 PhoneConstants.State s = PhoneConstants.State.IDLE; in getState()
235 if (phone.getState() == PhoneConstants.State.RINGING) { in getState()
236 s = PhoneConstants.State.RINGING; in getState()
237 } else if (phone.getState() == PhoneConstants.State.OFFHOOK) { in getState()
238 if (s == PhoneConstants.State.IDLE) s = PhoneConstants.State.OFFHOOK; in getState()
251 public PhoneConstants.State getState(int subId) { in getState()
252 PhoneConstants.State s = PhoneConstants.State.IDLE; in getState()
256 if (phone.getState() == PhoneConstants.State.RINGING) { in getState()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DDcTrackerTest.java92 import com.android.internal.telephony.PhoneConstants;
494 doReturn(PhoneConstants.State.IDLE).when(mCT).getState(); in setUp()
591 eq(PhoneConstants.APN_TYPE_DEFAULT)); in verifyDataConnected()
596 assertEquals(apnSetting, mDct.getActiveApnString(PhoneConstants.APN_TYPE_DEFAULT)); in verifyDataConnected()
597 assertArrayEquals(new String[]{PhoneConstants.APN_TYPE_DEFAULT}, mDct.getActiveApnTypes()); in verifyDataConnected()
600 assertEquals(DctConstants.State.CONNECTED, mDct.getState(PhoneConstants.APN_TYPE_DEFAULT)); in verifyDataConnected()
602 LinkProperties linkProperties = mDct.getLinkProperties(PhoneConstants.APN_TYPE_DEFAULT); in verifyDataConnected()
644 initApns(PhoneConstants.APN_TYPE_XCAP, new String[]{PhoneConstants.APN_TYPE_XCAP}); in testTrySetupDataUnmeteredDefaultNotSelected()
648 new String[]{PhoneConstants.APN_TYPE_DEFAULT}); in testTrySetupDataUnmeteredDefaultNotSelected()
738 initApns(PhoneConstants.APN_TYPE_DEFAULT, new String[]{PhoneConstants.APN_TYPE_ALL}); in testDataRetry()
[all …]
DDataEnabledOverrideTest.java29 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()
DApnSettingTest.java34 import com.android.internal.telephony.PhoneConstants;
328 new String[]{PhoneConstants.APN_TYPE_DEFAULT, PhoneConstants.APN_TYPE_MMS}); in testIsMetered()
366 new String[]{PhoneConstants.APN_TYPE_DEFAULT}); in testIsMetered()
376 new String[]{PhoneConstants.APN_TYPE_DEFAULT, PhoneConstants.APN_TYPE_MMS}); in testIsRoamingMetered()
403 new String[]{PhoneConstants.APN_TYPE_FOTA}); in testIsRoamingMetered()
415 new String[]{PhoneConstants.APN_TYPE_SUPL, PhoneConstants.APN_TYPE_CBS}); in testIsMeteredAnother()
446 new String[]{PhoneConstants.APN_TYPE_SUPL, PhoneConstants.APN_TYPE_CBS}); in testIsRoamingMeteredAnother()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaCallWaitingNotification.java21 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/
DCellLocation.java26 import com.android.internal.telephony.PhoneConstants;
68 case PhoneConstants.PHONE_TYPE_CDMA: in newFromBundle()
70 case PhoneConstants.PHONE_TYPE_GSM: in newFromBundle()
104 case PhoneConstants.PHONE_TYPE_CDMA: in getEmpty()
106 case PhoneConstants.PHONE_TYPE_GSM: in getEmpty()
DPinResult.java25 import com.android.internal.telephony.PhoneConstants;
46 public static final int PIN_RESULT_TYPE_SUCCESS = PhoneConstants.PIN_RESULT_SUCCESS;
51 public static final int PIN_RESULT_TYPE_INCORRECT = PhoneConstants.PIN_PASSWORD_INCORRECT;
56 public static final int PIN_RESULT_TYPE_FAILURE = PhoneConstants.PIN_GENERAL_FAILURE;
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSmsDispatchersControllerTest.java76 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_GSM); in testSmsHandleStateUpdate()
81 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_CDMA); in testSmsHandleStateUpdate()
88 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_GSM); in testSendImsGmsTest()
98 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_GSM); in testSendImsGmsTestWithOutDesAddr()
107 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_CDMA); in testSendImsCdmaTest()
118 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_CDMA); in testSendRetrySmsCdmaTest()
121 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType(); in testSendRetrySmsCdmaTest()
132 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_GSM); in testSendRetrySmsGsmTest()
DGsmCdmaCallTrackerTest.java88 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testMOCallDial()
100 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMOCallDial()
131 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMOCallHangup()
143 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testMOCallHangup()
153 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMOCallDialPickUpHangup()
168 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testMOCallDialPickUpHangup()
191 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testMOCallPendingHangUp()
231 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in setupRingingCall()
239 assertEquals(PhoneConstants.State.RINGING, mCTUT.getState()); in setupRingingCall()
263 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMTCallAccept()
[all …]
DGsmCdmaConnectionTest.java82 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType(); in testOriginalDialString()
87 doReturn(PhoneConstants.PHONE_TYPE_GSM).when(mPhone).getPhoneType(); in testOriginalDialString()
104 assertEquals(PhoneConstants.PRESENTATION_ALLOWED, connection.getNumberPresentation()); in testSanityGSM()
112 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType(); in testSanityCDMA()
122 assertEquals(PhoneConstants.PRESENTATION_ALLOWED, connection.getNumberPresentation()); in testSanityCDMA()
149 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType(); in testCDMAPostDialPause()
187 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType(); in testPostDialWait()
DImsSmsDispatcherTest.java80 when(mPhone.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_GSM); in testSendSms()
102 when(mPhone.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_GSM); in testFallbackGsmRetry()
129 when(mPhone.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_GSM); in testErrorImsRetry()
164 when(mPhone.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_GSM); in testReceiveGsmSmsStatusReport()
195 when(mPhone.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_GSM); in testNetworkError()
DGsmCdmaPhoneTest.java114 assertEquals(PhoneConstants.PHONE_TYPE_GSM, mPhoneUT.getPhoneType()); in switchToGsm()
122 assertEquals(PhoneConstants.PHONE_TYPE_CDMA, mPhoneUT.getPhoneType()); in switchToCdma()
132 PhoneConstants.PHONE_TYPE_GSM, mTelephonyComponentFactory); in setUp()
400 assertEquals(PhoneConstants.PHONE_TYPE_GSM, mPhoneUT.getPhoneType()); in testGetPhoneType()
405 assertEquals(PhoneConstants.PHONE_TYPE_CDMA, mPhoneUT.getPhoneType()); in testGetPhoneType()
414 assertEquals(PhoneConstants.DataState.DISCONNECTED, mPhoneUT.getDataConnectionState( in testGetDataConnectionState()
415 PhoneConstants.APN_TYPE_ALL)); in testGetDataConnectionState()
420 PhoneConstants.APN_TYPE_EMERGENCY); in testGetDataConnectionState()
421 assertEquals(PhoneConstants.DataState.DISCONNECTED, mPhoneUT.getDataConnectionState( in testGetDataConnectionState()
422 PhoneConstants.APN_TYPE_EMERGENCY)); in testGetDataConnectionState()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
DSipPhoneBase.java38 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()
DSipConnectionBase.java25 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/
DImsPhoneBase.java41 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()
DImsExternalConnection.java30 import com.android.internal.telephony.PhoneConstants;
90 mNumberPresentation = PhoneConstants.PRESENTATION_ALLOWED; in ImsExternalConnection()
245 mCnapNamePresentation = PhoneConstants.PRESENTATION_ALLOWED; in setExternalConnectionAddress()
247 mNumberPresentation = PhoneConstants.PRESENTATION_RESTRICTED; in setExternalConnectionAddress()
/frameworks/opt/net/ims/src/java/com/android/ims/internal/
DConferenceParticipant.java28 import com.android.internal.telephony.PhoneConstants;
148 return PhoneConstants.PRESENTATION_RESTRICTED; in getParticipantPresentation()
154 return PhoneConstants.PRESENTATION_RESTRICTED; in getParticipantPresentation()
172 return PhoneConstants.PRESENTATION_ALLOWED; in getParticipantPresentation()
179 return PhoneConstants.PRESENTATION_RESTRICTED; in getParticipantPresentation()
182 return PhoneConstants.PRESENTATION_ALLOWED; in getParticipantPresentation()
/frameworks/base/telephony/java/android/telephony/ims/
DImsCallProfile.java34 import com.android.internal.telephony.PhoneConstants;
830 case PhoneConstants.PRESENTATION_RESTRICTED: in presentationToOIR()
832 case PhoneConstants.PRESENTATION_ALLOWED: in presentationToOIR()
834 case PhoneConstants.PRESENTATION_PAYPHONE: in presentationToOIR()
836 case PhoneConstants.PRESENTATION_UNKNOWN: in presentationToOIR()
861 return PhoneConstants.PRESENTATION_RESTRICTED; in OIRToPresentation()
863 return PhoneConstants.PRESENTATION_ALLOWED; in OIRToPresentation()
865 return PhoneConstants.PRESENTATION_PAYPHONE; in OIRToPresentation()
867 return PhoneConstants.PRESENTATION_UNKNOWN; in OIRToPresentation()
869 return PhoneConstants.PRESENTATION_UNKNOWN; in OIRToPresentation()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGSMPhoneTest.java.broken33 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/
DImsPhoneCallTrackerTest.java91 import com.android.internal.telephony.PhoneConstants;
339 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testImsMTCall()
345 assertEquals(PhoneConstants.State.RINGING, mCTUT.getState()); in testImsMTCall()
369 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testImsMTCallAccept()
455 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testImsMTCallReject()
463 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testImsMTCallAcceptHangUp()
470 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testImsMTCallAcceptHangUp()
480 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testImsMTCallAcceptHold()
495 assertEquals(PhoneConstants.State.RINGING, mCTUT.getState()); in testImsMTCallAcceptHold()
589 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in startOutgoingCall()
[all …]
DImsPhoneConnectionTest.java51 import com.android.internal.telephony.PhoneConstants;
102 assertEquals(PhoneConstants.PRESENTATION_UNKNOWN, mConnectionUT.getNumberPresentation()); in testImsIncomingConnectionCorrectness()
103 assertEquals(PhoneConstants.PRESENTATION_UNKNOWN, mConnectionUT.getCnapNamePresentation()); in testImsIncomingConnectionCorrectness()
118 assertEquals(PhoneConstants.PRESENTATION_ALLOWED, mConnectionUT.getNumberPresentation()); in testImsIncomingConnectionCorrectness()
119 assertEquals(PhoneConstants.PRESENTATION_ALLOWED, mConnectionUT.getCnapNamePresentation()); in testImsIncomingConnectionCorrectness()
170 assertEquals(PhoneConstants.PRESENTATION_UNKNOWN, mConnectionUT.getNumberPresentation()); in testUpdateAddressDisplay()
171 assertEquals(PhoneConstants.PRESENTATION_UNKNOWN, mConnectionUT.getCnapNamePresentation()); in testUpdateAddressDisplay()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/vendor/
DVendorServiceStateTracker.java28 import com.android.internal.telephony.PhoneConstants;
63 intent.putExtra(PhoneConstants.SUBSCRIPTION_KEY, in handlePollStateResultMessage()

1234