/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 | 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 | PhoneStateIntentReceiver.java | 49 PhoneConstants.State mPhoneState = PhoneConstants.State.IDLE; 83 public PhoneConstants.State getPhoneState() { in getPhoneState() 185 + intent.getStringExtra(PhoneConstants.STATE_KEY)); in onReceive() 186 String phoneState = intent.getStringExtra(PhoneConstants.STATE_KEY); in onReceive() 188 PhoneConstants.State.class, phoneState); in onReceive()
|
D | DriverCall.java | 113 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()
|
D | CallManager.java | 216 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/ |
D | DcTrackerTest.java | 92 import com.android.internal.telephony.PhoneConstants; 497 doReturn(PhoneConstants.State.IDLE).when(mCT).getState(); in setUp() 594 eq(PhoneConstants.APN_TYPE_DEFAULT)); in verifyDataConnected() 599 assertEquals(apnSetting, mDct.getActiveApnString(PhoneConstants.APN_TYPE_DEFAULT)); in verifyDataConnected() 600 assertArrayEquals(new String[]{PhoneConstants.APN_TYPE_DEFAULT}, mDct.getActiveApnTypes()); in verifyDataConnected() 603 assertEquals(DctConstants.State.CONNECTED, mDct.getState(PhoneConstants.APN_TYPE_DEFAULT)); in verifyDataConnected() 605 LinkProperties linkProperties = mDct.getLinkProperties(PhoneConstants.APN_TYPE_DEFAULT); in verifyDataConnected() 647 initApns(PhoneConstants.APN_TYPE_XCAP, new String[]{PhoneConstants.APN_TYPE_XCAP}); in testTrySetupDataUnmeteredDefaultNotSelected() 651 new String[]{PhoneConstants.APN_TYPE_DEFAULT}); in testTrySetupDataUnmeteredDefaultNotSelected() 741 initApns(PhoneConstants.APN_TYPE_DEFAULT, new String[]{PhoneConstants.APN_TYPE_ALL}); in testDataRetry() [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()
|
D | ApnSettingTest.java | 34 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/ |
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 | 29 import com.android.internal.telephony.PhoneConstants; 84 case PhoneConstants.PHONE_TYPE_CDMA: in newFromBundle() 86 case PhoneConstants.PHONE_TYPE_GSM: in newFromBundle() 120 case PhoneConstants.PHONE_TYPE_CDMA: in getEmpty() 122 case PhoneConstants.PHONE_TYPE_GSM: in getEmpty()
|
D | PinResult.java | 25 import com.android.internal.telephony.PhoneConstants; 47 public static final int PIN_RESULT_TYPE_SUCCESS = PhoneConstants.PIN_RESULT_SUCCESS; 52 public static final int PIN_RESULT_TYPE_INCORRECT = PhoneConstants.PIN_PASSWORD_INCORRECT; 57 public static final int PIN_RESULT_TYPE_FAILURE = PhoneConstants.PIN_GENERAL_FAILURE; 62 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 | 76 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()
|
D | GsmCdmaCallTrackerTest.java | 88 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 …]
|
D | GsmCdmaConnectionTest.java | 82 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()
|
D | ImsSmsDispatcherTest.java | 79 when(mPhone.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_GSM); in testSendSms() 101 when(mPhone.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_GSM); in testFallbackGsmRetry() 128 when(mPhone.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_GSM); in testErrorImsRetry() 159 when(mPhone.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_GSM); in testReceiveGsmSmsStatusReport() 188 when(mPhone.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_GSM); in testNetworkError()
|
D | GsmCdmaPhoneTest.java | 118 assertEquals(PhoneConstants.PHONE_TYPE_GSM, mPhoneUT.getPhoneType()); in switchToGsm() 126 assertEquals(PhoneConstants.PHONE_TYPE_CDMA, mPhoneUT.getPhoneType()); in switchToCdma() 136 PhoneConstants.PHONE_TYPE_GSM, mTelephonyComponentFactory); in setUp() 404 assertEquals(PhoneConstants.PHONE_TYPE_GSM, mPhoneUT.getPhoneType()); in testGetPhoneType() 409 assertEquals(PhoneConstants.PHONE_TYPE_CDMA, mPhoneUT.getPhoneType()); in testGetPhoneType() 418 assertEquals(PhoneConstants.DataState.DISCONNECTED, mPhoneUT.getDataConnectionState( in testGetDataConnectionState() 419 PhoneConstants.APN_TYPE_ALL)); in testGetDataConnectionState() 424 PhoneConstants.APN_TYPE_EMERGENCY); in testGetDataConnectionState() 425 assertEquals(PhoneConstants.DataState.DISCONNECTED, mPhoneUT.getDataConnectionState( in testGetDataConnectionState() 426 PhoneConstants.APN_TYPE_EMERGENCY)); in testGetDataConnectionState() [all …]
|
/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 | 30 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/ |
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 | 34 import com.android.internal.telephony.PhoneConstants; 814 case PhoneConstants.PRESENTATION_RESTRICTED: in presentationToOIR() 816 case PhoneConstants.PRESENTATION_ALLOWED: in presentationToOIR() 818 case PhoneConstants.PRESENTATION_PAYPHONE: in presentationToOIR() 820 case PhoneConstants.PRESENTATION_UNKNOWN: in presentationToOIR() 845 return PhoneConstants.PRESENTATION_RESTRICTED; in OIRToPresentation() 847 return PhoneConstants.PRESENTATION_ALLOWED; in OIRToPresentation() 849 return PhoneConstants.PRESENTATION_PAYPHONE; in OIRToPresentation() 851 return PhoneConstants.PRESENTATION_UNKNOWN; in OIRToPresentation() 853 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 …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/vendor/ |
D | VendorServiceStateTracker.java | 28 import com.android.internal.telephony.PhoneConstants; 63 intent.putExtra(PhoneConstants.SUBSCRIPTION_KEY, in handlePollStateResultMessage()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/ |
D | ImsPhoneConnectionTest.java | 51 import com.android.internal.telephony.PhoneConstants; 114 assertEquals(PhoneConstants.PRESENTATION_UNKNOWN, mConnectionUT.getNumberPresentation()); in testImsIncomingConnectionCorrectness() 115 assertEquals(PhoneConstants.PRESENTATION_UNKNOWN, mConnectionUT.getCnapNamePresentation()); in testImsIncomingConnectionCorrectness() 130 assertEquals(PhoneConstants.PRESENTATION_ALLOWED, mConnectionUT.getNumberPresentation()); in testImsIncomingConnectionCorrectness() 131 assertEquals(PhoneConstants.PRESENTATION_ALLOWED, mConnectionUT.getCnapNamePresentation()); in testImsIncomingConnectionCorrectness() 182 assertEquals(PhoneConstants.PRESENTATION_UNKNOWN, mConnectionUT.getNumberPresentation()); in testUpdateAddressDisplay() 183 assertEquals(PhoneConstants.PRESENTATION_UNKNOWN, mConnectionUT.getCnapNamePresentation()); in testUpdateAddressDisplay()
|