Home
last modified time | relevance | path

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

/frameworks/opt/telephony/src/java/com/android/internal/telephony/emergency/
DRadioOnHelper.java41 public class RadioOnHelper implements RadioOnStateListener.Callback {
46 private RadioOnStateListener.Callback mCallback;
47 private List<RadioOnStateListener> mListeners;
48 private List<RadioOnStateListener> mInProgressListeners;
63 mListeners.add(new RadioOnStateListener()); in setupListeners()
86 public void triggerRadioOnAndListen(RadioOnStateListener.Callback callback, in triggerRadioOnAndListen()
170 public void onComplete(RadioOnStateListener listener, boolean isRadioReady) { in onComplete()
DRadioOnStateListener.java40 public class RadioOnStateListener { class
47 void onComplete(RadioOnStateListener listener, boolean isRadioReady); in onComplete()
105 RadioOnStateListener.Callback callback =
106 (RadioOnStateListener.Callback) args.arg2;
567 RadioOnStateListener that = (RadioOnStateListener) o; in equals()
DEmergencyStateTracker.java1613 mRadioOnHelper.triggerRadioOnAndListen(new RadioOnStateListener.Callback() { in turnOnRadioAndSwitchDds()
1615 public void onComplete(RadioOnStateListener listener, boolean isRadioReady) { in turnOnRadioAndSwitchDds()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/emergency/
DRadioOnStateListenerTest.java59 @Mock RadioOnStateListener.Callback mCallback;
61 RadioOnStateListener mListener;
67 mListener = new RadioOnStateListener(); in setUp()
95 eq(RadioOnStateListener.MSG_SERVICE_STATE_CHANGED), isNull()); in testRegisterForCallback()
100 eq(RadioOnStateListener.MSG_RADIO_OFF_OR_NOT_AVAILABLE), isNull()); in testRegisterForCallback()
133 mListener.getHandler().obtainMessage(RadioOnStateListener.MSG_SERVICE_STATE_CHANGED, in testPhoneChangeState_OkToCallTrue()
156 mListener.getHandler().obtainMessage(RadioOnStateListener.MSG_SATELLITE_ENABLED_CHANGED) in testSatelliteChangeState_OkToCallTrue()
178 mListener.getHandler().obtainMessage(RadioOnStateListener.MSG_SERVICE_STATE_CHANGED, in testPhoneChangeState_NoOkToCall_Timeout()
182 verify(mCallback, never()).onComplete(any(RadioOnStateListener.class), anyBoolean()); in testPhoneChangeState_NoOkToCall_Timeout()
DEmergencyStateTrackerTest.java180 ArgumentCaptor<RadioOnStateListener.Callback> callback = ArgumentCaptor in startEmergencyCall_radioOff_turnOnRadioSwitchDdsAndSetEmergencyMode()
181 .forClass(RadioOnStateListener.Callback.class); in startEmergencyCall_radioOff_turnOnRadioSwitchDdsAndSetEmergencyMode()
239 ArgumentCaptor<RadioOnStateListener.Callback> callback = ArgumentCaptor in startEmergencyCall_radioOff_turnOnRadioTimeoutSwitchDdsAndSetEmergencyMode()
240 .forClass(RadioOnStateListener.Callback.class); in startEmergencyCall_radioOff_turnOnRadioTimeoutSwitchDdsAndSetEmergencyMode()
287 ArgumentCaptor<RadioOnStateListener.Callback> callback = ArgumentCaptor in startEmergencyCall_radioOff_turnOnRadioHangupCallTurnOffRadio()
288 .forClass(RadioOnStateListener.Callback.class); in startEmergencyCall_radioOff_turnOnRadioHangupCallTurnOffRadio()
323 ArgumentCaptor<RadioOnStateListener.Callback> callback = ArgumentCaptor in startEmergencyCall_radioOnFails_returnsDisconnectCausePowerOff()
324 .forClass(RadioOnStateListener.Callback.class); in startEmergencyCall_radioOnFails_returnsDisconnectCausePowerOff()
359 ArgumentCaptor<RadioOnStateListener.Callback> callback = ArgumentCaptor in startEmergencyCall_satelliteEnabled_turnOnRadioSwitchDdsAndSetEmergencyMode()
360 .forClass(RadioOnStateListener.Callback.class); in startEmergencyCall_satelliteEnabled_turnOnRadioSwitchDdsAndSetEmergencyMode()
[all …]