Searched refs:sensorList (Results 1 - 4 of 4) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
H A DDoubleTwistPreferenceControllerTest.java70 final List<Sensor> sensorList = new ArrayList<>();
71 sensorList.add(mock(Sensor.class));
74 when(mSensorManager.getSensorList(anyInt())).thenReturn(sensorList);
75 when(sensorList.get(0).getName()).thenReturn("test");
76 when(sensorList.get(0).getVendor()).thenReturn("test");
89 final List<Sensor> sensorList = new ArrayList<>();
90 sensorList.add(mock(Sensor.class));
93 when(mSensorManager.getSensorList(anyInt())).thenReturn(sensorList);
94 when(sensorList.get(0).getName()).thenReturn("not_test");
/packages/services/Car/service/src/com/android/car/
H A DDrivingStatePolicy.java69 int sensorList[] = mSensorService.getSupportedSensors();
70 boolean hasSpeed = subscribeIfSupportedLocked(sensorList,
76 boolean hasParkingBrake = subscribeIfSupportedLocked(sensorList,
78 boolean hasGear = subscribeIfSupportedLocked(sensorList, CarSensorManager.SENSOR_TYPE_GEAR,
132 private boolean subscribeIfSupportedLocked(int sensorList[], int sensorType, int rate) { argument
133 if (!CarSensorManager.isSensorSupported(sensorList, sensorType)) {
/packages/services/Car/tools/
H A Dupdate-obd2-sensors.py184 sensorList = dct['sensorList']
190 sensorList.addSensor(self)
199 sensorList.sensorClass = newClass
206 sensorList = intSensors variable in class:intSensor
209 sensorList = floatSensors variable in class:floatSensor
/packages/services/Car/car-lib/src/android/car/hardware/
H A DCarSensorManager.java283 * Check if given sensorList is including the sensorType.
284 * @param sensorList
288 public static boolean isSensorSupported(int[] sensorList, @SensorType int sensorType) { argument
289 for (int sensorSupported: sensorList) {

Completed in 176 milliseconds