Searched defs:callable (Results 1 – 17 of 17) 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()
297 public static <T> T callWithShellPermissionIdentity(@NonNull Callable<T> callable) in callWithShellPermissionIdentity()314 public static <T> T callWithShellPermissionIdentity(@NonNull Callable<T> callable, in callWithShellPermissionIdentity()
137 private void runManagedContactsTest(Callable<Void> callable) throws Exception { in runManagedContactsTest()
238 private static <T> T uncheck(Callable<T> callable) { in uncheck()
455 private <T> T callWithRenouncePermissions(@NonNull Callable<T> callable) in callWithRenouncePermissions()
580 private <T> T executeWithShellPermissionIdentity(Callable<T> callable) throws Exception { in executeWithShellPermissionIdentity()
120 public <T extends Object> T getOnService(Callable<T> callable) { in getOnService()
244 Callable<MediaPlayer> callable = new Callable<MediaPlayer>() { in createMediaPlayerOnMainThread() local
282 public SettableFuture(Callable<T> callable) { in SettableFuture()
544 private static Result runInSeparateThread(int allowedTime, final Callable<Result> callable) in runInSeparateThread()
1113 private void runCallable(final Callable<?> callable) throws Exception { in runCallable()