Merge "Add placeholder properties for emulator" into sc-v2-dev am: c490c1359b
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15546061 Change-Id: I5822c80b2405f509cbfe339667d128cda7c8ae49
This commit is contained in:
commit
6439b4257d
2 changed files with 49 additions and 0 deletions
|
@ -1097,6 +1097,42 @@ const ConfigDeclaration kVehicleProperties[]{
|
|||
.changeMode = VehiclePropertyChangeMode::ON_CHANGE,
|
||||
},
|
||||
},
|
||||
{
|
||||
.config =
|
||||
{
|
||||
.prop = PLACEHOLDER_PROPERTY_INT,
|
||||
.access = VehiclePropertyAccess::READ_WRITE,
|
||||
.changeMode = VehiclePropertyChangeMode::ON_CHANGE,
|
||||
},
|
||||
.initialValue = {.int32Values = {0}},
|
||||
},
|
||||
{
|
||||
.config =
|
||||
{
|
||||
.prop = PLACEHOLDER_PROPERTY_FLOAT,
|
||||
.access = VehiclePropertyAccess::READ_WRITE,
|
||||
.changeMode = VehiclePropertyChangeMode::ON_CHANGE,
|
||||
},
|
||||
.initialValue = {.floatValues = {0.0f}},
|
||||
},
|
||||
{
|
||||
.config =
|
||||
{
|
||||
.prop = PLACEHOLDER_PROPERTY_BOOLEAN,
|
||||
.access = VehiclePropertyAccess::READ_WRITE,
|
||||
.changeMode = VehiclePropertyChangeMode::ON_CHANGE,
|
||||
},
|
||||
.initialValue = {.int32Values = {0 /* false */}},
|
||||
},
|
||||
{
|
||||
.config =
|
||||
{
|
||||
.prop = PLACEHOLDER_PROPERTY_STRING,
|
||||
.access = VehiclePropertyAccess::READ_WRITE,
|
||||
.changeMode = VehiclePropertyChangeMode::ON_CHANGE,
|
||||
},
|
||||
.initialValue = {.stringValue = {"Test"}},
|
||||
},
|
||||
#ifdef ENABLE_VENDOR_CLUSTER_PROPERTY_FOR_TESTING
|
||||
// Vendor propetry for E2E ClusterHomeService testing.
|
||||
{
|
||||
|
|
|
@ -189,6 +189,19 @@ enum class FakeDataCommand : int32_t {
|
|||
KeyPress = 100,
|
||||
};
|
||||
|
||||
/**
|
||||
* These properties are placeholder properties for developers to test new features without
|
||||
* implementing a real property.
|
||||
*/
|
||||
constexpr int32_t PLACEHOLDER_PROPERTY_INT =
|
||||
0x2a11 | VehiclePropertyGroup::VENDOR | VehicleArea::GLOBAL | VehiclePropertyType::INT32;
|
||||
constexpr int32_t PLACEHOLDER_PROPERTY_FLOAT =
|
||||
0x2a11 | VehiclePropertyGroup::VENDOR | VehicleArea::GLOBAL | VehiclePropertyType::FLOAT;
|
||||
constexpr int32_t PLACEHOLDER_PROPERTY_BOOLEAN =
|
||||
0x2a11 | VehiclePropertyGroup::VENDOR | VehicleArea::GLOBAL | VehiclePropertyType::BOOLEAN;
|
||||
constexpr int32_t PLACEHOLDER_PROPERTY_STRING =
|
||||
0x2a11 | VehiclePropertyGroup::VENDOR | VehicleArea::GLOBAL | VehiclePropertyType::STRING;
|
||||
|
||||
const int32_t kHvacPowerProperties[] = {
|
||||
toInt(VehicleProperty::HVAC_FAN_SPEED),
|
||||
toInt(VehicleProperty::HVAC_FAN_DIRECTION),
|
||||
|
|
Loading…
Reference in a new issue