Home
last modified time | relevance | path

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

/cts/tests/sensor/src/android/hardware/cts/helpers/sensoroperations/
DTestSensorOperation.java78 void execute(TestSensorManager sensorManager, TestSensorEventListener listener) in execute() argument
239 public void execute(TestSensorManager sensorManager, TestSensorEventListener listener) in createOperation()
242 CountDownLatch latch = sensorManager.registerListener(listener, eventCount); in createOperation()
245 sensorManager.unregisterListener(); in createOperation()
267 public void execute(TestSensorManager sensorManager, TestSensorEventListener listener) in createOperation()
270 sensorManager.registerListener(listener); in createOperation()
274 CountDownLatch flushLatch1 = sensorManager.requestFlush(); in createOperation()
303 CountDownLatch flushLatch2 = sensorManager.requestFlush(); in createOperation()
322 CountDownLatch flushLatch3 = sensorManager.requestFlush(); in createOperation()
335 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.java383 SensorManager sensorManager = in getSensor() local
385 if (sensorManager == null) { in getSensor()
389 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/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()
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()
DSensorTest.java723 public void execute(TestSensorManager sensorManager, TestSensorEventListener listener) in execute() argument
727 CountDownLatch eventLatch = sensorManager.registerListener(listener, mEventCount); in execute()
734 CountDownLatch flushLatch = sensorManager.requestFlush(); in execute()
737 sensorManager.unregisterListener(); in execute()