Searched refs:cleaner (Results 1 – 4 of 4) sorted by relevance
/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/ |
D | RetryRuleTest.java | 56 RetryableStatement(int numberFailures, T exception, @Nullable Runnable cleaner) { in RetryableStatement() argument 59 mCleaner = cleaner; in RetryableStatement() 102 final Runnable cleaner = mock(Runnable.class); in testDoCleanOnRetryableException() local 103 final RetryRule rule = new RetryRule(2, cleaner); in testDoCleanOnRetryableException() 105 rule.apply(new RetryableStatement<RetryableException>(2, sRetryableException, cleaner), in testDoCleanOnRetryableException() 108 verify(cleaner, times(2)).run(); in testDoCleanOnRetryableException() 113 final Runnable cleaner = mock(Runnable.class); in testKeepLastStatusWhenFailOnRetryableException() local 114 final RetryRule rule = new RetryRule(2, cleaner); in testKeepLastStatusWhenFailOnRetryableException() 118 new RetryableStatement<RetryableException>(3, sRetryableException, cleaner), in testKeepLastStatusWhenFailOnRetryableException() 122 verify(cleaner, times(2)).run(); in testKeepLastStatusWhenFailOnRetryableException() [all …]
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | RetryRule.java | 57 public RetryRule(int retries, @Nullable Runnable cleaner) { in RetryRule() argument 62 mCleaner = cleaner; in RetryRule()
|
D | SafeCleanerRule.java | 51 public SafeCleanerRule run(@NonNull ThrowingRunnable cleaner) { in run() argument 52 mCleaners.add(cleaner); in run()
|
/cts/tests/tests/graphics/src/android/graphics/cts/utils/ |
D | LeakTest.java | 37 SystemCleaner.cleaner().register(new Object() { in runGcAndFinalizersSync()
|