/packages/services/Car/service/src/com/android/car/hal/ |
D | CarPropertyUtils.java | 46 int areaId = halValue.areaId; in toCarPropertyValue() local 53 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, in toCarPropertyValue() 56 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, in toCarPropertyValue() 59 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, in toCarPropertyValue() 62 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, in toCarPropertyValue() 69 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, values); in toCarPropertyValue() 75 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, values); in toCarPropertyValue() 81 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, values); in toCarPropertyValue() 83 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, v.stringValue); in toCarPropertyValue() 86 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, halData); in toCarPropertyValue() [all …]
|
D | HalClient.java | 93 propValue.prop, propValue.areaId)); in setValue() 103 + "code: %d", propValue.prop, propValue.areaId, status)); in setValue() 116 int areaId = requestedPropValue.areaId; in getValue() local 119 String.format("Failed to get value for: 0x%x, areaId: 0x%x", propId, areaId)); in getValue() 129 + "code: %d", propId, areaId, status)); in getValue() 184 final int areaId; field in HalClient.PropertySetError 186 PropertySetError(int errorCode, int propId, int areaId) { in PropertySetError() argument 189 this.areaId = areaId; in PropertySetError() 219 mCallback.onPropertySetError(obj.errorCode, obj.propId, obj.areaId); in handleMessage() 250 public void onPropertySetError(int errorCode, int propId, int areaId) { in onPropertySetError() argument [all …]
|
D | VehicleHal.java | 319 public VehiclePropValue get(int propertyId, int areaId) throws PropertyTimeoutException { in get() argument 322 + ", areaId: 0x" + toHexString(areaId)); in get() 326 propValue.areaId = areaId; in get() 334 public <T> T get(Class clazz, int propertyId, int areaId) throws PropertyTimeoutException { in get() argument 335 return get(clazz, createPropValue(propertyId, areaId)); in get() 401 VehiclePropValueSetter set(int propId, int areaId) { in set() argument 402 return new VehiclePropValueSetter(mHalClient, propId, areaId); in set() 455 public void onPropertySetError(int errorCode, int propId, int areaId) { in onPropertySetError() argument 457 + "area: 0x%x", errorCode, propId, areaId)); in onPropertySetError() 461 service.handlePropertySetError(propId, areaId); in onPropertySetError() [all …]
|
D | PropertyHalService.java | 143 public CarPropertyValue getProperty(int mgrPropId, int areaId) { in getProperty() argument 151 value = mVehicleHal.get(halPropId, areaId); in getProperty()
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarHvacManagerTest.java | 121 for (int areaId : areaIds) { in checkIntMinMax() 122 assertTrue(property.hasArea(areaId)); in checkIntMinMax() 123 int min = property.getMinValue(areaId) == null ? 0 : property.getMinValue(areaId); in checkIntMinMax() 124 int max = property.getMaxValue(areaId) == null ? 0 : property.getMaxValue(areaId); in checkIntMinMax() 146 for (int areaId : areaIds) { in checkFloatMinMax() 147 assertTrue(property.hasArea(areaId)); in checkFloatMinMax() 149 property.getMinValue(areaId) == null ? 0f : property.getMinValue(areaId); in checkFloatMinMax() 151 property.getMaxValue(areaId) == null ? 0f : property.getMinValue(areaId); in checkFloatMinMax()
|
/packages/services/Car/car-lib/src/android/car/hardware/property/ |
D | CarPropertyManager.java | 440 public <E> CarPropertyValue<E> getProperty(@NonNull Class<E> clazz, int propId, int areaId) { in getProperty() argument 443 + ", areaId: 0x" + toHexString(areaId) + ", class: " + clazz); in getProperty() 446 CarPropertyValue<E> propVal = mService.getProperty(propId, areaId); in getProperty() 468 public <E> CarPropertyValue<E> getProperty(int propId, int areaId) { in getProperty() argument 470 CarPropertyValue<E> propVal = mService.getProperty(propId, areaId); in getProperty() 487 public <E> void setProperty(@NonNull Class<E> clazz, int propId, int areaId, @NonNull E val) { in setProperty() argument 490 + ", areaId: 0x" + toHexString(areaId) + ", class: " + clazz + ", val: " + val); in setProperty() 493 mService.setProperty(new CarPropertyValue<>(propId, areaId, val)); in setProperty() 507 public void setBooleanProperty(int prop, int areaId, boolean val) { in setBooleanProperty() argument 508 setProperty(Boolean.class, prop, areaId, val); in setBooleanProperty() [all …]
|
D | CarPropertyEvent.java | 84 public static CarPropertyEvent createErrorEvent(int propertyId, int areaId) { in createErrorEvent() argument 86 CarPropertyValue<Integer> valueWithErrorCode = new CarPropertyValue<>(propertyId, areaId, in createErrorEvent()
|
/packages/services/Car/car-lib/src/android/car/hardware/ |
D | CarPropertyConfig.java | 279 public boolean hasArea(int areaId) { in hasArea() argument 280 return mSupportedAreas.indexOfKey(areaId) >= 0; in hasArea() 289 public T getMinValue(int areaId) { in getMinValue() argument 290 AreaConfig<T> area = mSupportedAreas.get(areaId); in getMinValue() 300 public T getMaxValue(int areaId) { in getMaxValue() argument 301 AreaConfig<T> area = mSupportedAreas.get(areaId); in getMaxValue() 369 int areaId = in.readInt(); in CarPropertyConfig() local 371 mSupportedAreas.put(areaId, area); in CarPropertyConfig() 540 public Builder<T> addArea(int areaId) { 541 return addAreaConfig(areaId, null, null); [all …]
|
D | CarPropertyValue.java | 76 public CarPropertyValue(int propertyId, int areaId, T value) { in CarPropertyValue() argument 77 this(propertyId, areaId, 0, 0, value); in CarPropertyValue() 89 public CarPropertyValue(int propertyId, int areaId, int status, long timestamp, T value) { in CarPropertyValue() argument 91 mAreaId = areaId; in CarPropertyValue()
|
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/test/ |
D | VehiclePropConfigBuilder.java | 58 newArea.areaId = area.areaId; in clone() 98 public VehiclePropConfigBuilder addAreaConfig(int areaId, int minValue, int maxValue) { in addAreaConfig() argument 100 area.areaId = areaId; in addAreaConfig() 108 public VehiclePropConfigBuilder addAreaConfig(int areaId, float minValue, float maxValue) { in addAreaConfig() argument 110 area.areaId = areaId; in addAreaConfig()
|
D | MockedVehicleHal.java | 123 public synchronized void injectError(int errorCode, int propertyId, int areaId) { in injectError() argument 129 callback.onPropertySetError(errorCode, propertyId, areaId); in injectError()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/hvac/ |
D | HvacTestFragment.java | 585 int areaId = prop.getFirstAndOnlyAreaId(); in configureAutoRecircOn() local 590 setBooleanProperty(CarHvacManager.ID_ZONED_HVAC_AUTO_RECIRC_ON, areaId, in configureAutoRecircOn() 596 int areaId = prop.getFirstAndOnlyAreaId(); in configureTempDisplayUnit() local 603 setIntProperty(CarHvacManager.ID_TEMPERATURE_DISPLAY_UNITS, areaId, unit); in configureTempDisplayUnit() 609 int areaId = prop.getFirstAndOnlyAreaId(); in configurePowerOn() local 614 setBooleanProperty(CarHvacManager.ID_ZONED_HVAC_POWER_ON, areaId, mTbPower.isChecked()); in configurePowerOn() 620 int areaId = prop.getFirstAndOnlyAreaId(); in configurePowerAndAcOn() local 625 setBooleanProperty(CarHvacManager.ID_ZONED_HVAC_POWER_ON, areaId, true); in configurePowerAndAcOn() 626 setBooleanProperty(CarHvacManager.ID_ZONED_AC_ON, areaId, true); in configurePowerAndAcOn() 630 private void setBooleanProperty(int propertyId, int areaId, boolean value) { in setBooleanProperty() argument [all …]
|
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/ |
D | VhalJsonReader.java | 73 int areaId = rawEvent.getInt(JSON_FIELD_AREA_ID); in getEvent() local 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() 91 return new CarPropertyValue<>(prop, areaId, CarPropertyValue.STATUS_AVAILABLE, in getEvent() 106 return new CarPropertyValue<>(prop, areaId, CarPropertyValue.STATUS_AVAILABLE, in getEvent()
|
D | E2ePerformanceTest.java | 229 CarPropertyConfig<Float> cfg, int areaId, CountDownLatch counter) { in invokeSetAndGetForHvacFloat() argument 230 float minValue = cfg.getMinValue(areaId); in invokeSetAndGetForHvacFloat() 231 float maxValue = cfg.getMaxValue(areaId); in invokeSetAndGetForHvacFloat() 236 mgr.setFloatProperty(cfg.getPropertyId(), areaId, curValue); in invokeSetAndGetForHvacFloat() local 237 actualValue = mgr.getFloatProperty(cfg.getPropertyId(), areaId); in invokeSetAndGetForHvacFloat()
|
D | Utils.java | 80 int areaId, in readVhalProperty() argument 83 VehiclePropValueBuilder.newBuilder(propertyId).setAreaId(areaId).build(); in readVhalProperty()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/property/ |
D | PropertyTestFragment.java | 112 int areaId = Integer.decode(mAreaId.getSelectedItem().toString()); in onCreateView() 113 CarPropertyValue value = mMgr.getProperty(propId, areaId); in onCreateView() 140 int areaId = Integer.decode(mAreaId.getSelectedItem().toString()); in onCreateView() 146 mMgr.setBooleanProperty(propId, areaId, boolVal); in onCreateView() 150 mMgr.setFloatProperty(propId, areaId, floatVal); in onCreateView() 154 mMgr.setIntProperty(propId, areaId, intVal); in onCreateView() 198 for (int areaId : areaIds) { in onItemSelected() 199 areaString.add("0x" + toHexString(areaId)); in onItemSelected()
|
D | PropertyListAdapter.java | 133 public void onErrorEvent(int propId, int areaId) { in onErrorEvent() argument 135 + ", areaId=0x" + toHexString(areaId)); in onErrorEvent()
|
/packages/apps/Car/Hvac/src/com/android/car/hvac/ |
D | HvacPolicy.java | 40 for(int areaId : config.getAreaIds()) { in HvacPolicy() 41 Integer newValue = (Integer) config.getMaxValue(areaId); in HvacPolicy() 54 for(int areaId : config.getAreaIds()) { in HvacPolicy() 55 Float newValue = (Float) config.getMaxValue(areaId); in HvacPolicy() 59 newValue = (Float) config.getMinValue(areaId); in HvacPolicy()
|
D | HvacController.java | 195 int areaId = val.getAreaId(); 201 handleFanPositionUpdate(areaId, getValue(val)); 204 handleFanSpeedUpdate(areaId, getValue(val)); 210 handleDefrosterUpdate(areaId, getValue(val)); 216 handleSeatWarmerUpdate(areaId, getValue(val));
|
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/ |
D | VehiclePropValueBuilder.java | 48 newValue.areaId = propValue.areaId; in clone() 60 public VehiclePropValueBuilder setAreaId(int areaId) { in setAreaId() argument 61 mPropValue.areaId = areaId; in setAreaId()
|
/packages/services/Car/car-lib/src/com/android/car/internal/ |
D | CarRatedFloatListeners.java | 132 public boolean needUpdateForAreaId(int areaId, long eventTime) { in needUpdateForAreaId() argument 133 long lastUpdateTime = mAreaIdToLastUpdateTime.get(areaId, 0L); in needUpdateForAreaId() 135 mAreaIdToLastUpdateTime.put(areaId, eventTime); in needUpdateForAreaId()
|
/packages/services/Car/car-test-lib/src/android/car/testapi/ |
D | FakeCarPropertyService.java | 173 private PropKey(int propId, int areaId) { in PropKey() argument 175 this.mAreaId = areaId; in PropKey() 178 static PropKey of(int propId, int areaId) { in of() argument 179 return new PropKey(propId, areaId); in of()
|
/packages/apps/Car/Cluster/src/android/car/cluster/sensors/ |
D | Sensor.java | 52 Sensor(String name, int propertyId, int areaId, int expectedPropertyType, in Sensor() argument 56 mAreaId = areaId; in Sensor()
|
D | Sensors.java | 94 private static <T> Sensor<T> registerSensor(String propertyName, int propertyId, int areaId, in registerSensor() argument 96 Sensor<T> sensor = new Sensor<>(propertyName, propertyId, areaId, expectedPropertyType, in registerSensor()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | CarVendorExtensionManagerTest.java | 316 result.areaId = requestedPropValue.areaId; in get()
|