/packages/services/Car/service/src/com/android/car/hal/ |
D | HalPropValueBuilder.java | 75 public HalPropValue build(int prop, int areaId) { in build() argument 76 return build(prop, areaId, /*timestamp=*/0, VehiclePropertyStatus.AVAILABLE); in build() 88 public HalPropValue build(int prop, int areaId, long timestamp, int status) { in build() argument 90 return new AidlHalPropValue(prop, areaId, timestamp, status); in build() 92 return new HidlHalPropValue(prop, areaId, timestamp, status); in build() 102 public HalPropValue build(int prop, int areaId, int value) { in build() argument 103 return build(prop, areaId, /*timestamp=*/0, VehiclePropertyStatus.AVAILABLE, value); in build() 116 public HalPropValue build(int prop, int areaId, long timestamp, int status, int value) { in build() argument 118 return new AidlHalPropValue(prop, areaId, timestamp, status, value); in build() 120 return new HidlHalPropValue(prop, areaId, timestamp, status, value); in build() [all …]
|
/packages/services/Car/libs/vehicle-hal-support-lib/src/com/android/car/hal/test/ |
D | AidlVehiclePropConfigBuilder.java | 79 public AidlVehiclePropConfigBuilder setAccessPerAreaId(int access, int areaId) { in setAccessPerAreaId() argument 81 if (areaConfig.areaId == areaId) { in setAccessPerAreaId() 126 public AidlVehiclePropConfigBuilder addAreaConfig(int areaId) { in addAreaConfig() argument 128 area.areaId = areaId; in addAreaConfig() 135 public AidlVehiclePropConfigBuilder addAreaConfig(int areaId, int minValue, int maxValue) { in addAreaConfig() argument 137 area.areaId = areaId; in addAreaConfig() 146 public AidlVehiclePropConfigBuilder addAreaConfig(int areaId, float minValue, float maxValue) { in addAreaConfig() argument 148 area.areaId = areaId; in addAreaConfig() 157 public AidlVehiclePropConfigBuilder addAreaConfig(int areaId, int access) { in addAreaConfig() argument 159 area.areaId = areaId; in addAreaConfig() [all …]
|
D | HidlVehiclePropConfigBuilder.java | 58 newArea.areaId = area.areaId; in clone() 98 public HidlVehiclePropConfigBuilder addAreaConfig(int areaId) { in addAreaConfig() argument 100 area.areaId = areaId; in addAreaConfig() 106 public HidlVehiclePropConfigBuilder addAreaConfig(int areaId, int minValue, int maxValue) { in addAreaConfig() argument 108 area.areaId = areaId; in addAreaConfig() 116 public HidlVehiclePropConfigBuilder addAreaConfig(int areaId, float minValue, float maxValue) { in addAreaConfig() argument 118 area.areaId = areaId; in addAreaConfig()
|
D | HidlVehiclePropValueBuilder.java | 48 newValue.areaId = propValue.areaId; in clone() 60 public HidlVehiclePropValueBuilder setAreaId(int areaId) { in setAreaId() argument 61 mPropValue.areaId = areaId; in setAreaId()
|
/packages/services/Car/service/src/com/android/car/hal/fakevhal/ |
D | FakeVehicleStub.java | 328 private int getAccess(int propId, int areaId) { in getAccess() argument 332 if (halAreaConfigs[i].getAreaId() != areaId) { in getAccess() 358 int areaId = isPropertyGlobal(propId) ? AREA_ID_GLOBAL : requestedPropValue.getAreaId(); in get() local 359 checkAreaIdSupported(propId, areaId); in get() 363 checkPropAvailable(propId, areaId); in get() 366 int access = getAccess(propId, areaId); in get() 380 HalPropValue halPropValue = mPropValuesByPropIdAreaId.get(propId, areaId); in get() 387 "propId: " + propId + ", areaId: " + areaId + " has no property value."); in get() 405 int areaId = isPropertyGlobal(propId) ? AREA_ID_GLOBAL : propValue.getAreaId(); in set() local 406 checkAreaIdSupported(propId, areaId); in set() [all …]
|
/packages/services/Car/car-lib/src/com/android/car/internal/property/ |
D | CarPropertyEventController.java | 60 public float getUpdateRateHz(int propertyId, int areaId) { in getUpdateRateHz() argument 62 CarPropertyEventTracker tracker = mPropIdToAreaIdToCpeTracker.get(propertyId, areaId); in getUpdateRateHz() 75 for (int areaId : areaIds) { in addContinuousProperty() 80 VehiclePropertyIds.toString(propertyId), areaId, updateRateHz, in addContinuousProperty() 83 mPropIdToAreaIdToCpeTracker.put(propertyId, areaId, in addContinuousProperty() 94 for (int areaId : areaIds) { in addOnChangeProperty() 98 + "areaId: %d", VehiclePropertyIds.toString(propertyId), areaId)); in addOnChangeProperty() 100 mPropIdToAreaIdToCpeTracker.put(propertyId, areaId, in addOnChangeProperty() 122 for (int areaId : mPropIdToAreaIdToCpeTracker.getSecondKeysForFirstKey(propertyId)) { in remove() 123 mPropIdToAreaIdToCpeTracker.delete(propertyId, areaId); in remove() [all …]
|
D | SubscriptionManager.java | 286 for (int areaId : option.areaIds) { in stageNewOptions() 287 mStagedAffectedPropIdAreaIds.add(new int[]{propertyId, areaId}); in stageNewOptions() 288 if (mStagedRateInfoByClientByPropIdAreaId.get(propertyId, areaId) == null) { in stageNewOptions() 289 mStagedRateInfoByClientByPropIdAreaId.put(propertyId, areaId, in stageNewOptions() 292 mStagedRateInfoByClientByPropIdAreaId.get(propertyId, areaId).add( in stageNewOptions() 317 int areaId = areaIds.valueAt(j); in stageUnregister() local 318 mStagedAffectedPropIdAreaIds.add(new int[]{propertyId, areaId}); in stageUnregister() 320 mStagedRateInfoByClientByPropIdAreaId.get(propertyId, areaId); in stageUnregister() 323 + ", area ID: " + areaId + " was not registered, do nothing"); in stageUnregister() 328 mStagedRateInfoByClientByPropIdAreaId.remove(propertyId, areaId); in stageUnregister() [all …]
|
D | AsyncPropertyServiceRequest.java | 67 int areaId = setPropertyRequest.getAreaId(); in newSetAsyncRequest() local 69 setPropertyRequest.getRequestId(), propertyId, areaId, in newSetAsyncRequest() 70 new CarPropertyValue(propertyId, areaId, setPropertyRequest.getValue())); in newSetAsyncRequest() 79 public AsyncPropertyServiceRequest(int requestId, int propertyId, int areaId) { in AsyncPropertyServiceRequest() argument 80 this(requestId, propertyId, areaId, /* carPropertyValue= */ null); in AsyncPropertyServiceRequest() 86 public AsyncPropertyServiceRequest(int requestId, int propertyId, int areaId, in AsyncPropertyServiceRequest() argument 90 mAreaId = areaId; in AsyncPropertyServiceRequest() 185 int areaId = in.readInt(); in AsyncPropertyServiceRequest() local 191 this.mAreaId = areaId; in AsyncPropertyServiceRequest()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/hvac/ |
D | HvacController.java | 217 for (int areaId : supportedAreaIds) { in setHvacProperty() 218 mCarPropertyManager.setIntProperty(propertyId, areaId, val); in setHvacProperty() 241 for (int areaId : supportedAreaIds) { in setHvacProperty() 242 mCarPropertyManager.setFloatProperty(propertyId, areaId, val); in setHvacProperty() 265 for (int areaId : supportedAreaIds) { in setHvacProperty() 266 mCarPropertyManager.setBooleanProperty(propertyId, areaId, val); in setHvacProperty() 307 for (Integer areaId : supportedAreaIds) { in registerHvacViews() 308 addHvacViewToMap(propId.intValue(), areaId.intValue(), hvacView); in registerHvacViews() 315 for (Integer areaId : supportedAreaIds) { in registerHvacViews() 316 CarPropertyValue initValueOrNull = getPropertyValueOrNull(propId, areaId); in registerHvacViews() [all …]
|
/packages/services/Car/car-lib/src/android/car/hardware/property/ |
D | CarPropertyManager.java | 188 void onErrorEvent(int propertyId, int areaId); in onErrorEvent() argument 210 default void onErrorEvent(int propertyId, int areaId, in onErrorEvent() argument 214 + " areaId: 0x" + toHexString(areaId) + " ErrorCode: " + errorCode); in onErrorEvent() 216 onErrorEvent(propertyId, areaId); in onErrorEvent() 334 private GetPropertyRequest(int requestId, int propertyId, int areaId) { in GetPropertyRequest() argument 337 mAreaId = areaId; in GetPropertyRequest() 495 private SetPropertyRequest(int requestId, int propertyId, int areaId, T value) { in SetPropertyRequest() argument 498 mAreaId = areaId; in SetPropertyRequest() 587 PropertyAsyncError(int requestId, int propertyId, int areaId, in PropertyAsyncError() argument 591 mAreaId = areaId; in PropertyAsyncError() [all …]
|
D | CarInternalErrorException.java | 33 CarInternalErrorException(int propertyId, int areaId) { in CarInternalErrorException() argument 34 this(propertyId, areaId, VENDOR_ERROR_CODE_SUCCESS); in CarInternalErrorException() 37 CarInternalErrorException(int propertyId, int areaId, int vendorErrorCode) { in CarInternalErrorException() argument 39 + toHexString(areaId) + " - raised an internal error in cars with " in CarInternalErrorException()
|
D | PropertyNotAvailableException.java | 36 PropertyNotAvailableException(int propertyId, int areaId, int vendorErrorCode) { in PropertyNotAvailableException() argument 38 + toHexString(areaId) in PropertyNotAvailableException() 43 PropertyNotAvailableException(int propertyId, int areaId, int detailedErrorCode, in PropertyNotAvailableException() argument 46 + toHexString(areaId) in PropertyNotAvailableException()
|
D | AreaIdConfig.java | 50 int areaId, @Nullable T minValue, @Nullable T maxValue, List<T> supportedEnumValues, in AreaIdConfig() argument 54 mAreaId = areaId; in AreaIdConfig() 217 public Builder(int areaId) { 219 mAreaId = areaId; 223 public Builder(@CarPropertyConfig.VehiclePropertyAccessType int access, int areaId) { 225 mAreaId = areaId;
|
/packages/services/Car/service/src/com/android/car/hal/property/ |
D | HalPropertyDebugUtils.java | 100 public static String toAreaIdString(int propertyId, int areaId) { in toAreaIdString() argument 103 if (areaId == 0) { in toAreaIdString() 106 return "INVALID_GLOBAL_AREA_ID(0x" + toHexString(areaId) + ")"; in toAreaIdString() 109 return convertAreaIdToDebugString(VehicleAreaDoor.class, areaId); in toAreaIdString() 112 if (areaId == VehicleAreaSeat.UNKNOWN) { in toAreaIdString() 113 return toName(VehicleAreaSeat.class, areaId); in toAreaIdString() 115 return convertAreaIdToDebugString(VehicleAreaSeat.class, areaId); in toAreaIdString() 118 return convertAreaIdToDebugString(VehicleAreaMirror.class, areaId); in toAreaIdString() 121 if (areaId == VehicleAreaWheel.UNKNOWN) { in toAreaIdString() 122 return toName(VehicleAreaWheel.class, areaId); in toAreaIdString() [all …]
|
/packages/services/Car/service/src/com/android/car/ |
D | CarPropertyService.java | 302 int areaId = areaIdToClient.keyAt(j); in dump() local 305 + toHexString(areaId)); in dump() 563 for (int areaId : areaIds) { in getAndDispatchPropertyInitValue() 566 carPropertyValue = getProperty(propertyId, areaId); in getAndDispatchPropertyInitValue() 570 VehiclePropertyIds.toString(propertyId), Integer.toHexString(areaId), in getAndDispatchPropertyInitValue() 578 carPropertyValue = new CarPropertyValue<>(propertyId, areaId, in getAndDispatchPropertyInitValue() 581 carPropertyValue = new CarPropertyValue<>(propertyId, areaId, in getAndDispatchPropertyInitValue() 588 VehiclePropertyIds.toString(propertyId), Integer.toHexString(areaId), in getAndDispatchPropertyInitValue() 782 public CarPropertyValue getProperty(int propertyId, int areaId) in getProperty() argument 784 validateGetParameters(propertyId, areaId); in getProperty() [all …]
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarHvacManagerTest.java | 133 for (int areaId : areaIds) { in checkIntMinMax() 134 assertThat(property.hasArea(areaId)).isTrue(); in checkIntMinMax() 135 int min = property.getMinValue(areaId) == null ? 0 : property.getMinValue(areaId); in checkIntMinMax() 136 int max = property.getMaxValue(areaId) == null ? 0 : property.getMaxValue(areaId); in checkIntMinMax() 158 for (int areaId : areaIds) { in checkFloatMinMax() 159 assertThat(property.hasArea(areaId)).isTrue(); in checkFloatMinMax() 161 property.getMinValue(areaId) == null ? 0f : property.getMinValue(areaId); in checkFloatMinMax() 163 property.getMaxValue(areaId) == null ? 0f : property.getMinValue(areaId); in checkFloatMinMax()
|
/packages/services/Car/car-lib/src/android/car/hardware/ |
D | CarPropertyConfig.java | 260 public AreaIdConfig<T> getAreaIdConfig(int areaId) { in getAreaIdConfig() argument 261 if (!mAreaIdToAreaIdConfig.contains(areaId)) { in getAreaIdConfig() 262 throw new IllegalArgumentException("Area ID: " + Integer.toHexString(areaId) in getAreaIdConfig() 266 return mAreaIdToAreaIdConfig.get(areaId); in getAreaIdConfig() 342 public boolean hasArea(int areaId) { in hasArea() argument 343 return mAreaIdToAreaIdConfig.indexOfKey(areaId) >= 0; in hasArea() 354 public T getMinValue(int areaId) { in getMinValue() argument 355 AreaIdConfig<T> areaIdConfig = mAreaIdToAreaIdConfig.get(areaId); in getMinValue() 367 public T getMaxValue(int areaId) { in getMaxValue() argument 368 AreaIdConfig<T> areaIdConfig = mAreaIdToAreaIdConfig.get(areaId); in getMaxValue() [all …]
|
D | CarPropertyValue.java | 104 public CarPropertyValue(int propertyId, int areaId, T value) { in CarPropertyValue() argument 105 this(propertyId, areaId, /* timestampNanos= */ 0, value); in CarPropertyValue() 132 public CarPropertyValue(int propertyId, int areaId, long timestampNanos, T value) { in CarPropertyValue() argument 133 this(propertyId, areaId, CarPropertyValue.STATUS_AVAILABLE, timestampNanos, value); in CarPropertyValue() 142 public CarPropertyValue(int propertyId, int areaId, int status, long timestampNanos, T value) { in CarPropertyValue() argument 144 mAreaId = areaId; in CarPropertyValue()
|
/packages/apps/Car/VoiceControl/src/com/android/car/voicecontrol/actuators/ |
D | CarActuator.java | 108 for (int areaId : config.getAreaIds()) { in changeAC() 109 if ((areaId & zone.mSeatAreasBitmap) == 0) { in changeAC() 114 .getBooleanProperty(VehiclePropertyIds.HVAC_AC_ON, areaId); in changeAC() 116 areasToChange.add(areaId); in changeAC() 125 for (int areaId : areasToChange) { in changeAC() 126 mCarPropertyManager.setBooleanProperty(VehiclePropertyIds.HVAC_AC_ON, areaId, turnOn); in changeAC() 157 for (int areaId : config.getAreaIds()) { in informTirePressure() 159 VehiclePropertyIds.TIRE_PRESSURE, areaId); in informTirePressure() 161 if ((areaId & Zone.FRONT.mWheelAreasBitmap) != 0) { in informTirePressure()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/property/ |
D | PropertyTestFragment.java | 202 int areaId = Integer.decode(mAreaId.getSelectedItem().toString()); in onCreateView() 203 CarPropertyValue value = mMgr.getProperty(propId, areaId); in onCreateView() 217 int areaId = Integer.decode(mAreaId.getSelectedItem().toString()); in onCreateView() 219 areaId); in onCreateView() 235 int areaId = Integer.decode(mAreaId.getSelectedItem().toString()); in onCreateView() 241 mMgr.setBooleanProperty(propId, areaId, boolVal); in onCreateView() 245 mMgr.setFloatProperty(propId, areaId, floatVal); in onCreateView() 249 mMgr.setIntProperty(propId, areaId, intVal); in onCreateView() 269 int areaId = Integer.decode(mAreaId.getSelectedItem().toString()); in onCreateView() 275 callSetPropertiesAsync(propId, areaId, boolVal); in onCreateView() [all …]
|
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/ |
D | VhalJsonReader.java | 71 int areaId = rawEvent.getInt(JSON_FIELD_AREA_ID); in getEvent() local 76 return new CarPropertyValue<>(prop, areaId, CarPropertyValue.STATUS_AVAILABLE, in getEvent() 79 return new CarPropertyValue<>(prop, areaId, CarPropertyValue.STATUS_AVAILABLE, in getEvent() 82 return new CarPropertyValue<>(prop, areaId, CarPropertyValue.STATUS_AVAILABLE, in getEvent() 85 return new CarPropertyValue<>(prop, areaId, in getEvent() 89 return new CarPropertyValue<>(prop, areaId, CarPropertyValue.STATUS_AVAILABLE, in getEvent() 105 return new CarPropertyValue<>(prop, areaId, CarPropertyValue.STATUS_AVAILABLE, in getEvent()
|
/packages/services/Car/cpp/vhal/client/src/ |
D | AidlVhalClient.cpp | 151 std::unique_ptr<IHalPropValue> AidlVhalClient::createHalPropValue(int32_t propId, int32_t areaId) { in createHalPropValue() argument 152 return std::make_unique<AidlHalPropValue>(propId, areaId); in createHalPropValue() 296 int32_t areaId = requestValue.getAreaId(); in getValue() local 314 propId, areaId))); in getValue() 326 propId, areaId))); in getValue() 335 int32_t areaId = requestValue.getAreaId(); in setValue() local 352 propId, areaId))); in setValue() 363 propId, areaId))); in setValue() 375 .areaId = requestProp.getAreaId(), in addGetValueRequest() 388 .areaId = requestProp.getAreaId(), in addSetValueRequest() [all …]
|
/packages/services/Car/cpp/vhal/client/test/ |
D | AidlVhalClientTest.cpp | 306 .areaId = TEST_AREA_ID, in TEST_F() 316 .areaId = TEST_AREA_ID, in TEST_F() 362 .areaId = TEST_AREA_ID, in TEST_F() 372 .areaId = TEST_AREA_ID, in TEST_F() 397 .areaId = TEST_AREA_ID, in TEST_F() 407 .areaId = TEST_AREA_ID, in TEST_F() 428 .areaId = TEST_AREA_ID, in TEST_F() 439 .areaId = TEST_AREA_ID, in TEST_F() 481 .areaId = TEST_AREA_ID, in TEST_F() 504 .areaId = TEST_AREA_ID, in TEST_F() [all …]
|
D | HidlVhalClientTest.cpp | 109 void triggerSetErrorEvent(StatusCode status, int32_t propId, int32_t areaId) { in triggerSetErrorEvent() argument 110 mSubscribedCallback->onPropertySetError(status, propId, areaId); in triggerSetErrorEvent() 152 .areaId = TEST_AREA_ID, 192 ASSERT_EQ(getVhal()->getRequestPropValue().areaId, TEST_AREA_ID); in TEST_F() 213 .areaId = TEST_AREA_ID, in TEST_F() 222 ASSERT_EQ(getVhal()->getRequestPropValue().areaId, TEST_AREA_ID); in TEST_F() 264 ASSERT_EQ(getVhal()->getRequestPropValue().areaId, TEST_AREA_ID); in TEST_F() 326 .areaId = TEST_AREA_ID, in TEST_F() 331 .areaId = TEST_AREA_ID_2, in TEST_F() 380 .areaId = TEST_AREA_ID, in TEST_F() [all …]
|
/packages/services/Car/libs/car-test-lib/src/android/car/testapi/ |
D | FakeCarPropertyService.java | 82 for (int areaId : subscriptions.get(i).areaIds) { in registerListener() 83 Set<ListenerInfo> propListeners = mListenersByPropIdAreaId.get(propId, areaId); in registerListener() 86 mListenersByPropIdAreaId.put(propId, areaId, propListeners); in registerListener() 99 for (int areaId : mListenersByPropIdAreaId.getSecondKeysForFirstKey(propId)) { in unregisterListener() 100 Set<ListenerInfo> propListeners = mListenersByPropIdAreaId.get(propId, areaId); in unregisterListener() 102 mListenersByPropIdAreaId.remove(propId, areaId); in unregisterListener() 267 private PropKey(int propId, int areaId) { in PropKey() argument 269 this.mAreaId = areaId; in PropKey() 272 static PropKey of(int propId, int areaId) { in of() argument 273 return new PropKey(propId, areaId); in of()
|