Home
last modified time | relevance | path

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

/packages/services/Car/service/src/com/android/car/
DDrivingStatePolicy.java20 import android.car.hardware.CarSensorEvent;
42 private int mDringState = CarSensorEvent.DRIVE_STATUS_FULLY_RESTRICTED;
52 public void onSensorChanged(List<CarSensorEvent> events) {
53 for (CarSensorEvent event: events) {
94 public static CarSensorEvent getDefaultValue(int sensorType) { in getDefaultValue()
100 return createEvent(CarSensorEvent.DRIVE_STATUS_FULLY_RESTRICTED); in getDefaultValue()
147 private synchronized void handleSensorEvent(CarSensorEvent event) { in handleSensorEvent()
164 int drivingState = CarSensorEvent.DRIVE_STATUS_FULLY_RESTRICTED; in recalcDrivingStateLocked()
165 CarSensorEvent lastParkingBrake = mSensorService.getLatestSensorEvent( in recalcDrivingStateLocked()
167 CarSensorEvent lastGear = mSensorService.getLatestSensorEvent( in recalcDrivingStateLocked()
[all …]
DCarSensorEventFactory.java19 import android.car.hardware.CarSensorEvent;
24 public static CarSensorEvent createBooleanEvent(int sensorType, long timeStampNs, in createBooleanEvent()
26 CarSensorEvent event = new CarSensorEvent(sensorType, timeStampNs, 0, 1); in createBooleanEvent()
31 public static CarSensorEvent createIntEvent(int sensorType, long timeStampNs, int value) { in createIntEvent()
32 CarSensorEvent event = new CarSensorEvent(sensorType, timeStampNs, 0, 1); in createIntEvent()
37 public static CarSensorEvent createFloatEvent(int sensorType, long timeStampNs, float value) { in createFloatEvent()
38 CarSensorEvent event = new CarSensorEvent(sensorType, timeStampNs, 1, 0); in createFloatEvent()
43 public static void returnToPool(CarSensorEvent event) { in returnToPool()
DCarSensorService.java21 import android.car.hardware.CarSensorEvent;
135 CarSensorEvent event = null; in init()
167 private void addNewSensorRecordLocked(int type, CarSensorEvent event) { in addNewSensorRecordLocked()
235 private void processSensorData(List<CarSensorEvent> events) { in processSensorData()
237 for (CarSensorEvent event: events) { in processSensorData()
267 public void onSensorEvents(List<CarSensorEvent> events) { in onSensorEvents()
563 public CarSensorEvent getLatestSensorEvent(int sensorType) { in getLatestSensorEvent()
667 private final LinkedList<CarSensorEvent>[] mSensorDataList = new LinkedList[2];
672 mSensorDataList[i] = new LinkedList<CarSensorEvent>(); in SensorDispatchHandler()
676 private synchronized void handleSensorEvents(List<CarSensorEvent> data) { in handleSensorEvents()
[all …]
DDayNightModePolicy.java20 import android.car.hardware.CarSensorEvent;
52 public static CarSensorEvent getDefaultValue(int sensorType) { in getDefaultValue()
94 private static CarSensorEvent createEvent(boolean isNight) { in createEvent()
95 CarSensorEvent event = new CarSensorEvent(CarSensorManager.SENSOR_TYPE_NIGHT, in createEvent()
DCarNightService.java22 import android.car.hardware.CarSensorEvent;
43 public void onSensorChanged(List<CarSensorEvent> events) {
45 CarSensorEvent event = events.get(events.size() - 1);
51 public synchronized void handleSensorEvent(CarSensorEvent event) { in handleSensorEvent()
85 CarSensorEvent currentState = mCarSensorService.getLatestSensorEvent( in init()
/packages/services/Car/car-lib/api/
Dcurrent.txt173 public class CarSensorEvent implements android.os.Parcelable {
174 ctor public CarSensorEvent(android.os.Parcel);
175 ctor public CarSensorEvent(int, long, int, int);
177 …method public android.car.hardware.CarSensorEvent.CarSpeedData getCarSpeedData(android.car.hardwar…
178 …hod public android.car.hardware.CarSensorEvent.DrivingStatusData getDrivingStatusData(android.car.…
179 …ethod public android.car.hardware.CarSensorEvent.EnvironmentData getEnvironmentData(android.car.ha…
180 …method public android.car.hardware.CarSensorEvent.FuelLevelData getFuelLevelData(android.car.hardw…
181 …method public android.car.hardware.CarSensorEvent.GearData getGearData(android.car.hardware.CarSen…
182 …method public android.car.hardware.CarSensorEvent.NightData getNightData(android.car.hardware.CarS…
183 …method public android.car.hardware.CarSensorEvent.OdometerData getOdometerData(android.car.hardwar…
[all …]
Dsystem-current.txt398 public class CarSensorEvent implements android.os.Parcelable {
399 ctor public CarSensorEvent(android.os.Parcel);
400 ctor public CarSensorEvent(int, long, int, int);
402 …method public android.car.hardware.CarSensorEvent.CarSpeedData getCarSpeedData(android.car.hardwar…
403 …hod public android.car.hardware.CarSensorEvent.DrivingStatusData getDrivingStatusData(android.car.…
404 …ethod public android.car.hardware.CarSensorEvent.EnvironmentData getEnvironmentData(android.car.ha…
405 …method public android.car.hardware.CarSensorEvent.FuelLevelData getFuelLevelData(android.car.hardw…
406 …method public android.car.hardware.CarSensorEvent.GearData getGearData(android.car.hardware.CarSen…
407 …method public android.car.hardware.CarSensorEvent.NightData getNightData(android.car.hardware.CarS…
408 …method public android.car.hardware.CarSensorEvent.OdometerData getOdometerData(android.car.hardwar…
[all …]
/packages/services/Car/car-support-lib/src/android/support/car/hardware/
DCarSensorEvent.java39 public class CarSensorEvent extends ExtendableParcelable { class
209 public CarSensorEvent(Parcel in) { in CarSensorEvent() method in CarSensorEvent
242 public static final Parcelable.Creator<CarSensorEvent> CREATOR
243 = new Parcelable.Creator<CarSensorEvent>() {
244 public CarSensorEvent createFromParcel(Parcel in) {
245 return new CarSensorEvent(in);
248 public CarSensorEvent[] newArray(int size) {
249 return new CarSensorEvent[size];
253 public CarSensorEvent(int sensorType, long timeStampNs, int floatValueSize, int intValueSize) { in CarSensorEvent() method in CarSensorEvent
262 CarSensorEvent(int sensorType, long timeStampNs, float[] floatValues, int[] intValues) { in CarSensorEvent() method in CarSensorEvent
[all …]
DCarSensorManagerEmbedded.java112 public CarSensorEvent getLatestSensorEvent(int type) throws CarNotConnectedException { in getLatestSensorEvent()
134 private static CarSensorEvent convert(android.car.hardware.CarSensorEvent event) { in convert()
138 return new CarSensorEvent(event.sensorType, event.timeStampNs, event.floatValues, in convert()
154 public void onSensorChanged(android.car.hardware.CarSensorEvent event) { in onSensorChanged()
155 CarSensorEvent newEvent = convert(event); in onSensorChanged()
DCarSensorManager.java147 void onSensorChanged(final CarSensorEvent event); in onSensorChanged()
231 public abstract CarSensorEvent getLatestSensorEvent(int type) throws CarNotConnectedException; in getLatestSensorEvent()
/packages/services/Car/car-lib/src/android/car/hardware/
DCarSensorEvent.java34 public class CarSensorEvent implements Parcelable { class
139 public CarSensorEvent(Parcel in) { in CarSensorEvent() method in CarSensorEvent
166 public static final Parcelable.Creator<CarSensorEvent> CREATOR
167 = new Parcelable.Creator<CarSensorEvent>() {
168 public CarSensorEvent createFromParcel(Parcel in) {
169 return new CarSensorEvent(in);
172 public CarSensorEvent[] newArray(int size) {
173 return new CarSensorEvent[size];
177 public CarSensorEvent(int sensorType, long timeStampNs, int floatValueSize, int intValueSize) { in CarSensorEvent() method in CarSensorEvent
185 CarSensorEvent(int sensorType, long timeStampNs, float[] floatValues, int[] intValues) { in CarSensorEvent() method in CarSensorEvent
DCarSensorManager.java170 List<CarSensorEvent> events = (List<CarSensorEvent>) msg.obj;
171 for (CarSensorEvent event: events) {
259 void onSensorChanged(final CarSensorEvent event); in onSensorChanged()
393 public CarSensorEvent getLatestSensorEvent(int type) throws CarNotConnectedException { in getLatestSensorEvent()
421 private void handleOnSensorChanged(List<CarSensorEvent> events) { in handleOnSensorChanged()
433 public void onSensorChanged(List<CarSensorEvent> events) { in onSensorChanged()
484 void onSensorChanged(CarSensorEvent event) { in onSensorChanged()
DICarSensorEventListener.aidl19 import android.car.hardware.CarSensorEvent;
27 void onSensorChanged(in List<CarSensorEvent> events) = 0;
DICarSensor.aidl19 import android.car.hardware.CarSensorEvent;
40 CarSensorEvent getLatestSensorEvent(int sensorType) = 2; in getLatestSensorEvent()
DCarSensorEvent.aidl19 parcelable CarSensorEvent;
/packages/services/Car/service/src/com/android/car/hal/
DSensorHalServiceBase.java19 import android.car.hardware.CarSensorEvent;
49 void onSensorEvents(List<CarSensorEvent> events); in onSensorEvents()
52 private final LinkedList<CarSensorEvent> mDispatchQ = new LinkedList<CarSensorEvent>();
77 protected void dispatchCarSensorEvent(SensorListener listener, CarSensorEvent event) { in dispatchCarSensorEvent()
DSensorHalService.java19 import android.car.hardware.CarSensorEvent;
88 private final LinkedList<CarSensorEvent> mEventsToDispatch = new LinkedList<CarSensorEvent>();
92 CarSensorEvent event = createCarSensorEvent(v); in handleHalEvents()
107 private CarSensorEvent createCarSensorEvent(VehiclePropValue v) { in createCarSensorEvent()
182 public CarSensorEvent getCurrentSensorValue(int sensorType) { in getCurrentSensorValue()
/packages/services/Car/car-support-lib/api/
Dcurrent.txt392 public class CarSensorEvent extends android.support.car.os.ExtendableParcelable {
393 ctor public CarSensorEvent(android.os.Parcel);
394 ctor public CarSensorEvent(int, long, int, int);
396 …ndroid.support.car.hardware.CarSensorEvent.AccelerometerData getAccelerometerData(android.support.…
397 …lic android.support.car.hardware.CarSensorEvent.CarSpeedData getCarSpeedData(android.support.car.h…
398 …blic android.support.car.hardware.CarSensorEvent.CompassData getCompassData(android.support.car.ha…
399 …ndroid.support.car.hardware.CarSensorEvent.DrivingStatusData getDrivingStatusData(android.support.…
400 … android.support.car.hardware.CarSensorEvent.EnvironmentData getEnvironmentData(android.support.ca…
401 …ic android.support.car.hardware.CarSensorEvent.FuelLevelData getFuelLevelData(android.support.car.…
402 … public android.support.car.hardware.CarSensorEvent.GearData getGearData(android.support.car.hardw…
[all …]
/packages/services/Car/tests/android_car_api_test/src/com/android/car/apitest/
DCarSensorManagerTest.java24 import android.car.hardware.CarSensorEvent;
93 CarSensorEvent lastEvent = mCarSensorManager.getLatestSensorEvent( in testDrivingPolicy()
/packages/services/Car/tests/android_support_car_api_test/src/com/android/support/car/apitest/
DCarSensorManagerTest.java24 import android.support.car.hardware.CarSensorEvent;
102 CarSensorEvent lastEvent = mCarSensorManager.getLatestSensorEvent( in testDrivingPolicy()
/packages/services/Car/tests/carservice_test/src/com/android/support/car/test/
DCarSensorManagerTest.java24 import android.support.car.hardware.CarSensorEvent;
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DKitchenSinkActivity.java35 import android.support.car.hardware.CarSensorEvent;
82 public void onSensorChanged(CarSensorEvent event) {