@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,
java.lang.String owningPackage,
long milliseconds) |
protected void |
vibrate(int owningUid,
java.lang.String owningPackage,
long[] pattern,
int repeat) |
protected void |
vibrate(int uid,
java.lang.String opPkg,
long[] pattern,
int repeat,
android.media.AudioAttributes attributes) |
protected void |
vibrate(int uid,
java.lang.String opPkg,
long milliseconds,
android.media.AudioAttributes attributes) |
protected void |
vibrate(int uid,
java.lang.String opPkg,
android.os.VibrationEffect effect,
android.media.AudioAttributes attributes) |
protected void |
vibrate(int uid,
java.lang.String opPkg,
android.os.VibrationEffect effect,
java.lang.String reason,
android.media.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, java.lang.String owningPackage, long[] pattern, int repeat)
@Implementation(minSdk=21, maxSdk=25) protected void vibrate(int uid, java.lang.String opPkg, long[] pattern, int repeat, android.media.AudioAttributes attributes)
@Implementation(maxSdk=17) public void vibrate(long milliseconds)
@Implementation(minSdk=18, maxSdk=20) public void vibrate(int owningUid, java.lang.String owningPackage, long milliseconds)
@Implementation(minSdk=21, maxSdk=25) protected void vibrate(int uid, java.lang.String opPkg, long milliseconds, android.media.AudioAttributes attributes)
@Implementation(minSdk=26, maxSdk=28) protected void vibrate(int uid, java.lang.String opPkg, android.os.VibrationEffect effect, android.media.AudioAttributes attributes)
@Implementation(minSdk=10000) protected void vibrate(int uid, java.lang.String opPkg, android.os.VibrationEffect effect, java.lang.String reason, android.media.AudioAttributes attributes)
@Implementation protected void cancel()