Home
last modified time | relevance | path

Searched refs:controllerCallback (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DMediaController2Test.java264 Controller2Callback controllerCallback = new Controller2Callback(); in testGetConnectedToken() local
267 .setControllerCallback(sHandlerExecutor, controllerCallback) in testGetConnectedToken()
269 assertTrue(controllerCallback.awaitOnConnected(WAIT_TIME_MS)); in testGetConnectedToken()
270 assertEquals(controller, controllerCallback.mController); in testGetConnectedToken()
278 assertTrue(controllerCallback.awaitOnDisconnected(WAIT_TIME_MS)); in testGetConnectedToken()
279 assertNull(controllerCallback.mController.getConnectedToken()); in testGetConnectedToken()
285 Controller2Callback controllerCallback = new Controller2Callback(); in testCallback_onConnected_onDisconnected() local
288 .setControllerCallback(sHandlerExecutor, controllerCallback) in testCallback_onConnected_onDisconnected()
290 assertTrue(controllerCallback.awaitOnConnected(WAIT_TIME_MS)); in testCallback_onConnected_onDisconnected()
291 assertEquals(controller, controllerCallback.mController); in testCallback_onConnected_onDisconnected()
[all …]
DMediaSession2Test.java378 Controller2Callback controllerCallback = new Controller2Callback(); in testCallback_onConnect_onDisconnect() local
385 .setControllerCallback(sHandlerExecutor, controllerCallback) in testCallback_onConnect_onDisconnect()
387 assertTrue(controllerCallback.awaitOnConnected(WAIT_TIME_MS)); in testCallback_onConnect_onDisconnect()
402 assertTrue(controllerCallback.awaitOnDisconnected(WAIT_TIME_MS)); in testCallback_onConnect_onDisconnect()
415 Controller2Callback controllerCallback = new Controller2Callback(); in testCallback_onPostConnect_connected() local
418 .setControllerCallback(sHandlerExecutor, controllerCallback) in testCallback_onPostConnect_connected()
420 assertTrue(controllerCallback.awaitOnConnected(WAIT_TIME_MS)); in testCallback_onPostConnect_connected()
456 Controller2Callback controllerCallback = new Controller2Callback(); in testCallback_onSessionCommand() local
459 .setControllerCallback(sHandlerExecutor, controllerCallback) in testCallback_onSessionCommand()
462 assertTrue(controllerCallback.awaitOnConnected(WAIT_TIME_MS)); in testCallback_onSessionCommand()
[all …]
DMediaRouter2Test.java212 TransferCallback controllerCallback = new TransferCallback() { in testTransferToSuccess() local
234 mRouter2.registerTransferCallback(mExecutor, controllerCallback); in testTransferToSuccess()
243 mRouter2.unregisterTransferCallback(controllerCallback); in testTransferToSuccess()
498 ControllerCallback controllerCallback = new ControllerCallback() { in testSetSessionVolume() local
511 mRouter2.registerControllerCallback(mExecutor, controllerCallback); in testSetSessionVolume()
518 mRouter2.unregisterControllerCallback(controllerCallback); in testSetSessionVolume()
600 ControllerCallback controllerCallback = new ControllerCallback() { in testRoutingControllerSelectAndDeselectRoute() local
643 mRouter2.registerControllerCallback(mExecutor, controllerCallback); in testRoutingControllerSelectAndDeselectRoute()
667 mRouter2.unregisterControllerCallback(controllerCallback); in testRoutingControllerSelectAndDeselectRoute()
697 ControllerCallback controllerCallback = new ControllerCallback() { in testRoutingControllerTransferToRoute() local
[all …]
DSystemMediaRouter2Test.java653 ControllerCallback controllerCallback = new ControllerCallback() { in testStop() local
666 mSystemRouter2ForCts.registerControllerCallback(mExecutor, controllerCallback); in testStop()
688 mSystemRouter2ForCts.unregisterControllerCallback(controllerCallback); in testStop()
717 ControllerCallback controllerCallback = new ControllerCallback() { in testRoutingControllerSelectAndDeselectRoute() local
756 mSystemRouter2ForCts.registerControllerCallback(mExecutor, controllerCallback); in testRoutingControllerSelectAndDeselectRoute()
783 mSystemRouter2ForCts.unregisterControllerCallback(controllerCallback); in testRoutingControllerSelectAndDeselectRoute()
810 ControllerCallback controllerCallback = new ControllerCallback() { in testRoutingControllerTransferToRoute() local
828 mSystemRouter2ForCts.registerControllerCallback(mExecutor, controllerCallback); in testRoutingControllerTransferToRoute()
843 mSystemRouter2ForCts.unregisterControllerCallback(controllerCallback); in testRoutingControllerTransferToRoute()
887 ControllerCallback controllerCallback = new ControllerCallback() { in testRoutingControllerSetSessionVolume() local
[all …]
DMediaRoute2ProviderServiceTest.java395 ControllerCallback controllerCallback = new ControllerCallback() { in testSessionRelatedCallbacks() local
426 mRouter2.registerControllerCallback(mExecutor, controllerCallback); in testSessionRelatedCallbacks()
454 mRouter2.unregisterControllerCallback(controllerCallback); in testSessionRelatedCallbacks()