/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/ |
D | VhalJsonReader.java | 20 import android.car.hardware.CarPropertyValue; 52 public static List<CarPropertyValue> readFromJson(InputStream in) in readFromJson() 55 List<CarPropertyValue> events = new ArrayList<>(); in readFromJson() 71 private static CarPropertyValue<?> getEvent(JSONObject rawEvent) throws JSONException { in getEvent() 78 return new CarPropertyValue<>(prop, areaId, CarPropertyValue.STATUS_AVAILABLE, in getEvent() 81 return new CarPropertyValue<>(prop, areaId, CarPropertyValue.STATUS_AVAILABLE, in getEvent() 84 return new CarPropertyValue<>(prop, areaId, CarPropertyValue.STATUS_AVAILABLE, in getEvent() 87 return new CarPropertyValue<>(prop, areaId, in getEvent() 88 CarPropertyValue.STATUS_AVAILABLE, timestamp, in getEvent() 91 return new CarPropertyValue<>(prop, areaId, CarPropertyValue.STATUS_AVAILABLE, in getEvent() [all …]
|
D | VhalEventVerifier.java | 18 import android.car.hardware.CarPropertyValue; 31 private List<CarPropertyValue> mExpectedEvents; 40 public final CarPropertyValue expectedEvent; 41 public final CarPropertyValue mismatchedEvent; 43 MismatchedEventPair(CarPropertyValue expectedEvent, CarPropertyValue mismatchedEvent, in MismatchedEventPair() 51 VhalEventVerifier(List<CarPropertyValue> expectedEvents) { in VhalEventVerifier() 65 public void verify(CarPropertyValue nextEvent) { in verify() 69 CarPropertyValue expectedEvent = mExpectedEvents.get(mIdx); in verify()
|
D | CarPropertyTest.java | 28 import android.car.hardware.CarPropertyValue; 139 public void onChangeEvent(CarPropertyValue carPropertyValue) { in onChangeEvent() 166 List<CarPropertyValue> expectedEvents = getExpectedEvents(CAR_HVAC_TEST_JSON); in testHvacHardButtonOperations() 167 List<CarPropertyValue> expectedSetEvents = getExpectedEvents(CAR_HVAC_TEST_SET_JSON); in testHvacHardButtonOperations() 173 for (CarPropertyValue expectedEvent : expectedSetEvents) { in testHvacHardButtonOperations() 180 CarPropertyValue receivedEvent = propMgr.getProperty(valueClass, in testHvacHardButtonOperations() 189 for (CarPropertyValue event : expectedEvents) { in testHvacHardButtonOperations() 215 List<CarPropertyValue> expectedEvents = getExpectedEvents(CAR_INFO_TEST_JSON); in testStaticInfoOperations() 218 for (CarPropertyValue expectedEvent : expectedEvents) { in testStaticInfoOperations() 219 CarPropertyValue actualEvent = propMgr.getProperty( in testStaticInfoOperations() [all …]
|
D | CarDiagnosticTest.java | 25 import android.car.hardware.CarPropertyValue; 78 private static CarPropertyValue<VehiclePropValue.RawValue> fromCarDiagnosticEvent( in fromCarDiagnosticEvent() 91 return new CarPropertyValue<>(prop, 0, builder.build().value); in fromCarDiagnosticEvent() 97 List<CarPropertyValue> expectedEvents = getExpectedEvents(CAR_DIAGNOSTIC_TEST_JSON); in testDiagnosticEvents()
|
D | Utils.java | 22 import android.car.hardware.CarPropertyValue; 122 static boolean areCarPropertyValuesEqual(final CarPropertyValue value1, in areCarPropertyValuesEqual() 123 final CarPropertyValue value2) { in areCarPropertyValuesEqual()
|
/packages/services/Car/car-lib/src/android/car/hardware/property/ |
D | CarPropertyEvent.java | 20 import android.car.hardware.CarPropertyValue; 37 private final CarPropertyValue<?> mCarPropertyValue; 52 public CarPropertyValue<?> getCarPropertyValue() { in getCarPropertyValue() 85 public CarPropertyEvent(int eventType, @NonNull CarPropertyValue<?> carPropertyValue) { in CarPropertyEvent() 94 public CarPropertyEvent(int eventType, @NonNull CarPropertyValue<?> carPropertyValue, in CarPropertyEvent() 110 CarPropertyValue<Integer> valueWithErrorCode = new CarPropertyValue<>(propertyId, areaId, in createErrorEventWithErrorCode() 111 CarPropertyValue.STATUS_ERROR, 0, ERROR_EVENT_VALUE); in createErrorEventWithErrorCode() 124 mCarPropertyValue = in.readParcelable(CarPropertyValue.class.getClassLoader()); in CarPropertyEvent()
|
D | CarPropertyManager.java | 30 import android.car.hardware.CarPropertyValue; 77 void onChangeEvent(CarPropertyValue value); in onChangeEvent() 492 CarPropertyValue propValue = mService.getProperty(propId, area); in isPropertyAvailable() 494 && (propValue.getStatus() == CarPropertyValue.STATUS_AVAILABLE); in isPropertyAvailable() 539 CarPropertyValue<Boolean> carProp = getProperty(Boolean.class, prop, area); in getBooleanProperty() 566 CarPropertyValue<Float> carProp = getProperty(Float.class, prop, area); in getFloatProperty() 593 CarPropertyValue<Integer> carProp = getProperty(Integer.class, prop, area); in getIntProperty() 622 CarPropertyValue<Integer[]> carProp = getProperty(Integer[].class, prop, area); in getIntArrayProperty() 636 private <T> T handleNullAndPropertyStatus(CarPropertyValue<T> propertyValue, int areaId, in handleNullAndPropertyStatus() 645 return propertyValue.getStatus() == CarPropertyValue.STATUS_AVAILABLE in handleNullAndPropertyStatus() [all …]
|
D | ICarProperty.aidl | 20 import android.car.hardware.CarPropertyValue; 34 CarPropertyValue getProperty(int prop, int zone) = 3; in getProperty() 36 void setProperty(in CarPropertyValue prop, in ICarPropertyEventListener callback) = 4; in setProperty()
|
/packages/services/Car/car-lib/src/android/car/hardware/ |
D | CarPropertyValue.java | 41 public final class CarPropertyValue<T> implements Parcelable { class 81 public CarPropertyValue(int propertyId, int areaId, T value) { in CarPropertyValue() method in CarPropertyValue 98 public CarPropertyValue(int propertyId, int areaId, int status, long timestamp, T value) { in CarPropertyValue() method in CarPropertyValue 113 public CarPropertyValue(Parcel in) { in CarPropertyValue() method in CarPropertyValue 136 public static final Creator<CarPropertyValue> CREATOR = new Creator<CarPropertyValue>() { 138 public CarPropertyValue createFromParcel(Parcel in) { 139 return new CarPropertyValue(in); 143 public CarPropertyValue[] newArray(int size) { 144 return new CarPropertyValue[size];
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | CarPropertyUtils.java | 24 import android.car.hardware.CarPropertyValue; 66 static CarPropertyValue<?> toCarPropertyValue( in toCarPropertyValue() 76 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, in toCarPropertyValue() 79 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, in toCarPropertyValue() 82 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, in toCarPropertyValue() 85 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, in toCarPropertyValue() 92 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, values); in toCarPropertyValue() 98 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, values); in toCarPropertyValue() 104 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, values); in toCarPropertyValue() 106 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, v.stringValue); in toCarPropertyValue() [all …]
|
/packages/services/Car/car-test-lib/src/android/car/testapi/ |
D | FakeCarPropertyService.java | 27 import android.car.hardware.CarPropertyValue; 51 private final Map<PropKey, CarPropertyValue> mValues = new HashMap<>(); 56 private final ArrayList<CarPropertyValue<?>> mValuesSet = new ArrayList<>(); 102 public CarPropertyValue getProperty(int prop, int zone) throws RemoteException { in getProperty() 107 public void setProperty(CarPropertyValue prop, ICarPropertyEventListener listener) in setProperty() 132 updateValues(false, new CarPropertyValue<>(propId, 0, value)); in addProperty() 140 @Nullable CarPropertyValue<?> value) { in addProperty() 149 public void updateValues(boolean triggerListeners, CarPropertyValue<?>... propValues) { in updateValues() 150 for (CarPropertyValue v : propValues) { in updateValues() 158 private void sendEvent(CarPropertyValue v) { in sendEvent() [all …]
|
D | CarPropertyController.java | 21 import android.car.hardware.CarPropertyValue; 43 @Nullable CarPropertyValue<?> value); in addProperty() 49 void updateValues(boolean triggerListeners, CarPropertyValue<?>... propValues); in updateValues() 52 List<CarPropertyValue<?>> getSetValues(); in getSetValues()
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarPropertyValueTest.java | 20 import android.car.hardware.CarPropertyValue; 35 CarPropertyValue<Float> floatValue = in testSimpleFloatValue() 36 new CarPropertyValue<>(FLOAT_PROPERTY_ID, WINDOW_DRIVER, 10f); in testSimpleFloatValue() 40 CarPropertyValue<Float> valueRead = readFromParcel(); in testSimpleFloatValue() 46 CarPropertyValue<Object> mixedValue = in testMixedValue() 47 new CarPropertyValue<>(MIXED_TYPE_PROPERTY_ID, in testMixedValue() 51 CarPropertyValue<Object[]> valueRead = readFromParcel(); in testMixedValue()
|
/packages/apps/Car/Hvac/src/com/android/car/hvac/controllers/ |
D | TemperatureController.java | 18 import android.car.hardware.CarPropertyValue; 70 public void onPassengerTemperatureChange(CarPropertyValue value) { 71 final boolean available = value.getStatus() == CarPropertyValue.STATUS_AVAILABLE; 82 public void onDriverTemperatureChange(CarPropertyValue value) { 83 final boolean available = value.getStatus() == CarPropertyValue.STATUS_AVAILABLE;
|
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | CarPropertyEventTest.java | 21 import android.car.hardware.CarPropertyValue; 64 CarPropertyValue.STATUS_ERROR); in testCreateErrorEvent() 72 CarPropertyValue<Integer> value = new CarPropertyValue<Integer>(FAKE_PROPERTY_ID, in testWriteAndReadEvent()
|
D | CarPropertyManagerTest.java | 28 import android.car.hardware.CarPropertyValue; 230 CarPropertyValue<Object[]> result = mManager.getProperty( in testGetMixTypeProperty() 326 CarPropertyValue<Integer[]> result = mManager.getProperty(Integer[].class, in testGetPropertyWithClass() 846 return CarPropertyValue.STATUS_ERROR; in mapPropertyToCarPropertyStatusCode() 849 return CarPropertyValue.STATUS_UNAVAILABLE; in mapPropertyToCarPropertyStatusCode() 851 return CarPropertyValue.STATUS_AVAILABLE; in mapPropertyToCarPropertyStatusCode() 864 public void onChangeEvent(CarPropertyValue value) { in onChangeEvent() 909 private ConcurrentHashMap<Integer, CarPropertyValue> mRecorder = new ConcurrentHashMap<>(); 914 public void onChangeEvent(CarPropertyValue value) { in onChangeEvent() 934 public CarPropertyValue getLastCarPropertyValue(int propId) { in getLastCarPropertyValue()
|
D | CarUxRestrictionsManagerServiceTest.java | 48 import android.car.hardware.CarPropertyValue; 520 new CarPropertyValue<>( in testInitService_NoDeadlockWithCarDrivingStateService() 609 new CarPropertyValue<>( in testSetUxRChangeBroadcastEnabled_NoDeadlockWithCarDrivingStateService() 691 CarPropertyValue<Float> speed = new CarPropertyValue<>(VehicleProperty.PERF_VEHICLE_SPEED, in setUpMockParkedState() 701 CarPropertyValue<Float> speed = new CarPropertyValue<>(VehicleProperty.PERF_VEHICLE_SPEED, in setUpMockDrivingState()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/sensor/ |
D | SensorsTestFragment.java | 24 import android.car.hardware.CarPropertyValue; 115 public void onChangeEvent(CarPropertyValue value) { 119 if (value.getStatus() == CarPropertyValue.STATUS_AVAILABLE) { 133 private final Map<Integer, CarPropertyValue> mValueMap = new ConcurrentHashMap<>(); 273 CarPropertyValue propertyValue = mValueMap.get(propertyId); in formSummary() 307 private String getTimestamp(CarPropertyValue value) { in getTimestamp() 318 private String getStringOfPropertyValue(CarPropertyValue value) { in getStringOfPropertyValue()
|
/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/sensors/ |
D | Sensor.java | 19 import android.car.hardware.CarPropertyValue; 47 public final Function<CarPropertyValue<?>, T> mAdapter; 53 Function<CarPropertyValue<?>, T> adapter) { in Sensor() argument
|
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/sensors/ |
D | Sensor.java | 19 import android.car.hardware.CarPropertyValue; 47 public final Function<CarPropertyValue<?>, T> mAdapter; 53 Function<CarPropertyValue<?>, T> adapter) { in Sensor() argument
|
/packages/apps/Car/Hvac/src/com/android/car/hvac/ |
D | HvacController.java | 24 import android.car.hardware.CarPropertyValue; 62 public void onPassengerTemperatureChange(CarPropertyValue propValue) { in onPassengerTemperatureChange() 65 public void onDriverTemperatureChange(CarPropertyValue propValue) { in onDriverTemperatureChange() 194 public void onChangeEvent(final CarPropertyValue val) { 237 public static <E> E getValue(CarPropertyValue propertyValue) { in getValue() 241 public static boolean isAvailable(CarPropertyValue propertyValue) { in isAvailable() 242 return propertyValue.getStatus() == CarPropertyValue.STATUS_AVAILABLE; in isAvailable() 355 private void handleTempUpdate(CarPropertyValue value) { in handleTempUpdate() 358 final boolean available = value.getStatus() == CarPropertyValue.STATUS_AVAILABLE; in handleTempUpdate()
|
/packages/services/Car/car-lib/src/android/car/hardware/hvac/ |
D | CarHvacManager.java | 24 import android.car.hardware.CarPropertyValue; 247 void onChangeEvent(CarPropertyValue value); in onChangeEvent() 265 public void onChangeEvent(CarPropertyValue value) { in onChangeEvent() 281 private void handleOnChangeEvent(CarPropertyValue value) { in handleOnChangeEvent()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/units/ |
D | UnitsBasePreferenceControllerTest.java | 27 import android.car.hardware.CarPropertyValue; 66 private CarPropertyValue mCarPropertyValue; 157 when(mCarPropertyValue.getStatus()).thenReturn(CarPropertyValue.STATUS_AVAILABLE); in onPropertyChanged_propertyStatusIsAvailable_setsNewUnitIdAsValue() 168 when(mCarPropertyValue.getStatus()).thenReturn(CarPropertyValue.STATUS_AVAILABLE); in onPropertyChanged_propertyStatusIsAvailable_setsNewUnitAbbreviationAsSummary()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarDrivingStateService.java | 27 import android.car.hardware.CarPropertyValue; 294 CarPropertyValue value = event.getCarPropertyValue(); in handlePropertyEventLocked() 477 CarPropertyValue propertyValue = mPropertyService.getPropertySafe( in updateVehiclePropertiesIfNeededLocked() 490 CarPropertyValue propertyValue = mPropertyService.getPropertySafe( in updateVehiclePropertiesIfNeededLocked() 503 CarPropertyValue propertyValue = mPropertyService.getPropertySafe( in updateVehiclePropertiesIfNeededLocked()
|
/packages/services/Car/car-lib/src/android/car/hardware/cabin/ |
D | CarCabinManager.java | 24 import android.car.hardware.CarPropertyValue; 409 void onChangeEvent(CarPropertyValue value); in onChangeEvent() 427 public void onChangeEvent(CarPropertyValue value) { in onChangeEvent() 443 private void handleOnChangeEvent(CarPropertyValue value) { in handleOnChangeEvent()
|