Home
last modified time | relevance | path

Searched refs:callable (Results 1 – 20 of 20) 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/tests/suspendapps/permission/src/android/suspendapps/permission/cts/
DNegativePermissionsTest.java59 private void assertSecurityException(Callable callable, String tag) { in assertSecurityException() argument
61 callable.call(); in assertSecurityException()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DSystemUtil.java297 public static <T> T callWithShellPermissionIdentity(@NonNull Callable<T> callable) in callWithShellPermissionIdentity() argument
302 return callable.call(); in callWithShellPermissionIdentity()
314 public static <T> T callWithShellPermissionIdentity(@NonNull Callable<T> callable, in callWithShellPermissionIdentity() argument
319 return callable.call(); in callWithShellPermissionIdentity()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DUserActionCallback.java126 public <V> V callAndUnregisterSelf(Callable<V> callable) in callAndUnregisterSelf() argument
129 return callable.call(); in callAndUnregisterSelf()
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/
DUtils.java106 static <T> T callOnHandlerThread(Callable<T> callable) throws Exception { in callOnHandlerThread() argument
116 T result = callable.call(); in callOnHandlerThread()
/cts/hostsidetests/backup/src/android/cts/backup/
DBackupPreparer.java239 private static <T> T uncheck(Callable<T> callable) { in uncheck() argument
241 return callable.call(); in uncheck()
/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/tests/security/src/android/security/cts/
DAttributionSourceService.java125 SettableFuture(Callable<T> callable) { in SettableFuture() argument
126 super(callable); in SettableFuture()
/cts/tests/tests/virtualdevice/camera/src/android/virtualdevice/cts/camera/util/jni/
Dandroid_virtualdevice_cts_camera_util_NativeCameraManager.cc63 static void executeInJvm(JavaVM* jvm, jniEnvCallable callable) { in executeInJvm() argument
86 callable(env); in executeInJvm()
/cts/tests/accessibility/common/src/android/accessibility/cts/common/
DInstrumentedAccessibilityService.java120 public <T extends Object> T getOnService(Callable<T> callable) { in getOnService() argument
126 returnValue.set(callable.call()); in getOnService()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DManagedProfileContactsTest.java141 private void runManagedContactsTest(Callable<Void> callable) throws Exception { in runManagedContactsTest() argument
187 callable.call(); in runManagedContactsTest()
/cts/tests/tests/media/player/src/android/media/player/cts/
DMediaPlayerFlakyNetworkTest.java246 Callable<MediaPlayer> callable = new Callable<MediaPlayer>() { in createMediaPlayerOnMainThread() local
252 FutureTask<MediaPlayer> future = new FutureTask<MediaPlayer>(callable); in createMediaPlayerOnMainThread()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyLocationTests.java438 private <T> T callWithRenouncePermissions(@NonNull Callable<T> callable) in callWithRenouncePermissions() argument
443 return callable.call(); in callWithRenouncePermissions()
DSmsManagerTest.java641 private <T> T executeWithShellPermissionIdentity(Callable<T> callable) throws Exception { in executeWithShellPermissionIdentity() argument
643 return callable.call(); in executeWithShellPermissionIdentity()
650 return callable.call(); in executeWithShellPermissionIdentity()
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DBaseNotificationManagerTest.java188 protected static <T> T callAsSystemUi(@NonNull Callable<T> callable) { in callAsSystemUi() argument
190 return SystemUtil.callWithShellPermissionIdentity(callable, in callAsSystemUi()
/cts/tests/camera/src/android/hardware/multiprocess/camera/cts/
DErrorLoggingService.java317 public SettableFuture(Callable<T> callable) { in SettableFuture() argument
318 super(callable); in SettableFuture()
/cts/tests/net/src/android/net/cts/
DLocalSocketTest.java544 private static Result runInSeparateThread(int allowedTime, final Callable<Result> callable) in runInSeparateThread() argument
547 Future<Result> future = service.submit(callable); in runInSeparateThread()
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DVideoCodecTestBase.java1114 private void runCallable(final Callable<?> callable) throws Exception { in runCallable() argument
1122 callable.call(); in runCallable()
1137 callable.call(); in runCallable()