Searched defs:callable (Results 1 – 18 of 18) sorted by relevance
60 public static <T> Future<T> onMainThread(final Callable<T> callable) { in onMainThread()95 public static <T> T onMainThreadSync(final Callable<T> callable) { in onMainThreadSync()
32 Instrumentation instrumentation, Callable<T> callable) { in getOnMain()
57 public static void runOnVsyncThread(CallableVoid callable) { in runOnVsyncThread()
59 private void assertSecurityException(Callable callable, String tag) { in assertSecurityException()
126 public <V> V callAndUnregisterSelf(Callable<V> callable) in callAndUnregisterSelf()
180 T expected, CrossUserCallable<T> callable, UserHandle targetUserHandle) in assertCrossProfileCall()
106 static <T> T callOnHandlerThread(Callable<T> callable) throws Exception { in callOnHandlerThread()
295 public static <T> T callWithShellPermissionIdentity(@NonNull Callable<T> callable) in callWithShellPermissionIdentity()312 public static <T> T callWithShellPermissionIdentity(@NonNull Callable<T> callable, in callWithShellPermissionIdentity()
239 private static <T> T uncheck(Callable<T> callable) { in uncheck()
141 private void runManagedContactsTest(Callable<Void> callable) throws Exception { in runManagedContactsTest()
438 private <T> T callWithRenouncePermissions(@NonNull Callable<T> callable) in callWithRenouncePermissions()
634 private <T> T executeWithShellPermissionIdentity(Callable<T> callable) throws Exception { in executeWithShellPermissionIdentity()
120 public <T extends Object> T getOnService(Callable<T> callable) { in getOnService()
121 SettableFuture(Callable<T> callable) { in SettableFuture()
245 Callable<MediaPlayer> callable = new Callable<MediaPlayer>() { in createMediaPlayerOnMainThread() local
317 public SettableFuture(Callable<T> callable) { in SettableFuture()
544 private static Result runInSeparateThread(int allowedTime, final Callable<Result> callable) in runInSeparateThread()
1114 private void runCallable(final Callable<?> callable) throws Exception { in runCallable()