Home
last modified time | relevance | path

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

/developers/samples/android/wearable/wear/JumpingJack/Wearable/src/main/java/com/example/android/wearable/jumpingjack/
DMainActivity.java68 private SensorManager mSensorManager; field in MainActivity
91 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()
/developers/build/prebuilts/gradle/JumpingJack/Wearable/src/main/java/com/example/android/wearable/jumpingjack/
DMainActivity.java69 private SensorManager mSensorManager; field in MainActivity
92 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()
/developers/samples/android/sensors/AccelerometerPlay/app/src/main/java/com/example/android/accelerometerplay/
DAccelerometerPlayActivity.java57 private SensorManager mSensorManager; field in AccelerometerPlayActivity
69 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()