Searched refs:duration (Results 1 – 4 of 4) sorted by relevance
193 public void sleep(@Nonnull Duration duration) { in sleep() argument194 Uninterruptibles.sleepUninterruptibly(duration.toNanos(), TimeUnit.NANOSECONDS); in sleep()208 private void click(Point point, Duration duration) { in click() argument209 touch(TOUCH_DOWN, point, duration); in click()220 public void swipe(@Nonnull Point from, @Nonnull Point to, @Nonnull Duration duration) { in swipe() argument225 if (duration.compareTo(elapsed) < 0) { in swipe()228 double progress = (double) elapsed.toMillis() / duration.toMillis(); in swipe()
62 public void addActivity(String activity, int duration, int calories, in addActivity() argument
411 return longThat(duration -> abs(duration - expected) <= margin); in getWithinMarginMatcher()
322 public void sleep(@Nonnull Duration duration) { in createDevice()323 mInstant = now().plus(duration); in createDevice()