package android.support.v4.media;

import Mqv2r_3.KQgRr5e_0.KQgRr5e_0.QxJ9d_1.X6FRs_4;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.v4.media.session.MediaSessionCompat;
/* loaded from: classes.dex */
public final class MediaMetadataCompat implements Parcelable {
    public static final Parcelable.Creator<MediaMetadataCompat> CREATOR;
    public static final X6FRs_4.Mqv2r_3.KQgRr5e_0<String, Integer> KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final Bundle f1805KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public Object f1806KQgRr5e_0;

    /* loaded from: classes.dex */
    public static class KQgRr5e_0 implements Parcelable.Creator<MediaMetadataCompat> {
        @Override // android.os.Parcelable.Creator
        /* renamed from: KQgRr5e_0 */
        public MediaMetadataCompat createFromParcel(Parcel parcel) {
            return new MediaMetadataCompat(parcel);
        }

        @Override // android.os.Parcelable.Creator
        /* renamed from: KQgRr5e_0 */
        public MediaMetadataCompat[] newArray(int i) {
            return new MediaMetadataCompat[i];
        }
    }

    static {
        X6FRs_4.Mqv2r_3.KQgRr5e_0<String, Integer> kQgRr5e_0 = new X6FRs_4.Mqv2r_3.KQgRr5e_0<>();
        KQgRr5e_0 = kQgRr5e_0;
        kQgRr5e_0.put("android.media.metadata.TITLE", 1);
        KQgRr5e_0.put("android.media.metadata.ARTIST", 1);
        KQgRr5e_0.put("android.media.metadata.DURATION", 0);
        KQgRr5e_0.put("android.media.metadata.ALBUM", 1);
        KQgRr5e_0.put("android.media.metadata.AUTHOR", 1);
        KQgRr5e_0.put("android.media.metadata.WRITER", 1);
        KQgRr5e_0.put("android.media.metadata.COMPOSER", 1);
        KQgRr5e_0.put("android.media.metadata.COMPILATION", 1);
        KQgRr5e_0.put("android.media.metadata.DATE", 1);
        KQgRr5e_0.put("android.media.metadata.YEAR", 0);
        KQgRr5e_0.put("android.media.metadata.GENRE", 1);
        KQgRr5e_0.put("android.media.metadata.TRACK_NUMBER", 0);
        KQgRr5e_0.put("android.media.metadata.NUM_TRACKS", 0);
        KQgRr5e_0.put("android.media.metadata.DISC_NUMBER", 0);
        KQgRr5e_0.put("android.media.metadata.ALBUM_ARTIST", 1);
        KQgRr5e_0.put("android.media.metadata.ART", 2);
        KQgRr5e_0.put("android.media.metadata.ART_URI", 1);
        KQgRr5e_0.put("android.media.metadata.ALBUM_ART", 2);
        KQgRr5e_0.put("android.media.metadata.ALBUM_ART_URI", 1);
        KQgRr5e_0.put("android.media.metadata.USER_RATING", 3);
        KQgRr5e_0.put("android.media.metadata.RATING", 3);
        KQgRr5e_0.put("android.media.metadata.DISPLAY_TITLE", 1);
        KQgRr5e_0.put("android.media.metadata.DISPLAY_SUBTITLE", 1);
        KQgRr5e_0.put("android.media.metadata.DISPLAY_DESCRIPTION", 1);
        KQgRr5e_0.put("android.media.metadata.DISPLAY_ICON", 2);
        KQgRr5e_0.put("android.media.metadata.DISPLAY_ICON_URI", 1);
        KQgRr5e_0.put("android.media.metadata.MEDIA_ID", 1);
        KQgRr5e_0.put("android.media.metadata.BT_FOLDER_TYPE", 0);
        KQgRr5e_0.put("android.media.metadata.MEDIA_URI", 1);
        KQgRr5e_0.put("android.media.metadata.ADVERTISEMENT", 0);
        KQgRr5e_0.put("android.media.metadata.DOWNLOAD_STATUS", 0);
        CREATOR = new KQgRr5e_0();
    }

    public MediaMetadataCompat(Parcel parcel) {
        this.f1805KQgRr5e_0 = parcel.readBundle(MediaSessionCompat.class.getClassLoader());
    }

    public static MediaMetadataCompat KQgRr5e_0(Object obj) {
        if (obj == null || Build.VERSION.SDK_INT < 21) {
            return null;
        }
        Parcel obtain = Parcel.obtain();
        X6FRs_4.KQgRr5e_0(obj, obtain, 0);
        obtain.setDataPosition(0);
        MediaMetadataCompat createFromParcel = CREATOR.createFromParcel(obtain);
        obtain.recycle();
        createFromParcel.f1806KQgRr5e_0 = obj;
        return createFromParcel;
    }

    @Override // android.os.Parcelable
    public int describeContents() {
        return 0;
    }

    @Override // android.os.Parcelable
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeBundle(this.f1805KQgRr5e_0);
    }
}
