Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab7e61e8 authored by Michael Wright's avatar Michael Wright
Browse files

Actually report resonant frequency and Q factor for vibrators.

This got plumbed all the way through except for the final step of
reporting this from the Vibrator object. Doh.

Bug: 182612056
Test: manual
Change-Id: I4282ff7914266589f0f61246fe42e8ef58e70460
parent 68558761
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -199,6 +199,16 @@ public class SystemVibratorManager extends VibratorManager {
            return mVibratorInfo.hasAmplitudeControl();
        }

        @Override
        public float getResonantFrequency() {
            return mVibratorInfo.getResonantFrequency();
        }

        @Override
        public float getQFactor() {
            return mVibratorInfo.getQFactor();
        }

        @NonNull
        @Override
        public int[] areEffectsSupported(@NonNull int... effectIds) {