Merge "Actually report resonant frequency and Q factor for vibrators." into sc-dev

This commit is contained in:
Michael Wright
2021-03-31 13:04:02 +00:00
committed by Android (Google) Code Review

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