Loading core/java/android/os/Vibrator.java +11 −0 Original line number Diff line number Diff line Loading @@ -226,6 +226,17 @@ public abstract class Vibrator { IVibrator.CAP_FREQUENCY_CONTROL | IVibrator.CAP_COMPOSE_PWLE_EFFECTS); } /** * Check whether the vibrator can be controlled by an external service with the * {@link IExternalVibratorService}. * * @return True if the hardware can be controlled by an external service, otherwise false. * @hide */ public boolean hasExternalControl() { return getInfo().hasCapability(IVibrator.CAP_EXTERNAL_CONTROL); } /** * Gets the resonant frequency of the vibrator. * Loading Loading
core/java/android/os/Vibrator.java +11 −0 Original line number Diff line number Diff line Loading @@ -226,6 +226,17 @@ public abstract class Vibrator { IVibrator.CAP_FREQUENCY_CONTROL | IVibrator.CAP_COMPOSE_PWLE_EFFECTS); } /** * Check whether the vibrator can be controlled by an external service with the * {@link IExternalVibratorService}. * * @return True if the hardware can be controlled by an external service, otherwise false. * @hide */ public boolean hasExternalControl() { return getInfo().hasCapability(IVibrator.CAP_EXTERNAL_CONTROL); } /** * Gets the resonant frequency of the vibrator. * Loading