Searched refs:sensorManager (Results 1 – 5 of 5) sorted by relevance
27 private SensorManager sensorManager; field in ShadowSensorManagerTest32 sensorManager = in setUp()35 shadow = shadowOf(sensorManager); in setUp()40 sensorManager = null; in tearDown()47 …SensorDirectChannel channel = (SensorDirectChannel) sensorManager.createDirectChannel(new MemoryFi… in createDirectChannel()63 Sensor sensor = sensorManager.getDefaultSensor(SensorManager.SENSOR_ACCELEROMETER); in registerListener()64 sensorManager.registerListener(listener, sensor, SensorManager.SENSOR_DELAY_NORMAL); in registerListener()72 …sensorManager.unregisterListener(listener, sensorManager.getDefaultSensor(SensorManager.SENSOR_ACC… in shouldReturnHasNoListenerAfterUnregisterListener()80 sensorManager.unregisterListener(listener); in shouldReturnHasNoListenerAfterUnregisterListenerWithoutSpecificSensor()95 Sensor sensor = sensorManager.getDefaultSensor(SensorManager.SENSOR_ACCELEROMETER); in shouldSendSensorEventToSingleRegisteredListener()[all …]
42 private final SensorManager sensorManager; field in AppRTCProximitySensor54 sensorManager = ((SensorManager) context.getSystemService(Context.SENSOR_SERVICE)); in AppRTCProximitySensor()68 sensorManager.registerListener(this, proximitySensor, SensorManager.SENSOR_DELAY_NORMAL); in start()79 sensorManager.unregisterListener(this, proximitySensor); in stop()132 proximitySensor = sensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY); in initDefaultSensor()
66 private final SensorManager sensorManager; field in SphericalGLSurfaceView88 sensorManager = in SphericalGLSurfaceView()96 orientationSensor = sensorManager.getDefaultSensor(Sensor.TYPE_GAME_ROTATION_VECTOR); in SphericalGLSurfaceView()99 orientationSensor = sensorManager.getDefaultSensor(Sensor.TYPE_ROTATION_VECTOR); in SphericalGLSurfaceView()197 sensorManager.registerListener( in updateOrientationListenerRegistration()200 sensorManager.unregisterListener(orientationListener); in updateOrientationListenerRegistration()
47 ASensorManager* sensorManager; member244 engine.sensorManager = ASensorManager_getInstance(); in android_main()245 engine.accelerometerSensor = ASensorManager_getDefaultSensor(engine.sensorManager, in android_main()247 engine.sensorEventQueue = ASensorManager_createEventQueue(engine.sensorManager, in android_main()
69 private SensorManager sensorManager; field in AccelerometerFragment213 sensorManager = (SensorManager) getContext().getSystemService(Context.SENSOR_SERVICE); in onCreateView()214 accelerometer = sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in onCreateView()227 sensorManager.registerListener( in onResume()234 sensorManager.unregisterListener(AccelerometerFragment.this, accelerometer); in onPause()