Lines Matching refs:timeout
22 * Utility used for testing that allows to poll for a certain condition to happen within a timeout.
39 public PollingCheck(long timeout) {
40 mTimeout = timeout;
53 long timeout = mTimeout;
54 while (timeout > 0) {
65 timeout -= TIME_SLICE;
68 Assert.fail("unexpected timeout");
72 * Instantiate and start polling for a given condition with a default 3000ms timeout.
86 * @param timeout Time out in ms
89 public static void waitFor(long timeout, final PollingCheckCondition condition) {
90 new PollingCheck(timeout) {