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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user