Home
last modified time | relevance | path

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

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowSensorManagerTest.java27 private SensorManager sensorManager; field in ShadowSensorManagerTest
32 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()
72sensorManager.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 …]
/external/webrtc/examples/androidapp/src/org/appspot/apprtc/
DAppRTCProximitySensor.java42 private final SensorManager sensorManager; field in AppRTCProximitySensor
54 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()
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/spherical/
DSphericalGLSurfaceView.java66 private final SensorManager sensorManager; field in SphericalGLSurfaceView
88 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()
/external/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()
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
DAccelerometerFragment.java69 private SensorManager sensorManager; field in AccelerometerFragment
213 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()