Lines Matching defs:pattern
104 * Vibrate with a given pattern.
113 * To cause the pattern to repeat, pass the index into the pattern array at which
117 * @param pattern an array of longs of times for which to turn the vibrator on or off.
118 * @param repeat the index into pattern at which to repeat, or -1 if
125 public void vibrate(long[] pattern, int repeat) {
126 vibrate(pattern, repeat, null);
130 * Vibrate with a given pattern.
139 * To cause the pattern to repeat, pass the index into the pattern array at which
143 * @param pattern an array of longs of times for which to turn the vibrator on or off.
144 * @param repeat the index into pattern at which to repeat, or -1 if
155 public void vibrate(long[] pattern, int repeat, AudioAttributes attributes) {
158 if (repeat < -1 || repeat >= pattern.length) {
160 " (pattern.length=" + pattern.length + ", index=" + repeat + ")");
165 vibrate(VibrationEffect.createWaveform(pattern, repeat), attributes);