Home
last modified time | relevance | path

Searched refs:supportedSensors (Results 1 – 4 of 4) sorted by relevance

/packages/services/Car/tests/android_car_api_test/src/com/android/car/apitest/
DCarSensorManagerTest.java79 int[] supportedSensors = mCarSensorManager.getSupportedSensors(); in testDrivingPolicy() local
80 assertNotNull(supportedSensors); in testDrivingPolicy()
82 for (int sensor: supportedSensors) { in testDrivingPolicy()
91 assertTrue(CarSensorManager.isSensorSupported(supportedSensors, in testDrivingPolicy()
/packages/services/Car/tests/android_support_car_api_test/src/com/android/support/car/apitest/
DCarSensorManagerTest.java88 int[] supportedSensors = mCarSensorManager.getSupportedSensors(); in testDrivingPolicy() local
89 assertNotNull(supportedSensors); in testDrivingPolicy()
91 for (int sensor: supportedSensors) { in testDrivingPolicy()
100 assertTrue(CarSensorManager.isSensorSupported(supportedSensors, in testDrivingPolicy()
/packages/services/Car/service/src/com/android/car/hal/
DSensorHalService.java164 int[] supportedSensors = new int[mSensorToHalProperty.size()]; in getSupportedSensors() local
165 for (int i = 0; i < supportedSensors.length; i++) { in getSupportedSensors()
166 supportedSensors[i] = mSensorToHalProperty.keyAt(i); in getSupportedSensors()
168 return supportedSensors; in getSupportedSensors()
/packages/services/Car/service/src/com/android/car/
DCarSensorService.java595 int[] supportedSensors = new int[totalNumSensors]; in refreshSupportedSensorsLocked() local
598 supportedSensors[index] = CarSensorManager.SENSOR_TYPE_DRIVING_STATUS; in refreshSupportedSensorsLocked()
602 supportedSensors[index] = CarSensorManager.SENSOR_TYPE_NIGHT; in refreshSupportedSensorsLocked()
613 supportedSensors[index] = sensor; in refreshSupportedSensorsLocked()
617 return supportedSensors; in refreshSupportedSensorsLocked()