Home
last modified time | relevance | path

Searched refs:mSensor (Results 1 – 16 of 16) 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.java58 private Sensor mSensor; field in WindowOrientationListener
90 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_DEVICE_ORIENTATION); in WindowOrientationListener()
92 if (mSensor != null) { in WindowOrientationListener()
97 mSensor = mSensorManager.getDefaultSensor(USE_GRAVITY_SENSOR in WindowOrientationListener()
99 if (mSensor != null) { in WindowOrientationListener()
112 if (mSensor == null) { in enable()
121 mSensorManager.registerListener(mOrientationJudge, mSensor, mRate, mHandler); in enable()
132 if (mSensor == null) { in disable()
197 return mSensor != null; in canDetectOrientation()
222 pw.println(prefix + "mSensor=" + mSensor); in dump()
/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/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()
DCorrectedGyroSensor.cpp52 mSensor = Sensor(&sensor); in CorrectedGyroSensor()
DGravitySensor.cpp51 mSensor = Sensor(&sensor); in GravitySensor()
DLinearAccelerationSensor.cpp46 mSensor = Sensor(&sensor); in LinearAccelerationSensor()
/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/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeService.java486 private final Sensor mSensor; field in DozeService.TriggerSensor
496 mSensor = mSensors.getDefaultSensor(type); in TriggerSensor()
515 if (!mConfigured || mSensor == null) return; in updateListener()
517 mRegistered = mSensors.requestTriggerSensor(this, mSensor); in updateListener()
520 final boolean rt = mSensors.cancelTriggerSensor(this, mSensor); in updateListener()
533 .append(", mSensor=").append(mSensor).append("}").toString(); in toString()
566 if (mSensor.getType() == Sensor.TYPE_PICK_UP_GESTURE) { in onTrigger()
/frameworks/base/docs/html/guide/topics/sensors/
Dsensors_motion.jd237 private Sensor mSensor;
240 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
327 private Sensor mSensor;
330 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY);
346 private Sensor mSensor;
349 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE);
442 private Sensor mSensor;
445 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE_UNCALIBRATED);
456 private Sensor mSensor;
459 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION);
[all …]
Dsensors_position.jd203 private Sensor mSensor;
206 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GAME_ROTATION_VECTOR);
224 private Sensor mSensor;
227 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GEOMAGNETIC_ROTATION_VECTOR);
239 private Sensor mSensor;
242 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION);
340 private Sensor mSensor;
343 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD);
378 private Sensor mSensor;
381 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD_UNCALIBRATED);
[all …]
Dsensors_overview.jd463 private Sensor mSensor;
468 mSensor = null;
476 mSensor = gravSensors.get(i);
480 if (mSensor == null){
483 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);