/packages/services/Car/service/src/com/android/car/ |
D | DrivingStatePolicy.java | 20 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 …]
|
D | CarSensorEventFactory.java | 19 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()
|
D | CarSensorService.java | 21 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 …]
|
D | DayNightModePolicy.java | 20 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()
|
D | CarNightService.java | 22 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/ |
D | current.txt | 173 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 …]
|
D | system-current.txt | 398 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/ |
D | CarSensorEvent.java | 39 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 …]
|
D | CarSensorManagerEmbedded.java | 112 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()
|
D | CarSensorManager.java | 147 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/ |
D | CarSensorEvent.java | 34 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
|
D | CarSensorManager.java | 170 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()
|
D | ICarSensorEventListener.aidl | 19 import android.car.hardware.CarSensorEvent; 27 void onSensorChanged(in List<CarSensorEvent> events) = 0;
|
D | ICarSensor.aidl | 19 import android.car.hardware.CarSensorEvent; 40 CarSensorEvent getLatestSensorEvent(int sensorType) = 2; in getLatestSensorEvent()
|
D | CarSensorEvent.aidl | 19 parcelable CarSensorEvent;
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | SensorHalServiceBase.java | 19 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()
|
D | SensorHalService.java | 19 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/ |
D | current.txt | 392 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/ |
D | CarSensorManagerTest.java | 24 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/ |
D | CarSensorManagerTest.java | 24 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/ |
D | CarSensorManagerTest.java | 24 import android.support.car.hardware.CarSensorEvent;
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/ |
D | KitchenSinkActivity.java | 35 import android.support.car.hardware.CarSensorEvent; 82 public void onSensorChanged(CarSensorEvent event) {
|