Searched refs:getDefaultSensor (Results 1 – 6 of 6) sorted by relevance
63 Sensor sensor = sensorManager.getDefaultSensor(SensorManager.SENSOR_ACCELEROMETER); in registerListener()72 …sensorManager.unregisterListener(listener, sensorManager.getDefaultSensor(SensorManager.SENSOR_ACC… in shouldReturnHasNoListenerAfterUnregisterListener()95 Sensor sensor = sensorManager.getDefaultSensor(SensorManager.SENSOR_ACCELEROMETER); in shouldSendSensorEventToSingleRegisteredListener()110 Sensor sensor = sensorManager.getDefaultSensor(SensorManager.SENSOR_ACCELEROMETER); in shouldSendSensorEventToMultipleRegisteredListeners()125 Sensor sensor = sensorManager.getDefaultSensor(SensorManager.SENSOR_ACCELEROMETER); in shouldNotSendSensorEventIfNoRegisteredListeners()158 assertThat(sensor).isSameInstanceAs(sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER)); in getSensor_shouldBeConfigurable()
96 orientationSensor = sensorManager.getDefaultSensor(Sensor.TYPE_GAME_ROTATION_VECTOR); in SphericalGLSurfaceView()99 orientationSensor = sensorManager.getDefaultSensor(Sensor.TYPE_ROTATION_VECTOR); in SphericalGLSurfaceView()
52 protected Sensor getDefaultSensor(int type) { in getDefaultSensor() method in ShadowSensorManager
132 proximitySensor = sensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY); in initDefaultSensor()
214 accelerometer = sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in onCreateView()
322 Sensor orientation = mSensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION); in onResume()