/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/packages/SystemUI/tests/src/com/android/systemui/util/ |
D | AsyncSensorManagerTest.java | 48 private FakeSensorManager.MockProximitySensor mSensor; field in AsyncSensorManagerTest 56 mSensor = mFakeSensorManager.getMockProximitySensor(); in setUp() 62 mAsyncSensorManager.registerListener(mListener, mSensor.getSensor(), 100); in registerListenerImpl() 67 mSensor.sendProximityResult(true); in registerListenerImpl() 73 mAsyncSensorManager.registerListener(mListener, mSensor.getSensor(), 100); in unregisterListenerImpl_withNullSensor() 79 mSensor.sendProximityResult(true); in unregisterListenerImpl_withNullSensor() 85 mAsyncSensorManager.registerListener(mListener, mSensor.getSensor(), 100); in unregisterListenerImpl_withSensor() 86 mAsyncSensorManager.unregisterListener(mListener, mSensor.getSensor()); in unregisterListenerImpl_withSensor() 91 mSensor.sendProximityResult(true); in unregisterListenerImpl_withSensor()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeScreenBrightnessTest.java | 59 FakeSensorManager.FakeGenericSensor mSensor; field in DozeScreenBrightnessTest 71 mSensor = mSensorManager.getFakeLightSensor(); in setUp() 73 mSensor.getSensor(), mHostFake, null /* handler */, in setUp() 91 mSensor.sendSensorEvent(3); in testAod_usesLightSensor() 104 mSensor.sendSensorEvent(3); in testAod_usesDebugValue() 125 mSensor.sendSensorEvent(1); in testPausingAod_doesntPauseLightSensor() 130 mSensor.sendSensorEvent(2); in testPausingAod_doesntPauseLightSensor() 140 mSensor.sendSensorEvent(1); in testPausingAod_doesNotResetBrightness() 154 mSensor.sendSensorEvent(1); in testPulsing_usesLightSensor() 182 mSensor.sendSensorEvent(1); in testDozingAfterPulsing_pausesLightSensor() [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/base/services/core/java/com/android/server/display/whitebalance/ |
D | AmbientSensor.java | 48 protected Sensor mSensor; field in AmbientSensor 133 writer.println(" mSensor=" + mSensor); in dump() 180 mSensorManager.registerListener(mListener, mSensor, mRate * 1000, mHandler); in startListening() 251 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LIGHT); in AmbientBrightnessSensor() 252 if (mSensor == null) { in AmbientBrightnessSensor() 330 mSensor = null; in AmbientColorTemperatureSensor() 333 mSensor = sensor; in AmbientColorTemperatureSensor() 337 if (mSensor == null) { in AmbientColorTemperatureSensor()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | ProximitySensor.java | 41 private final Sensor mSensor; field in ProximitySensor 71 mSensor = sensor; in ProximitySensor() 72 if (mSensor != null) { in ProximitySensor() 76 mThreshold = mSensor.getMaximumRange(); in ProximitySensor() 125 return mSensor != null; in getSensorAvailable() 144 mSensorEventListener, mSensor, SensorManager.SENSOR_DELAY_GAME); in register()
|
/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 | OrientationSensor.cpp | 44 mSensor = Sensor(&sensor); in OrientationSensor()
|
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()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/hardware/ |
D | FakeSensorManager.java | 104 .map(i -> i.mSensor) in getFullSensorList() 117 if (sensor == null || s.mSensor == sensor) { in unregisterListenerImpl() 130 if (s.mSensor == sensor) { in registerListenerImpl() 247 private final Sensor mSensor; field in FakeSensorManager.FakeGenericSensor 252 this.mSensor = sensor; in FakeGenericSensor() 256 return mSensor; in getSensor() 277 event.sensor = mSensor; in createSensorEvent()
|
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/ |
D | SensorManagerPlugin.java | 80 Sensor mSensor; field in SensorManagerPlugin.SensorEvent 102 mSensor = sensor; in SensorEvent() 108 return mSensor; in getSensor()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeSensors.java | 290 final Sensor mSensor; field in DozeSensors.ProxSensor 310 mSensor = sensor; in ProxSensor() 336 mRegistered = mSensorManager.registerListener(this, mSensor, in setRegistered() 379 mCurrentlyFar, mSensor); in toString() 385 final Sensor mSensor; field in DozeSensors.TriggerSensor 414 mSensor = sensor; in TriggerSensor() 443 if (!mConfigured || mSensor == null) return; in updateListening() 446 mRegistered = mSensorManager.requestTriggerSensor(this, mSensor); in updateListening() 449 final boolean rt = mSensorManager.cancelTriggerSensor(this, mSensor); in updateListening() 472 .append(", mSensor=").append(mSensor).append("}").toString(); in toString() [all …]
|
/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/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()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | SarManagerTest.java | 86 private Sensor mSensor; field in SarManagerTest 144 mSensor = constructor.newInstance(); in prepareSensorInfo() 154 declaredField.set(mSensor, SAR_SENSOR_NAME); in prepareSensorInfo() 161 mSensorList.add(mSensor); in prepareSensorInfo()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | SarManager.java | 512 private Sensor mSensor; field in SarManager.SarSensorEventListener
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 75996 Landroid/view/OrientationEventListener;->mSensor:Landroid/hardware/Sensor;
|