Home
last modified time | relevance | path

Searched refs:SensorEventListener (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/display/whitebalance/
DAmbientSensorTest.java31 import android.hardware.SensorEventListener;
87 ArgumentCaptor<SensorEventListener> captor = in testAmbientBrightnessSensorCallback_NoCallbacks()
88 ArgumentCaptor.forClass(SensorEventListener.class); in testAmbientBrightnessSensorCallback_NoCallbacks()
94 SensorEventListener listener = captor.getValue(); in testAmbientBrightnessSensorCallback_NoCallbacks()
116 ArgumentCaptor<SensorEventListener> captor = in testAmbientBrightnessSensorCallback_CallbacksCalled()
117 ArgumentCaptor.forClass(SensorEventListener.class); in testAmbientBrightnessSensorCallback_CallbacksCalled()
120 SensorEventListener listener = captor.getValue(); in testAmbientBrightnessSensorCallback_CallbacksCalled()
149 ArgumentCaptor<SensorEventListener> captor = in testAmbientColorTemperatureSensorCallback_CallbacksCalled()
150 ArgumentCaptor.forClass(SensorEventListener.class); in testAmbientColorTemperatureSensorCallback_CallbacksCalled()
153 SensorEventListener listener = captor.getValue(); in testAmbientColorTemperatureSensorCallback_CallbacksCalled()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DAutomaticBrightnessControllerTest.java29 import android.hardware.SensorEventListener;
104 ArgumentCaptor<SensorEventListener> listenerCaptor = in testNoHysteresisAtMinBrightness()
105 ArgumentCaptor.forClass(SensorEventListener.class); in testNoHysteresisAtMinBrightness()
108 SensorEventListener listener = listenerCaptor.getValue(); in testNoHysteresisAtMinBrightness()
151 ArgumentCaptor<SensorEventListener> listenerCaptor = in testNoHysteresisAtMaxBrightness()
152 ArgumentCaptor.forClass(SensorEventListener.class); in testNoHysteresisAtMaxBrightness()
155 SensorEventListener listener = listenerCaptor.getValue(); in testNoHysteresisAtMaxBrightness()
198 ArgumentCaptor<SensorEventListener> listenerCaptor = in testUserAddUserDataPoint()
199 ArgumentCaptor.forClass(SensorEventListener.class); in testUserAddUserDataPoint()
202 SensorEventListener listener = listenerCaptor.getValue(); in testUserAddUserDataPoint()
DBrightnessTrackerTest.java37 import android.hardware.SensorEventListener;
253 SensorEventListener listener = mInjector.mSensorListener; in testAdaptiveOnOff()
844 SensorEventListener mSensorListener;
895 SensorEventListener sensorListener, Handler handler) { in registerSensorListener()
901 SensorEventListener sensorListener) { in unregisterSensorListener()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/sensors/
DAsyncSensorManager.java24 import android.hardware.SensorEventListener;
97 protected boolean registerListenerImpl(SensorEventListener listener, in registerListenerImpl()
109 protected boolean flushImpl(SensorEventListener listener) { in flushImpl()
176 SensorManagerPlugin.SensorEventListener listener) { in registerPluginListener()
196 SensorManagerPlugin.SensorEventListener listener) { in unregisterPluginListener()
222 protected void unregisterListenerImpl(SensorEventListener listener, in unregisterListenerImpl()
DProximitySensor.java22 import android.hardware.SensorEventListener;
57 private SensorEventListener mSensorEventListener = new SensorEventListener() {
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
DSensorManagerPlugin.java38 void registerListener(Sensor sensor, SensorEventListener listener); in registerListener()
45 void unregisterListener(Sensor sensor, SensorEventListener listener); in unregisterListener()
50 interface SensorEventListener { interface
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/sensors/
DFakeSensorManager.java25 import android.hardware.SensorEventListener;
114 protected void unregisterListenerImpl(SensorEventListener listener, Sensor sensor) { in unregisterListenerImpl()
124 protected boolean registerListenerImpl(SensorEventListener listener, Sensor sensor, in registerListenerImpl()
139 protected boolean flushImpl(SensorEventListener listener) { in flushImpl()
252 private final ArraySet<SensorEventListener> mListeners = new ArraySet<>();
266 for (SensorEventListener listener : mListeners) { in sendSensorEvent()
DAsyncSensorManagerTest.java25 import android.hardware.SensorEventListener;
46 private SensorEventListener mListener;
57 mListener = mock(SensorEventListener.class); in setUp()
/frameworks/base/core/java/android/view/
DOrientationEventListener.java22 import android.hardware.SensorEventListener;
39 private SensorEventListener mSensorEventListener;
113 class SensorEventListenerImpl implements SensorEventListener {
/frameworks/base/core/java/android/hardware/
DSensorManager.java647 public void unregisterListener(SensorEventListener listener, Sensor sensor) { in unregisterListener()
665 public void unregisterListener(SensorEventListener listener) { in unregisterListener()
674 protected abstract void unregisterListenerImpl(SensorEventListener listener, Sensor sensor); in unregisterListenerImpl()
728 public boolean registerListener(SensorEventListener listener, Sensor sensor, in registerListener()
785 public boolean registerListener(SensorEventListener listener, Sensor sensor, in registerListener()
820 public boolean registerListener(SensorEventListener listener, Sensor sensor, in registerListener()
851 public boolean registerListener(SensorEventListener listener, Sensor sensor, in registerListener()
858 protected abstract boolean registerListenerImpl(SensorEventListener listener, Sensor sensor, in registerListenerImpl()
882 public boolean flush(SensorEventListener listener) { in flush()
887 protected abstract boolean flushImpl(SensorEventListener listener); in flushImpl()
DSystemSensorManager.java87 private final HashMap<SensorEventListener, SensorEventQueue> mSensorListeners =
88 new HashMap<SensorEventListener, SensorEventQueue>();
145 protected boolean registerListenerImpl(SensorEventListener listener, Sensor sensor, in registerListenerImpl()
193 protected void unregisterListenerImpl(SensorEventListener listener, Sensor sensor) { in unregisterListenerImpl()
277 protected boolean flushImpl(SensorEventListener listener) { in flushImpl()
356 HashMap<SensorEventListener, SensorEventQueue> sensorListeners = in cleanupSensorConnection()
357 new HashMap<SensorEventListener, SensorEventQueue>(mSensorListeners); in cleanupSensorConnection()
359 for (SensorEventListener l: sensorListeners.keySet()) { in cleanupSensorConnection()
779 private final SensorEventListener mListener;
782 public SensorEventQueue(SensorEventListener listener, Looper looper, in SensorEventQueue()
DSensorEventListener2.java22 public interface SensorEventListener2 extends SensorEventListener {
DSensorEventListener.java23 public interface SensorEventListener { interface
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DMotionSensor.java24 import android.hardware.SensorEventListener;
34 public final class MotionSensor extends Filter implements SensorEventListener {
/frameworks/base/services/core/java/com/android/server/display/whitebalance/
DAmbientSensor.java23 import android.hardware.SensorEventListener;
205 private SensorEventListener mListener = new SensorEventListener() {
/frameworks/rs/tests/java_api/Balls/src/com/example/android/rs/balls/
DBalls.java43 import android.hardware.SensorEventListener;
46 public class Balls extends Activity implements SensorEventListener {
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DMotionSensorWTime.java24 import android.hardware.SensorEventListener;
36 public final class MotionSensorWTime extends Filter implements SensorEventListener {
/frameworks/base/services/core/java/com/android/server/
DSensorNotificationService.java25 import android.hardware.SensorEventListener;
36 implements SensorEventListener, LocationListener {
/frameworks/base/services/core/java/com/android/server/power/
DWirelessChargerDetector.java21 import android.hardware.SensorEventListener;
369 private final SensorEventListener mListener = new SensorEventListener() {
/frameworks/base/services/core/java/com/android/server/policy/
DDisplayFoldController.java23 import android.hardware.SensorEventListener;
169 sensorManager.registerListener(new SensorEventListener() { in createWithProxSensor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeScreenBrightness.java25 import android.hardware.SensorEventListener;
40 SensorEventListener {
/frameworks/base/apex/jobscheduler/service/java/com/android/server/
DAnyMotionDetector.java21 import android.hardware.SensorEventListener;
295 private final SensorEventListener mListener = new SensorEventListener() {
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DFalsingManagerImpl.java24 import android.hardware.SensorEventListener;
97 private SensorEventListener mSensorEventListener = new SensorEventListener() {
/frameworks/base/packages/SystemUI/src/com/android/systemui/analytics/
DDataCollector.java26 import android.hardware.SensorEventListener;
55 public class DataCollector implements SensorEventListener {
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/
DGL2CameraEye.java44 import android.hardware.SensorEventListener;
71 class CamGLSurfaceView extends GLSurfaceView implements SensorEventListener {

12