Home
last modified time | relevance | path

Searched refs:callable (Results 1 – 14 of 14) sorted by relevance

/cts/libs/deviceutillegacy/src/android/webkit/cts/
DWebkitUtils.java60 public static <T> Future<T> onMainThread(final Callable<T> callable) { in onMainThread() argument
66 future.set(callable.call()); in onMainThread()
95 public static <T> T onMainThreadSync(final Callable<T> callable) { in onMainThreadSync() argument
99 return waitForFuture(onMainThread(callable)); in onMainThreadSync()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DRunOnMainUtils.java32 Instrumentation instrumentation, Callable<T> callable) { in getOnMain() argument
37 returnValue.set(callable.call()); in getOnMain()
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/
DMockVsyncHelper.java57 public static void runOnVsyncThread(CallableVoid callable) { in runOnVsyncThread() argument
62 callable.call(); in runOnVsyncThread()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DSystemUtil.java196 public static <T> T callWithShellPermissionIdentity(@NonNull Callable<T> callable) in callWithShellPermissionIdentity() argument
201 return callable.call(); in callWithShellPermissionIdentity()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DSystemUtil.java210 public static <T> T callWithShellPermissionIdentity(@NonNull Callable<T> callable) in callWithShellPermissionIdentity() argument
215 return callable.call(); in callWithShellPermissionIdentity()
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/
DBindDeviceAdminServiceGoodSetupTest.java180 T expected, CrossUserCallable<T> callable, UserHandle targetUserHandle) in assertCrossProfileCall() argument
211 assertEquals(expected, callable.call(crossUserService)); in assertCrossProfileCall()
/cts/tests/accessibility/common/src/android/accessibility/cts/common/
DInstrumentedAccessibilityService.java119 public <T extends Object> T getOnService(Callable<T> callable) { in getOnService() argument
124 returnValue.set(callable.call()); in getOnService()
/cts/tests/tests/media/src/android/media/cts/
DMediaPlayerFlakyNetworkTest.java220 Callable<MediaPlayer> callable = new Callable<MediaPlayer>() { in createMediaPlayerOnMainThread() local
226 FutureTask<MediaPlayer> future = new FutureTask<MediaPlayer>(callable); in createMediaPlayerOnMainThread()
DVpxCodecTestBase.java999 private void runCallable(final Callable<?> callable) throws Exception { in runCallable() argument
1007 callable.call(); in runCallable()
1022 callable.call(); in runCallable()
/cts/tests/tests/net/src/android/net/cts/
DLocalSocketTest.java434 private static Result runInSeparateThread(int allowedTime, final Callable<Result> callable) in runInSeparateThread() argument
437 Future<Result> future = service.submit(callable); in runInSeparateThread()
/cts/tests/camera/src/android/hardware/multiprocess/camera/cts/
DErrorLoggingService.java281 public SettableFuture(Callable<T> callable) { in SettableFuture() argument
282 super(callable); in SettableFuture()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSmsManagerTest.java535 private <T> T executeWithShellPermissionIdentity(Callable<T> callable) throws Exception { in executeWithShellPermissionIdentity() argument
537 return callable.call(); in executeWithShellPermissionIdentity()
544 return callable.call(); in executeWithShellPermissionIdentity()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/
DBasePermissionsTest.java617 Callable<AccessibilityNodeInfo> callable, boolean retry) throws Exception { in getNodeTimed() argument
621 AccessibilityNodeInfo node = callable.call(); in getNodeTimed()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DManagedProfileTest.java1722 private void runManagedContactsTest(Callable<Void> callable) throws Exception { in runManagedContactsTest() argument
1767 callable.call(); in runManagedContactsTest()