Home
last modified time | relevance | path

Searched refs:callback2 (Results 1 – 9 of 9) sorted by relevance

/cts/tests/tests/view/src/android/view/cts/
DOnBackInvokedDispatcherTest.java145 OnBackInvokedCallback callback2 = createBackCallback(); in testRegisterAndUnregisterCallbacks() local
149 OnBackInvokedDispatcher.PRIORITY_DEFAULT, callback2); in testRegisterAndUnregisterCallbacks()
150 dispatcher.unregisterOnBackInvokedCallback(callback2); in testRegisterAndUnregisterCallbacks()
152 dispatcher.unregisterOnBackInvokedCallback(callback2); in testRegisterAndUnregisterCallbacks()
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DBugreportManagerTest.java178 BugreportCallbackImpl callback2 = new BugreportCallbackImpl(); in simultaneousBugreportsNotAllowed() local
188 mBugreportManager.startConnectivityBugreport(bugreportFd2, Runnable::run, callback2); in simultaneousBugreportsNotAllowed()
195 callback2::isDone); in simultaneousBugreportsNotAllowed()
196 assertThat(callback2.getErrorCode()) in simultaneousBugreportsNotAllowed()
209 assertThat(callback2.hasReceivedProgress()).isFalse(); in simultaneousBugreportsNotAllowed()
/cts/tests/tests/media/projection/src/android/media/projection/cts/
DMediaProjectionManagerTest.java254 final MediaProjection.Callback callback2 = new MediaProjection.Callback() { in testGetMediaProjectionMultipleProjections() local
261 mediaProjection2.registerCallback(callback2, new Handler(Looper.getMainLooper())); in testGetMediaProjectionMultipleProjections()
/cts/tests/quickaccesswallet/src/android/quickaccesswallet/cts/
DQuickAccessWalletClientTest.java505 TestCallback callback2 = new TestCallback(); in testConnect_disconnect_reconnect_shouldWork() local
506 client.getWalletCards(GET_WALLET_CARDS_REQUEST, callback2); in testConnect_disconnect_reconnect_shouldWork()
507 callback2.await(3, TimeUnit.SECONDS); in testConnect_disconnect_reconnect_shouldWork()
510 assertThat(callback2.mResponse).isNotNull(); in testConnect_disconnect_reconnect_shouldWork()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DSecurityLoggingTest.kt618 val callback2 = QueueingEventCallback() in <lambda>() constant
619 localDpm.setAuditLogEventCallback(executor, callback2) in <lambda>()
626 assertThat(callback2.poll(eventPredicate)).isNotNull() in <lambda>()
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/
DMediaSession2Test.java328 Controller2Callback callback2 = new Controller2Callback() { in testBroadcastSessionCommand() local
341 .setControllerCallback(sHandlerExecutor, callback2) in testBroadcastSessionCommand()
346 assertThat(callback2.awaitOnConnected(WAIT_TIME_MS)).isTrue(); in testBroadcastSessionCommand()
/cts/tests/tests/wifi/src/android/net/wifi/sharedconnectivity/cts/
DSharedConnectivityTest.java175 TestSharedConnectivityClientCallback callback2 = in registerCallback_withoutPermission_throwsSecurityException() local
178 () -> manager.registerCallback(Runnable::run, callback2)); in registerCallback_withoutPermission_throwsSecurityException()
/cts/tests/tests/accounts/src/android/accounts/cts/
DAccountManagerTest.java1134 AccountManagerCallback<Account[]> callback2 = new AccountManagerCallback<Account[]>() { in testGetAccountsByTypeAndFeaturesWithCallbackAndHandler() local
1157 callback2, in testGetAccountsByTypeAndFeaturesWithCallbackAndHandler()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DWifiManagerTest.java2019 TestLocalOnlyHotspotCallback callback2 = new TestLocalOnlyHotspotCallback(mLock); in testStartLocalOnlyHotspotSingleRequestByApps() local
2021 sWifiManager.startLocalOnlyHotspot(callback2, null); in testStartLocalOnlyHotspotSingleRequestByApps()
2035 stopLocalOnlyHotspot(callback2, wifiEnabled); in testStartLocalOnlyHotspotSingleRequestByApps()