Searched refs:ProximitySensorListener (Results 1 – 5 of 5) sorted by relevance
81 verify(mProximitySensor).register(any(ProximitySensor.ProximitySensorListener.class)); in testRegisterSensor()89 verify(mProximitySensor).unregister(any(ProximitySensor.ProximitySensorListener.class)); in testUnregisterSensor()97 verify(mProximitySensor).unregister(any(ProximitySensor.ProximitySensorListener.class)); in testUnregisterSensor_QS()99 verify(mProximitySensor).register(any(ProximitySensor.ProximitySensorListener.class)); in testUnregisterSensor_QS()107 verify(mProximitySensor).unregister(any(ProximitySensor.ProximitySensorListener.class)); in testUnregisterSensor_Bouncer()109 verify(mProximitySensor).register(any(ProximitySensor.ProximitySensorListener.class)); in testUnregisterSensor_Bouncer()117 verify(mProximitySensor).unregister(any(ProximitySensor.ProximitySensorListener.class)); in testUnregisterSensor_StateTransition()
49 private List<ProximitySensorListener> mListeners = new ArrayList<>();170 public boolean register(ProximitySensorListener listener) { in register()200 public void unregister(ProximitySensorListener listener) { in unregister()226 List<ProximitySensorListener> listeners = new ArrayList<>(mListeners); in alertListeners()252 private final ProximitySensor.ProximitySensorListener mListener;305 public interface ProximitySensorListener { interface
88 ProximitySensor.ProximitySensorListener emptyListener = event -> { }; in testProxDoesntCancelOthers()
242 class TestableListener implements ProximitySensor.ProximitySensorListener {
79 private ProximitySensor.ProximitySensorListener mSensorEventListener = this::onProximityEvent;