Home
last modified time | relevance | path

Searched refs:executor (Results 1 – 25 of 94) sorted by relevance

1234

/cts/apps/CtsVerifier/src/com/android/cts/verifier/presence/nan/
DRttRanger.java35 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/
DMediaCommunicationManagerTest.java88 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/
DTestSensorOperation.java93 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 …]
DParallelSensorOperation.java86 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/
DCtsLocationAccessService.java106 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/
DClass2BiometricActivity.java40 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()
DClass3BiometricActivity.java37 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()
DClass2BiometricOrCredentialActivity.java38 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/
DApiTestActivity.java182 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/
DEnterpriseGlobalSearchSessionShimImpl.java70 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);
DGlobalSearchSessionShimImpl.java73 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
DAppSearchSessionShimImpl.java88 @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()
DSearchResultsShimImpl.java43 SearchResultsShimImpl(@NonNull SearchResults searchResults, @NonNull Executor executor) { in SearchResultsShimImpl() argument
44 mExecutor = Objects.requireNonNull(executor); in SearchResultsShimImpl()
/cts/tests/app/src/android/app/cts/
DRequestTileServiceAddTest.kt66 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/
DExtraBusinessLogicTestCase.java62 BusinessLogicExecutor executor = new BusinessLogicDeviceExecutor( in handleBusinessLogic() local
69 mBusinessLogic.applyLogicFor(extraBusinessLogic, executor); in handleBusinessLogic()
/cts/tests/tests/telecom/src/android/telecom/cts/
DNullBindingCallScreeningServiceTest.java117 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()
DCtsRoleManagerAdapter.java108 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/
DAppSearchSessionCtsTest.java40 @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/
DFileUtilsTest.java83 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/
DDefaultSmsAppHelper.java55 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/
DBiometricTestBase.java374 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/
DCameraManagerTest.java350 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/
DTestImsConfig.java37 TestImsConfig(Executor executor) { in TestImsConfig() argument
38 super(executor); in TestImsConfig()
DTestMmTelFeature.java86 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/
DUtilsTest.java58 final Executor executor = new Executor() { in testListenerList() local
66 listeners.add(key, executor, (int eventCode, Long l) -> { in testListenerList()

1234