vibrator: cs40l26: check supports in getPrimitiveDetails

check supported primitives at getPrimitiveDetails() for the following
commands to prevent unexpected usages:
- getPrimitiveDuration()
- compose()

Bug: 212653776
Test: adb shell idlcli vibrator getPrimitiveDuration [0-9]
Test: adb shell idlcli vibrator compose 0 [238] 1.0
Test: atest VtsHalVibratorTargetTest
Signed-off-by: Tai Kuo <[email protected]>
Change-Id: I30dcf779edd33390c7928d928763f2748b83d040
2 files changed