Searched refs:logic (Results 1 – 5 of 5) sorted by relevance
47 assertThat(Retry.logic(valueTester::get).run()).isEqualTo(VALUE_1); in run_noExceptions_returnsValue()54 Retry.logic(valueTester::throwOrNot).run(); in runVoid_noExceptions_runs()62 () -> Retry.logic(valueTester::get).timeout(SHORT_TIMEOUT).run()); in run_exceptions_throwsException()70 () -> Retry.logic(valueTester::throwOrNot).timeout(SHORT_TIMEOUT).run()); in runVoid_exceptions_throwsException()77 assertThat(Retry.logic(valueTester::get).run()).isEqualTo(VALUE_1); in run_temporaryExceptions_returnsValue()84 Retry.logic(valueTester::throwOrNot).run(); in runVoid_temporaryExceptions_runs()93 () -> Retry.logic(valueTester::get).terminalException(e -> true).run()); in run_terminalException_throwsException()102 () -> Retry.logic(valueTester::throwOrNot).terminalException(e -> true).run()); in runVoid_terminalException_throwsException()110 assertThat(Retry.logic(valueTester::get).terminalException(e -> false).run()) in run_nonTerminalException_returnsValue()119 Retry.logic(valueTester::throwOrNot).terminalException(e -> false).run(); in runVoid_nonTerminalException_runs()
43 public static <E> Retry<E> logic(Poll.ValueSupplier<E> supplier) { in logic() method in Retry50 public static VoidRetry logic(VoidRetry.VoidRunnable runnable) { in logic() method in Retry
32 mRetry = Retry.logic(() -> { in VoidRetry()
126 logic = lambda d: self.setup_dut(d) if d else self.setup_tablet() function128 logic, [(self.dut,), (None,)],
412 final Class<?> logic = Class.forName("com.android.cts.splitapp.FeatureLogic"); in testFeatureWarmBase() local413 final Method method = logic.getDeclaredMethod("mult", new Class[] { in testFeatureWarmBase()