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 voidcancel()protected booleanhasAmplitudeControl()protected booleanhasVibrator()protected voidrecordVibratePattern(long[] pattern, int repeat)voidvibrate(int owningUid, String owningPackage, long milliseconds)protected voidvibrate(int owningUid, String owningPackage, long[] pattern, int repeat)protected voidvibrate(int uid, String opPkg, long[] pattern, int repeat, AudioAttributes attributes)protected voidvibrate(int uid, String opPkg, long milliseconds, AudioAttributes attributes)protected voidvibrate(int uid, String opPkg, VibrationEffect effect, AudioAttributes attributes)protected voidvibrate(int uid, String opPkg, VibrationEffect effect, String reason, AudioAttributes attributes)voidvibrate(long milliseconds)protected voidvibrate(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) -
recordVibratePattern
protected void recordVibratePattern(long[] pattern, int repeat) -
cancel
-