package n7;

import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import androidx.annotation.Nullable;
import com.google.android.gms.internal.ads.aj;
import com.google.android.gms.internal.ads.zi;

/* JADX INFO: loaded from: classes2.dex */
public abstract class o2 extends zi implements p2 {
    public o2() {
        super("com.google.android.gms.ads.internal.client.IVideoController");
    }

    public static p2 R2(IBinder iBinder) {
        if (iBinder == null) {
            return null;
        }
        IInterface iInterfaceQueryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.ads.internal.client.IVideoController");
        return iInterfaceQueryLocalInterface instanceof p2 ? (p2) iInterfaceQueryLocalInterface : new n2(iBinder);
    }

    @Override // com.google.android.gms.internal.ads.zi
    public final boolean Q2(int i10, Parcel parcel, Parcel parcel2) throws RemoteException {
        r2 q2Var;
        switch (i10) {
            case 1:
                zze();
                parcel2.writeNoException();
                return true;
            case 2:
                zzf();
                parcel2.writeNoException();
                return true;
            case 3:
                ClassLoader classLoader = aj.f8714a;
                boolean z10 = parcel.readInt() != 0;
                aj.e(parcel);
                I(z10);
                parcel2.writeNoException();
                return true;
            case 4:
                boolean zZzh = zzh();
                parcel2.writeNoException();
                ClassLoader classLoader2 = aj.f8714a;
                parcel2.writeInt(zZzh ? 1 : 0);
                return true;
            case 5:
                int iZzi = zzi();
                parcel2.writeNoException();
                parcel2.writeInt(iZzi);
                return true;
            case 6:
                float fZzj = zzj();
                parcel2.writeNoException();
                parcel2.writeFloat(fZzj);
                return true;
            case 7:
                float fZzk = zzk();
                parcel2.writeNoException();
                parcel2.writeFloat(fZzk);
                return true;
            case 8:
                IBinder strongBinder = parcel.readStrongBinder();
                if (strongBinder == null) {
                    q2Var = null;
                } else {
                    IInterface iInterfaceQueryLocalInterface = strongBinder.queryLocalInterface("com.google.android.gms.ads.internal.client.IVideoLifecycleCallbacks");
                    q2Var = iInterfaceQueryLocalInterface instanceof r2 ? (r2) iInterfaceQueryLocalInterface : new q2(strongBinder);
                }
                aj.e(parcel);
                zzl(q2Var);
                parcel2.writeNoException();
                return true;
            case 9:
                float fZzm = zzm();
                parcel2.writeNoException();
                parcel2.writeFloat(fZzm);
                return true;
            case 10:
                boolean zM = m();
                parcel2.writeNoException();
                ClassLoader classLoader3 = aj.f8714a;
                parcel2.writeInt(zM ? 1 : 0);
                return true;
            case 11:
                r2 r2VarZzo = zzo();
                parcel2.writeNoException();
                aj.d(parcel2, r2VarZzo);
                return true;
            case 12:
                boolean zZzp = zzp();
                parcel2.writeNoException();
                ClassLoader classLoader4 = aj.f8714a;
                parcel2.writeInt(zZzp ? 1 : 0);
                return true;
            case 13:
                g();
                parcel2.writeNoException();
                return true;
            default:
                return false;
        }
    }

    public abstract /* synthetic */ void zzl(@Nullable r2 r2Var) throws RemoteException;

    @Nullable
    public abstract /* synthetic */ r2 zzo() throws RemoteException;
}
