/cts/libs/deviceutillegacy/src/android/webkit/cts/ |
D | WebkitUtils.java | 60 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/ |
D | RunOnMainUtils.java | 32 Instrumentation instrumentation, Callable<T> callable) { in getOnMain() argument 37 returnValue.set(callable.call()); in getOnMain()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/ |
D | MockVsyncHelper.java | 57 public static void runOnVsyncThread(CallableVoid callable) { in runOnVsyncThread() argument 62 callable.call(); in runOnVsyncThread()
|
/cts/tests/suspendapps/permission/src/android/suspendapps/permission/cts/ |
D | NegativePermissionsTest.java | 59 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/ |
D | SystemUtil.java | 297 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/ |
D | UserActionCallback.java | 126 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/ |
D | Utils.java | 106 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/ |
D | BackupPreparer.java | 239 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/ |
D | BindDeviceAdminServiceGoodSetupTest.java | 180 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/ |
D | AttributionSourceService.java | 125 SettableFuture(Callable<T> callable) { in SettableFuture() argument 126 super(callable); in SettableFuture()
|
/cts/tests/tests/virtualdevice/camera/src/android/virtualdevice/cts/camera/util/jni/ |
D | android_virtualdevice_cts_camera_util_NativeCameraManager.cc | 63 static void executeInJvm(JavaVM* jvm, jniEnvCallable callable) { in executeInJvm() argument 86 callable(env); in executeInJvm()
|
/cts/tests/accessibility/common/src/android/accessibility/cts/common/ |
D | InstrumentedAccessibilityService.java | 120 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/ |
D | ManagedProfileContactsTest.java | 141 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/ |
D | MediaPlayerFlakyNetworkTest.java | 246 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/ |
D | TelephonyLocationTests.java | 438 private <T> T callWithRenouncePermissions(@NonNull Callable<T> callable) in callWithRenouncePermissions() argument 443 return callable.call(); in callWithRenouncePermissions()
|
D | SmsManagerTest.java | 641 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/ |
D | BaseNotificationManagerTest.java | 188 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/ |
D | ErrorLoggingService.java | 317 public SettableFuture(Callable<T> callable) { in SettableFuture() argument 318 super(callable); in SettableFuture()
|
/cts/tests/net/src/android/net/cts/ |
D | LocalSocketTest.java | 544 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/ |
D | VideoCodecTestBase.java | 1114 private void runCallable(final Callable<?> callable) throws Exception { in runCallable() argument 1122 callable.call(); in runCallable() 1137 callable.call(); in runCallable()
|