Home
last modified time | relevance | path

Searched refs:mMotionSensor (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/services/core/java/com/android/server/
DDeviceIdleController.java285 private Sensor mMotionSensor; field in DeviceIdleController
678 mSensorManager.unregisterListener(this, mMotionSensor); in onSensorChanged()
689 if (mMotionSensor.getReportingMode() == Sensor.REPORTING_MODE_ONE_SHOT) { in registerLocked()
690 success = mSensorManager.requestTriggerSensor(mMotionListener, mMotionSensor); in registerLocked()
693 mMotionListener, mMotionSensor, SensorManager.SENSOR_DELAY_NORMAL); in registerLocked()
698 Slog.e(TAG, "Unable to register for " + mMotionSensor); in registerLocked()
704 if (mMotionSensor.getReportingMode() == Sensor.REPORTING_MODE_ONE_SHOT) { in unregisterLocked()
705 mSensorManager.cancelTriggerSensor(mMotionListener, mMotionSensor); in unregisterLocked()
1902 mMotionSensor = mSensorManager.getDefaultSensor(sigMotionSensorId, true); in onBootPhase()
1904 if (mMotionSensor == null && getContext().getResources().getBoolean( in onBootPhase()
[all …]