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,
looseSignatures=true)
public class ShadowSystemVibrator
extends ShadowVibrator
Shadow for
SystemVibrator
.-
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, primitiveidsToDurationMillis, supportedPrimitives, vibrationAttributesFromLastVibration, vibrationEffectSegments
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
cancel()
protected boolean
protected boolean
protected void
recordVibratePattern
(long[] pattern, int repeat) void
protected void
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) protected void
Methods inherited from class org.robolectric.shadows.ShadowVibrator
areAllPrimitivesSupported, getAudioAttributesFromLastVibration, getEffectId, getMilliseconds, getPattern, getPrimitiveDurations, getPrimitiveEffects, getPrimitiveSegmentsInPrimitiveEffects, getRepeat, getVibrationAttributesFromLastVibration, isCancelled, isVibrating, reset, setHasAmplitudeControl, setHasVibrator, setPrimitiveDurations, setSupportedPrimitives
-
Constructor Details
-
ShadowSystemVibrator
public ShadowSystemVibrator()
-
-
Method Details
-
hasVibrator
-
hasAmplitudeControl
-
vibrate
-
vibrate
@Implementation(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(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
-
recordVibratePattern
protected void recordVibratePattern(long[] pattern, int repeat) -
cancel
-