/packages/services/Car/service/src/com/android/car/hal/ |
D | HalClient.java | 97 public void setValue(VehiclePropValue propValue) { in setValue() argument 100 return mVehicle.set(propValue); in setValue() 102 Log.e(TAG, getValueErrorMessage("set", propValue), e); in setValue() 108 throw new IllegalArgumentException(getValueErrorMessage("set", propValue)); in setValue() 112 Log.e(TAG, getPropertyErrorMessage("set", propValue, status)); in setValue() 114 "Failed to set property: 0x" + Integer.toHexString(propValue.prop) in setValue() 115 + " in areaId: 0x" + Integer.toHexString(propValue.areaId)); in setValue() 119 private String getValueErrorMessage(String action, VehiclePropValue propValue) { in getValueErrorMessage() argument 121 Integer.toHexString(propValue.prop), Integer.toHexString(propValue.areaId)); in getValueErrorMessage() 124 private String getPropertyErrorMessage(String action, VehiclePropValue propValue, int status) { in getPropertyErrorMessage() argument [all …]
|
D | VehicleHal.java | 417 VehiclePropValue propValue = new VehiclePropValue(); in get() local 418 propValue.prop = propertyId; in get() 419 propValue.areaId = areaId; in get() 420 return mHalClient.getValue(propValue); in get() 433 VehiclePropValue propValue; in get() local 434 propValue = mHalClient.getValue(requestedPropValue); in get() 437 return (T) propValue.value.int32Values.get(0); in get() 439 return (T) Boolean.valueOf(propValue.value.int32Values.get(0) == 1); in get() 441 return (T) propValue.value.floatValues.get(0); in get() 443 Integer[] intArray = new Integer[propValue.value.int32Values.size()]; in get() [all …]
|
D | PropertyHalServiceIds.java | 761 public boolean checkPayload(VehiclePropValue propValue) { in checkPayload() argument 764 if ((propValue.prop & VehiclePropertyType.MASK) == VehiclePropertyType.MIXED) { in checkPayload() 767 if (!checkFormatForAllProperties(propValue)) { in checkPayload() 768 Log.e(TAG, "Property value" + propValue + "has an invalid data format"); in checkPayload() 771 if (mPropToValidValue.containsKey(propValue.prop)) { in checkPayload() 772 return checkDataEnum(propValue); in checkPayload() 774 if (mPropToValidBitFlag.containsKey(propValue.prop)) { in checkPayload() 775 return checkValidBitFlag(propValue); in checkPayload() 780 private boolean checkValidBitFlag(VehiclePropValue propValue) { in checkValidBitFlag() argument 781 int flagCombination = mPropToValidBitFlag.get(propValue.prop); in checkValidBitFlag() [all …]
|
/packages/services/Car/tools/emulator/ |
D | vhal_emulator.py | 217 propValue = cmd.value.add() 218 propValue.prop = prop 220 propValue.area_id = area_id 221 propValue.status = status; 228 propValue.value_type = valType 230 propValue.string_value = value 232 propValue.bytes_value = value 234 propValue.int32_values.append(value) 236 propValue.int64_values.append(value) 238 propValue.float_values.append(value) [all …]
|
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/ |
D | VehiclePropValueBuilder.java | 31 public static VehiclePropValueBuilder newBuilder(VehiclePropValue propValue) { in newBuilder() argument 32 return new VehiclePropValueBuilder(propValue); in newBuilder() 40 private VehiclePropValueBuilder(VehiclePropValue propValue) { in VehiclePropValueBuilder() argument 41 mPropValue = clone(propValue); in VehiclePropValueBuilder() 44 private VehiclePropValue clone(VehiclePropValue propValue) { in clone() argument 47 newValue.prop = propValue.prop; in clone() 48 newValue.areaId = propValue.areaId; in clone() 49 newValue.timestamp = propValue.timestamp; in clone() 50 newValue.value.stringValue = propValue.value.stringValue; in clone() 51 newValue.value.int32Values.addAll(propValue.value.int32Values); in clone() [all …]
|
/packages/services/Car/user/car-user-lib/src/android/car/userlib/ |
D | UserHalHelper.java | 454 VehiclePropValue propValue = createPropRequest(USER_IDENTIFICATION_ASSOCIATION_PROPERTY, in toVehiclePropValue() local 456 addUserInfo(propValue, request.userInfo); in toVehiclePropValue() 457 propValue.value.int32Values.add(request.numberAssociationTypes); in toVehiclePropValue() 463 propValue.value.int32Values.add(type); in toVehiclePropValue() 466 return propValue; in toVehiclePropValue() 485 VehiclePropValue propValue = createPropRequest(USER_IDENTIFICATION_ASSOCIATION_PROPERTY, in toVehiclePropValue() local 487 addUserInfo(propValue, request.userInfo); in toVehiclePropValue() 488 propValue.value.int32Values.add(request.numberAssociations); in toVehiclePropValue() 494 propValue.value.int32Values.add(association.type); in toVehiclePropValue() 497 propValue.value.int32Values.add(association.value); in toVehiclePropValue() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/userlib/ |
D | UserHalHelperTest.java | 473 VehiclePropValue propValue = UserHalHelper.toVehiclePropValue(request); in testUserIdentificationGetRequestToVehiclePropValue_ok() local 474 assertWithMessage("wrong prop on %s", propValue).that(propValue.prop) in testUserIdentificationGetRequestToVehiclePropValue_ok() 476 assertWithMessage("wrong int32values on %s", propValue).that(propValue.value.int32Values) in testUserIdentificationGetRequestToVehiclePropValue_ok() 909 VehiclePropValue propValue = UserHalHelper.toVehiclePropValue(request); in testUserIdentificationSetRequestToVehiclePropValue_ok() local 910 assertWithMessage("wrong prop on %s", propValue).that(propValue.prop) in testUserIdentificationSetRequestToVehiclePropValue_ok() 912 assertWithMessage("wrong int32values on %s", propValue).that(propValue.value.int32Values) in testUserIdentificationSetRequestToVehiclePropValue_ok() 962 VehiclePropValue propValue = UserHalHelper.toVehiclePropValue(request); in testRemoveUserRequestToVehiclePropValue_ok() local 964 assertWithMessage("wrong prop on %s", propValue).that(propValue.prop) in testRemoveUserRequestToVehiclePropValue_ok() 966 assertWithMessage("wrong int32values on %s", propValue).that(propValue.value.int32Values) in testRemoveUserRequestToVehiclePropValue_ok() 1081 VehiclePropValue propValue = UserHalHelper.toVehiclePropValue(request); in testCreateUserRequestToVehiclePropValue_ok() local [all …]
|
/packages/services/Car/surround_view/service-impl/ |
D | VhalHandler.cpp | 103 const VehiclePropValue& propValue) { in pollProperties() argument 105 propValueResult = propValue; in pollProperties() 181 VehiclePropValue propValue; in setPropertiesToRead() local 183 propValue.areaId = property & 0xFFFFFFFF; in setPropertiesToRead() 184 propValue.prop = (property >> 32) & 0xFFFFFFFF; in setPropertiesToRead() 185 vhalPropValues.push_back(propValue); in setPropertiesToRead()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | CarVendorExtensionManagerTest.java | 299 public synchronized int set(VehiclePropValue propValue) { in set() argument 300 if (propValue.prop == CUSTOM_BYTES_PROP_ID_1) { in set() 301 mBytes = toByteArray(propValue.value.bytes); in set() 304 mValues.put(propValue.prop, propValue); in set()
|
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/ |
D | Utils.java | 59 (int status, VehiclePropValue propValue) -> { in readVhalProperty() 60 if (f.apply(status, propValue)) { in readVhalProperty() 61 vpv[0] = propValue; in readVhalProperty()
|
/packages/services/Car/vehicle-hal-support-lib/test/com/android/car/vehiclehal/test/ |
D | MockedVehicleHal.java | 167 public synchronized int set(VehiclePropValue propValue) { in set() argument 168 VehicleHalPropertyHandler handler = mPropertyHandlerMap.get(propValue.prop); in set() 172 handler.onPropertySet(propValue); in set()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/vhal/ |
D | VehicleHalFragment.java | 141 vehicle.get(request, (status, propValue) -> { in getValue() 143 result[0] = propValue.value.toString(); in getValue()
|
/packages/services/Car/car-lib/src/android/car/hardware/property/ |
D | CarPropertyManager.java | 487 CarPropertyValue propValue = mService.getProperty(propId, area); in isPropertyAvailable() local 488 return (propValue != null) in isPropertyAvailable() 489 && (propValue.getStatus() == CarPropertyValue.STATUS_AVAILABLE); in isPropertyAvailable()
|
/packages/apps/Car/Hvac/src/com/android/car/hvac/ |
D | HvacController.java | 62 public void onPassengerTemperatureChange(CarPropertyValue propValue) { in onPassengerTemperatureChange() argument 65 public void onDriverTemperatureChange(CarPropertyValue propValue) { in onDriverTemperatureChange() argument
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/input/ |
D | InputTestFragment.java | 211 public void onPropertySet(VehiclePropValue propValue) {}
|