Home
last modified time | relevance | path

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

/packages/apps/Camera2/src/com/android/camera/hardware/
DHeadingSensor.java39 private final SensorManager mSensorManager; field in HeadingSensor
59 mSensorManager = sensorManager; in HeadingSensor()
60 mAccelerometerSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in HeadingSensor()
61 mMagneticSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD); in HeadingSensor()
81 mSensorManager.registerListener(this, mAccelerometerSensor, in activate()
85 mSensorManager.registerListener(this, mMagneticSensor, in activate()
96 mSensorManager.unregisterListener(this, mAccelerometerSensor); in deactivate()
99 mSensorManager.unregisterListener(this, mMagneticSensor); in deactivate()
/packages/apps/DevCamera/src/com/android/devcamera/
DGyroOperations.java32 private SensorManager mSensorManager; field in GyroOperations
46 mSensorManager = sensorManager; in GyroOperations()
50mSensorManager.registerListener(mSensorEventListener, mSensorManager.getDefaultSensor(Sensor.TYPE_… in startListening()
55 mSensorManager.unregisterListener(mSensorEventListener); in stopListening()
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
DAccelerometerListener.java38 private SensorManager mSensorManager; field in AccelerometerListener
67 mSensorManager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE); in AccelerometerListener()
68 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in AccelerometerListener()
81 mSensorManager.registerListener(mSensorListener, mSensor, in enable()
84 mSensorManager.unregisterListener(mSensorListener); in enable()
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
DPanoramaActivity.java155 private SensorManager mSensorManager; field in PanoramaActivity
278 mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); in onCreate()
279 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE); in onCreate()
281 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION); in onCreate()