Searched refs:sessionCallback (Results 1 – 5 of 5) sorted by relevance
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaSession2Test.java | 236 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 …]
|
D | MediaSessionTest.java | 546 MediaSessionCallback sessionCallback = new MediaSessionCallback(); in testCallbackOnMediaButtonEvent() local 547 mSession.setCallback(sessionCallback, new Handler(Looper.getMainLooper())); in testCallbackOnMediaButtonEvent() 557 sessionCallback.reset(1); in testCallbackOnMediaButtonEvent() 559 assertTrue(sessionCallback.await(TIME_OUT_MS)); in testCallbackOnMediaButtonEvent() 560 assertEquals(1, sessionCallback.mOnPlayCalledCount); in testCallbackOnMediaButtonEvent() 561 assertTrue(compareRemoteUserInfo(mKeyDispatcherInfo, sessionCallback.mCallerInfo)); in testCallbackOnMediaButtonEvent() 563 sessionCallback.reset(1); in testCallbackOnMediaButtonEvent() 565 assertTrue(sessionCallback.await(TIME_OUT_MS)); in testCallbackOnMediaButtonEvent() 566 assertTrue(sessionCallback.mOnPauseCalled); in testCallbackOnMediaButtonEvent() 567 assertTrue(compareRemoteUserInfo(mKeyDispatcherInfo, sessionCallback.mCallerInfo)); in testCallbackOnMediaButtonEvent() [all …]
|
D | MediaCommunicationManagerTest.java | 78 Session2Callback sessionCallback = new Session2Callback(); in testGetSession2Tokens() local 82 .setSessionCallback(executor, sessionCallback) in testGetSession2Tokens() 99 Session2Callback sessionCallback = new Session2Callback(); in testManagerSessionCallback() local 104 .setSessionCallback(executor, sessionCallback) in testManagerSessionCallback() 117 .setSessionCallback(executor, sessionCallback).build(); in testManagerSessionCallback()
|
D | MediaSessionManagerTest.java | 388 Session2Callback sessionCallback = new Session2Callback(); in testGetSession2Tokens() local 390 .setSessionCallback(handlerExecutor, sessionCallback) in testGetSession2Tokens() 392 assertTrue(sessionCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testGetSession2Tokens() 450 Session2Callback sessionCallback = new Session2Callback(); in testAddAndRemoveSession2TokensListener() local 452 .setSessionCallback(handlerExecutor, sessionCallback) in testAddAndRemoveSession2TokensListener()
|
/cts/tests/tests/packageinstaller/atomicinstall/src/com/android/tests/atomicinstall/ |
D | SessionAbandonBehaviorTest.java | 163 for (PackageInstaller.SessionCallback sessionCallback : mSessionCallbacks) { in tearDown() 164 InstallUtils.getPackageInstaller().unregisterSessionCallback(sessionCallback); in tearDown() 182 @NonNull PackageInstaller.SessionCallback sessionCallback) { in registerSessionCallbacks() 183 Preconditions.checkNotNull(sessionCallback); in registerSessionCallbacks() 184 Preconditions.checkArgument(!mSessionCallbacks.contains(sessionCallback), in registerSessionCallbacks() 193 InstallUtils.getPackageInstaller().registerSessionCallback(sessionCallback, mHandler); in registerSessionCallbacks() 194 mSessionCallbacks.add(sessionCallback); in registerSessionCallbacks()
|