Searched refs:mSensorManager (Results 1 – 3 of 3) sorted by relevance
68 private SensorManager mSensorManager; field in MainActivity91 mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); in onCreate()92 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY); in onCreate()129 if (mSensorManager.registerListener(this, mSensor, in onResume()140 mSensorManager.unregisterListener(this); in onPause()
69 private SensorManager mSensorManager; field in MainActivity92 mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); in onCreate()93 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY); in onCreate()128 if (mSensorManager.registerListener(this, mSensor, in onResume()139 mSensorManager.unregisterListener(this); in onPause()
57 private SensorManager mSensorManager; field in AccelerometerPlayActivity69 mSensorManager = (SensorManager) getSystemService(SENSOR_SERVICE); in onCreate()320 mSensorManager.registerListener(this, mAccelerometer, SensorManager.SENSOR_DELAY_GAME); in startSimulation()324 mSensorManager.unregisterListener(this); in stopSimulation()329 mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in SimulationView()