Merge "Actually report resonant frequency and Q factor for vibrators." into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
68ac14c4a6
@@ -199,6 +199,16 @@ public class SystemVibratorManager extends VibratorManager {
|
|||||||
return mVibratorInfo.hasAmplitudeControl();
|
return mVibratorInfo.hasAmplitudeControl();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public float getResonantFrequency() {
|
||||||
|
return mVibratorInfo.getResonantFrequency();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public float getQFactor() {
|
||||||
|
return mVibratorInfo.getQFactor();
|
||||||
|
}
|
||||||
|
|
||||||
@NonNull
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public int[] areEffectsSupported(@NonNull int... effectIds) {
|
public int[] areEffectsSupported(@NonNull int... effectIds) {
|
||||||
|
|||||||
Reference in New Issue
Block a user