diff --git a/vibrator/aidl/TEST_MAPPING b/vibrator/aidl/TEST_MAPPING new file mode 100644 index 0000000000..5ae32e744c --- /dev/null +++ b/vibrator/aidl/TEST_MAPPING @@ -0,0 +1,7 @@ +{ + "presubmit": [ + { + "name": "VtsHalVibratorTargetTest" + } + ] +} diff --git a/vibrator/aidl/vts/Android.bp b/vibrator/aidl/vts/Android.bp index a01e432be6..d1e135e4a3 100644 --- a/vibrator/aidl/vts/Android.bp +++ b/vibrator/aidl/vts/Android.bp @@ -12,6 +12,7 @@ cc_test { "android.hardware.vibrator-cpp", ], test_suites: [ + "general-tests", "vts-core", ], } diff --git a/vibrator/aidl/vts/VtsHalVibratorTargetTest.cpp b/vibrator/aidl/vts/VtsHalVibratorTargetTest.cpp index 0e2b3e1e0e..f197763be3 100644 --- a/vibrator/aidl/vts/VtsHalVibratorTargetTest.cpp +++ b/vibrator/aidl/vts/VtsHalVibratorTargetTest.cpp @@ -49,14 +49,9 @@ const std::vector kInvalidEffectStrengths = { static_cast(static_cast(kEffectStrengths.back()) + 1), }; -// TODO(b/143992652): autogenerate -const std::vector 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 kCompositePrimitives{ + android::enum_range().begin(), + android::enum_range().end()}; const std::vector kInvalidPrimitives = { static_cast(static_cast(kCompositePrimitives.front()) - 1),