Home
last modified time | relevance | path

Searched refs:propValue (Results 1 – 19 of 19) sorted by relevance

/packages/services/Car/tools/emulator/
Dvhal_emulator.py217 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/service/src/com/android/car/hal/
DHalClient.java96 public void setValue(VehiclePropValue propValue) { in setValue() argument
99 return mVehicle.set(propValue); in setValue()
101 Slogf.e(TAG, getValueErrorMessage("set", propValue), e); in setValue()
107 throw new IllegalArgumentException(getValueErrorMessage("set", propValue)); in setValue()
111 Slogf.e(TAG, getPropertyErrorMessage("set", propValue, status)); in setValue()
113 "Failed to set property: 0x" + Integer.toHexString(propValue.prop) in setValue()
114 + " in areaId: 0x" + Integer.toHexString(propValue.areaId)); in setValue()
118 private String getValueErrorMessage(String action, VehiclePropValue propValue) { in getValueErrorMessage() argument
120 Integer.toHexString(propValue.prop), Integer.toHexString(propValue.areaId)); in getValueErrorMessage()
123 private String getPropertyErrorMessage(String action, VehiclePropValue propValue, int status) { in getPropertyErrorMessage() argument
[all …]
DVehicleHal.java510 VehiclePropValue propValue; in get() local
511 propValue = mHalClient.getValue(requestedPropValue); in get()
514 return (T) propValue.value.int32Values.get(0); in get()
516 return (T) Boolean.valueOf(propValue.value.int32Values.get(0) == 1); in get()
518 return (T) propValue.value.floatValues.get(0); in get()
520 Integer[] intArray = new Integer[propValue.value.int32Values.size()]; in get()
521 return (T) propValue.value.int32Values.toArray(intArray); in get()
523 Float[] floatArray = new Float[propValue.value.floatValues.size()]; in get()
524 return (T) propValue.value.floatValues.toArray(floatArray); in get()
526 return (T) toIntArray(propValue.value.int32Values); in get()
[all …]
DPropertyHalServiceIds.java789 public boolean checkPayload(VehiclePropValue propValue) { in checkPayload() argument
792 if ((propValue.prop & VehiclePropertyType.MASK) == VehiclePropertyType.MIXED) { in checkPayload()
795 if (!checkFormatForAllProperties(propValue)) { in checkPayload()
796 Slog.e(TAG, "Property value" + propValue + "has an invalid data format"); in checkPayload()
799 if (mPropToValidValue.containsKey(propValue.prop)) { in checkPayload()
800 return checkDataEnum(propValue); in checkPayload()
802 if (mPropToValidBitFlag.containsKey(propValue.prop)) { in checkPayload()
803 return checkValidBitFlag(propValue); in checkPayload()
808 private boolean checkValidBitFlag(VehiclePropValue propValue) { in checkValidBitFlag() argument
809 int flagCombination = mPropToValidBitFlag.get(propValue.prop); in checkValidBitFlag()
[all …]
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/
DVehiclePropValueBuilder.java31 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/tests/carservice_unit_test/src/com/android/car/hal/
DVehicleHalTest.java181 VehiclePropValue propValue = new VehiclePropValue(); in testOnPropertyEvent() local
182 propValue.prop = SOME_READ_ON_CHANGE_PROPERTY; in testOnPropertyEvent()
183 propValue.areaId = VehicleHal.NO_AREA; in testOnPropertyEvent()
185 propValues.add(propValue); in testOnPropertyEvent()
191 verify(dispatchList).add(propValue); in testOnPropertyEvent()
245 VehiclePropValue propValue = new VehiclePropValue(); in testGetIfAvailableOrFail() local
246 propValue.prop = SOME_READ_ON_CHANGE_PROPERTY; in testGetIfAvailableOrFail()
247 propValue.areaId = VehicleHal.NO_AREA; in testGetIfAvailableOrFail()
248 when(mHalClient.getValue(any(VehiclePropValue.class))).thenReturn(propValue); in testGetIfAvailableOrFail()
255 assertThat(actual).isEqualTo(propValue); in testGetIfAvailableOrFail()
[all …]
/packages/services/Car/user/car-user-lib/src/android/car/userlib/
DUserHalHelper.java454 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/
DUserHalHelperTest.java473 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/tests/carservice_test/src/com/android/car/
DCarVendorExtensionManagerTest.java299 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/
DUtils.java59 (int status, VehiclePropValue propValue) -> { in readVhalProperty()
60 if (f.apply(status, propValue)) { in readVhalProperty()
61 vpv[0] = propValue; in readVhalProperty()
/packages/services/Car/cpp/powerpolicy/server/src/
DCarPowerPolicyServer.cpp703 VehiclePropValue propValue{ in subscribeToProperty() local
716 vhalService->get(propValue, [&status, &propValue](StatusCode s, const VehiclePropValue& value) { in subscribeToProperty()
718 propValue = value; in subscribeToProperty()
724 processor(propValue); in subscribeToProperty()
741 VehiclePropValue propValue{ in notifyVhalNewPowerPolicy() local
755 auto ret = vhalService->set(propValue); in notifyVhalNewPowerPolicy()
DCarPowerPolicyServer.h96 const android::hardware::automotive::vehicle::V2_0::VehiclePropValue& propValue);
/packages/services/Car/vehicle-hal-support-lib/test/com/android/car/vehiclehal/test/
DMockedVehicleHal.java167 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/
DVehicleHalFragment.java141 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/
DCarPropertyManager.java492 CarPropertyValue propValue = mService.getProperty(propId, area); in isPropertyAvailable() local
493 return (propValue != null) in isPropertyAvailable()
494 && (propValue.getStatus() == CarPropertyValue.STATUS_AVAILABLE); in isPropertyAvailable()
/packages/services/Car/cpp/watchdog/server/src/
DWatchdogProcessService.cpp627 VehiclePropValue propValue{ in reportWatchdogAliveToVhal() local
632 const auto& ret = updateVhal(propValue); in reportWatchdogAliveToVhal()
658 VehiclePropValue propValue{ in reportTerminatedProcessToVhal() local
667 const auto& retUpdate = updateVhal(propValue); in reportTerminatedProcessToVhal()
DWatchdogProcessService.h169 const android::hardware::automotive::vehicle::V2_0::VehiclePropValue& propValue)
/packages/apps/Car/Hvac/src/com/android/car/hvac/
DHvacController.java62 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/
DInputTestFragment.java211 public void onPropertySet(VehiclePropValue propValue) {}