Home
last modified time | relevance | path

Searched refs:controllerCallback (Results 1 – 2 of 2) 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 …]