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 SummaryNested classes/interfaces inherited from class org.robolectric.shadows.ShadowVibratorShadowVibrator.PrimitiveEffect
- 
Field SummaryFields inherited from class org.robolectric.shadows.ShadowVibratoraudioAttributesFromLastVibration, pattern, primitiveEffects, supportedPrimitives, vibrationAttributesFromLastVibration, vibrationEffectSegments
- 
Constructor SummaryConstructors Constructor Description ShadowSystemVibrator()
- 
Method SummaryModifier 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.ShadowVibratorareAllPrimitivesSupported, getAudioAttributesFromLastVibration, getEffectId, getMilliseconds, getPattern, getPrimitiveEffects, getRepeat, getVibrationAttributesFromLastVibration, getVibrationEffectSegments, isCancelled, isVibrating, setHasAmplitudeControl, setHasVibrator, setSupportedPrimitives
- 
Constructor Details- 
ShadowSystemVibratorpublic 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)
- 
recordVibratePatternprotected void recordVibratePattern(long[] pattern, int repeat)
- 
cancel
 
-