Home
last modified time | relevance | path

Searched refs:mSensor (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/services/core/java/com/android/server/policy/
DWakeGestureListener.java40 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()
DWindowOrientationListener.java62 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/
DAsyncSensorManagerTest.java48 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/
DDozeScreenBrightnessTest.java59 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/
DOrientationEventListener.java38 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/
DAmbientSensor.java48 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/
DProximitySensor.java41 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/
DSensorInterface.cpp34 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()
DSensorInterface.h66 virtual const Sensor& getSensor() const override { return mSensor; } in getSensor()
70 Sensor mSensor; variable
DRotationVectorSensor.cpp43 mSensor = Sensor(&sensor); in RotationVectorSensor()
129 mSensor = Sensor(&sensor); in GyroDriftSensor()
DOrientationSensor.cpp44 mSensor = Sensor(&sensor); in OrientationSensor()
DLinearAccelerationSensor.cpp46 mSensor = Sensor(&sensor); in LinearAccelerationSensor()
DCorrectedGyroSensor.cpp52 mSensor = Sensor(&sensor); in CorrectedGyroSensor()
DGravitySensor.cpp51 mSensor = Sensor(&sensor); in GravitySensor()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/hardware/
DFakeSensorManager.java104 .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/
DSensorManagerPlugin.java80 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/
DDozeSensors.java290 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/
DMotionSensor.java37 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/
DMotionSensorWTime.java39 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/
DSarManagerTest.java86 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/
DSarManager.java512 private Sensor mSensor; field in SarManager.SarSensorEventListener
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt75996 Landroid/view/OrientationEventListener;->mSensor:Landroid/hardware/Sensor;