Home
last modified time | relevance | path

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

/cts/tests/sensor/src/android/hardware/cts/helpers/sensoroperations/
DTestSensorOperation.java78 void execute(TestSensorManager sensorManager, TestSensorEventListener listener) in execute() argument
247 public void execute(TestSensorManager sensorManager, TestSensorEventListener listener) in createOperation()
250 CountDownLatch latch = sensorManager.registerListener(listener, eventCount); in createOperation()
253 sensorManager.unregisterListener(); in createOperation()
275 public void execute(TestSensorManager sensorManager, TestSensorEventListener listener) in createOperation()
278 sensorManager.registerListener(listener); in createOperation()
282 CountDownLatch flushLatch1 = sensorManager.requestFlush(); in createOperation()
311 CountDownLatch flushLatch2 = sensorManager.requestFlush(); in createOperation()
330 CountDownLatch flushLatch3 = sensorManager.requestFlush(); in createOperation()
343 sensorManager.unregisterListener(); in createOperation()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DEventSanitizationTestActivity.java61 final SensorManager sensorManager = getApplicationContext() in testNoTriggerEventsWhileUidIdle() local
63 final Sensor sensor = sensorManager.getDefaultSensor( in testNoTriggerEventsWhileUidIdle()
82 sensorManager.requestTriggerSensor(listener, sensor); in testNoTriggerEventsWhileUidIdle()
93 sensorManager.cancelTriggerSensor(listener, sensor); in testNoTriggerEventsWhileUidIdle()
105 final SensorManager sensorManager = getApplicationContext() in testNoOnChangeEventsWhileUidIdle() local
107 final Sensor sensor = sensorManager.getDefaultSensor( in testNoOnChangeEventsWhileUidIdle()
131 sensorManager.registerListener(listener, sensor, in testNoOnChangeEventsWhileUidIdle()
143 sensorManager.unregisterListener(listener, sensor); in testNoOnChangeEventsWhileUidIdle()
DStepSensorPermissionTestActivity.java212 public AccelRecorder(SensorManager sensorManager) { in AccelRecorder() argument
213 mSensorManager = sensorManager; in AccelRecorder()
/cts/tests/sensor/src/android/hardware/cts/helpers/
DTestSensorEnvironment.java416 SensorManager sensorManager = in getSensor() local
418 if (sensorManager == null) { in getSensor()
422 Sensor sensor = sensorManager.getDefaultSensor(sensorType); in getSensor()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Activities/
DStartActivity.java61 SensorManager sensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); in onCreate() local
62 if (sensorManager.getDefaultSensor(Sensor.TYPE_POSE_6DOF) == null) { in onCreate()
/cts/tests/sensor/sensorratepermission/EventConnectionAPI31/src/android/sensorratepermission/cts/eventconnectionapi31/
DEventConnectionAPI31Test.java73 SensorManager sensorManager = context.getSystemService(SensorManager.class); in setUp() local
74 Sensor sensor = sensorManager.getDefaultSensor(sensorType); in setUp()
/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/
DSensorDeviceInfo.java67 SensorManager sensorManager = (SensorManager) in collectDeviceInfo() local
69 List<Sensor> sensors = sensorManager.getSensorList(Sensor.TYPE_ALL); in collectDeviceInfo()
/cts/tests/sensor/src/android/hardware/cts/
DSensorIntegrationTests.java239 SensorManager sensorManager = in verifySensorReconfigureWhileActive() local
241 assertNotNull("SensorService is not present in the system", sensorManager); in verifySensorReconfigureWhileActive()
243 Sensor sensor = sensorManager.getDefaultSensor(sensorType); in verifySensorReconfigureWhileActive()
DSensorTest.java760 public void execute(TestSensorManager sensorManager, TestSensorEventListener listener) in execute() argument
764 CountDownLatch eventLatch = sensorManager.registerListener(listener, mEventCount); in execute()
770 sensorManager.assertFlushFail(); in execute()
772 CountDownLatch flushLatch = sensorManager.requestFlush(); in execute()
776 sensorManager.unregisterListener(); in execute()
DSingleSensorTests.java120 SensorManager sensorManager = in testSensorProperties() local
122 assertNotNull("SensorManager not present in the system.", sensorManager); in testSensorProperties()
124 Sensor sensor = sensorManager.getDefaultSensor(entry.getKey()); in testSensorProperties()
/cts/tests/sensor/sensorratepermission/EventConnectionAPI30/src/android/sensorratepermission/cts/eventconnectionapi30/
DEventConnectionAPI30Test.java79 SensorManager sensorManager = context.getSystemService(SensorManager.class); in setUp() local
80 Sensor sensor = sensorManager.getDefaultSensor(sensorType); in setUp()
/cts/tests/tests/view/src/android/view/cts/input/
DInputDeviceSensorManagerTest.java219 SensorManager sensorManager = inputDevice.getSensorManager(); in getSensorManager() local
220 assertNotNull("getSensorManager returns null", sensorManager); in getSensorManager()
223 return sensorManager; in getSensorManager()