Home
last modified time | relevance | path

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

/cts/hostsidetests/media/app/MediaSessionTestHelper/src/android/media/app/media_session_test_helper/
DMediaSessionTestHelperService.java43 private MediaSession mMediaSession; field in MediaSessionTestHelperService
72 if (mMediaSession == null) { in onStartCommand()
73 mMediaSession = new MediaSession(this, TAG); in onStartCommand()
76 if (mMediaSession != null) { in onStartCommand()
78 mMediaSession.setActive(true); in onStartCommand()
81 mMediaSession.setActive(false); in onStartCommand()
108 if (mMediaSession != null) { in releaseAllMediaSession()
109 mMediaSession.release(); in releaseAllMediaSession()
110 mMediaSession = null; in releaseAllMediaSession()
/cts/tests/app/app/src/android/app/stubs/
DCommandReceiver.java130 private static MediaSession mMediaSession = null; field in CommandReceiver
541 mMediaSession = new MediaSession(context, TAG); in doStartMediaPlayback()
542 mMediaSession.setCallback(new MediaSession.Callback() { in doStartMediaPlayback()
570 mMediaSession.release(); in doStartMediaPlayback()
573 mMediaSession.setActive(true); in doStartMediaPlayback()
580 mMediaSession = new MediaSession(context, TAG); in doCreateMediaSession()
581 mMediaSession.setCallback( in doCreateMediaSession()
586 setPlaybackState(PlaybackState.STATE_PLAYING, mMediaSession); in doCreateMediaSession()
592 setPlaybackState(PlaybackState.STATE_PAUSED, mMediaSession); in doCreateMediaSession()
598 setPlaybackState(PlaybackState.STATE_STOPPED, mMediaSession); in doCreateMediaSession()
[all …]