Home
last modified time | relevance | path

Searched refs:sessionCallback (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DMediaSessionTest.java331 MediaSessionCallback sessionCallback = new MediaSessionCallback(); in testCallbackOnMediaButtonEvent() local
332 mSession.setCallback(sessionCallback, new Handler(Looper.getMainLooper())); in testCallbackOnMediaButtonEvent()
347 sessionCallback.reset(1); in testCallbackOnMediaButtonEvent()
349 assertTrue(sessionCallback.await(TIME_OUT_MS)); in testCallbackOnMediaButtonEvent()
350 assertEquals(1, sessionCallback.mOnPlayCalledCount); in testCallbackOnMediaButtonEvent()
351 assertTrue(compareRemoteUserInfo(mKeyDispatcherInfo, sessionCallback.mCallerInfo)); in testCallbackOnMediaButtonEvent()
353 sessionCallback.reset(1); in testCallbackOnMediaButtonEvent()
355 assertTrue(sessionCallback.await(TIME_OUT_MS)); in testCallbackOnMediaButtonEvent()
356 assertTrue(sessionCallback.mOnPauseCalled); in testCallbackOnMediaButtonEvent()
357 assertTrue(compareRemoteUserInfo(mKeyDispatcherInfo, sessionCallback.mCallerInfo)); in testCallbackOnMediaButtonEvent()
[all …]
DMediaSession2Test.java236 Session2Callback sessionCallback = new Session2Callback(); in testGetConnectedControllers_newController() local
238 .setSessionCallback(sHandlerExecutor, sessionCallback) in testGetConnectedControllers_newController()
250 if (Objects.equals(sessionCallback.mController, controllerInfo)) { in testGetConnectedControllers_newController()
262 Session2Callback sessionCallback = new Session2Callback(); in testGetConnectedControllers_closedController() local
264 .setSessionCallback(sHandlerExecutor, sessionCallback) in testGetConnectedControllers_closedController()
273 assertTrue(sessionCallback.awaitOnDisconnect(WAIT_TIME_MS)); in testGetConnectedControllers_closedController()
277 assertNotEquals(sessionCallback.mController, controllerInfo); in testGetConnectedControllers_closedController()
311 Session2Callback sessionCallback = new Session2Callback(); in testBroadcastSessionCommand() local
320 .setSessionCallback(sHandlerExecutor, sessionCallback) in testBroadcastSessionCommand()
373 Session2Callback sessionCallback = new Session2Callback(); in testCallback_onConnect_onDisconnect() local
[all …]
DMediaSessionManagerTest.java305 Session2Callback sessionCallback = new Session2Callback(); in testGetSession2Tokens() local
307 .setSessionCallback(handlerExecutor, sessionCallback) in testGetSession2Tokens()
309 assertTrue(sessionCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testGetSession2Tokens()
379 Session2Callback sessionCallback = new Session2Callback(); in testAddAndRemoveSession2TokensListener() local
381 .setSessionCallback(handlerExecutor, sessionCallback) in testAddAndRemoveSession2TokensListener()