Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 509e05ba authored by Ajay Panicker's avatar Ajay Panicker Committed by android-build-merger
Browse files

Merge "Define cover art attribute id"

am: 2d509a64

Change-Id: I85dffa80183b72da66e1701d15860e902f9de983
parents 0aea2a4a 2d509a64
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -469,6 +469,10 @@ public class AddressedMediaPlayer {
                            .getString(MediaMetadata.METADATA_KEY_DURATION);
                            .getString(MediaMetadata.METADATA_KEY_DURATION);
                    break;
                    break;


                case AvrcpConstants.ATTRID_COVER_ART:
                    Log.e(TAG, "Cover art attribute not supported");
                    break;

                default:
                default:
                    Log.e(TAG, "Unknown attribute ID");
                    Log.e(TAG, "Unknown attribute ID");
            }
            }
+1 −0
Original line number Original line Diff line number Diff line
@@ -90,6 +90,7 @@ final class AvrcpConstants {
    static final int ATTRID_NUM_TRACKS = 0x05;
    static final int ATTRID_NUM_TRACKS = 0x05;
    static final int ATTRID_GENRE      = 0x06;
    static final int ATTRID_GENRE      = 0x06;
    static final int ATTRID_PLAY_TIME  = 0x07;
    static final int ATTRID_PLAY_TIME  = 0x07;
    static final int ATTRID_COVER_ART  = 0x08;


    /* constants to send in Track change response */
    /* constants to send in Track change response */
    static final byte NO_TRACK_SELECTED = (byte)0xFF;
    static final byte NO_TRACK_SELECTED = (byte)0xFF;
+3 −0
Original line number Original line Diff line number Diff line
@@ -628,6 +628,9 @@ class BrowsedMediaPlayer {
                case AvrcpConstants.ATTRID_PLAY_TIME:
                case AvrcpConstants.ATTRID_PLAY_TIME:
                    attrValue = resultItems.get(itemIndex).getDescription().getExtras()
                    attrValue = resultItems.get(itemIndex).getDescription().getExtras()
                            .getString(MediaMetadata.METADATA_KEY_DURATION);
                            .getString(MediaMetadata.METADATA_KEY_DURATION);

                case AvrcpConstants.ATTRID_COVER_ART:
                    Log.e(TAG, "Cover art attribute not supported");
                    break;
                    break;


                default:
                default: