package Mqv2r_3.KQgRr5e_0.KQgRr5e_0.QxJ9d_1;

import android.content.ComponentName;
import android.content.Context;
import android.media.browse.MediaBrowser;
import android.os.Bundle;
import java.util.List;
/* compiled from: MediaBrowserCompatApi21.java */
/* loaded from: classes.dex */
public class KQgRr5e_0 {

    /* compiled from: MediaBrowserCompatApi21.java */
    /* renamed from: Mqv2r_3.KQgRr5e_0.KQgRr5e_0.QxJ9d_1.KQgRr5e_0$KQgRr5e_0  reason: collision with other inner class name */
    /* loaded from: classes.dex */
    public interface InterfaceC0030KQgRr5e_0 {
        void KQgRr5e_0();

        void PGPF6hQ_2();

        void QxJ9d_1();
    }

    /* compiled from: MediaBrowserCompatApi21.java */
    /* loaded from: classes.dex */
    public interface Mqv2r_3 {
        void KQgRr5e_0(String str);

        void KQgRr5e_0(String str, List<?> list);
    }

    /* compiled from: MediaBrowserCompatApi21.java */
    /* loaded from: classes.dex */
    public static class PGPF6hQ_2 {
        public static int KQgRr5e_0(Object obj) {
            return ((MediaBrowser.MediaItem) obj).getFlags();
        }

        /* renamed from: KQgRr5e_0  reason: collision with other method in class */
        public static Object m151KQgRr5e_0(Object obj) {
            return ((MediaBrowser.MediaItem) obj).getDescription();
        }
    }

    /* compiled from: MediaBrowserCompatApi21.java */
    /* loaded from: classes.dex */
    public static class QxJ9d_1<T extends InterfaceC0030KQgRr5e_0> extends MediaBrowser.ConnectionCallback {
        public final T KQgRr5e_0;

        public QxJ9d_1(T t) {
            this.KQgRr5e_0 = t;
        }

        @Override // android.media.browse.MediaBrowser.ConnectionCallback
        public void onConnected() {
            this.KQgRr5e_0.PGPF6hQ_2();
        }

        @Override // android.media.browse.MediaBrowser.ConnectionCallback
        public void onConnectionFailed() {
            this.KQgRr5e_0.KQgRr5e_0();
        }

        @Override // android.media.browse.MediaBrowser.ConnectionCallback
        public void onConnectionSuspended() {
            this.KQgRr5e_0.QxJ9d_1();
        }
    }

    /* compiled from: MediaBrowserCompatApi21.java */
    /* loaded from: classes.dex */
    public static class X6FRs_4<T extends Mqv2r_3> extends MediaBrowser.SubscriptionCallback {
        public final T KQgRr5e_0;

        public X6FRs_4(T t) {
            this.KQgRr5e_0 = t;
        }

        @Override // android.media.browse.MediaBrowser.SubscriptionCallback
        public void onChildrenLoaded(String str, List<MediaBrowser.MediaItem> list) {
            this.KQgRr5e_0.KQgRr5e_0(str, list);
        }

        @Override // android.media.browse.MediaBrowser.SubscriptionCallback
        public void onError(String str) {
            this.KQgRr5e_0.KQgRr5e_0(str);
        }
    }

    public static Object KQgRr5e_0(InterfaceC0030KQgRr5e_0 interfaceC0030KQgRr5e_0) {
        return new QxJ9d_1(interfaceC0030KQgRr5e_0);
    }

    public static void QxJ9d_1(Object obj) {
        ((MediaBrowser) obj).disconnect();
    }

    public static Object KQgRr5e_0(Context context, ComponentName componentName, Object obj, Bundle bundle) {
        return new MediaBrowser(context, componentName, (MediaBrowser.ConnectionCallback) obj, bundle);
    }

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public static void m150KQgRr5e_0(Object obj) {
        ((MediaBrowser) obj).connect();
    }

    public static Bundle KQgRr5e_0(Object obj) {
        return ((MediaBrowser) obj).getExtras();
    }

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public static Object m149KQgRr5e_0(Object obj) {
        return ((MediaBrowser) obj).getSessionToken();
    }

    public static Object KQgRr5e_0(Mqv2r_3 mqv2r_3) {
        return new X6FRs_4(mqv2r_3);
    }
}
