Searched refs:isOkToCall (Results 1 – 5 of 5) sorted by relevance
/packages/services/Telephony/src/com/android/services/telephony/ |
D | RadioOnStateListener.java | 45 boolean isOkToCall(Phone phone, int serviceState); in isOkToCall() method 186 if (isOkToCall(state.getState())) { in onServiceStateChanged() 203 if (isOkToCall(state.getState())) { in onRadioOn() 213 private boolean isOkToCall(int serviceState) { in isOkToCall() method in RadioOnStateListener 214 return (mCallback == null) ? false : mCallback.isOkToCall(mPhone, serviceState); in isOkToCall() 232 if (isOkToCall(serviceState)) { in onRetryTimeout()
|
D | RadioOnHelper.java | 149 public boolean isOkToCall(Phone phone, int serviceState) { in isOkToCall() method in RadioOnHelper 150 return (mCallback == null) ? false : mCallback.isOkToCall(phone, serviceState); in isOkToCall()
|
D | TelephonyConnectionService.java | 784 public boolean isOkToCall(Phone phone, int serviceState) { in onCreateOutgoingConnection()
|
/packages/services/Telephony/tests/src/com/android/services/telephony/ |
D | RadioOnStateListenerTest.java | 112 when(mCallback.isOkToCall(eq(mMockPhone), anyInt())).thenReturn(true); in testPhoneChangeState_OkToCallTrue() 135 when(mCallback.isOkToCall(eq(mMockPhone), anyInt())).thenReturn(false); in testPhoneChangeState_NoOkToCall_Timeout() 161 when(mCallback.isOkToCall(eq(mMockPhone), anyInt())).thenReturn(false); in testTimeout_RetryFailure() 182 when(mCallback.isOkToCall(eq(mMockPhone), anyInt())).thenReturn(false); in testTimeout_RetryFailure_ForEmergency()
|
D | TelephonyConnectionServiceTest.java | 986 assertFalse(callback.getValue().isOkToCall(testPhone, ServiceState.STATE_OUT_OF_SERVICE)); in testCreateOutgoingEmerge_exitingApm_disconnected() 988 assertTrue(callback.getValue().isOkToCall(testPhone, ServiceState.STATE_OUT_OF_SERVICE)); in testCreateOutgoingEmerge_exitingApm_disconnected() 1012 assertFalse(callback.getValue().isOkToCall(testPhone, ServiceState.STATE_OUT_OF_SERVICE)); in testCreateOutgoingEmergencyConnection_exitingApm_placeCall() 1014 assertTrue(callback.getValue().isOkToCall(testPhone, ServiceState.STATE_OUT_OF_SERVICE)); in testCreateOutgoingEmergencyConnection_exitingApm_placeCall()
|