/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 | 55 private Sensor mSensor; field in WindowOrientationListener 87 mSensor = mSensorManager.getDefaultSensor(USE_GRAVITY_SENSOR in WindowOrientationListener() 89 if (mSensor != null) { in WindowOrientationListener() 101 if (mSensor == null) { in enable() 110 mSensorManager.registerListener(mSensorEventListener, mSensor, mRate, mHandler); in enable() 121 if (mSensor == null) { in disable() 186 return mSensor != null; in canDetectOrientation() 208 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 | 33 mSensor(&sensor, mSensorDevice.getHalDeviceVersion()) in HardwareSensor() 47 return mSensorDevice.activate(ident, mSensor.getHandle(), enabled); in activate() 52 return mSensorDevice.batch(ident, mSensor.getHandle(), flags, samplingPeriodNs, in batch() 69 return mSensor; in getSensor()
|
D | SensorInterface.h | 65 Sensor mSensor; variable
|
/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 | 472 private final Sensor mSensor; field in DozeService.TriggerSensor 482 mSensor = mSensors.getDefaultSensor(type); in TriggerSensor() 501 if (!mConfigured || mSensor == null) return; in updateListener() 503 mRegistered = mSensors.requestTriggerSensor(this, mSensor); in updateListener() 506 final boolean rt = mSensors.cancelTriggerSensor(this, mSensor); in updateListener() 519 .append(", mSensor=").append(mSensor).append("}").toString(); in toString() 552 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; 475 mSensor = gravSensors.get(i); 482 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
|