Merge "Actually report resonant frequency and Q factor for vibrators." into sc-dev am: 68ac14c4a6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14033763 Change-Id: I9f01f655fbc55ca8fe4abc709d29f31e71e9dfbc
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