/packages/services/Car/car-support-lib/src/android/support/car/hardware/ |
D | CarSensorsProxy.java | 167 CarSensorEvent event = (CarSensorEvent) msg.obj; 305 public CarSensorEvent getLatestSensorEvent(int type) { in getLatestSensorEvent() 310 CarSensorEvent event = getSensorEvent(sensorType); in pushSensorChanges() 318 private CarSensorEvent getSensorEvent(int sensorType) { in getSensorEvent() 319 CarSensorEvent event = null; in getSensorEvent() 324 event = new CarSensorEvent(sensorType, Math.max(mLastMagneticFieldDataTime, in getSensorEvent() 329 event.floatValues[CarSensorEvent.INDEX_COMPASS_BEARING] = in getSensorEvent() 331 event.floatValues[CarSensorEvent.INDEX_COMPASS_PITCH] = in getSensorEvent() 333 event.floatValues[CarSensorEvent.INDEX_COMPASS_ROLL] = in getSensorEvent() 339 event = new CarSensorEvent(sensorType, mLastLocationTime, 6, 3); in getSensorEvent() [all …]
|
D | CarSensorEvent.java | 35 public class CarSensorEvent { class 118 public CarSensorEvent(int sensorType, long timestamp, int floatValueSize, int intValueSize) { in CarSensorEvent() method in CarSensorEvent 134 public CarSensorEvent(int sensorType, long timestamp, float[] floatValues, int[] intValues) { in CarSensorEvent() method in CarSensorEvent 151 public CarSensorEvent(int sensorType, long timestamp, float[] floatValues, byte[] byteValues) { in CarSensorEvent() method in CarSensorEvent 870 private final int intOffset = CarSensorEvent.INDEX_GPS_SATELLITE_ARRAY_INT_OFFSET; 871 private final int intInterval = CarSensorEvent.INDEX_GPS_SATELLITE_ARRAY_INT_INTERVAL; 872 private final int floatOffset = CarSensorEvent.INDEX_GPS_SATELLITE_ARRAY_FLOAT_OFFSET; 873 private final int floatInterval = CarSensorEvent.INDEX_GPS_SATELLITE_ARRAY_FLOAT_INTERVAL; 888 int numberInUse = intValues[CarSensorEvent.INDEX_GPS_SATELLITE_NUMBER_IN_USE]; in getGpsSatelliteData() 889 int numberInView = intValues[CarSensorEvent.INDEX_GPS_SATELLITE_NUMBER_IN_VIEW]; in getGpsSatelliteData() [all …]
|
D | CarSensorManagerEmbedded.java | 146 public CarSensorEvent getLatestSensorEvent(int type) throws CarNotConnectedException { in getLatestSensorEvent() 171 private static CarSensorEvent convert(android.car.hardware.CarSensorEvent event) { in convert() 175 return new CarSensorEvent(event.sensorType, event.timestamp, event.floatValues, in convert() 194 public void onSensorChanged(android.car.hardware.CarSensorEvent event) { in onSensorChanged() 195 CarSensorEvent newEvent = convert(event); in onSensorChanged()
|
D | CarSensorManager.java | 193 void onSensorChanged(final CarSensorManager manager, final CarSensorEvent event); in onSensorChanged() 260 public abstract CarSensorEvent getLatestSensorEvent(@SensorType int type) in getLatestSensorEvent()
|
/packages/services/Car/service/src/com/android/car/ |
D | DrivingStatePolicy.java | 19 import android.car.hardware.CarSensorEvent; 40 private int mDrivingState = CarSensorEvent.DRIVE_STATUS_FULLY_RESTRICTED; 50 public void onSensorChanged(List<CarSensorEvent> events) { 51 for (CarSensorEvent event: events) { 90 public static CarSensorEvent getDefaultValue(int sensorType) { in getDefaultValue() 99 return createEvent(CarSensorEvent.DRIVE_STATUS_FULLY_RESTRICTED, 0 /* timestamp */); in getDefaultValue() 141 private synchronized void handleSensorEvent(CarSensorEvent event) { in handleSensorEvent() 158 int drivingState = CarSensorEvent.DRIVE_STATUS_FULLY_RESTRICTED; in recalcDrivingStateLocked() 159 CarSensorEvent lastParkingBrake = mSensorService.getLatestSensorEvent( in recalcDrivingStateLocked() 161 CarSensorEvent lastGear = mSensorService.getLatestSensorEvent( in recalcDrivingStateLocked() [all …]
|
D | CarSensorService.java | 20 import android.car.hardware.CarSensorEvent; 71 private final LinkedList<CarSensorEvent> mDispatchQ = new LinkedList<>(); 81 protected void dispatchCarSensorEvent(SensorListener listener, CarSensorEvent event) { in dispatchCarSensorEvent() 163 private CarSensorEvent getInitialIgnitionState() { in getInitialIgnitionState() 167 private CarSensorEvent getInitialNightMode() { in getInitialNightMode() 168 CarSensorEvent event = null; in getInitialNightMode() 186 private CarSensorEvent getInitialDrivingStatus() { in getInitialDrivingStatus() 187 CarSensorEvent event = null; in getInitialDrivingStatus() 207 private void addNewSensorRecordLocked(int type, CarSensorEvent event) { in addNewSensorRecordLocked() 261 private void processSensorData(List<CarSensorEvent> events) { in processSensorData() [all …]
|
D | CarSensorEventFactory.java | 19 import android.car.hardware.CarSensorEvent; 24 public static CarSensorEvent createBooleanEvent(int sensorType, long timestamp, in createBooleanEvent() 26 CarSensorEvent event = new CarSensorEvent(sensorType, timestamp, 0, 1); in createBooleanEvent() 31 public static CarSensorEvent createIntEvent(int sensorType, long timestamp, int value) { in createIntEvent() 32 CarSensorEvent event = new CarSensorEvent(sensorType, timestamp, 0, 1); in createIntEvent() 37 public static CarSensorEvent createFloatEvent(int sensorType, long timestamp, float value) { in createFloatEvent() 38 CarSensorEvent event = new CarSensorEvent(sensorType, timestamp, 1, 0); in createFloatEvent() 43 public static void returnToPool(CarSensorEvent event) { in returnToPool()
|
D | DayNightModePolicy.java | 19 import android.car.hardware.CarSensorEvent; 50 public static CarSensorEvent getDefaultValue(int sensorType) { in getDefaultValue() 87 private static CarSensorEvent createEvent(boolean isNight, long timestamp) { in createEvent() 88 CarSensorEvent event = new CarSensorEvent(CarSensorManager.SENSOR_TYPE_NIGHT, in createEvent()
|
D | CarNightService.java | 21 import android.car.hardware.CarSensorEvent; 54 public void onSensorChanged(List<CarSensorEvent> events) { 56 CarSensorEvent event = events.get(events.size() - 1); 62 public synchronized void handleSensorEvent(CarSensorEvent event) { in handleSensorEvent() 121 CarSensorEvent currentState = mCarSensorService.getLatestSensorEvent( in init()
|
D | BluetoothDeviceConnectionPolicy.java | 29 import android.car.hardware.CarSensorEvent; 609 public void onSensorChanged(List<CarSensorEvent> events) throws RemoteException { in onSensorChanged() 611 CarSensorEvent event = events.get(0); in onSensorChanged() 619 if (event.intValues[0] == CarSensorEvent.IGNITION_STATE_START) { in onSensorChanged()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/test/ |
D | CarSensorManagerTest.java | 21 import android.car.hardware.CarSensorEvent; 74 .addIntValue(CarSensorEvent.IGNITION_STATE_ACC) in configureMockedHal() 161 CarSensorEvent event; in testEvents() 162 CarSensorEvent.NightData data = null; in testEvents() 236 CarSensorEvent event = mCarSensorManager.getLatestSensorEvent( in testIgnitionState() 239 assertEquals(CarSensorEvent.IGNITION_STATE_ACC, event.intValues[0]); in testIgnitionState() 250 VehicleIgnitionState.UNDEFINED, CarSensorEvent.IGNITION_STATE_UNDEFINED, in testIgnitionEvents() 251 VehicleIgnitionState.LOCK, CarSensorEvent.IGNITION_STATE_LOCK, in testIgnitionEvents() 252 VehicleIgnitionState.OFF, CarSensorEvent.IGNITION_STATE_OFF, in testIgnitionEvents() 253 VehicleIgnitionState.ACC, CarSensorEvent.IGNITION_STATE_ACC, in testIgnitionEvents() [all …]
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | SensorHalService.java | 22 import android.car.hardware.CarSensorEvent; 55 void onSensorEvents(List<CarSensorEvent> events); in onSensorEvents() 72 VehicleGear.GEAR_NEUTRAL, CarSensorEvent.GEAR_NEUTRAL, 73 VehicleGear.GEAR_REVERSE, CarSensorEvent.GEAR_REVERSE, 74 VehicleGear.GEAR_PARK, CarSensorEvent.GEAR_PARK, 75 VehicleGear.GEAR_DRIVE, CarSensorEvent.GEAR_DRIVE, 76 VehicleGear.GEAR_LOW, CarSensorEvent.GEAR_FIRST, // Also GEAR_1 - the value is the same. 77 VehicleGear.GEAR_2, CarSensorEvent.GEAR_SECOND, 78 VehicleGear.GEAR_3, CarSensorEvent.GEAR_THIRD, 79 VehicleGear.GEAR_4, CarSensorEvent.GEAR_FOURTH, [all …]
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/sensor/ |
D | SensorsTestFragment.java | 27 import android.support.car.hardware.CarSensorEvent; 67 public void onSensorChanged(CarSensorManager manager, CarSensorEvent event) { 78 private final Map<Integer, CarSensorEvent> mEventMap = new ConcurrentHashMap<>(); 188 CarSensorEvent event = mEventMap.get(i); in refreshUi() 213 CarSensorEvent.FuelLevelData fuelData = event.getFuelLevelData(); in refreshUi() 244 CarSensorEvent.DrivingStatusData drivingStatusData = in refreshUi() 256 CarSensorEvent.EnvironmentData env = event.getEnvironmentData(); in refreshUi() 289 private String getTimestamp(CarSensorEvent event) { in getTimestamp() 296 private String getCompassString(CarSensorEvent event) { in getCompassString() 301 CarSensorEvent.CompassData compass = event.getCompassData(); in getCompassString() [all …]
|
/packages/services/Car/car-lib/src/android/car/hardware/ |
D | CarSensorEvent.java | 33 public class CarSensorEvent implements Parcelable { class 159 public CarSensorEvent(Parcel in) { in CarSensorEvent() method in CarSensorEvent 186 public static final Parcelable.Creator<CarSensorEvent> CREATOR 187 = new Parcelable.Creator<CarSensorEvent>() { 188 public CarSensorEvent createFromParcel(Parcel in) { 189 return new CarSensorEvent(in); 192 public CarSensorEvent[] newArray(int size) { 193 return new CarSensorEvent[size]; 198 public CarSensorEvent(int sensorType, long timestamp, int floatValueSize, int intValueSize) { in CarSensorEvent() method in CarSensorEvent 206 CarSensorEvent(int sensorType, long timestamp, float[] floatValues, int[] intValues) { in CarSensorEvent() method in CarSensorEvent
|
D | CarSensorManager.java | 199 private final SingleMessageHandler<CarSensorEvent> mHandlerCallback; 205 mHandlerCallback = new SingleMessageHandler<CarSensorEvent>(handler.getLooper(), in CarSensorManager() 208 protected void handleEvent(CarSensorEvent event) { in CarSensorManager() 285 void onSensorChanged(final CarSensorEvent event); in onSensorChanged() 419 public CarSensorEvent getLatestSensorEvent(@SensorType int type) in getLatestSensorEvent() 448 private void handleOnSensorChanged(List<CarSensorEvent> events) { in handleOnSensorChanged() 460 public void onSensorChanged(List<CarSensorEvent> events) { in onSensorChanged() 473 void onSensorChanged(final 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/car-support-lib/api/ |
D | current.txt | 88 public class CarSensorEvent { 89 method public android.support.car.hardware.CarSensorEvent.CompassData getCompassData(); 90 …method public android.support.car.hardware.CarSensorEvent.DrivingStatusData getDrivingStatusData(); 91 method public android.support.car.hardware.CarSensorEvent.NightData getNightData(); 92 … method public android.support.car.hardware.CarSensorEvent.ParkingBrakeData getParkingBrakeData(); 109 public static class CarSensorEvent.CompassData { 116 public static class CarSensorEvent.DrivingStatusData { 127 public static class CarSensorEvent.NightData { 132 public static class CarSensorEvent.ParkingBrakeData { 140 …method public abstract android.support.car.hardware.CarSensorEvent getLatestSensorEvent(int) throw… [all …]
|
/packages/services/Car/service/src/com/android/car/pm/ |
D | CarPackageManagerService.java | 25 import android.car.hardware.CarSensorEvent; 836 CarSensorEvent lastEvent = mSensorService.getLatestSensorEvent( in resetState() 843 mLatestDrivingState = CarSensorEvent.DRIVE_STATUS_UNRESTRICTED; in resetState() 847 if (mLatestDrivingState != CarSensorEvent.DRIVE_STATUS_UNRESTRICTED) { in resetState() 857 return mLatestDrivingState != CarSensorEvent.DRIVE_STATUS_UNRESTRICTED; in isRestricted() 861 public void onSensorChanged(List<CarSensorEvent> events) { in onSensorChanged()
|
/packages/apps/Car/LatinIME/src/com/android/inputmethod/latin/ |
D | CarLatinIME.java | 19 import android.car.hardware.CarSensorEvent; 126 public void onSensorChanged(CarSensorEvent event) { 133 (drivingStatus & CarSensorEvent.DRIVE_STATUS_NO_KEYBOARD_INPUT) == 0;
|
/packages/services/Car/car-lib/api/ |
D | 1.txt | 180 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);
|
D | current.txt | 180 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/tests/android_car_api_test/src/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 | 22 import android.support.car.hardware.CarSensorEvent; 93 CarSensorEvent lastEvent = mCarSensorManager.getLatestSensorEvent( in testDrivingPolicy()
|