/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeScreenBrightnessTest.java | 57 FakeSensorManager.FakeGenericSensor mSensor; field in DozeScreenBrightnessTest 66 mSensor = mSensorManager.getFakeLightSensor(); in setUp() 68 mSensor.getSensor(), mHostFake, null /* handler */, in setUp() 85 mSensor.sendSensorEvent(3); in testAod_usesLightSensor() 95 mSensor.sendSensorEvent(1); in testPausingAod_doesntPauseLightSensor() 100 mSensor.sendSensorEvent(2); in testPausingAod_doesntPauseLightSensor() 110 mSensor.sendSensorEvent(1); in testPausingAod_doesNotResetBrightness() 124 mSensor.sendSensorEvent(1); in testPulsing_usesLightSensor() 138 mSensor.sendSensorEvent(1); in testDozingAfterPulsing_pausesLightSensor() 161 mSensor.sendSensorEvent(1); in testNoBrightnessDeliveredAfterFinish() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/ |
D | AsyncSensorManagerTest.java | 44 private FakeSensorManager.MockProximitySensor mSensor; field in AsyncSensorManagerTest 50 mSensor = mFakeSensorManager.getMockProximitySensor(); in setUp() 56 mAsyncSensorManager.registerListener(mListener, mSensor.getSensor(), 100); in registerListenerImpl() 61 mSensor.sendProximityResult(true); in registerListenerImpl() 67 mAsyncSensorManager.registerListener(mListener, mSensor.getSensor(), 100); in unregisterListenerImpl_withNullSensor() 73 mSensor.sendProximityResult(true); in unregisterListenerImpl_withNullSensor() 79 mAsyncSensorManager.registerListener(mListener, mSensor.getSensor(), 100); in unregisterListenerImpl_withSensor() 80 mAsyncSensorManager.unregisterListener(mListener, mSensor.getSensor()); in unregisterListenerImpl_withSensor() 85 mSensor.sendProximityResult(true); in unregisterListenerImpl_withSensor()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | WakeGestureListener.java | 40 private Sensor mSensor; field in WakeGestureListener 46 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_WAKE_GESTURE); in WakeGestureListener() 53 return mSensor != null; in isSupported() 59 if (mSensor != null && !mTriggerRequested) { in requestWakeUpTrigger() 61 mSensorManager.requestTriggerSensor(mListener, mSensor); in requestWakeUpTrigger() 68 if (mSensor != null && mTriggerRequested) { in cancelWakeUpTrigger() 70 mSensorManager.cancelTriggerSensor(mListener, mSensor); in cancelWakeUpTrigger() 80 pw.println(prefix + "mSensor=" + mSensor); in dump()
|
D | WindowOrientationListener.java | 62 private Sensor mSensor; field in WindowOrientationListener 112 mSensor = wakeUpDeviceOrientationSensor; in WindowOrientationListener() 114 mSensor = nonWakeUpDeviceOrientationSensor; in WindowOrientationListener() 117 if (mSensor != null) { in WindowOrientationListener() 122 mSensor = mSensorManager.getDefaultSensor(USE_GRAVITY_SENSOR in WindowOrientationListener() 124 if (mSensor != null) { in WindowOrientationListener() 148 if (mSensor == null) { in enable() 160 if (mSensor.getType() == Sensor.TYPE_ACCELEROMETER) { in enable() 162 mOrientationJudge, mSensor, mRate, DEFAULT_BATCH_LATENCY, mHandler); in enable() 164 mSensorManager.registerListener(mOrientationJudge, mSensor, mRate, mHandler); in enable() [all …]
|
/frameworks/base/core/java/android/view/ |
D | OrientationEventListener.java | 38 private Sensor mSensor; field in OrientationEventListener 71 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in OrientationEventListener() 72 if (mSensor != null) { in OrientationEventListener() 87 if (mSensor == null) { in enable() 93 mSensorManager.registerListener(mSensorEventListener, mSensor, mRate); in enable() 102 if (mSensor == null) { in disable() 156 return mSensor != null; in canDetectOrientation()
|
/frameworks/native/services/sensorservice/ |
D | SensorInterface.cpp | 34 mSensor(&sensor, mSensorDevice.getHalDeviceVersion()) { in BaseSensor() 39 mSensor(sensor, Sensor::uuid_t(uuid), mSensorDevice.getHalDeviceVersion()) { in BaseSensor() 62 return mSensorDevice.activate(ident, mSensor.getHandle(), enabled); in activate() 67 return mSensorDevice.batch(ident, mSensor.getHandle(), flags, samplingPeriodNs, in batch()
|
D | SensorInterface.h | 66 virtual const Sensor& getSensor() const override { return mSensor; } in getSensor() 70 Sensor mSensor; variable
|
D | RotationVectorSensor.cpp | 43 mSensor = Sensor(&sensor); in RotationVectorSensor() 129 mSensor = Sensor(&sensor); in GyroDriftSensor()
|
D | LinearAccelerationSensor.cpp | 46 mSensor = Sensor(&sensor); in LinearAccelerationSensor()
|
D | CorrectedGyroSensor.cpp | 52 mSensor = Sensor(&sensor); in CorrectedGyroSensor()
|
D | GravitySensor.cpp | 51 mSensor = Sensor(&sensor); in GravitySensor()
|
D | OrientationSensor.cpp | 44 mSensor = Sensor(&sensor); in OrientationSensor()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/hardware/ |
D | FakeSensorManager.java | 94 .map(i -> i.mSensor) in getFullSensorList() 107 if (sensor == null || s.mSensor == sensor) { in unregisterListenerImpl() 120 if (s.mSensor == sensor) { in registerListenerImpl() 234 private final Sensor mSensor; field in FakeSensorManager.FakeGenericSensor 239 this.mSensor = sensor; in FakeGenericSensor() 243 return mSensor; in getSensor() 264 event.sensor = mSensor; in createSensorEvent()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | MotionSensor.java | 37 private Sensor mSensor = null; field in MotionSensor 56 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION); in onPrepare() 59 mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_UI); in onPrepare()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeSensors.java | 290 final Sensor mSensor; field in DozeSensors.TriggerSensor 311 mSensor = sensor; in TriggerSensor() 333 if (!mConfigured || mSensor == null) return; in updateListener() 335 mRegistered = mSensorManager.requestTriggerSensor(this, mSensor); in updateListener() 338 final boolean rt = mSensorManager.cancelTriggerSensor(this, mSensor); in updateListener() 358 .append(", mSensor=").append(mSensor).append("}").toString(); in toString() 368 if (mSensor.getType() == Sensor.TYPE_PICK_UP_GESTURE) { in onTrigger()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
D | MotionSensorWTime.java | 39 private Sensor mSensor = null; field in MotionSensorWTime 62 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION); in onPrepare() 65 mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_UI); in onPrepare()
|