Loading automotive/vehicle/2.0/default/impl/vhal_v2_0/DefaultConfig.h +7 −7 Original line number Diff line number Diff line Loading @@ -87,23 +87,23 @@ const int32_t kGenerateFakeDataControllingProperty = /** * This property is used for test purpose to set properties' value from vehicle. * For example: Mocking hard button press triggering a HVAC fan speed change. * Android set kSetPropertyFromVehcileForTest with an array of integer {HVAC_FAN_SPEED, value of * Android set kSetPropertyFromVehicleForTest with an array of integer {HVAC_FAN_SPEED, value of * fan speed} and a long value indicates the timestamp of the events . * It only works with integer type properties. */ const int32_t kSetIntPropertyFromVehcileForTest = const int32_t kSetIntPropertyFromVehicleForTest = 0x1112 | VehiclePropertyGroup::VENDOR | VehicleArea::GLOBAL | VehiclePropertyType::MIXED; /** * This property is used for test purpose to set properties' value from vehicle. * It only works with float type properties. */ const int32_t kSetFloatPropertyFromVehcileForTest = const int32_t kSetFloatPropertyFromVehicleForTest = 0x1113 | VehiclePropertyGroup::VENDOR | VehicleArea::GLOBAL | VehiclePropertyType::MIXED; /** * This property is used for test purpose to set properties' value from vehicle. * It only works with boolean type properties. */ const int32_t kSetBooleanPropertyFromVehcileForTest = const int32_t kSetBooleanPropertyFromVehicleForTest = 0x1114 | VehiclePropertyGroup::VENDOR | VehicleArea::GLOBAL | VehiclePropertyType::MIXED; /** Loading Loading @@ -695,7 +695,7 @@ const ConfigDeclaration kVehicleProperties[]{ { .config = { .prop = kSetIntPropertyFromVehcileForTest, .prop = kSetIntPropertyFromVehicleForTest, .access = VehiclePropertyAccess::WRITE, .changeMode = VehiclePropertyChangeMode::ON_CHANGE, .configArray = {0, 0, 0, 2, 1, 0, 0, 0, 0}, Loading @@ -705,7 +705,7 @@ const ConfigDeclaration kVehicleProperties[]{ { .config = { .prop = kSetFloatPropertyFromVehcileForTest, .prop = kSetFloatPropertyFromVehicleForTest, .access = VehiclePropertyAccess::WRITE, .changeMode = VehiclePropertyChangeMode::ON_CHANGE, .configArray = {0, 0, 1, 0, 1, 0, 1, 0, 0}, Loading @@ -715,7 +715,7 @@ const ConfigDeclaration kVehicleProperties[]{ { .config = { .prop = kSetBooleanPropertyFromVehcileForTest, .prop = kSetBooleanPropertyFromVehicleForTest, .access = VehiclePropertyAccess::WRITE, .changeMode = VehiclePropertyChangeMode::ON_CHANGE, .configArray = {0, 1, 1, 0, 1, 0, 0, 0, 0}, Loading automotive/vehicle/2.0/default/impl/vhal_v2_0/EmulatedVehicleConnector.cpp +4 −4 Original line number Diff line number Diff line Loading @@ -202,8 +202,8 @@ StatusCode EmulatedVehicleServer::onSetProperty(const VehiclePropValue& value, b case kGenerateFakeDataControllingProperty: return handleGenerateFakeDataRequest(value); // set the value from vehcile side, used in end to end test. case kSetIntPropertyFromVehcileForTest: { // set the value from vehicle side, used in end to end test. case kSetIntPropertyFromVehicleForTest: { auto updatedPropValue = createVehiclePropValue(VehiclePropertyType::INT32, 1); updatedPropValue->prop = value.value.int32Values[0]; updatedPropValue->value.int32Values[0] = value.value.int32Values[1]; Loading @@ -212,7 +212,7 @@ StatusCode EmulatedVehicleServer::onSetProperty(const VehiclePropValue& value, b onPropertyValueFromCar(*updatedPropValue, updateStatus); return StatusCode::OK; } case kSetFloatPropertyFromVehcileForTest: { case kSetFloatPropertyFromVehicleForTest: { auto updatedPropValue = createVehiclePropValue(VehiclePropertyType::FLOAT, 1); updatedPropValue->prop = value.value.int32Values[0]; updatedPropValue->value.floatValues[0] = value.value.floatValues[0]; Loading @@ -221,7 +221,7 @@ StatusCode EmulatedVehicleServer::onSetProperty(const VehiclePropValue& value, b onPropertyValueFromCar(*updatedPropValue, updateStatus); return StatusCode::OK; } case kSetBooleanPropertyFromVehcileForTest: { case kSetBooleanPropertyFromVehicleForTest: { auto updatedPropValue = createVehiclePropValue(VehiclePropertyType::BOOLEAN, 1); updatedPropValue->prop = value.value.int32Values[1]; updatedPropValue->value.int32Values[0] = value.value.int32Values[0]; Loading Loading
automotive/vehicle/2.0/default/impl/vhal_v2_0/DefaultConfig.h +7 −7 Original line number Diff line number Diff line Loading @@ -87,23 +87,23 @@ const int32_t kGenerateFakeDataControllingProperty = /** * This property is used for test purpose to set properties' value from vehicle. * For example: Mocking hard button press triggering a HVAC fan speed change. * Android set kSetPropertyFromVehcileForTest with an array of integer {HVAC_FAN_SPEED, value of * Android set kSetPropertyFromVehicleForTest with an array of integer {HVAC_FAN_SPEED, value of * fan speed} and a long value indicates the timestamp of the events . * It only works with integer type properties. */ const int32_t kSetIntPropertyFromVehcileForTest = const int32_t kSetIntPropertyFromVehicleForTest = 0x1112 | VehiclePropertyGroup::VENDOR | VehicleArea::GLOBAL | VehiclePropertyType::MIXED; /** * This property is used for test purpose to set properties' value from vehicle. * It only works with float type properties. */ const int32_t kSetFloatPropertyFromVehcileForTest = const int32_t kSetFloatPropertyFromVehicleForTest = 0x1113 | VehiclePropertyGroup::VENDOR | VehicleArea::GLOBAL | VehiclePropertyType::MIXED; /** * This property is used for test purpose to set properties' value from vehicle. * It only works with boolean type properties. */ const int32_t kSetBooleanPropertyFromVehcileForTest = const int32_t kSetBooleanPropertyFromVehicleForTest = 0x1114 | VehiclePropertyGroup::VENDOR | VehicleArea::GLOBAL | VehiclePropertyType::MIXED; /** Loading Loading @@ -695,7 +695,7 @@ const ConfigDeclaration kVehicleProperties[]{ { .config = { .prop = kSetIntPropertyFromVehcileForTest, .prop = kSetIntPropertyFromVehicleForTest, .access = VehiclePropertyAccess::WRITE, .changeMode = VehiclePropertyChangeMode::ON_CHANGE, .configArray = {0, 0, 0, 2, 1, 0, 0, 0, 0}, Loading @@ -705,7 +705,7 @@ const ConfigDeclaration kVehicleProperties[]{ { .config = { .prop = kSetFloatPropertyFromVehcileForTest, .prop = kSetFloatPropertyFromVehicleForTest, .access = VehiclePropertyAccess::WRITE, .changeMode = VehiclePropertyChangeMode::ON_CHANGE, .configArray = {0, 0, 1, 0, 1, 0, 1, 0, 0}, Loading @@ -715,7 +715,7 @@ const ConfigDeclaration kVehicleProperties[]{ { .config = { .prop = kSetBooleanPropertyFromVehcileForTest, .prop = kSetBooleanPropertyFromVehicleForTest, .access = VehiclePropertyAccess::WRITE, .changeMode = VehiclePropertyChangeMode::ON_CHANGE, .configArray = {0, 1, 1, 0, 1, 0, 0, 0, 0}, Loading
automotive/vehicle/2.0/default/impl/vhal_v2_0/EmulatedVehicleConnector.cpp +4 −4 Original line number Diff line number Diff line Loading @@ -202,8 +202,8 @@ StatusCode EmulatedVehicleServer::onSetProperty(const VehiclePropValue& value, b case kGenerateFakeDataControllingProperty: return handleGenerateFakeDataRequest(value); // set the value from vehcile side, used in end to end test. case kSetIntPropertyFromVehcileForTest: { // set the value from vehicle side, used in end to end test. case kSetIntPropertyFromVehicleForTest: { auto updatedPropValue = createVehiclePropValue(VehiclePropertyType::INT32, 1); updatedPropValue->prop = value.value.int32Values[0]; updatedPropValue->value.int32Values[0] = value.value.int32Values[1]; Loading @@ -212,7 +212,7 @@ StatusCode EmulatedVehicleServer::onSetProperty(const VehiclePropValue& value, b onPropertyValueFromCar(*updatedPropValue, updateStatus); return StatusCode::OK; } case kSetFloatPropertyFromVehcileForTest: { case kSetFloatPropertyFromVehicleForTest: { auto updatedPropValue = createVehiclePropValue(VehiclePropertyType::FLOAT, 1); updatedPropValue->prop = value.value.int32Values[0]; updatedPropValue->value.floatValues[0] = value.value.floatValues[0]; Loading @@ -221,7 +221,7 @@ StatusCode EmulatedVehicleServer::onSetProperty(const VehiclePropValue& value, b onPropertyValueFromCar(*updatedPropValue, updateStatus); return StatusCode::OK; } case kSetBooleanPropertyFromVehcileForTest: { case kSetBooleanPropertyFromVehicleForTest: { auto updatedPropValue = createVehiclePropValue(VehiclePropertyType::BOOLEAN, 1); updatedPropValue->prop = value.value.int32Values[1]; updatedPropValue->value.int32Values[0] = value.value.int32Values[0]; Loading