/cts/apps/CtsVerifier/src/com/android/cts/verifier/presence/nan/ |
D | RttRanger.java | 35 private final Executor executor; field in RttRanger 40 public RttRanger(Context context, Executor executor) { in RttRanger() argument 41 this.executor = executor; in RttRanger() 55 executor, in startRanging()
|
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/ |
D | MediaCommunicationManagerTest.java | 88 Executor executor = Executors.newSingleThreadExecutor(); in testGetSession2Tokens() local 94 mManager.registerSessionCallback(executor, managerCallback); in testGetSession2Tokens() 97 .setSessionCallback(executor, sessionCallback) in testGetSession2Tokens() 112 Executor executor = Executors.newSingleThreadExecutor(); in registerSessionCallback_noMediaContentControlPermission_throwsSecurityException() local 119 () -> mManager.registerSessionCallback(executor, managerCallback)); in registerSessionCallback_noMediaContentControlPermission_throwsSecurityException() 129 Executor executor = Executors.newSingleThreadExecutor(); in testManagerSessionCallback() local 135 mManager.registerSessionCallback(executor, managerCallback); in testManagerSessionCallback() 139 .setSessionCallback(executor, sessionCallback) in testManagerSessionCallback() 152 .setSessionCallback(executor, sessionCallback).build(); in testManagerSessionCallback()
|
/cts/tests/sensor/src/android/hardware/cts/helpers/sensoroperations/ |
D | TestSensorOperation.java | 93 public TestSensorOperation(TestSensorEnvironment environment, Executor executor) { in TestSensorOperation() argument 94 this(environment, executor, null /* handler */); in TestSensorOperation() 102 Executor executor, in TestSensorOperation() argument 105 mExecutor = executor; in TestSensorOperation() 245 Executor executor = new Executor() { in createOperation() local 257 return new TestSensorOperation(environment, executor); in createOperation() 273 Executor executor = new Executor() { in createOperation() local 347 return new TestSensorOperation(environment, executor); in createOperation() 361 Executor executor = new Executor() { in createOperation() local 373 return new TestSensorOperation(environment, executor); in createOperation() [all …]
|
D | ParallelSensorOperation.java | 86 ThreadPoolExecutor executor = new ThreadPoolExecutor( in execute() local 92 executor.allowCoreThreadTimeOut(true); in execute() 93 executor.prestartAllCoreThreads(); in execute() 98 Future<SensorOperation> future = executor.submit(new Callable<SensorOperation>() { in execute() 135 executor.shutdownNow(); in execute()
|
/cts/tests/tests/telephony/current/LocationAccessingApp/src/android/telephony/cts/locationaccessingapp/ |
D | CtsLocationAccessService.java | 106 Executor executor = new Handler(handlerThread.getLooper())::post; in listenForCellInfo() local 107 PhoneStateListener listener = new PhoneStateListener(executor) { in listenForCellInfo() 130 Executor executor = new Handler(handlerThread.getLooper())::post; in listenForCellLocation() local 131 PhoneStateListener listener = new PhoneStateListener(executor) { in listenForCellLocation() 154 Executor executor = new Handler(handlerThread.getLooper())::post; in listenForServiceState() local 155 PhoneStateListener listener = new PhoneStateListener(executor) { in listenForServiceState() 182 Executor executor = new Handler(handlerThread.getLooper())::post; in requestCellInfoUpdate() local 190 mTelephonyManager.requestCellInfoUpdate(executor, cb); in requestCellInfoUpdate()
|
/cts/tests/framework/base/biometrics/apps/biometrics/src/android/server/biometrics/ |
D | Class2BiometricActivity.java | 40 final Executor executor = handler::post; in onResume() local 47 .setNegativeButton("Negative Button", executor, (dialog, which) -> { in onResume() 53 bp.authenticate(new CancellationSignal(), executor, callbackHelper); in onResume()
|
D | Class3BiometricActivity.java | 37 final Executor executor = handler::post; in onResume() local 44 .setNegativeButton("Negative Button", executor, (dialog, which) -> { in onResume() 50 bp.authenticate(new CancellationSignal(), executor, callbackHelper); in onResume()
|
D | Class2BiometricOrCredentialActivity.java | 38 final Executor executor = handler::post; in onResume() local 49 bp.authenticate(new CancellationSignal(), executor, callbackHelper); in onResume()
|
/cts/hostsidetests/devicepolicy/app/StartInfoApp/src/com/android/cts/startinfoapp/ |
D | ApiTestActivity.java | 182 final ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor(); in addMultipleListeners() local 197 am.addApplicationStartInfoCompletionListener(executor, listenerFirst); in addMultipleListeners() 198 am.addApplicationStartInfoCompletionListener(executor, listenerSecond); in addMultipleListeners() 215 final ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor(); in addAndRemoveListener() local 234 am.addApplicationStartInfoCompletionListener(executor, listenerToRemove); in addAndRemoveListener() 235 am.addApplicationStartInfoCompletionListener(executor, listenerToTrigger); in addAndRemoveListener()
|
/cts/tests/appsearch/testutils/src/android/app/appsearch/testutil/ |
D | EnterpriseGlobalSearchSessionShimImpl.java | 70 ExecutorService executor = Executors.newCachedThreadPool(); in createEnterpriseGlobalSearchSessionAsync() local 71 appSearchManager.createEnterpriseGlobalSearchSession(executor, future::set); in createEnterpriseGlobalSearchSessionAsync() 82 executor)); in createEnterpriseGlobalSearchSessionAsync() 84 executor); in createEnterpriseGlobalSearchSessionAsync() 88 @NonNull EnterpriseGlobalSearchSession session, @NonNull ExecutorService executor) { 90 mExecutor = Objects.requireNonNull(executor);
|
D | GlobalSearchSessionShimImpl.java | 73 ExecutorService executor = Executors.newCachedThreadPool(); in createGlobalSearchSessionAsync() local 74 appSearchManager.createGlobalSearchSession(executor, future::set); in createGlobalSearchSessionAsync() 77 instance -> new GlobalSearchSessionShimImpl(instance.getResultValue(), executor), in createGlobalSearchSessionAsync() 78 executor); in createGlobalSearchSessionAsync() 82 @NonNull GlobalSearchSession session, @NonNull ExecutorService executor) { in GlobalSearchSessionShimImpl() argument 84 mExecutor = Objects.requireNonNull(executor); in GlobalSearchSessionShimImpl() 131 @NonNull Executor executor, in registerObserverCallback() argument
|
D | AppSearchSessionShimImpl.java | 88 @NonNull ExecutorService executor) { in createSearchSessionAsync() argument 91 appSearchManager.createSearchSession(searchContext, executor, future::set); in createSearchSessionAsync() 94 instance -> new AppSearchSessionShimImpl(instance.getResultValue(), executor), in createSearchSessionAsync() 95 executor); in createSearchSessionAsync() 99 @NonNull AppSearchSession session, @NonNull ExecutorService executor) { in AppSearchSessionShimImpl() argument 101 mExecutor = Objects.requireNonNull(executor); in AppSearchSessionShimImpl()
|
D | SearchResultsShimImpl.java | 43 SearchResultsShimImpl(@NonNull SearchResults searchResults, @NonNull Executor executor) { in SearchResultsShimImpl() argument 44 mExecutor = Objects.requireNonNull(executor); in SearchResultsShimImpl()
|
/cts/tests/app/src/android/app/cts/ |
D | RequestTileServiceAddTest.kt | 66 private val executor = MoreExecutors.directExecutor() constant in android.app.cts.RequestTileServiceAddTest 90 executor, in testRequestBadPackageFails() 107 executor, in testRequestBadComponentName() 129 executor, in testDisabledComponent() 153 executor, in testNotExportedComponent() 176 executor, in testAppNotInForeground() 196 executor, in testTwoSimultaneousRequests() 206 executor, in testTwoSimultaneousRequests()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | ExtraBusinessLogicTestCase.java | 62 BusinessLogicExecutor executor = new BusinessLogicDeviceExecutor( in handleBusinessLogic() local 69 mBusinessLogic.applyLogicFor(extraBusinessLogic, executor); in handleBusinessLogic()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | NullBindingCallScreeningServiceTest.java | 117 Executor executor = mContext.getMainExecutor(); in addRoleHolder() local 121 packageName, RoleManager.MANAGE_HOLDERS_FLAG_DONT_KILL_APP, user, executor, in addRoleHolder() 136 Executor executor = mContext.getMainExecutor(); in removeRoleHolder() local 140 packageName, RoleManager.MANAGE_HOLDERS_FLAG_DONT_KILL_APP, user, executor, in removeRoleHolder()
|
D | CtsRoleManagerAdapter.java | 108 Executor executor = mContext.getMainExecutor(); in addRoleHolder() local 112 RoleManager.MANAGE_HOLDERS_FLAG_DONT_KILL_APP, user, executor, in addRoleHolder() 128 Executor executor = mContext.getMainExecutor(); in removeRoleHolderInternal() local 131 mRoleManager.removeRoleHolderAsUser(roleName, packageName, 0, user, executor, in removeRoleHolderInternal()
|
/cts/tests/appsearch/src/com/android/cts/appsearch/app/ |
D | AppSearchSessionCtsTest.java | 40 @NonNull String dbName, @NonNull ExecutorService executor) { in createSearchSessionAsync() argument 43 new AppSearchManager.SearchContext.Builder(dbName).build(), executor); in createSearchSessionAsync()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | FileUtilsTest.java | 83 final Executor executor = AsyncTask.THREAD_POOL_EXECUTOR; in testCopyFileStreamListener() local 87 FileUtils.copy(in, out, null, executor, (progress) -> { in testCopyFileStreamListener() 104 final Executor executor = AsyncTask.THREAD_POOL_EXECUTOR; in testCopyFileDescriptorListener() local 108 FileUtils.copy(in.getFD(), out.getFD(), null, executor, (progress) -> { in testCopyFileDescriptorListener() local
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/util/ |
D | DefaultSmsAppHelper.java | 55 Executor executor = context.getMainExecutor(); in ensureDefaultSmsApp() local 67 executor, in ensureDefaultSmsApp() 89 Executor executor = context.getMainExecutor(); in stopBeingDefaultSmsApp() local 101 executor, in stopBeingDefaultSmsApp()
|
/cts/tests/framework/base/biometrics/src/android/server/biometrics/ |
D | BiometricTestBase.java | 374 final Executor executor = handler::post; in showCredentialOnlyBiometricPromptWithContents() local 384 prompt.authenticate(cancellationSignal, executor, callback); in showCredentialOnlyBiometricPromptWithContents() 398 final Executor executor = handler::post; in showDeviceCredentialAllowedBiometricPrompt() local 407 prompt.authenticate(cancellationSignal, executor, callback); in showDeviceCredentialAllowedBiometricPrompt() 424 final Executor executor = handler::post; in showDefaultBiometricPromptWithLogo() local 430 .setNegativeButton("Negative Button", executor, (dialog, which) -> { in showDefaultBiometricPromptWithLogo() 445 prompt.authenticate(cancellationSignal, executor, callback); in showDefaultBiometricPromptWithLogo() 461 final Executor executor = handler::post; in showDefaultBiometricPromptWithContents() local 468 .setNegativeButton(negativeButtonText, executor, (dialog, which) -> { in showDefaultBiometricPromptWithContents() 474 prompt.authenticate(new CancellationSignal(), executor, callback); in showDefaultBiometricPromptWithContents() [all …]
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | CameraManagerTest.java | 350 final Executor executor = useExecutor ? new HandlerExecutor(mHandler) : null; in testCameraManagerOpenCamerasSerially() local 360 mCameraManager.openCamera(ids[i], executor, mCameraListener); in testCameraManagerOpenCamerasSerially() 401 final Executor executor = useExecutor ? new HandlerExecutor(mHandler) : null; in testCameraManagerOpenAllCameras() local 422 mCameraManager.openCamera(cameraId, executor, mCameraListener); in testCameraManagerOpenAllCameras() 540 final Executor executor = useExecutor ? new HandlerExecutor(mHandler) : null; in testCameraManagerOpenCameraTwice() local 557 mCameraManager.openCamera(ids[i], executor, successListener); in testCameraManagerOpenCameraTwice() 558 mCameraManager.openCamera(ids[i], executor, failListener); in testCameraManagerOpenCameraTwice() 614 Executor executor = new HandlerExecutor(mHandler); in testCameraManagerListener() local 615 mCameraManager.registerAvailabilityCallback(executor, mListener); in testCameraManagerListener() 616 mCameraManager.registerAvailabilityCallback(executor, mListener); in testCameraManagerListener() [all …]
|
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/ |
D | TestImsConfig.java | 37 TestImsConfig(Executor executor) { in TestImsConfig() argument 38 super(executor); in TestImsConfig()
|
D | TestMmTelFeature.java | 86 TestImsService.CapabilitiesSetListener setListener, Executor executor) { in TestMmTelFeature() argument 87 super(executor); in TestMmTelFeature() 297 Executor executor = incomingSession.getExecutor(); in onIncomingCallReceived() local 298 executor.execute(() -> { in onIncomingCallReceived() 324 Executor executor = incomingSession.getExecutor(); in onIncomingVtCallReceived() local 325 executor.execute(() -> { in onIncomingVtCallReceived()
|
/cts/tests/tests/media/audio/src/android/media/audio/cts/ |
D | UtilsTest.java | 58 final Executor executor = new Executor() { in testListenerList() local 66 listeners.add(key, executor, (int eventCode, Long l) -> { in testListenerList()
|