Lines Matching defs:repeat
113 * To cause the pattern to repeat, pass the index into the pattern array at which
114 * to start the repeat, or -1 to disable repeating.
118 * @param repeat the index into pattern at which to repeat, or -1 if
119 * you don't want to repeat.
125 public void vibrate(long[] pattern, int repeat) {
126 vibrate(pattern, repeat, null);
139 * To cause the pattern to repeat, pass the index into the pattern array at which
140 * to start the repeat, or -1 to disable repeating.
144 * @param repeat the index into pattern at which to repeat, or -1 if
145 * you don't want to repeat.
155 public void vibrate(long[] pattern, int repeat, AudioAttributes attributes) {
158 if (repeat < -1 || repeat >= pattern.length) {
159 Log.e(TAG, "vibrate called with repeat index out of bounds" +
160 " (pattern.length=" + pattern.length + ", index=" + repeat + ")");
165 vibrate(VibrationEffect.createWaveform(pattern, repeat), attributes);