Home
last modified time | relevance | path

Searched refs:mSessionToken (Results 1 – 6 of 6) sorted by relevance

/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/
DMediaNotificationManager.java59 private MediaSessionCompat.Token mSessionToken; field in MediaNotificationManager
175 if (mSessionToken == null || !mSessionToken.equals(freshToken)) { in updateSessionToken()
179 mSessionToken = freshToken; in updateSessionToken()
181 mController = new MediaControllerCompat(mService, mSessionToken); in updateSessionToken()
/frameworks/av/packages/MediaComponents/src/com/android/media/
DMediaSession2Impl.java89 private final SessionToken2 mSessionToken; field in MediaSession2Impl
161 mSessionToken = new SessionToken2Impl(Process.myUid(), TYPE_LIBRARY_SERVICE, in MediaSession2Impl()
164 mSessionToken = new SessionToken2Impl(Process.myUid(), TYPE_SESSION_SERVICE, in MediaSession2Impl()
167 mSessionToken = new SessionToken2Impl(Process.myUid(), TYPE_SESSION, in MediaSession2Impl()
180 if (!manager.createSession2(mSessionToken)) { in MediaSession2Impl()
306 manager.destroySession2(mSessionToken); in close_impl()
349 return mSessionToken; in getToken_impl()
/frameworks/support/media/version-compat-tests/previous/client/src/androidTest/java/android/support/mediacompat/client/
DMediaControllerCompatCallbackTest.java123 private MediaSessionCompat.Token mSessionToken; field in MediaControllerCompatCallbackTest
148 mSessionToken = mMediaBrowser.getSessionToken(); in setUp()
149 mController = new MediaControllerCompat(getTargetContext(), mSessionToken); in setUp()
568 MediaSessionCompat.Token.fromToken(mSessionToken.getToken()); in testSessionReady()
/frameworks/support/media/version-compat-tests/current/client/src/androidTest/java/android/support/mediacompat/client/
DMediaControllerCompatCallbackTest.java124 private MediaSessionCompat.Token mSessionToken; field in MediaControllerCompatCallbackTest
149 mSessionToken = mMediaBrowser.getSessionToken(); in setUp()
150 mController = new MediaControllerCompat(getTargetContext(), mSessionToken); in setUp()
569 MediaSessionCompat.Token.fromToken(mSessionToken.getToken()); in testSessionReady()
/frameworks/support/media/src/main/java/androidx/media/
DMediaSession2ImplBase.java80 private final SessionToken2 mSessionToken; field in MediaSession2ImplBase
130 mSessionToken = new SessionToken2(Process.myUid(), TYPE_LIBRARY_SERVICE, in MediaSession2ImplBase()
133 mSessionToken = new SessionToken2(Process.myUid(), TYPE_SESSION_SERVICE, in MediaSession2ImplBase()
136 mSessionToken = new SessionToken2(Process.myUid(), TYPE_SESSION, in MediaSession2ImplBase()
302 return mSessionToken; in getToken()
/frameworks/base/media/java/android/media/session/
DMediaSession.java129 private final MediaSession.Token mSessionToken; field in MediaSession
179 mSessionToken = new Token(mBinder.getController()); in MediaSession()
180 mController = new MediaController(context, mSessionToken); in MediaSession()
399 return mSessionToken; in getSessionToken()