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
This commit is contained in:
Michael Wright
2021-03-31 01:47:06 +01:00
parent 68558761be
commit ab7e61e87b

View File

@@ -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) {