Home
last modified time | relevance | path

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

/packages/services/Telephony/src/com/android/services/telephony/
DRadioOnHelper.java38 public class RadioOnHelper implements RadioOnStateListener.Callback {
41 private RadioOnStateListener.Callback mCallback;
42 private List<RadioOnStateListener> mListeners;
43 private List<RadioOnStateListener> mInProgressListeners;
58 mListeners.add(new RadioOnStateListener()); in setupListeners()
80 public void triggerRadioOnAndListen(RadioOnStateListener.Callback callback, in triggerRadioOnAndListen()
140 public void onComplete(RadioOnStateListener listener, boolean isRadioReady) { in onComplete()
DRadioOnStateListener.java33 public class RadioOnStateListener { class
39 void onComplete(RadioOnStateListener listener, boolean isRadioReady); in onComplete()
71 RadioOnStateListener.Callback callback =
72 (RadioOnStateListener.Callback) args.arg2;
369 RadioOnStateListener that = (RadioOnStateListener) o; in equals()
DTelephonyConnectionService.java776 mRadioOnHelper.triggerRadioOnAndListen(new RadioOnStateListener.Callback() { in onCreateOutgoingConnection()
778 public void onComplete(RadioOnStateListener listener, boolean isRadioReady) { in onCreateOutgoingConnection()
/packages/services/Telephony/tests/src/com/android/services/telephony/
DRadioOnStateListenerTest.java58 @Mock RadioOnStateListener.Callback mCallback;
60 RadioOnStateListener mListener;
66 mListener = new RadioOnStateListener(); in setUp()
94 eq(RadioOnStateListener.MSG_SERVICE_STATE_CHANGED), isNull()); in testRegisterForCallback()
97 eq(RadioOnStateListener.MSG_RADIO_OFF_OR_NOT_AVAILABLE), isNull()); in testRegisterForCallback()
117 mListener.getHandler().obtainMessage(RadioOnStateListener.MSG_SERVICE_STATE_CHANGED, in testPhoneChangeState_OkToCallTrue()
141 mListener.getHandler().obtainMessage(RadioOnStateListener.MSG_SERVICE_STATE_CHANGED, in testPhoneChangeState_NoOkToCall_Timeout()
145 verify(mCallback, never()).onComplete(any(RadioOnStateListener.class), anyBoolean()); in testPhoneChangeState_NoOkToCall_Timeout()
DTelephonyConnectionServiceTest.java981 ArgumentCaptor<RadioOnStateListener.Callback> callback = in testCreateOutgoingEmerge_exitingApm_disconnected()
982 ArgumentCaptor.forClass(RadioOnStateListener.Callback.class); in testCreateOutgoingEmerge_exitingApm_disconnected()
1007 ArgumentCaptor<RadioOnStateListener.Callback> callback = in testCreateOutgoingEmergencyConnection_exitingApm_placeCall()
1008 ArgumentCaptor.forClass(RadioOnStateListener.Callback.class); in testCreateOutgoingEmergencyConnection_exitingApm_placeCall()