@DoNotInstrument
public class RoboVibrator
extends android.os.Vibrator
Robolectric implementation of Vibrator.
| Constructor and Description |
|---|
RoboVibrator() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
long |
getMilliseconds() |
long[] |
getPattern() |
int |
getRepeat() |
boolean |
hasAmplitudeControl() |
boolean |
hasVibrator() |
boolean |
isCancelled() |
boolean |
isVibrating() |
void |
vibrate(int i,
java.lang.String s,
long l) |
void |
vibrate(int i,
java.lang.String s,
long[] l,
int i1) |
void |
vibrate(int i,
java.lang.String s,
long[] longs,
int i1,
android.media.AudioAttributes audioAttributes) |
void |
vibrate(int i,
java.lang.String s,
long l,
android.media.AudioAttributes audioAttributes) |
void |
vibrate(int i,
java.lang.String s,
android.os.VibrationEffect effect,
android.media.AudioAttributes audioAttributes) |
void |
vibrate(long milliseconds) |
void |
vibrate(long[] pattern,
int repeat) |
public boolean hasVibrator()
hasVibrator in class android.os.Vibratorpublic void vibrate(long milliseconds)
vibrate in class android.os.Vibratorpublic void vibrate(long[] pattern,
int repeat)
vibrate in class android.os.Vibratorpublic void vibrate(int i,
java.lang.String s,
long l,
android.media.AudioAttributes audioAttributes)
public void vibrate(int i,
java.lang.String s,
long[] longs,
int i1,
android.media.AudioAttributes audioAttributes)
public void vibrate(int i,
java.lang.String s,
android.os.VibrationEffect effect,
android.media.AudioAttributes audioAttributes)
vibrate in class android.os.Vibratorpublic void vibrate(int i,
java.lang.String s,
long l)
public void vibrate(int i,
java.lang.String s,
long[] l,
int i1)
public void cancel()
cancel in class android.os.Vibratorpublic boolean isVibrating()
public boolean isCancelled()
public long getMilliseconds()
public long[] getPattern()
public int getRepeat()
public boolean hasAmplitudeControl()
hasAmplitudeControl in class android.os.Vibrator