Home | History | Annotate | Download | only in dialer

Lines Matching refs:Listener

28  * Manages the proximity sensor and notifies a listener when enabled.
32 * Listener of the state of the proximity sensor.
38 public interface Listener {
58 * The listener to the state of the sensor.
66 * listener the next time the sensor reaches the {@link State#FAR} state if currently in the
75 private final Listener mListener;
85 * should notify the listener and unregister when that happens.
90 Listener listener) {
94 mListener = listener;
118 // Notify the listener of the state change.
155 /** Register the listener and call the listener as necessary. */
172 // Notify the listener if we changed the state to FAR while unregistering.
185 public ProximitySensorManager(Context context, Listener listener) {
194 new ProximitySensorEventListener(sensorManager, proximitySensor, listener);
201 * The listener will start getting notifications of events.
215 * The listener will stop receiving notifications of events, possibly after receiving a last
216 * {@link Listener#onFar()} callback.
219 * state, the listener will receive a {@link Listener#onFar()} callback the next time the sensor
222 * If {@code waitForFarState} is false, the listener will receive a {@link Listener#onFar()}