Searched refs:isOkToCall (Results 1 – 5 of 5) sorted by relevance
/frameworks/opt/telephony/src/java/com/android/internal/telephony/emergency/ |
D | RadioOnStateListener.java | 58 boolean isOkToCall(Phone phone, int serviceState, boolean imsVoiceCapable); in isOkToCall() method 247 if (isOkToCall(mPhone.getServiceState().getState(), imsVoiceCapable)) { in onImsCapabilityChanged() 297 if (isOkToCall(state.getState(), mPhone.isVoiceOverCellularImsEnabled())) { in onServiceStateChanged() 315 if (isOkToCall(state.getState(), mPhone.isVoiceOverCellularImsEnabled())) { in onRadioOn() 327 if (isOkToCall(mPhone.getServiceState().getState(), in onSatelliteEnabledChanged() 339 private boolean isOkToCall(int serviceState, boolean imsVoiceCapable) { in isOkToCall() method in RadioOnStateListener 341 ? false : mCallback.isOkToCall(mPhone, serviceState, imsVoiceCapable); in isOkToCall() 371 if (isOkToCall(serviceState, mPhone.isVoiceOverCellularImsEnabled())) { in onRetryTimeout()
|
D | RadioOnHelper.java | 179 public boolean isOkToCall(Phone phone, int serviceState, boolean imsVoiceCapable) { in isOkToCall() method in RadioOnHelper 181 ? false : mCallback.isOkToCall(phone, serviceState, imsVoiceCapable); in isOkToCall()
|
D | EmergencyStateTracker.java | 1637 public boolean isOkToCall(Phone phone, int serviceState, boolean imsVoiceCapable) { in turnOnRadioAndSwitchDds()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/emergency/ |
D | RadioOnStateListenerTest.java | 129 when(mCallback.isOkToCall(eq(mMockPhone), anyInt(), anyBoolean())).thenReturn(true); in testPhoneChangeState_OkToCallTrue() 152 when(mCallback.isOkToCall(eq(mMockPhone), anyInt(), anyBoolean())).thenReturn(true); in testSatelliteChangeState_OkToCallTrue() 173 when(mCallback.isOkToCall(eq(mMockPhone), anyInt(), anyBoolean())).thenReturn(false); in testPhoneChangeState_NoOkToCall_Timeout() 197 when(mCallback.isOkToCall(eq(mMockPhone), anyInt(), anyBoolean())).thenReturn(false); in testTimeout_RetryFailure() 217 when(mCallback.isOkToCall(eq(mMockPhone), anyInt(), anyBoolean())).thenReturn(false); in testTimeout_RetryFailure_ForEmergency() 238 when(mCallback.isOkToCall(eq(mMockPhone), anyInt(), anyBoolean())).thenReturn(false); in testTimeout_RetryFailure_WithSatellite() 258 when(mCallback.isOkToCall(eq(mMockPhone), anyInt(), anyBoolean())) in testTimeout_OnTimeoutForEmergency()
|
D | EmergencyStateTrackerTest.java | 186 .isOkToCall(testPhone, ServiceState.STATE_OUT_OF_SERVICE, false)); in startEmergencyCall_radioOff_turnOnRadioSwitchDdsAndSetEmergencyMode() 189 .isOkToCall(testPhone, ServiceState.STATE_OUT_OF_SERVICE, false)); in startEmergencyCall_radioOff_turnOnRadioSwitchDdsAndSetEmergencyMode() 199 .isOkToCall(testPhone, ServiceState.STATE_IN_SERVICE, false)); in startEmergencyCall_radioOff_turnOnRadioSwitchDdsAndSetEmergencyMode() 245 .isOkToCall(testPhone, ServiceState.STATE_OUT_OF_SERVICE, false)); in startEmergencyCall_radioOff_turnOnRadioTimeoutSwitchDdsAndSetEmergencyMode() 251 .isOkToCall(testPhone, ServiceState.STATE_OUT_OF_SERVICE, false)); in startEmergencyCall_radioOff_turnOnRadioTimeoutSwitchDdsAndSetEmergencyMode() 297 .isOkToCall(testPhone, ServiceState.STATE_POWER_OFF, false)); in startEmergencyCall_radioOff_turnOnRadioHangupCallTurnOffRadio() 365 .isOkToCall(testPhone, ServiceState.STATE_IN_SERVICE, false)); in startEmergencyCall_satelliteEnabled_turnOnRadioSwitchDdsAndSetEmergencyMode() 368 .isOkToCall(testPhone, ServiceState.STATE_IN_SERVICE, false)); in startEmergencyCall_satelliteEnabled_turnOnRadioSwitchDdsAndSetEmergencyMode()
|