Lines Matching refs:duration
525 private void delay(long duration) {
526 if (duration > 0) {
527 long bedtime = duration + SystemClock.uptimeMillis();
530 this.wait(duration);
537 duration = bedtime - SystemClock.uptimeMillis();
538 } while (duration > 0);
550 long duration = 0;
553 // add off-time duration to any accumulated on-time duration
555 duration += pattern[index++];
559 delay(duration);
565 // read on-time duration and start the vibrator
566 // duration is saved for delay() at top of loop
567 duration = pattern[index++];
568 if (duration > 0) {
569 VibratorService.this.doVibratorOn(duration, uid);
576 duration = 0;