Home
last modified time | relevance | path

Searched refs:ThrowingRunnable (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/tests/testables/src/android/testing/
DDexmakerShareClassLoaderRule.java71 private static <T extends Throwable> ThrowingRunnable<T> apply(ThrowingRunnable<T> r) { in apply()
75 private static <T extends Throwable> ThrowingRunnable<T> wrapInSetAndClearProperty( in wrapInSetAndClearProperty()
76 ThrowingRunnable<T> r) { in wrapInSetAndClearProperty()
95 private static <T extends Throwable> ThrowingRunnable<T> wrapInMutex(ThrowingRunnable<T> r) { in wrapInMutex()
123 private interface ThrowingRunnable<T extends Throwable> {
130 ThrowingRunnable.this.run();
/frameworks/base/tests/net/java/com/android/server/
DNetIdManagerTest.kt22 import com.android.testutils.ExceptionUtils.ThrowingRunnable
45 assertThrows(IllegalStateException::class.java, ThrowingRunnable { manager.reserveNetId() }) in testReserveReleaseNetId()
48 assertThrows(IllegalStateException::class.java, ThrowingRunnable { manager.reserveNetId() }) in testReserveReleaseNetId()
/frameworks/base/core/java/com/android/internal/util/function/pooled/
DPooledRunnable.java21 import com.android.internal.util.FunctionalUtils.ThrowingRunnable;
30 extends PooledLambda, Runnable, ThrowingRunnable, TraceNameSupplier {
DOmniFunction.java19 import com.android.internal.util.FunctionalUtils.ThrowingRunnable;
66 QuintPredicate<A, B, C, D, E>, PooledSupplier<R>, PooledRunnable, ThrowingRunnable,
/frameworks/base/core/java/com/android/internal/util/
DFunctionalUtils.java53 public static Runnable uncheckExceptions(ThrowingRunnable action) { in uncheckExceptions()
82 public static Runnable handleExceptions(ThrowingRunnable r, Consumer<Throwable> handler) { in handleExceptions()
100 public interface ThrowingRunnable extends Runnable {
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
DTestUtils.java158 public static void uncheck(ThrowingRunnable runnable) { in uncheck()
195 public interface ThrowingRunnable { interface in TestUtils
/frameworks/base/services/robotests/backup/src/com/android/server/backup/remote/
DRemoteCallTest.java34 import com.android.server.backup.testing.TestUtils.ThrowingRunnable;
263 private static void postDelayed(Handler handler, ThrowingRunnable runnable, long delayMillis) { in postDelayed()
/frameworks/base/core/tests/utiltests/src/android/util/
DAtomicFileTest.java280 @NonNull ThrowingRunnable runnable) { in assertThrows()
299 private interface ThrowingRunnable { interface in AtomicFileTest
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerServiceTestable.java49 import com.android.internal.util.FunctionalUtils.ThrowingRunnable;
280 void binderWithCleanCallingIdentity(@NonNull ThrowingRunnable action) { in binderWithCleanCallingIdentity()
DDpmMockContext.java115 public void withCleanCallingIdentity(@NonNull FunctionalUtils.ThrowingRunnable action) { in withCleanCallingIdentity()
/frameworks/base/services/core/java/com/android/server/textclassifier/
DTextClassificationManagerService.java65 import com.android.internal.util.FunctionalUtils.ThrowingRunnable;
516 @NonNull ThrowingRunnable request, @Nullable ThrowingRunnable onServiceFailure, in PendingRequest()
555 private static Runnable logOnFailure(@Nullable ThrowingRunnable r, String opDesc) { in logOnFailure()
/frameworks/base/services/core/java/com/android/server/pm/
DCrossProfileAppsServiceImpl.java61 import com.android.internal.util.FunctionalUtils.ThrowingRunnable;
768 public void withCleanCallingIdentity(ThrowingRunnable action) {
851 void withCleanCallingIdentity(ThrowingRunnable action);
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DCrossProfileAppsServiceImplTest.java41 import com.android.internal.util.FunctionalUtils.ThrowingRunnable;
638 public void withCleanCallingIdentity(ThrowingRunnable action) { in withCleanCallingIdentity()
/frameworks/base/core/java/android/os/
DBinder.java31 import com.android.internal.util.FunctionalUtils.ThrowingRunnable;
377 public static final void withCleanCallingIdentity(@NonNull ThrowingRunnable action) { in withCleanCallingIdentity()
/frameworks/base/services/robotests/src/com/android/server/pm/
DCrossProfileAppsServiceImplRoboTest.java60 import com.android.internal.util.FunctionalUtils.ThrowingRunnable;
679 public void withCleanCallingIdentity(ThrowingRunnable action) { in withCleanCallingIdentity()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/
DKeyValueBackupTaskTest.java114 import com.android.server.backup.testing.TestUtils.ThrowingRunnable;
2434 private static ConditionVariable runInWorkerThreadAsync(ThrowingRunnable runnable) { in runInWorkerThreadAsync()
2446 private static void runInWorkerThread(ThrowingRunnable runnable) { in runInWorkerThread()
/frameworks/base/config/
Dpreloaded-classes9318 com.android.internal.util.FunctionalUtils$ThrowingRunnable
Dboot-image-profile.txt15045 …os/Binder;->withCleanCallingIdentity(Lcom/android/internal/util/FunctionalUtils$ThrowingRunnable;)V
29963 HPLcom/android/internal/util/FunctionalUtils$ThrowingRunnable;->run()V
29965 …ambda$handleExceptions$0(Lcom/android/internal/util/FunctionalUtils$ThrowingRunnable;Ljava/util/fu…
50433 Lcom/android/internal/util/FunctionalUtils$ThrowingRunnable;
/frameworks/base/services/
Dart-profile477 …/IpMemoryStoreClient;->ignoringRemoteException(Landroid/net/IpMemoryStoreClient$ThrowingRunnable;)V
478 …nt;->ignoringRemoteException(Ljava/lang/String;Landroid/net/IpMemoryStoreClient$ThrowingRunnable;)V
13976 …tor;->binderWithCleanCallingIdentity(Lcom/android/internal/util/FunctionalUtils$ThrowingRunnable;)V
23838 …ectorImpl;->withCleanCallingIdentity(Lcom/android/internal/util/FunctionalUtils$ThrowingRunnable;)V
31226 …android/internal/util/FunctionalUtils$ThrowingRunnable;Lcom/android/internal/util/FunctionalUtils$
31288 …agerService;->access$700(Lcom/android/internal/util/FunctionalUtils$ThrowingRunnable;Ljava/lang/St…
31304 …erService;->logOnFailure(Lcom/android/internal/util/FunctionalUtils$ThrowingRunnable;Ljava/lang/St…
40514 Landroid/net/IpMemoryStoreClient$ThrowingRunnable;