mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "vibrator vts: use CompositePrimitives enum_range" am: d895913f1b am: 8679c62cb7 am: 48ea7213f3
Change-Id: I6fd0ffa486f1ee5fac117009fa0bd7a7fb5b2a5c
This commit is contained in:
7
vibrator/aidl/TEST_MAPPING
Normal file
7
vibrator/aidl/TEST_MAPPING
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"presubmit": [
|
||||
{
|
||||
"name": "VtsHalVibratorTargetTest"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -12,6 +12,7 @@ cc_test {
|
||||
"android.hardware.vibrator-cpp",
|
||||
],
|
||||
test_suites: [
|
||||
"general-tests",
|
||||
"vts-core",
|
||||
],
|
||||
}
|
||||
|
||||
@@ -49,14 +49,9 @@ const std::vector<EffectStrength> kInvalidEffectStrengths = {
|
||||
static_cast<EffectStrength>(static_cast<int8_t>(kEffectStrengths.back()) + 1),
|
||||
};
|
||||
|
||||
// TODO(b/143992652): autogenerate
|
||||
const std::vector<CompositePrimitive> kCompositePrimitives = {
|
||||
CompositePrimitive::NOOP, CompositePrimitive::CLICK,
|
||||
CompositePrimitive::THUD, CompositePrimitive::SPIN,
|
||||
CompositePrimitive::QUICK_RISE, CompositePrimitive::SLOW_RISE,
|
||||
CompositePrimitive::QUICK_FALL,
|
||||
};
|
||||
// TODO(b/143992652): autogenerate
|
||||
const std::vector<CompositePrimitive> kCompositePrimitives{
|
||||
android::enum_range<CompositePrimitive>().begin(),
|
||||
android::enum_range<CompositePrimitive>().end()};
|
||||
|
||||
const std::vector<CompositePrimitive> kInvalidPrimitives = {
|
||||
static_cast<CompositePrimitive>(static_cast<int32_t>(kCompositePrimitives.front()) - 1),
|
||||
|
||||
Reference in New Issue
Block a user