Package org.robolectric.shadows
Class ShadowSystemVibrator
java.lang.Object
org.robolectric.shadows.ShadowVibrator
org.robolectric.shadows.ShadowSystemVibrator
@Implements(value=android.os.SystemVibrator.class, isInAndroidSdk=false) public class ShadowSystemVibrator extends ShadowVibrator
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ShadowSystemVibrator()
-
Method Summary
Modifier and Type Method Description protected void
cancel()
protected boolean
hasAmplitudeControl()
protected boolean
hasVibrator()
protected void
recordVibratePattern(long[] pattern, int repeat)
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)
protected void
vibrate(int uid, String opPkg, VibrationEffect effect, String reason, VibrationAttributes attributes)
void
vibrate(long milliseconds)
protected void
vibrate(long[] pattern, int repeat)
Methods inherited from class org.robolectric.shadows.ShadowVibrator
getEffectId, getMilliseconds, getPattern, getRepeat, isCancelled, isVibrating, setHasAmplitudeControl, setHasVibrator
-
Constructor Details
-
ShadowSystemVibrator
public ShadowSystemVibrator()
-
-
Method Details
-
hasVibrator
-
hasAmplitudeControl
-
vibrate
-
vibrate
@Implementation(minSdk=18, maxSdk=20) protected void vibrate(int owningUid, String owningPackage, long[] pattern, int repeat) -
vibrate
@Implementation(minSdk=21, maxSdk=25) protected void vibrate(int uid, String opPkg, long[] pattern, int repeat, AudioAttributes attributes) -
vibrate
-
vibrate
@Implementation(minSdk=18, maxSdk=20) public void vibrate(int owningUid, String owningPackage, long milliseconds) -
vibrate
@Implementation(minSdk=21, maxSdk=25) protected void vibrate(int uid, String opPkg, long milliseconds, AudioAttributes attributes) -
vibrate
@Implementation(minSdk=26, maxSdk=28) protected void vibrate(int uid, String opPkg, VibrationEffect effect, AudioAttributes attributes) -
vibrate
@Implementation(minSdk=29, maxSdk=30) protected void vibrate(int uid, String opPkg, VibrationEffect effect, String reason, AudioAttributes attributes) -
vibrate
@Implementation(minSdk=31) protected void vibrate(int uid, String opPkg, VibrationEffect effect, String reason, VibrationAttributes attributes) -
recordVibratePattern
protected void recordVibratePattern(long[] pattern, int repeat) -
cancel
-