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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.robolectric.shadows.ShadowVibrator
ShadowVibrator.PrimitiveEffect -
Field Summary
Fields inherited from class org.robolectric.shadows.ShadowVibrator
audioAttributesFromLastVibration, pattern, primitiveEffects, supportedPrimitives, vibrationAttributesFromLastVibration, vibrationEffectSegments -
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)protected voidvibrate(int uid, String opPkg, VibrationEffect effect, String reason, VibrationAttributes attributes)voidvibrate(long milliseconds)protected voidvibrate(long[] pattern, int repeat)Methods inherited from class org.robolectric.shadows.ShadowVibrator
areAllPrimitivesSupported, getAudioAttributesFromLastVibration, getEffectId, getMilliseconds, getPattern, getPrimitiveEffects, getPrimitiveSegmentsInPrimitiveEffects, getRepeat, getVibrationAttributesFromLastVibration, getVibrationEffectSegments, isCancelled, isVibrating, reset, setHasAmplitudeControl, setHasVibrator, setSupportedPrimitives
-
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
-