Home
last modified time | relevance | path

Searched refs:CarSensorEvent (Results 1 – 13 of 13) sorted by relevance

/packages/services/Car/service/src/com/android/car/
DCarSensorEventFactory.java19 import android.car.hardware.CarSensorEvent;
27 public static CarSensorEvent createBooleanEvent(int sensorType, long timestamp, in createBooleanEvent()
29 CarSensorEvent event = new CarSensorEvent(sensorType, timestamp, 0, 1, 0); in createBooleanEvent()
34 public static CarSensorEvent createIntEvent(int sensorType, long timestamp, int value) { in createIntEvent()
35 CarSensorEvent event = new CarSensorEvent(sensorType, timestamp, 0, 1, 0); in createIntEvent()
48 public static CarSensorEvent createInt64VecEvent(int sensorType, long timestamp, in createInt64VecEvent()
50 CarSensorEvent event = new CarSensorEvent(sensorType, timestamp, 0, 0, value.size()); in createInt64VecEvent()
57 public static CarSensorEvent createFloatEvent(int sensorType, long timestamp, float value) { in createFloatEvent()
58 CarSensorEvent event = new CarSensorEvent(sensorType, timestamp, 1, 0, 0); in createFloatEvent()
63 public static CarSensorEvent createMixedEvent(int sensorType, long timestamp, in createMixedEvent()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarSensorManagerTest.java25 import android.car.hardware.CarSensorEvent;
76 .addIntValue(CarSensorEvent.IGNITION_STATE_ACC) in configureMockedHal()
153 CarSensorEvent event; in testEvents()
154 CarSensorEvent.NightData data = null; in testEvents()
231 CarSensorEvent event = mCarSensorManager.getLatestSensorEvent( in testIgnitionState()
234 assertEquals(CarSensorEvent.IGNITION_STATE_ACC, event.intValues[0]); in testIgnitionState()
247 VehicleIgnitionState.UNDEFINED, CarSensorEvent.IGNITION_STATE_UNDEFINED, in testIgnitionEvents()
248 VehicleIgnitionState.LOCK, CarSensorEvent.IGNITION_STATE_LOCK, in testIgnitionEvents()
249 VehicleIgnitionState.OFF, CarSensorEvent.IGNITION_STATE_OFF, in testIgnitionEvents()
250 VehicleIgnitionState.ACC, CarSensorEvent.IGNITION_STATE_ACC, in testIgnitionEvents()
[all …]
/packages/services/Car/car-lib/src/android/car/hardware/
DCarSensorEvent.java36 public class CarSensorEvent implements Parcelable { class
135 public CarSensorEvent(Parcel in) { in CarSensorEvent() method in CarSensorEvent
167 public static final Parcelable.Creator<CarSensorEvent> CREATOR
168 = new Parcelable.Creator<CarSensorEvent>() {
169 public CarSensorEvent createFromParcel(Parcel in) {
170 return new CarSensorEvent(in);
173 public CarSensorEvent[] newArray(int size) {
174 return new CarSensorEvent[size];
179 public CarSensorEvent(int sensorType, long timestamp, int floatValueSize, int intValueSize, in CarSensorEvent() method in CarSensorEvent
189 CarSensorEvent(int sensorType, long timestamp, float[] floatValues, int[] intValues, in CarSensorEvent() method in CarSensorEvent
DCarSensorManager.java271 void onSensorChanged(CarSensorEvent event); in onSensorChanged()
298 CarSensorEvent event = createCarSensorEvent(value); in handleOnChangeEvent()
455 public CarSensorEvent getLatestSensorEvent(@SensorType int type) { in getLatestSensorEvent()
460 private CarSensorEvent createCarSensorEvent(CarPropertyValue propertyValue) { in createCarSensorEvent()
461 CarSensorEvent event = null; in createCarSensorEvent()
464 event = new CarSensorEvent(propertyValue.getPropertyId(), in createCarSensorEvent()
469 event = new CarSensorEvent(propertyValue.getPropertyId(), in createCarSensorEvent()
474 event = new CarSensorEvent(propertyValue.getPropertyId(), in createCarSensorEvent()
480 event = new CarSensorEvent(propertyValue.getPropertyId(), in createCarSensorEvent()
DICarSensorEventListener.aidl19 import android.car.hardware.CarSensorEvent;
27 void onSensorChanged(in List<CarSensorEvent> events) = 0;
DICarSensor.aidl20 import android.car.hardware.CarSensorEvent;
41 CarSensorEvent getLatestSensorEvent(int sensorType) = 2; in getLatestSensorEvent()
DCarSensorEvent.aidl19 parcelable CarSensorEvent;
/packages/apps/Car/Cluster/src/android/car/cluster/sensors/
DSensors.java21 import android.car.hardware.CarSensorEvent;
81 if ((gear & CarSensorEvent.GEAR_REVERSE) != 0) {
83 } else if ((gear & CarSensorEvent.GEAR_NEUTRAL) != 0) {
85 } else if ((gear & CarSensorEvent.GEAR_DRIVE) != 0) {
87 } else if ((gear & CarSensorEvent.GEAR_PARK) != 0) {
/packages/services/Car/car-lib/api/released/
D1.txt180 public class CarSensorEvent implements android.os.Parcelable {
183 …field public static final android.os.Parcelable.Creator<android.car.hardware.CarSensorEvent> CREAT…
216 public static class CarSensorEvent.EnvironmentData {
223 …method public android.car.hardware.CarSensorEvent getLatestSensorEvent(int) throws android.car.Car…
247 method public abstract void onSensorChanged(android.car.hardware.CarSensorEvent);
D2.txt180 public class CarSensorEvent implements android.os.Parcelable {
183 …field public static final android.os.Parcelable.Creator<android.car.hardware.CarSensorEvent> CREAT…
222 public static class CarSensorEvent.EnvironmentData {
229 …method public android.car.hardware.CarSensorEvent getLatestSensorEvent(int) throws android.car.Car…
254 method public abstract void onSensorChanged(android.car.hardware.CarSensorEvent);
/packages/services/Car/car-lib/api/
Dcurrent.txt388 @Deprecated public class CarSensorEvent implements android.os.Parcelable {
391 …ted public static final android.os.Parcelable.Creator<android.car.hardware.CarSensorEvent> CREATOR;
425 @Deprecated public static class CarSensorEvent.EnvironmentData {
431 … method @Deprecated @Nullable public android.car.hardware.CarSensorEvent getLatestSensorEvent(int);
464 method @Deprecated public void onSensorChanged(android.car.hardware.CarSensorEvent);
/packages/services/Car/car-lib/api/system-released/
Dsystem-2.txt419 public class CarSensorEvent implements android.os.Parcelable {
422 …field public static final android.os.Parcelable.Creator<android.car.hardware.CarSensorEvent> CREAT…
461 public static class CarSensorEvent.EnvironmentData {
468 …method public android.car.hardware.CarSensorEvent getLatestSensorEvent(int) throws android.car.Car…
493 method public abstract void onSensorChanged(android.car.hardware.CarSensorEvent);
Dsystem-1.txt414 public class CarSensorEvent implements android.os.Parcelable {
417 …field public static final android.os.Parcelable.Creator<android.car.hardware.CarSensorEvent> CREAT…
450 public static class CarSensorEvent.EnvironmentData {
457 …method public android.car.hardware.CarSensorEvent getLatestSensorEvent(int) throws android.car.Car…
481 method public abstract void onSensorChanged(android.car.hardware.CarSensorEvent);