/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 | 58 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/ |
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 | OrientationSensor.cpp | 44 mSensor = Sensor(&sensor); in OrientationSensor()
|
D | CorrectedGyroSensor.cpp | 52 mSensor = Sensor(&sensor); in CorrectedGyroSensor()
|
D | GravitySensor.cpp | 51 mSensor = Sensor(&sensor); in GravitySensor()
|
D | LinearAccelerationSensor.cpp | 46 mSensor = Sensor(&sensor); in LinearAccelerationSensor()
|
/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/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeService.java | 486 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/ |
D | sensors_motion.jd | 237 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 …]
|
D | sensors_position.jd | 203 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 …]
|
D | sensors_overview.jd | 463 private Sensor mSensor; 468 mSensor = null; 476 mSensor = gravSensors.get(i); 480 if (mSensor == null){ 483 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
|