vibrator: Update amplitudeToScale to suppress off calls

Updated ampltudeToScale to suppress the logs coming from calls to
vibrator::off.  Currently we will apply the adaptive haptics scaling
logic to these calls, which doesn't make any sense.

Bug: 260006211
Test: atest VibratorHalCs40l26TestSuite
Change-Id: Ibcd6d8e357baf449682b7ffe4b1c8dc873d45e69
Signed-off-by: Chris Paulo <chrispaulo@google.com>
1 file changed