Searched refs:sensorManager (Results 1 – 3 of 3) sorted by relevance
21 private SensorManager sensorManager; field in SensorManagerTest26 sensorManager = (SensorManager) Robolectric.application.getSystemService(Context.SENSOR_SERVICE); in setup()27 shadow = shadowOf(sensorManager); in setup()32 sensorManager = null; in tearDown()45 Sensor sensor = sensorManager.getDefaultSensor(SensorManager.SENSOR_ACCELEROMETER); in registerListener()46 sensorManager.registerListener(listener, sensor, SensorManager.SENSOR_DELAY_NORMAL); in registerListener()54 …sensorManager.unregisterListener(listener, sensorManager.getDefaultSensor(SensorManager.SENSOR_ACC… in shouldReturnHasNoListenerAfterUnregisterListener()
42 private final SensorManager sensorManager; field in AppRTCProximitySensor55 sensorManager = ((SensorManager) context.getSystemService( in AppRTCProximitySensor()70 sensorManager.registerListener( in start()82 sensorManager.unregisterListener(this, proximitySensor); in stop()135 proximitySensor = sensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY); in initDefaultSensor()
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()