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 | 144 public boolean isOkToCall(Phone phone, int serviceState) { in isOkToCall() method in RadioOnHelper 145 return (mCallback == null) ? false : mCallback.isOkToCall(phone, serviceState); in isOkToCall()
|
D | TelephonyConnectionService.java | 811 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 | 969 assertFalse(callback.getValue().isOkToCall(testPhone, ServiceState.STATE_OUT_OF_SERVICE)); in testCreateOutgoingEmerge_exitingApm_disconnected() 971 assertTrue(callback.getValue().isOkToCall(testPhone, ServiceState.STATE_OUT_OF_SERVICE)); in testCreateOutgoingEmerge_exitingApm_disconnected() 995 assertFalse(callback.getValue().isOkToCall(testPhone, ServiceState.STATE_OUT_OF_SERVICE)); in testCreateOutgoingEmergencyConnection_exitingApm_placeCall() 997 assertTrue(callback.getValue().isOkToCall(testPhone, ServiceState.STATE_OUT_OF_SERVICE)); in testCreateOutgoingEmergencyConnection_exitingApm_placeCall()
|