/cts/tests/tests/car/src/android/car/cts/ |
CarSensorManagerTest.java | 21 import android.car.hardware.CarSensorManager; 29 private CarSensorManager mCarSensorManager; 34 mCarSensorManager = (CarSensorManager) getCar().getCarManager(Car.SENSOR_SERVICE); 42 if (sensor == CarSensorManager.SENSOR_TYPE_DRIVING_STATUS) { 49 CarSensorManager.SENSOR_TYPE_DRIVING_STATUS)); 50 assertTrue(CarSensorManager.isSensorSupported(supportedSensors, 51 CarSensorManager.SENSOR_TYPE_DRIVING_STATUS)); 53 CarSensorManager.SENSOR_TYPE_DRIVING_STATUS);
|
/packages/services/Car/service/src/com/android/car/ |
DrivingStatePolicy.java | 20 import android.car.hardware.CarSensorManager; 45 private static final int[] SUPPORTED_SENSORS = { CarSensorManager.SENSOR_TYPE_DRIVING_STATUS }; 71 CarSensorManager.SENSOR_TYPE_CAR_SPEED, CarSensorManager.SENSOR_RATE_FASTEST); 77 CarSensorManager.SENSOR_TYPE_PARKING_BRAKE, CarSensorManager.SENSOR_RATE_FASTEST); 78 boolean hasGear = subscribeIfSupportedLocked(sensorList, CarSensorManager.SENSOR_TYPE_GEAR, 79 CarSensorManager.SENSOR_RATE_FASTEST); 91 if (sensorType != CarSensorManager.SENSOR_TYPE_DRIVING_STATUS) { 133 if (!CarSensorManager.isSensorSupported(sensorList, sensorType)) [all...] |
DayNightModePolicy.java | 20 import android.car.hardware.CarSensorManager; 35 private static final int[] SUPPORTED_SENSORS = { CarSensorManager.SENSOR_TYPE_NIGHT }; 88 CarSensorEvent event = new CarSensorEvent(CarSensorManager.SENSOR_TYPE_NIGHT,
|
CarNightService.java | 22 import android.car.hardware.CarSensorManager; 66 if (event.sensorType == CarSensorManager.SENSOR_TYPE_NIGHT) { 119 mCarSensorService.registerOrUpdateSensorListener(CarSensorManager.SENSOR_TYPE_NIGHT, 120 CarSensorManager.SENSOR_RATE_NORMAL, mICarSensorEventListener); 122 CarSensorManager.SENSOR_TYPE_NIGHT);
|
CarSensorService.java | 22 import android.car.hardware.CarSensorManager; 65 * upper layer. Currently {@link CarSensorManager#SENSOR_TYPE_NIGHT} and 66 * {@link CarSensorManager#SENSOR_TYPE_DRIVING_STATUS} falls into this category. 152 addNewSensorRecordLocked(CarSensorManager.SENSOR_TYPE_DRIVING_STATUS, 154 addNewSensorRecordLocked(CarSensorManager.SENSOR_TYPE_NIGHT, getInitialNightMode()); 155 addNewSensorRecordLocked(CarSensorManager.SENSOR_TYPE_IGNITION_STATE, 165 return mSensorHal.getCurrentSensorValue(CarSensorManager.SENSOR_TYPE_IGNITION_STATE); 174 event = mSensorHal.getCurrentSensorValue(CarSensorManager.SENSOR_TYPE_NIGHT); 179 event = DayNightModePolicy.getDefaultValue(CarSensorManager.SENSOR_TYPE_NIGHT); 194 CarSensorManager.SENSOR_TYPE_DRIVING_STATUS) [all...] |
Listeners.java | 19 import android.car.hardware.CarSensorManager; 90 int fastestRate = CarSensorManager.SENSOR_RATE_NORMAL;
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
CarSensorManagerTest.java | 25 import android.car.hardware.CarSensorManager; 39 private CarSensorManager mCarSensorManager; 69 (CarSensorManager) mCar.getCarManager(Car.SENSOR_SERVICE); 83 if (sensor == CarSensorManager.SENSOR_TYPE_DRIVING_STATUS) { 90 CarSensorManager.SENSOR_TYPE_DRIVING_STATUS)); 91 assertTrue(CarSensorManager.isSensorSupported(supportedSensors, 92 CarSensorManager.SENSOR_TYPE_DRIVING_STATUS)); 94 CarSensorManager.SENSOR_TYPE_DRIVING_STATUS);
|
CarTest.java | 22 import android.car.hardware.CarSensorManager; 74 CarSensorManager carSensorManager = 75 (CarSensorManager) car.getCarManager(Car.SENSOR_SERVICE); 76 assertNotNull(carSensorManager); 77 CarSensorManager carSensorManager2 = 78 (CarSensorManager) car.getCarManager(Car.SENSOR_SERVICE); 79 assertEquals(carSensorManager, carSensorManager2);
|
/packages/services/Car/car-support-lib/src/android/support/car/hardware/ |
CarSensorsProxy.java | 49 private final Map<Integer, Set<CarSensorManager.OnSensorChangedListener>> mListenersMultiMap; 58 private final CarSensorManager mCarSensorManager; 95 pushSensorChanges(CarSensorManager.SENSOR_TYPE_GPS_SATELLITE); 107 pushSensorChanges(CarSensorManager.SENSOR_TYPE_LOCATION); 132 pushSensorChanges(CarSensorManager.SENSOR_TYPE_GYROSCOPE); 137 pushSensorChanges(CarSensorManager.SENSOR_TYPE_COMPASS); 142 pushSensorChanges(CarSensorManager.SENSOR_TYPE_ACCELEROMETER); 143 pushSensorChanges(CarSensorManager.SENSOR_TYPE_COMPASS); 163 Collection<CarSensorManager.OnSensorChangedListener> listenersCollection; 169 for (CarSensorManager.OnSensorChangedListener listener [all...] |
CarSensorEvent.java | 39 * Status for {@link CarSensorManager#SENSOR_TYPE_DRIVING_STATUS}: No restrictions. 43 * Status for {@link CarSensorManager#SENSOR_TYPE_DRIVING_STATUS}: No video playback allowed. 48 * Status for {@link CarSensorManager#SENSOR_TYPE_DRIVING_STATUS}: No keyboard or rotary 53 * Status for {@link CarSensorManager#SENSOR_TYPE_DRIVING_STATUS}: No voice input allowed. 58 * Status for {@link CarSensorManager#SENSOR_TYPE_DRIVING_STATUS}: No setup/configuration 63 * Status for {@link CarSensorManager#SENSOR_TYPE_DRIVING_STATUS}: Limit displayed message 68 * Status for {@link CarSensorManager#SENSOR_TYPE_DRIVING_STATUS}: All driving restrictions 75 * Indices for {@link CarSensorManager#SENSOR_TYPE_COMPASS} in floatValues. 80 * Indices for {@link CarSensorManager#SENSOR_TYPE_COMPASS} in floatValues. 85 * Indices for {@link CarSensorManager#SENSOR_TYPE_COMPASS} in floatValues [all...] |
CarSensorManager.java | 36 public abstract class CarSensorManager implements CarManagerBase { 213 void onSensorChanged(final CarSensorManager manager, final CarSensorEvent event);
|
CarSensorManagerEmbedded.java | 33 public class CarSensorManagerEmbedded extends CarSensorManager { 36 private final android.car.hardware.CarSensorManager mManager; 41 mManager = (android.car.hardware.CarSensorManager) manager; 197 implements android.car.hardware.CarSensorManager.OnSensorChangedListener { 201 public final CarSensorManager manager; 204 CarSensorManager manager) {
|
/packages/services/Car/tests/carservice_test/src/com/android/car/test/ |
CarSensorManagerTest.java | 22 import android.car.hardware.CarSensorManager; 34 * Test the public entry points for the CarSensorManager 40 private CarSensorManager mCarSensorManager; 82 mCarSensorManager = (CarSensorManager) getCar().getCarManager(Car.SENSOR_SERVICE); 92 assertFalse(mCarSensorManager.isSensorSupported(CarSensorManager.SENSOR_TYPE_RESERVED1)); 93 assertFalse(mCarSensorManager.isSensorSupported(CarSensorManager.SENSOR_TYPE_RESERVED13)); 94 assertFalse(mCarSensorManager.isSensorSupported(CarSensorManager.SENSOR_TYPE_RESERVED21)); 97 assertTrue(mCarSensorManager.isSensorSupported(CarSensorManager.SENSOR_TYPE_CAR_SPEED)); 98 assertTrue(mCarSensorManager.isSensorSupported(CarSensorManager.SENSOR_TYPE_FUEL_LEVEL)); 99 assertTrue(mCarSensorManager.isSensorSupported(CarSensorManager.SENSOR_TYPE_PARKING_BRAKE)) [all...] |
CarDiagnosticManagerTest.java | 271 android.car.hardware.CarSensorManager.SENSOR_RATE_NORMAL); 295 android.car.hardware.CarSensorManager.SENSOR_RATE_NORMAL); 329 android.car.hardware.CarSensorManager.SENSOR_RATE_NORMAL); 352 android.car.hardware.CarSensorManager.SENSOR_RATE_NORMAL); 381 android.car.hardware.CarSensorManager.SENSOR_RATE_NORMAL); 478 android.car.hardware.CarSensorManager.SENSOR_RATE_NORMAL); 501 android.car.hardware.CarSensorManager.SENSOR_RATE_NORMAL); 551 android.car.hardware.CarSensorManager.SENSOR_RATE_NORMAL); 555 android.car.hardware.CarSensorManager.SENSOR_RATE_NORMAL); 613 android.car.hardware.CarSensorManager.SENSOR_RATE_NORMAL) [all...] |
/packages/services/Car/tests/android_support_car_api_test/src/com/android/support/car/apitest/ |
CarTest.java | 22 import android.support.car.hardware.CarSensorManager; 68 CarSensorManager carSensorManager = 69 (CarSensorManager) car.getCarManager(Car.SENSOR_SERVICE); 70 assertNotNull(carSensorManager); 71 CarSensorManager carSensorManager2 = 72 (CarSensorManager) car.getCarManager(Car.SENSOR_SERVICE); 73 assertEquals(carSensorManager, carSensorManager2);
|
CarSensorManagerTest.java | 23 import android.support.car.hardware.CarSensorManager; 42 private CarSensorManager mCarSensorManager; 72 (CarSensorManager) mCar.getCarManager(Car.SENSOR_SERVICE); 86 if (sensor == CarSensorManager.SENSOR_TYPE_DRIVING_STATUS) { 93 CarSensorManager.SENSOR_TYPE_DRIVING_STATUS)); 95 CarSensorManager.SENSOR_TYPE_DRIVING_STATUS); 101 android.car.hardware.CarSensorManager.class, int.class); 103 android.support.car.hardware.CarSensorManager.class, int.class); 139 android.car.hardware.CarSensorManager.class, int.class); 141 android.support.car.hardware.CarSensorManager.class, int.class) [all...] |
/packages/services/Car/service/src/com/android/car/hal/ |
SensorHalService.java | 24 import android.car.hardware.CarSensorManager; 65 CarSensorManager.SENSOR_TYPE_CAR_SPEED, VehicleProperty.PERF_VEHICLE_SPEED, 66 CarSensorManager.SENSOR_TYPE_RPM, VehicleProperty.ENGINE_RPM, 67 CarSensorManager.SENSOR_TYPE_ODOMETER, VehicleProperty.PERF_ODOMETER, 68 CarSensorManager.SENSOR_TYPE_GEAR, VehicleProperty.GEAR_SELECTION, 69 CarSensorManager.SENSOR_TYPE_NIGHT, VehicleProperty.NIGHT_MODE, 70 CarSensorManager.SENSOR_TYPE_PARKING_BRAKE, VehicleProperty.PARKING_BRAKE_ON, 71 CarSensorManager.SENSOR_TYPE_DRIVING_STATUS, VehicleProperty.DRIVING_STATUS, 72 CarSensorManager.SENSOR_TYPE_FUEL_LEVEL, VehicleProperty.FUEL_LEVEL_LOW, 73 CarSensorManager.SENSOR_TYPE_IGNITION_STATE, VehicleProperty.IGNITION_STATE [all...] |
DiagnosticHalService.java | 22 import android.car.hardware.CarSensorManager; 243 case CarSensorManager.SENSOR_RATE_FASTEST: 244 case CarSensorManager.SENSOR_RATE_FAST: 247 case CarSensorManager.SENSOR_RATE_UI:
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/sensor/ |
SensorsTestFragment.java | 29 import android.support.car.hardware.CarSensorManager; 66 private final CarSensorManager.OnSensorChangedListener mOnSensorChangedListener = 67 new CarSensorManager.OnSensorChangedListener() { 69 public void onSensorChanged(CarSensorManager manager, CarSensorEvent event) { 86 private CarSensorManager mSensorManager; 125 mSensorManager = (CarSensorManager) 129 if ((sensor == CarSensorManager.SENSOR_TYPE_LOCATION 130 || sensor == CarSensorManager.SENSOR_TYPE_GPS_SATELLITE) 135 CarSensorManager.SENSOR_RATE_NORMAL); 192 case CarSensorManager.SENSOR_TYPE_COMPASS [all...] |
/packages/services/Car/car-lib/src/android/car/hardware/ |
CarSensorEvent.java | 36 * Index in {@link #floatValues} for {@link CarSensorManager#SENSOR_TYPE_FUEL_LEVEL} type of 41 * Index in {@link #floatValues} for {@link CarSensorManager#SENSOR_TYPE_FUEL_LEVEL} type of 46 * Index in {@link #intValues} for {@link CarSensorManager#SENSOR_TYPE_FUEL_LEVEL} type of 52 * GEAR_* represents meaning of intValues[0] for {@link CarSensorManager#SENSOR_TYPE_GEAR} 94 * {@link CarSensorManager#SENSOR_TYPE_IGNITION_STATE} sensor. 131 * Index for {@link CarSensorManager#SENSOR_TYPE_ENVIRONMENT} in floatValues. 136 * Index for {@link CarSensorManager#SENSOR_TYPE_ENVIRONMENT} in floatValues. 141 * Index for {@link CarSensorManager#SENSOR_TYPE_WHEEL_TICK_DISTANCE} in longValues. RESET_COUNT 154 /** Sensor type for this event like {@link CarSensorManager#SENSOR_TYPE_CAR_SPEED}. */ 256 * object with type {@link CarSensorManager#SENSOR_TYPE_ENVIRONMENT} [all...] |
CarSensorManager.java | 50 public final class CarSensorManager implements CarManagerBase { 224 public CarSensorManager(IBinder service, Context context, Handler handler) { 477 private final WeakReference<CarSensorManager> mManager; 479 public CarSensorEventListenerToService(CarSensorManager manager) { 485 CarSensorManager manager = mManager.get();
|
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/ |
E2ePerformanceTest.java | 29 import android.car.hardware.CarSensorManager; 30 import android.car.hardware.CarSensorManager.OnSensorChangedListener; 72 * these events through car public API, e.g. CarSensorManager. 143 CarSensorManager.SENSOR_TYPE_ODOMETER, VehicleProperty.PERF_ODOMETER); 149 CarSensorManager.SENSOR_TYPE_RPM, VehicleProperty.ENGINE_RPM); 155 CarSensorManager.SENSOR_TYPE_ODOMETER, 156 CarSensorManager.SENSOR_TYPE_RPM, 157 CarSensorManager.SENSOR_TYPE_CAR_SPEED 164 CarSensorManager mgr = (CarSensorManager) mCar.getCarManager(Car.SENSOR_SERVICE) [all...] |
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/diagnostic/ |
DiagnosticTestFragment.java | 26 import android.support.car.hardware.CarSensorManager; 101 CarSensorManager.SENSOR_RATE_NORMAL); 106 CarSensorManager.SENSOR_RATE_NORMAL);
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/ |
KitchenSinkActivity.java | 27 import android.support.car.hardware.CarSensorManager; 167 private CarSensorManager mCarSensorManager; 170 private final CarSensorManager.OnSensorChangedListener mListener = (manager, event) -> { 172 case CarSensorManager.SENSOR_TYPE_DRIVING_STATUS: 254 mCarSensorManager = (CarSensorManager) mCarApi.getCarManager(Car.SENSOR_SERVICE); 256 CarSensorManager.SENSOR_TYPE_DRIVING_STATUS, 257 CarSensorManager.SENSOR_RATE_NORMAL);
|
/packages/apps/Car/LatinIME/src/com/android/inputmethod/latin/ |
CarLatinIME.java | 20 import android.car.hardware.CarSensorManager; 74 private CarSensorManager mSensorManager; 110 mSensorManager = (CarSensorManager) mCar.getCarManager(Car.SENSOR_SERVICE); 112 CarSensorManager.SENSOR_TYPE_DRIVING_STATUS, 113 CarSensorManager.SENSOR_RATE_FASTEST); 125 private final CarSensorManager.OnSensorChangedListener mCarSensorListener = 126 new CarSensorManager.OnSensorChangedListener() { 129 if (event.sensorType != CarSensorManager.SENSOR_TYPE_DRIVING_STATUS) {
|