Home
last modified time | relevance | path

Searched refs:EXECUTOR (Results 1 – 24 of 24) sorted by relevance

/packages/modules/Uwb/framework/tests/src/android/uwb/
DUwbOemExtensionCallbackListenerTest.java57 private static final Executor EXECUTOR = UwbTestUtils.getExecutor(); field in UwbOemExtensionCallbackListenerTest
71 mUwbOemExtensionCallbackListener.register(EXECUTOR, mUwbOemExtensionCallback); in testRegisterUnregister()
80 mUwbOemExtensionCallbackListener.register(EXECUTOR, mUwbOemExtensionCallback2); in testRegisterUnregister()
95 () -> mUwbOemExtensionCallbackListener.register(EXECUTOR, in testRegister_failedThrowsRuntimeException()
101 mUwbOemExtensionCallbackListener.register(EXECUTOR, mUwbOemExtensionCallback); in testUnregister_failedThrowsRuntimeException()
111 mUwbOemExtensionCallbackListener.register(EXECUTOR, mUwbOemExtensionCallback); in testDuplicateRegister_IllegalArgumentException()
113 mUwbOemExtensionCallbackListener.register(EXECUTOR, mUwbOemExtensionCallback); in testDuplicateRegister_IllegalArgumentException()
122 mUwbOemExtensionCallbackListener.register(EXECUTOR, mUwbOemExtensionCallback); in testWrongCallback_IllegalArgumentException()
134 mUwbOemExtensionCallbackListener.register(EXECUTOR, mUwbOemExtensionCallback); in testOnSessionStatusNotificationReceived()
143 mUwbOemExtensionCallbackListener.register(EXECUTOR, mUwbOemExtensionCallback); in testOnDeviceStatusNotificationReceived()
[all …]
DUwbVendorUciCallbackListenerTest.java57 private static final Executor EXECUTOR = UwbTestUtils.getExecutor(); field in UwbVendorUciCallbackListenerTest
74 mUwbVendorUciCallbackListener.register(EXECUTOR, mUwbVendorUciCallback); in testRegisterUnregister()
78 mUwbVendorUciCallbackListener.register(EXECUTOR, mUwbVendorUciCallback); in testRegisterUnregister()
82 mUwbVendorUciCallbackListener.register(EXECUTOR, mUwbVendorUciCallback2); in testRegisterUnregister()
106 () -> mUwbVendorUciCallbackListener.register(EXECUTOR, mUwbVendorUciCallback)); in testRegister_failedThrowsRuntimeException()
111 mUwbVendorUciCallbackListener.register(EXECUTOR, mUwbVendorUciCallback); in testUnregister_failedThrowsRuntimeException()
141 mUwbVendorUciCallbackListener.register(EXECUTOR, mUwbVendorUciCallback); in testOnVendorResponseReceived_succeed()
145 mUwbVendorUciCallbackListener.register(EXECUTOR, mUwbVendorUciCallback2); in testOnVendorResponseReceived_succeed()
169 () -> mUwbVendorUciCallbackListener.register(EXECUTOR, mUwbVendorUciCallback)); in testOnVendorResponseReceived_failedThrowsRuntimeException()
192 mUwbVendorUciCallbackListener.register(EXECUTOR, mUwbVendorUciCallback); in testOnVendorNotificationReceived_succeed()
[all …]
DUwbManagerTest.java68 private static final Executor EXECUTOR = UwbTestUtils.getExecutor(); field in UwbManagerTest
96 mUwbManager.registerAdapterStateCallback(EXECUTOR, mAdapterStateCallback); in testRegisterUnregisterCallbacks()
98 mUwbManager.registerAdapterStateCallback(EXECUTOR, mAdapterStateCallback2); in testRegisterUnregisterCallbacks()
106 mUwbManager.registerUwbVendorUciCallback(EXECUTOR, mUwbVendorUciCallback); in testRegisterUnregisterCallbacks()
108 mUwbManager.registerUwbVendorUciCallback(EXECUTOR, mUwbVendorUciCallback2); in testRegisterUnregisterCallbacks()
186 mUwbManager.openRangingSession(PARAMS, EXECUTOR, callback); in testOpenRangingSession()
193 () -> mUwbManager.openRangingSession(PARAMS, EXECUTOR, callback, CHIP_ID)); in testOpenRangingSession()
197 mUwbManager.openRangingSession(PARAMS, EXECUTOR, callback, CHIP_ID); in testOpenRangingSession()
230 PARAMS, EXECUTOR, /*callback=*/ null)); in testProvisionProfileAdfByScript()
236 () -> mUwbManager.provisionProfileAdfByScript(PARAMS, EXECUTOR, cb)); in testProvisionProfileAdfByScript()
[all …]
DRangingSessionTest.java62 private static final Executor EXECUTOR = UwbTestUtils.getExecutor(); field in RangingSessionTest
81 RangingSession session = new RangingSession(EXECUTOR, callback, adapter, handle); in testOnRangingOpened_OnOpenSuccessCalled()
97 RangingSession session = new RangingSession(EXECUTOR, callback, adapter, handle); in testOnRangingOpened_OnServiceDiscoveredConnectedCalled()
120 RangingSession session = new RangingSession(EXECUTOR, callback, adapter, handle); in testOnRangingOpened_CannotOpenClosedSession()
144 RangingSession session = new RangingSession(EXECUTOR, callback, adapter, handle); in testOnRangingClosed_OnClosedCalledWhenSessionNotOpen()
160 RangingSession session = new RangingSession(EXECUTOR, callback, adapter, handle); in testOnRangingClosed_OnClosedCalled()
175 RangingSession session = new RangingSession(EXECUTOR, callback, adapter, handle); in testOnRangingResult_OnReportReceivedCalled()
191 RangingSession session = new RangingSession(EXECUTOR, callback, adapter, handle); in testStart_CannotStartIfAlreadyStarted()
208 RangingSession session = new RangingSession(EXECUTOR, callback, adapter, handle); in testStop_CannotStopIfAlreadyStopped()
227 RangingSession session = new RangingSession(EXECUTOR, callback, adapter, handle); in testStop_CannotStopIfOpenFailed()
[all …]
DRangingManagerTest.java55 private static final Executor EXECUTOR = UwbTestUtils.getExecutor(); field in RangingManagerTest
74 ATTRIBUTION_SOURCE, PARAMS, EXECUTOR, callback, /* chipIds= */ null); in testOpenSession_OpenRangingInvoked()
85 rangingManager.openSession(ATTRIBUTION_SOURCE, PARAMS, EXECUTOR, callback, VALID_CHIP_ID); in testOpenSession_validChipId_OpenRangingInvoked()
103 ATTRIBUTION_SOURCE, PARAMS, EXECUTOR, callback, VALID_CHIP_ID)); in testOpenSession_validChipId_RuntimeException()
117 ATTRIBUTION_SOURCE, PARAMS, EXECUTOR, callback, invalidChipId)); in testOpenSession_invalidChipId_IllegalArgumentException()
142 ATTRIBUTION_SOURCE, PARAMS, EXECUTOR, callback1, /* chipIds= */ null); in testOnRangingOpened_MultipleSessionsRegistered()
153 ATTRIBUTION_SOURCE, PARAMS, EXECUTOR, callback2, /* chipIds= */ null); in testOnRangingOpened_MultipleSessionsRegistered()
182 ATTRIBUTION_SOURCE, PARAMS, EXECUTOR, callback, /* chipIds= */ null); in testCorrectCallbackInvoked()
308 ATTRIBUTION_SOURCE, PARAMS, EXECUTOR, callback, /* chipIds= */ null); in testNoCallbackInvoked_sessionClosed()
429 ATTRIBUTION_SOURCE, PARAMS, EXECUTOR, callback1, /* chipIds= */ null); in testOnRangingClosed_MultipleSessionsRegistered()
[all …]
/packages/modules/Connectivity/nearby/tests/cts/fastpair/src/android/nearby/cts/
DNearbyManagerTest.java119 private static final Executor EXECUTOR = Executors.newSingleThreadExecutor(); field in NearbyManagerTest
138 mNearbyManager.startScan(mScanRequest, EXECUTOR, mScanCallback); in test_startAndStopScan()
147 .startScan(mScanRequest, EXECUTOR, mScanCallback)); in test_startScan_noPrivilegedPermission()
153 mNearbyManager.startScan(mScanRequest, EXECUTOR, mScanCallback); in test_stopScan_noPrivilegedPermission()
186 mNearbyManager.queryOffloadCapability(EXECUTOR, callback); in queryOffloadScanSupport()
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/
DThreadPool.java34 public static final ExecutorService EXECUTOR; field in ThreadPool
43 EXECUTOR = executor;
/packages/modules/Connectivity/remoteauth/service/java/com/android/server/remoteauth/connectivity/
DConnectivityManagerFactory.java33 private static final ExecutorService EXECUTOR = Executors.newSingleThreadExecutor(); field in ConnectivityManagerFactory
46 return new CdmConnectivityManager(EXECUTOR, new CompanionDeviceManagerWrapper( in getConnectivityManager()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/discovery/
DDiscoveryProviderFactoryTest.java64 private static final Executor EXECUTOR = UwbTestUtils.getExecutor(); field in DiscoveryProviderFactoryTest
122 EXECUTOR, in testScanStart()
136 EXECUTOR, in testAdvertiseStart()
DTransportProviderFactoryTest.java61 private static final Executor EXECUTOR = UwbTestUtils.getExecutor(); field in TransportProviderFactoryTest
120 EXECUTOR, in testClientStart()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/discovery/ble/
DBleDiscoveryScanProviderTest.java72 private static final Executor EXECUTOR = UwbTestUtils.getExecutor(); field in BleDiscoveryScanProviderTest
95 EXECUTOR, in setUp()
111 EXECUTOR, in testStartScan_successWithScanInfo()
251 EXECUTOR.execute( in testBleScanResult()
DBleDiscoveryAdvertiseProviderTest.java65 private static final Executor EXECUTOR = UwbTestUtils.getExecutor(); field in BleDiscoveryAdvertiseProviderTest
115 EXECUTOR, in setUp()
194 EXECUTOR.execute( in teststartAdvertisingSet()
DGattTransportClientProviderTest.java84 private static final Executor EXECUTOR = UwbTestUtils.getExecutor(); field in GattTransportClientProviderTest
177 EXECUTOR, in setUp()
230 EXECUTOR.execute( in setupGattConnect()
259 EXECUTOR.execute( in setupGattServicesDiscover()
274 EXECUTOR.execute( in setupGattWriteCharacteristic()
294 EXECUTOR.execute( in setupGattWriteDescriptor()
636 EXECUTOR.execute( in notifyAndReadOutCharacteristic()
DGattTransportServerProviderTest.java80 private static final Executor EXECUTOR = UwbTestUtils.getExecutor(); field in GattTransportServerProviderTest
325 EXECUTOR.execute( in setupOutCharactersticRead()
/packages/modules/AppSearch/testing/appsindexertests/src/com/android/server/appsearch/appsindexer/
DAppsIndexerTestBase.java50 private static final Executor EXECUTOR = Executors.newCachedThreadPool(); field in AppsIndexerTestBase
134 mContext.getPackageName(), new ObserverSpec.Builder().build(), EXECUTOR, mCallback); in setupLatch() local
/packages/apps/Dialer/java/com/android/dialer/shortcuts/
DShortcutUsageReporter.java54 private static final AsyncTaskExecutor EXECUTOR = AsyncTaskExecutors.createThreadPoolExecutor(); field in ShortcutUsageReporter
75 EXECUTOR.submit(Task.ID, new Task(context), phoneNumber); in onOutgoingCallAdded()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/
DAppSearchMaintenanceService.java46 private static final Executor EXECUTOR = Executors.newSingleThreadExecutor(); field in AppSearchMaintenanceService
118 EXECUTOR.execute(() -> doFullyPersistJobForUser(this, params, userId, signal)); in onStartJob()
/packages/modules/AdServices/adservices/tests/cts/hosttests/app/src/com/android/adservices/cts/
DAppSearchWriterActivity.java49 private static final Executor EXECUTOR = Executors.newCachedThreadPool(); field in AppSearchWriterActivity
149 mgr.getMeasurementApiStatus(EXECUTOR, getOutcomeReceiver("GetMeasurementStatus")); in callMeasurementApi()
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/database/
DRkpdDatabase.java54 .setQueryExecutor(ThreadPool.EXECUTOR) in getDatabase()
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/service/
DRemoteProvisioningService.java92 ThreadPool.EXECUTOR); in getRegistration()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/examplestore/
DFederatedExampleIteratorTest.java97 private static final ListeningExecutorService EXECUTOR = field in FederatedExampleIteratorTest
342 EXECUTOR.submit( in runInBackground()
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/fingerprint/
DFingerprintEnrollEnrollingTest.java191 LottieTask.EXECUTOR = mContext.getMainExecutor(); in fingerprintUdfpsOverlayEnrollment_PlaysAllAnimationsAssetsCorrectly()
445 LottieTask.EXECUTOR = mContext.getMainExecutor(); in fingerprintSfpsEnroll_PlaysAnimations()
/packages/modules/AdServices/adservices/libraries/cobalt/tests/src/com/android/cobalt/impl/
DCobaltPeriodicJobImplTest.java95 private static final ExecutorService EXECUTOR = Executors.newCachedThreadPool(); field in CobaltPeriodicJobImplTest
308 mDataService = new DataService(EXECUTOR, mCobaltDatabase);
320 EXECUTOR,
/packages/modules/AdServices/adservices/libraries/cobalt/tests/src/com/android/cobalt/data/
DDataServiceTest.java56 private static final ExecutorService EXECUTOR = Executors.newCachedThreadPool(); field in DataServiceTest
115 mDataService = new DataService(EXECUTOR, mCobaltDatabase); in setup()