Lines Matching refs:session

17 package android.support.v4.media.session;
67 private static final String TEST_SESSION_TAG = "test-session-tag";
71 private static final String TEST_SESSION_EVENT = "test-session-event";
111 * Tests that a session can be created and that all the fields are
118 assertFalse("New session should not be active", mSession.isActive());
127 * Tests that a session can be created from the framework session object and the callback
128 * set on the framework session object before fromSession() is called works properly.
140 MediaSessionCompat session = MediaSessionCompat.fromMediaSession(
142 assertEquals(session.getSessionToken(), mSession.getSessionToken());
144 session.getController().getTransportControls().play();
712 MediaSessionCompat session = new MediaSessionCompat(getContext(), "TEST");
713 session.setCallback(null);
748 * Verifies that a new session hasn't had any configuration bits set yet.
750 * @param controller The controller for the session
753 assertEquals("New session has unexpected configuration", 0L, controller.getFlags());
754 assertNull("New session has unexpected configuration", controller.getExtras());
755 assertNull("New session has unexpected configuration", controller.getMetadata());
756 assertEquals("New session has unexpected configuration",
758 assertNull("New session has unexpected configuration", controller.getPlaybackState());
759 assertNull("New session has unexpected configuration", controller.getQueue());
760 assertNull("New session has unexpected configuration", controller.getQueueTitle());
761 assertEquals("New session has unexpected configuration", RatingCompat.RATING_NONE,
763 assertNull("New session has unexpected configuration", controller.getSessionActivity());