Home
last modified time | relevance | path

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

/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DSensorManagerTest.java21 private SensorManager sensorManager; field in SensorManagerTest
26 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()
54sensorManager.unregisterListener(listener, sensorManager.getDefaultSensor(SensorManager.SENSOR_ACC… in shouldReturnHasNoListenerAfterUnregisterListener()
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/
DAppRTCProximitySensor.java42 private final SensorManager sensorManager; field in AppRTCProximitySensor
55 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()
/external/webrtc/webrtc/modules/audio_processing/test/android/apmtest/jni/
Dmain.c47 ASensorManager* sensorManager; member
244 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()