Home
last modified time | relevance | path

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

/packages/apps/Phone/src/com/android/phone/
DAccelerometerListener.java38 private SensorManager mSensorManager; field in AccelerometerListener
68 mSensorManager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE); in AccelerometerListener()
69 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in AccelerometerListener()
78 mSensorManager.registerListener(mSensorListener, mSensor, in enable()
81 mSensorManager.unregisterListener(mSensorListener); in enable()
/packages/apps/Gallery2/src/com/android/camera/
DPhotoModule.java258 private SensorManager mSensorManager; field in PhotoModule
446 mSensorManager = (SensorManager)(mActivity.getSystemService(Context.SENSOR_SERVICE)); in init()
1319 Sensor gsensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in onResumeAfterSuper()
1321 mSensorManager.registerListener(this, gsensor, SensorManager.SENSOR_DELAY_NORMAL); in onResumeAfterSuper()
1324 Sensor msensor = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD); in onResumeAfterSuper()
1326 mSensorManager.registerListener(this, msensor, SensorManager.SENSOR_DELAY_NORMAL); in onResumeAfterSuper()
1346 Sensor gsensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in onPauseBeforeSuper()
1348 mSensorManager.unregisterListener(this, gsensor); in onPauseBeforeSuper()
1351 Sensor msensor = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD); in onPauseBeforeSuper()
1353 mSensorManager.unregisterListener(this, msensor); in onPauseBeforeSuper()
/packages/apps/Dialer/src/com/android/dialer/
DProximitySensorManager.java72 private final SensorManager mSensorManager; field in ProximitySensorManager.ProximitySensorEventListener
91 mSensorManager = sensorManager; in ProximitySensorEventListener()
158 mSensorManager.registerListener(this, mProximitySensor, SensorManager.SENSOR_DELAY_UI); in register()
180 mSensorManager.unregisterListener(this); in unregisterWithoutNotification()
/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()