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.java330 MediaSessionCallback sessionCallback = new MediaSessionCallback(); in testCallbackOnMediaButtonEvent() local
331 mSession.setCallback(sessionCallback, new Handler(Looper.getMainLooper())); in testCallbackOnMediaButtonEvent()
346 sessionCallback.reset(1); in testCallbackOnMediaButtonEvent()
348 assertTrue(sessionCallback.await(TIME_OUT_MS)); in testCallbackOnMediaButtonEvent()
349 assertEquals(1, sessionCallback.mOnPlayCalledCount); in testCallbackOnMediaButtonEvent()
350 assertTrue(compareRemoteUserInfo(mKeyDispatcherInfo, sessionCallback.mCallerInfo)); in testCallbackOnMediaButtonEvent()
352 sessionCallback.reset(1); in testCallbackOnMediaButtonEvent()
354 assertTrue(sessionCallback.await(TIME_OUT_MS)); in testCallbackOnMediaButtonEvent()
355 assertTrue(sessionCallback.mOnPauseCalled); in testCallbackOnMediaButtonEvent()
356 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.java290 Session2Callback sessionCallback = new Session2Callback(); in testGetSession2Tokens() local
292 .setSessionCallback(handlerExecutor, sessionCallback) in testGetSession2Tokens()
294 assertTrue(sessionCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testGetSession2Tokens()
364 Session2Callback sessionCallback = new Session2Callback(); in testAddAndRemoveSession2TokensListener() local
366 .setSessionCallback(handlerExecutor, sessionCallback) in testAddAndRemoveSession2TokensListener()