Searched defs:sensorType (Results 1 - 11 of 11) sorted by relevance

/packages/services/Car/service/src/com/android/car/
H A DCarSensorEventFactory.java24 public static CarSensorEvent createBooleanEvent(int sensorType, long timeStampNs, argument
26 CarSensorEvent event = new CarSensorEvent(sensorType, timeStampNs, 0, 1);
31 public static CarSensorEvent createIntEvent(int sensorType, long timeStampNs, int value) { argument
32 CarSensorEvent event = new CarSensorEvent(sensorType, timeStampNs, 0, 1);
37 public static CarSensorEvent createFloatEvent(int sensorType, long timeStampNs, float value) { argument
38 CarSensorEvent event = new CarSensorEvent(sensorType, timeStampNs, 1, 0);
H A DDayNightModePolicy.java52 public static CarSensorEvent getDefaultValue(int sensorType) { argument
81 public synchronized boolean requestSensorStart(int sensorType, int rate) { argument
90 public synchronized void requestSensorStop(int sensorType) { argument
H A DDrivingStatePolicy.java94 public static CarSensorEvent getDefaultValue(int sensorType) { argument
95 if (sensorType != CarSensorManager.SENSOR_TYPE_DRIVING_STATUS) {
96 Log.w(CarLog.TAG_SENSOR, "getDefaultValue to DrivingStatePolicy with sensorType:" +
97 sensorType);
122 public synchronized boolean requestSensorStart(int sensorType, int rate) { argument
129 public synchronized void requestSensorStop(int sensorType) { argument
138 private boolean subscribeIfSupportedLocked(int sensorList[], int sensorType, int rate) { argument
139 if (!CarSensorManager.isSensorSupported(sensorList, sensorType)) {
140 Log.i(CarLog.TAG_SENSOR, "Sensor not supported:" + sensorType);
143 return mSensorService.registerOrUpdateSensorListener(sensorType, rat
[all...]
H A DCarSensorService.java238 SensorRecord record = mSensorRecords.get(event.sensorType);
249 SensorListeners listeners = mSensorListeners.get(event.sensorType);
281 public boolean registerOrUpdateSensorListener(int sensorType, int rate, argument
290 sensorRecord = mSensorRecords.get(sensorType);
293 Log.i(CarLog.TAG_SENSOR, "Requested sensor " + sensorType + " not supported");
298 switch (getSensorPermission(sensorType)) {
301 + getPermissionName(sensorType)
309 Log.d(CarLog.TAG_SENSOR, "registerOrUpdateSensorListener " + sensorType + " " +
314 sensorListeners = mSensorListeners.get(sensorType);
328 SensorRecord record = mSensorRecords.get(sensorType);
376 sensorSupportRate(int sensorType) argument
395 getSensorPermission(int sensorType) argument
406 getPermissionName(int sensorType) argument
428 startSensor(SensorRecord record, int sensorType, int rate) argument
454 unregisterSensorListener(int sensorType, ICarSensorEventListener listener) argument
519 stopSensor(SensorRecord record, int sensorType) argument
541 getSensorHal(int sensorType) argument
563 getLatestSensorEvent(int sensorType) argument
620 isSensorRealLocked(int sensorType) argument
[all...]
/packages/services/Car/car-support-lib/src/android/support/car/hardware/
H A DCarSensorManagerEmbedded.java45 public boolean isSensorSupported(int sensorType) throws CarNotConnectedException { argument
47 return mManager.isSensorSupported(sensorType);
54 public boolean registerListener(CarSensorEventListener listener, int sensorType, argument
60 proxy = new CarSensorEventListenerProxy(listener, sensorType);
62 proxy.sensors |= sensorType;
66 return mManager.registerListener(proxy, sensorType, rate);
91 public void unregisterListener(CarSensorEventListener listener, int sensorType) argument
99 proxy.sensors &= ~sensorType;
105 mManager.unregisterListener(proxy, sensorType);
138 return new CarSensorEvent(event.sensorType, even
[all...]
H A DCarSensorManager.java159 * @param sensorType
163 public abstract boolean isSensorSupported(int sensorType) throws CarNotConnectedException; argument
166 * Check if given sensorList is including the sensorType.
168 * @param sensorType
171 public static boolean isSensorSupported(int[] sensorList, int sensorType) { argument
173 if (sensorType == sensorSupported) {
193 * @param sensorType sensor type to subscribe.
205 public abstract boolean registerListener(CarSensorEventListener listener, int sensorType, argument
220 * @param sensorType
222 public abstract void unregisterListener(CarSensorEventListener listener, int sensorType) argument
[all...]
H A DCarSensorEvent.java192 public int sensorType; field in class:CarSensorEvent
212 sensorType = in.readInt();
232 dest.writeInt(sensorType);
253 public CarSensorEvent(int sensorType, long timeStampNs, int floatValueSize, int intValueSize) { argument
255 this.sensorType = sensorType;
262 CarSensorEvent(int sensorType, long timeStampNs, float[] floatValues, int[] intValues) { argument
264 this.sensorType = sensorType;
271 if (sensorType
[all...]
/packages/services/Car/service/src/com/android/car/hal/
H A DSensorHalServiceBase.java68 public abstract boolean requestSensorStart(int sensorType, int rate); argument
70 public abstract void requestSensorStop(int sensorType); argument
H A DSensorHalService.java109 int sensorType = getSensorTypeFromHalProperty(property);
110 if (sensorType == SENSOR_TYPE_INVALD) {
123 return CarSensorEventFactory.createBooleanEvent(sensorType, v.getTimestamp(),
133 return CarSensorEventFactory.createIntEvent(sensorType, v.getTimestamp(),
142 return CarSensorEventFactory.createFloatEvent(sensorType, v.getTimestamp(),
172 public synchronized boolean requestSensorStart(int sensorType, int rate) { argument
173 VehiclePropConfig config = mSensorToHalProperty.get(sensorType);
182 public CarSensorEvent getCurrentSensorValue(int sensorType) { argument
185 config = mSensorToHalProperty.get(sensorType);
226 public synchronized void requestSensorStop(int sensorType) { argument
[all...]
/packages/services/Car/car-lib/src/android/car/hardware/
H A DCarSensorEvent.java125 public int sensorType; field in class:CarSensorEvent
140 sensorType = in.readInt();
158 dest.writeInt(sensorType);
177 public CarSensorEvent(int sensorType, long timeStampNs, int floatValueSize, int intValueSize) { argument
178 this.sensorType = sensorType;
185 CarSensorEvent(int sensorType, long timeStampNs, float[] floatValues, int[] intValues) { argument
186 this.sensorType = sensorType;
193 if (sensorType
[all...]
H A DCarSensorManager.java173 mActiveSensorListeners.get(event.sensorType);
221 * @param sensorType
225 public boolean isSensorSupported(int sensorType) throws CarNotConnectedException { argument
228 if (sensorType == sensorSupported) {
236 * Check if given sensorList is including the sensorType.
238 * @param sensorType
241 public static boolean isSensorSupported(int[] sensorList, int sensorType) { argument
243 if (sensorType == sensorSupported) {
273 * @param sensorType sensor type to subscribe.
285 public boolean registerListener(CarSensorEventListener listener, int sensorType, in argument
340 unregisterListener(CarSensorEventListener listener, int sensorType) argument
413 assertSensorType(int sensorType) argument
[all...]

Completed in 193 milliseconds