package Mqv2r_3.KQgRr5e_0.KQgRr5e_0.PGPF6hQ_2;

import android.os.Binder;
import android.os.Bundle;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
/* compiled from: IResultReceiver.java */
/* loaded from: classes.dex */
public interface KQgRr5e_0 extends IInterface {

    /* compiled from: IResultReceiver.java */
    /* renamed from: Mqv2r_3.KQgRr5e_0.KQgRr5e_0.PGPF6hQ_2.KQgRr5e_0$KQgRr5e_0  reason: collision with other inner class name */
    /* loaded from: classes.dex */
    public static abstract class AbstractBinderC0025KQgRr5e_0 extends Binder implements KQgRr5e_0 {

        /* compiled from: IResultReceiver.java */
        /* renamed from: Mqv2r_3.KQgRr5e_0.KQgRr5e_0.PGPF6hQ_2.KQgRr5e_0$KQgRr5e_0$KQgRr5e_0  reason: collision with other inner class name */
        /* loaded from: classes.dex */
        public static class C0026KQgRr5e_0 implements KQgRr5e_0 {
            public IBinder KQgRr5e_0;

            public C0026KQgRr5e_0(IBinder iBinder) {
                this.KQgRr5e_0 = iBinder;
            }

            @Override // Mqv2r_3.KQgRr5e_0.KQgRr5e_0.PGPF6hQ_2.KQgRr5e_0
            public void KQgRr5e_0(int i, Bundle bundle) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("android.support.v4.os.IResultReceiver");
                    obtain.writeInt(i);
                    if (bundle != null) {
                        obtain.writeInt(1);
                        bundle.writeToParcel(obtain, 0);
                    } else {
                        obtain.writeInt(0);
                    }
                    this.KQgRr5e_0.transact(1, obtain, null, 1);
                } finally {
                    obtain.recycle();
                }
            }

            @Override // android.os.IInterface
            public IBinder asBinder() {
                return this.KQgRr5e_0;
            }
        }

        public AbstractBinderC0025KQgRr5e_0() {
            attachInterface(this, "android.support.v4.os.IResultReceiver");
        }

        public static KQgRr5e_0 KQgRr5e_0(IBinder iBinder) {
            if (iBinder == null) {
                return null;
            }
            IInterface queryLocalInterface = iBinder.queryLocalInterface("android.support.v4.os.IResultReceiver");
            if (queryLocalInterface != null && (queryLocalInterface instanceof KQgRr5e_0)) {
                return (KQgRr5e_0) queryLocalInterface;
            }
            return new C0026KQgRr5e_0(iBinder);
        }

        @Override // android.os.IInterface
        public IBinder asBinder() {
            return this;
        }

        @Override // android.os.Binder
        public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
            if (i == 1) {
                parcel.enforceInterface("android.support.v4.os.IResultReceiver");
                KQgRr5e_0(parcel.readInt(), parcel.readInt() != 0 ? (Bundle) Bundle.CREATOR.createFromParcel(parcel) : null);
                return true;
            } else if (i != 1598968902) {
                return super.onTransact(i, parcel, parcel2, i2);
            } else {
                parcel2.writeString("android.support.v4.os.IResultReceiver");
                return true;
            }
        }
    }

    void KQgRr5e_0(int i, Bundle bundle) throws RemoteException;
}
