Searched refs:testSession (Results 1 – 2 of 2) sorted by relevance
154 try (MediaSession2 testSession = new MediaSession2.Builder(mContext) in testOnGetSession_returnsSession() argument174 return testSession; in testOnGetSession_returnsSession()196 assertThat(controller.getConnectedToken()).isEqualTo(testSession.getToken()); in testOnGetSession_returnsSession()259 final MediaSession2 testSession = in testAllControllersDisconnected_oneSession() local265 return testSession; in testAllControllersDisconnected_oneSession()353 MediaSession2 testSession = service.getSessions().get(0); in testOnUpdateNotification() local361 assertThat(session).isEqualTo(testSession); in testOnUpdateNotification()373 testSession.setPlaybackActive(true); in testOnUpdateNotification()374 testSession.setPlaybackActive(false); in testOnUpdateNotification()
621 TestActivitySession<TestActivity> testSession = createManagedTestActivitySession(); in testShouldDockBigOverlaysWithExpandedPip() local623 testSession.launchTestActivityOnDisplaySync(null, intent, DEFAULT_DISPLAY); in testShouldDockBigOverlaysWithExpandedPip()624 final TestActivity activity = testSession.getActivity(); in testShouldDockBigOverlaysWithExpandedPip()636 testSession.runOnMainSyncAndWait(() -> activity.setShouldDockBigOverlays(shouldDock)); in testShouldDockBigOverlaysWithExpandedPip()648 testSession.runOnMainSyncAndWait(() -> { in testShouldDockBigOverlaysWithExpandedPip()