Home
last modified time | relevance | path

Searched refs:isOkToCall (Results 1 – 5 of 5) sorted by relevance

/packages/services/Telephony/src/com/android/services/telephony/
DRadioOnStateListener.java45 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()
DRadioOnHelper.java144 public boolean isOkToCall(Phone phone, int serviceState) { in isOkToCall() method in RadioOnHelper
145 return (mCallback == null) ? false : mCallback.isOkToCall(phone, serviceState); in isOkToCall()
DTelephonyConnectionService.java811 public boolean isOkToCall(Phone phone, int serviceState) { in onCreateOutgoingConnection()
/packages/services/Telephony/tests/src/com/android/services/telephony/
DRadioOnStateListenerTest.java112 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()
DTelephonyConnectionServiceTest.java969 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()