Home
last modified time | relevance | path

Searched refs:testSession (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/
DMediaSession2ServiceTest.java154 try (MediaSession2 testSession = new MediaSession2.Builder(mContext) in testOnGetSession_returnsSession() argument
174 return testSession; in testOnGetSession_returnsSession()
196 assertThat(controller.getConnectedToken()).isEqualTo(testSession.getToken()); in testOnGetSession_returnsSession()
259 final MediaSession2 testSession = in testAllControllersDisconnected_oneSession() local
265 return testSession; in testAllControllersDisconnected_oneSession()
353 MediaSession2 testSession = service.getSessions().get(0); in testOnUpdateNotification() local
361 assertThat(session).isEqualTo(testSession); in testOnUpdateNotification()
373 testSession.setPlaybackActive(true); in testOnUpdateNotification()
374 testSession.setPlaybackActive(false); in testOnUpdateNotification()
/cts/tests/framework/base/windowmanager/src/android/server/wm/other/
DPinnedStackTests.java621 TestActivitySession<TestActivity> testSession = createManagedTestActivitySession(); in testShouldDockBigOverlaysWithExpandedPip() local
623 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()