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
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) 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
protected void
vibrate
(int uid, String opPkg, VibrationEffect effect, AudioAttributes attributes) protected void
vibrate
(int uid, String opPkg, VibrationEffect effect, String reason, AudioAttributes attributes) 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
@Implementation(maxSdk=25) protected void vibrate(int uid, String opPkg, long[] pattern, int repeat, AudioAttributes attributes) -
vibrate
@Implementation(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
-