Merge "Add HAL changes for STEERING_WHEEL_HEIGHT_POS"
This commit is contained in:
commit
eac86904c3
8 changed files with 43 additions and 0 deletions
|
@ -159,6 +159,7 @@ enum VehicleProperty {
|
|||
WINDOW_LOCK = 320867268,
|
||||
STEERING_WHEEL_DEPTH_POS = 289410016,
|
||||
STEERING_WHEEL_DEPTH_MOVE = 289410017,
|
||||
STEERING_WHEEL_HEIGHT_POS = 289410018,
|
||||
VEHICLE_MAP_SERVICE = 299895808,
|
||||
OBD2_LIVE_FRAME = 299896064,
|
||||
OBD2_FREEZE_FRAME = 299896065,
|
||||
|
|
|
@ -1799,6 +1799,23 @@ enum VehicleProperty {
|
|||
*/
|
||||
STEERING_WHEEL_DEPTH_MOVE =
|
||||
0x0BE1 + VehiclePropertyGroup.SYSTEM + VehicleArea.GLOBAL + VehiclePropertyType.INT32,
|
||||
/**
|
||||
* Steering wheel height position
|
||||
*
|
||||
* The maxInt32Value and minInt32Value in VehicleAreaConfig must be defined. All values between
|
||||
* minInt32Value and maxInt32Value must be supported.
|
||||
*
|
||||
* The maxInt32Value in default area's VehicleAreaConfig indicates the steering wheel being in
|
||||
* the highest position. The minInt32Value in default area's VehicleAreaConfig indicates the
|
||||
* steering wheel being in the lowest position.
|
||||
*
|
||||
* This value is not in any particular unit but in a specified range of steps.
|
||||
*
|
||||
* @change_mode VehiclePropertyChangeMode.ON_CHANGE
|
||||
* @access VehiclePropertyAccess.READ_WRITE
|
||||
*/
|
||||
STEERING_WHEEL_HEIGHT_POS =
|
||||
0x0BE2 + VehiclePropertyGroup.SYSTEM + VehicleArea.GLOBAL + VehiclePropertyType.INT32,
|
||||
/**
|
||||
* Vehicle Maps Service (VMS) message
|
||||
*
|
||||
|
|
|
@ -159,6 +159,7 @@ std::unordered_map<VehicleProperty, VehiclePropertyAccess> AccessForVehiclePrope
|
|||
{VehicleProperty::WINDOW_LOCK, VehiclePropertyAccess::READ_WRITE},
|
||||
{VehicleProperty::STEERING_WHEEL_DEPTH_POS, VehiclePropertyAccess::READ_WRITE},
|
||||
{VehicleProperty::STEERING_WHEEL_DEPTH_MOVE, VehiclePropertyAccess::READ_WRITE},
|
||||
{VehicleProperty::STEERING_WHEEL_HEIGHT_POS, VehiclePropertyAccess::READ_WRITE},
|
||||
{VehicleProperty::VEHICLE_MAP_SERVICE, VehiclePropertyAccess::READ_WRITE},
|
||||
{VehicleProperty::OBD2_LIVE_FRAME, VehiclePropertyAccess::READ},
|
||||
{VehicleProperty::OBD2_FREEZE_FRAME, VehiclePropertyAccess::READ},
|
||||
|
|
|
@ -159,6 +159,7 @@ std::unordered_map<VehicleProperty, VehiclePropertyChangeMode> ChangeModeForVehi
|
|||
{VehicleProperty::WINDOW_LOCK, VehiclePropertyChangeMode::ON_CHANGE},
|
||||
{VehicleProperty::STEERING_WHEEL_DEPTH_POS, VehiclePropertyChangeMode::ON_CHANGE},
|
||||
{VehicleProperty::STEERING_WHEEL_DEPTH_MOVE, VehiclePropertyChangeMode::ON_CHANGE},
|
||||
{VehicleProperty::STEERING_WHEEL_HEIGHT_POS, VehiclePropertyChangeMode::ON_CHANGE},
|
||||
{VehicleProperty::VEHICLE_MAP_SERVICE, VehiclePropertyChangeMode::ON_CHANGE},
|
||||
{VehicleProperty::OBD2_LIVE_FRAME, VehiclePropertyChangeMode::ON_CHANGE},
|
||||
{VehicleProperty::OBD2_FREEZE_FRAME, VehiclePropertyChangeMode::ON_CHANGE},
|
||||
|
|
|
@ -151,6 +151,7 @@ public final class AccessForVehicleProperty {
|
|||
Map.entry(VehicleProperty.WINDOW_LOCK, VehiclePropertyAccess.READ_WRITE),
|
||||
Map.entry(VehicleProperty.STEERING_WHEEL_DEPTH_POS, VehiclePropertyAccess.READ_WRITE),
|
||||
Map.entry(VehicleProperty.STEERING_WHEEL_DEPTH_MOVE, VehiclePropertyAccess.READ_WRITE),
|
||||
Map.entry(VehicleProperty.STEERING_WHEEL_HEIGHT_POS, VehiclePropertyAccess.READ_WRITE),
|
||||
Map.entry(VehicleProperty.VEHICLE_MAP_SERVICE, VehiclePropertyAccess.READ_WRITE),
|
||||
Map.entry(VehicleProperty.OBD2_LIVE_FRAME, VehiclePropertyAccess.READ),
|
||||
Map.entry(VehicleProperty.OBD2_FREEZE_FRAME, VehiclePropertyAccess.READ),
|
||||
|
|
|
@ -151,6 +151,7 @@ public final class ChangeModeForVehicleProperty {
|
|||
Map.entry(VehicleProperty.WINDOW_LOCK, VehiclePropertyChangeMode.ON_CHANGE),
|
||||
Map.entry(VehicleProperty.STEERING_WHEEL_DEPTH_POS, VehiclePropertyChangeMode.ON_CHANGE),
|
||||
Map.entry(VehicleProperty.STEERING_WHEEL_DEPTH_MOVE, VehiclePropertyChangeMode.ON_CHANGE),
|
||||
Map.entry(VehicleProperty.STEERING_WHEEL_HEIGHT_POS, VehiclePropertyChangeMode.ON_CHANGE),
|
||||
Map.entry(VehicleProperty.VEHICLE_MAP_SERVICE, VehiclePropertyChangeMode.ON_CHANGE),
|
||||
Map.entry(VehicleProperty.OBD2_LIVE_FRAME, VehiclePropertyChangeMode.ON_CHANGE),
|
||||
Map.entry(VehicleProperty.OBD2_FREEZE_FRAME, VehiclePropertyChangeMode.ON_CHANGE),
|
||||
|
|
|
@ -2238,6 +2238,21 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"property": "VehicleProperty::STEERING_WHEEL_HEIGHT_POS",
|
||||
"defaultValue": {
|
||||
"int32Values": [
|
||||
0
|
||||
]
|
||||
},
|
||||
"areas": [
|
||||
{
|
||||
"areaId": 0,
|
||||
"minInt32Value": 0,
|
||||
"maxInt32Value": 10
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"property": "VehicleProperty::WHEEL_TICK",
|
||||
"defaultValue": {
|
||||
|
|
|
@ -499,6 +499,12 @@ TEST_P(VtsHalAutomotiveVehicleTargetTest, verifySteeringWheelDepthMoveConfig) {
|
|||
VehicleArea::GLOBAL, VehiclePropertyType::INT32);
|
||||
}
|
||||
|
||||
TEST_P(VtsHalAutomotiveVehicleTargetTest, verifySteeringWheelHeightPosConfig) {
|
||||
verifyProperty(VehicleProperty::STEERING_WHEEL_HEIGHT_POS, VehiclePropertyAccess::READ_WRITE,
|
||||
VehiclePropertyChangeMode::ON_CHANGE, VehiclePropertyGroup::SYSTEM,
|
||||
VehicleArea::GLOBAL, VehiclePropertyType::INT32);
|
||||
}
|
||||
|
||||
std::vector<ServiceDescriptor> getDescriptors() {
|
||||
std::vector<ServiceDescriptor> descriptors;
|
||||
for (std::string name : getAidlHalInstanceNames(IVehicle::descriptor)) {
|
||||
|
|
Loading…
Reference in a new issue