Home
last modified time | relevance | path

Searched refs:callback1 (Results 1 – 8 of 8) sorted by relevance

/cts/tests/tests/telephony/current/src/android/telephony/satellite/cts/
DSatelliteManagerTest.java507 SatelliteModemStateCallbackTest callback1 = new SatelliteModemStateCallbackTest(); in testSatelliteModemStateChanged() local
509 .registerForModemStateChanged(getContext().getMainExecutor(), callback1); in testSatelliteModemStateChanged()
511 assertTrue(callback1.waitUntilResult(1)); in testSatelliteModemStateChanged()
512 assertEquals(SatelliteManager.SATELLITE_MODEM_STATE_IDLE, callback1.modemState); in testSatelliteModemStateChanged()
522 callback1.clearModemStates(); in testSatelliteModemStateChanged()
540 assertTrue(callback1.waitUntilResult(2)); in testSatelliteModemStateChanged()
541 assertTrue(callback1.getTotalCountOfModemStates() >= 2); in testSatelliteModemStateChanged()
543 callback1.getModemState(0)); in testSatelliteModemStateChanged()
552 callback1.getModemState(1)); in testSatelliteModemStateChanged()
565 callback1.getModemState(1)); in testSatelliteModemStateChanged()
[all …]
DSatelliteManagerTestOnMockService.java537 callback1 = new SatelliteModemStateCallbackTest(); in testSatelliteModemStateChanged() local
539 .registerForModemStateChanged(getContext().getMainExecutor(), callback1); in testSatelliteModemStateChanged()
541 assertTrue(callback1.waitUntilResult(1)); in testSatelliteModemStateChanged()
542 assertEquals(SatelliteManager.SATELLITE_MODEM_STATE_IDLE, callback1.modemState); in testSatelliteModemStateChanged()
549 sendSatelliteDatagramWithSuccessfulResult(callback1, true); in testSatelliteModemStateChanged()
555 sendSatelliteDatagramWithSuccessfulResult(callback1, false); in testSatelliteModemStateChanged()
558 receiveSatelliteDatagramWithSuccessfulResult(callback1); in testSatelliteModemStateChanged()
561 sendSatelliteDatagramWithFailedResult(callback1); in testSatelliteModemStateChanged()
564 sendSatelliteDatagramWithSuccessfulResult(callback1, false); in testSatelliteModemStateChanged()
567 receiveSatelliteDatagramWithFailedResult(callback1); in testSatelliteModemStateChanged()
[all …]
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DBugreportManagerTest.java177 BugreportCallbackImpl callback1 = new BugreportCallbackImpl(); in simultaneousBugreportsNotAllowed() local
182 assertThat(callback1.hasEarlyReportFinished()).isFalse(); in simultaneousBugreportsNotAllowed()
185 mBugreportManager.startConnectivityBugreport(mBugreportFd, Runnable::run, callback1); in simultaneousBugreportsNotAllowed()
201 waitUntilDoneOrTimeout(callback1); in simultaneousBugreportsNotAllowed()
203 assertThat(callback1.isSuccess()).isTrue(); in simultaneousBugreportsNotAllowed()
204 assertThat(callback1.hasEarlyReportFinished()).isTrue(); in simultaneousBugreportsNotAllowed()
205 assertThat(callback1.hasReceivedProgress()).isTrue(); in simultaneousBugreportsNotAllowed()
/cts/tests/tests/view/src/android/view/cts/
DOnBackInvokedDispatcherTest.java144 OnBackInvokedCallback callback1 = createBackCallback(); in testRegisterAndUnregisterCallbacks() local
147 OnBackInvokedDispatcher.PRIORITY_OVERLAY, callback1); in testRegisterAndUnregisterCallbacks()
151 dispatcher.unregisterOnBackInvokedCallback(callback1); in testRegisterAndUnregisterCallbacks()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DSecurityLoggingTest.kt615 val callback1 = QueueingEventCallback() in <lambda>() constant
616 localDpm.setAuditLogEventCallback(executor, callback1) in <lambda>()
625 assertThat(callback1.poll(eventPredicate)).isNull() in <lambda>()
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/
DMediaSession2Test.java310 Controller2Callback callback1 = new Controller2Callback() { in testBroadcastSessionCommand() local
324 .setControllerCallback(sHandlerExecutor, callback1) in testBroadcastSessionCommand()
345 assertThat(callback1.awaitOnConnected(WAIT_TIME_MS)).isTrue(); in testBroadcastSessionCommand()
/cts/tests/camera/src/android/hardware/cts/
DCameraTest.java2607 SimplePreviewStreamCbI callback1 = new SimplePreviewStreamCbI(1, previewDone1); in testMultiCameraRelease() local
2608 looperInfo1.camera.setPreviewCallback(callback1); in testMultiCameraRelease()
/cts/tests/tests/accounts/src/android/accounts/cts/
DAccountManagerTest.java1093 AccountManagerCallback<Account[]> callback1 = new AccountManagerCallback<Account[]>() { in testGetAccountsByTypeAndFeaturesWithCallbackAndHandler() local
1116 callback1, in testGetAccountsByTypeAndFeaturesWithCallbackAndHandler()