Search in sources :

Example 31 with MediaController

use of android.media.session.MediaController in project android_frameworks_base by crdroidandroid.

the class PipControlsView method updateMediaController.

private void updateMediaController() {
    MediaController newController = mPipManager.getMediaController();
    if (mMediaController == newController) {
        return;
    }
    if (mMediaController != null) {
        mMediaController.unregisterCallback(mMediaControllerCallback);
    }
    mMediaController = newController;
    if (mMediaController != null) {
        mMediaController.registerCallback(mMediaControllerCallback);
    }
    updatePlayPauseView();
}
Also used : MediaController(android.media.session.MediaController)

Aggregations

MediaController (android.media.session.MediaController)31 Token (android.media.session.MediaSession.Token)10 StatusBarManager.windowStateToString (android.app.StatusBarManager.windowStateToString)5 Point (android.graphics.Point)5 PlaybackInfo (android.media.session.MediaController.PlaybackInfo)5 MediaSession (android.media.session.MediaSession)5 MediaSessionManager (android.media.session.MediaSessionManager)5 Entry (com.android.systemui.statusbar.NotificationData.Entry)5 PrintWriter (java.io.PrintWriter)5 StringWriter (java.io.StringWriter)5 HashSet (java.util.HashSet)5 MediaExpandableNotificationRow (com.android.systemui.statusbar.MediaExpandableNotificationRow)2 MediaMetadata (android.media.MediaMetadata)1 PlaybackState (android.media.session.PlaybackState)1 Bundle (android.os.Bundle)1 SpannableString (android.text.SpannableString)1 MusicSpec (nodomain.freeyourgadget.gadgetbridge.model.MusicSpec)1 MusicStateSpec (nodomain.freeyourgadget.gadgetbridge.model.MusicStateSpec)1