/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 | 59 private Sensor mSensor; field in WindowOrientationListener 91 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_DEVICE_ORIENTATION); in WindowOrientationListener() 93 if (mSensor != null) { in WindowOrientationListener() 98 mSensor = mSensorManager.getDefaultSensor(USE_GRAVITY_SENSOR in WindowOrientationListener() 100 if (mSensor != null) { in WindowOrientationListener() 113 if (mSensor == null) { in enable() 122 if (mSensor.getType() == Sensor.TYPE_ACCELEROMETER) { in enable() 124 mOrientationJudge, mSensor, mRate, DEFAULT_BATCH_LATENCY, mHandler); in enable() 126 mSensorManager.registerListener(mOrientationJudge, mSensor, mRate, mHandler); in enable() 138 if (mSensor == null) { in disable() [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 | GravitySensor.cpp | 51 mSensor = Sensor(&sensor); in GravitySensor()
|
D | CorrectedGyroSensor.cpp | 52 mSensor = Sensor(&sensor); in CorrectedGyroSensor()
|
D | OrientationSensor.cpp | 44 mSensor = Sensor(&sensor); in OrientationSensor()
|
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 | 379 private final Sensor mSensor; field in DozeService.TriggerSensor 389 mSensor = mSensors.getDefaultSensor(type); in TriggerSensor() 408 if (!mConfigured || mSensor == null) return; in updateListener() 410 mRegistered = mSensors.requestTriggerSensor(this, mSensor); in updateListener() 413 final boolean rt = mSensors.cancelTriggerSensor(this, mSensor); in updateListener() 426 .append(", mSensor=").append(mSensor).append("}").toString(); in toString() 435 if (mSensor.getType() == Sensor.TYPE_PICK_UP_GESTURE) { in onTrigger() 461 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 | 217 private Sensor mSensor; 220 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GAME_ROTATION_VECTOR); 238 private Sensor mSensor; 241 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GEOMAGNETIC_ROTATION_VECTOR); 421 private Sensor mSensor; 424 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD); 459 private Sensor mSensor; 462 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD_UNCALIBRATED); 471 private Sensor mSensor; 474 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY);
|
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);
|