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.java59 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/
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()
DGravitySensor.cpp51 mSensor = Sensor(&sensor); in GravitySensor()
DCorrectedGyroSensor.cpp52 mSensor = Sensor(&sensor); in CorrectedGyroSensor()
DOrientationSensor.cpp44 mSensor = Sensor(&sensor); in OrientationSensor()
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.java379 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/
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.jd217 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);
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);