@Implements(value=android.os.SystemVibrator.class, isInAndroidSdk=false) public class ShadowSystemVibrator extends ShadowVibrator
pattern
Constructor and Description |
---|
ShadowSystemVibrator() |
Modifier and Type | Method and Description |
---|---|
protected void |
cancel() |
protected boolean |
hasAmplitudeControl() |
protected boolean |
hasVibrator() |
void |
vibrate(int owningUid,
String owningPackage,
long milliseconds) |
protected void |
vibrate(int owningUid,
String owningPackage,
long[] pattern,
int repeat) |
protected void |
vibrate(int uid,
String opPkg,
long[] pattern,
int repeat,
AudioAttributes attributes) |
protected void |
vibrate(int uid,
String opPkg,
long milliseconds,
AudioAttributes attributes) |
protected void |
vibrate(int uid,
String opPkg,
VibrationEffect effect,
AudioAttributes attributes) |
protected void |
vibrate(int uid,
String opPkg,
VibrationEffect effect,
String reason,
AudioAttributes attributes) |
void |
vibrate(long milliseconds) |
protected void |
vibrate(long[] pattern,
int repeat) |
getMilliseconds, getPattern, getRepeat, isCancelled, isVibrating, setHasAmplitudeControl, setHasVibrator
@Implementation protected boolean hasVibrator()
@Implementation(minSdk=26) protected boolean hasAmplitudeControl()
@Implementation(maxSdk=17) protected void vibrate(long[] pattern, int repeat)
@Implementation(minSdk=18, maxSdk=20) protected void vibrate(int owningUid, String owningPackage, long[] pattern, int repeat)
@Implementation(minSdk=21, maxSdk=25) protected void vibrate(int uid, String opPkg, long[] pattern, int repeat, AudioAttributes attributes)
@Implementation(maxSdk=17) public void vibrate(long milliseconds)
@Implementation(minSdk=18, maxSdk=20) public void vibrate(int owningUid, String owningPackage, long milliseconds)
@Implementation(minSdk=21, maxSdk=25) protected void vibrate(int uid, String opPkg, long milliseconds, AudioAttributes attributes)
@Implementation(minSdk=26, maxSdk=28) protected void vibrate(int uid, String opPkg, VibrationEffect effect, AudioAttributes attributes)
@Implementation(minSdk=10000) protected void vibrate(int uid, String opPkg, VibrationEffect effect, String reason, AudioAttributes attributes)
@Implementation protected void cancel()