package com.cvte.tv.api.aidl;

import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import java.util.List;

/* JADX INFO: loaded from: classes.dex */
public interface ITVApiSystemInputSourceAidl extends IInterface {
    int eventSystemInputSourceGetBitWidth() throws RemoteException;

    EntityInputSource eventSystemInputSourceGetBootInputSource() throws RemoteException;

    int eventSystemInputSourceGetColorSpace() throws RemoteException;

    EntityInputSource eventSystemInputSourceGetInputSource() throws RemoteException;

    List<EntityInputSource> eventSystemInputSourceGetList() throws RemoteException;

    boolean eventSystemInputSourceIsDviTiming() throws RemoteException;

    boolean eventSystemInputSourceReset(EnumResetLevel enumResetLevel) throws RemoteException;

    boolean eventSystemInputSourceSetBootInputSource(int i) throws RemoteException;

    boolean eventSystemInputSourceSetInputSource(int i) throws RemoteException;

    boolean eventSystemInputSourceSetInputSourceName(int i, String str) throws RemoteException;

    boolean eventSystemInputSourceSetLock(int i, boolean z) throws RemoteException;

    public static abstract class Stub extends Binder implements ITVApiSystemInputSourceAidl {
        private static final String DESCRIPTOR = "com.cvte.tv.api.aidl.ITVApiSystemInputSourceAidl";
        static final int TRANSACTION_eventSystemInputSourceGetBitWidth = 11;
        static final int TRANSACTION_eventSystemInputSourceGetBootInputSource = 6;
        static final int TRANSACTION_eventSystemInputSourceGetColorSpace = 10;
        static final int TRANSACTION_eventSystemInputSourceGetInputSource = 2;
        static final int TRANSACTION_eventSystemInputSourceGetList = 1;
        static final int TRANSACTION_eventSystemInputSourceIsDviTiming = 8;
        static final int TRANSACTION_eventSystemInputSourceReset = 9;
        static final int TRANSACTION_eventSystemInputSourceSetBootInputSource = 5;
        static final int TRANSACTION_eventSystemInputSourceSetInputSource = 3;
        static final int TRANSACTION_eventSystemInputSourceSetInputSourceName = 4;
        static final int TRANSACTION_eventSystemInputSourceSetLock = 7;

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

        public Stub() {
            attachInterface(this, DESCRIPTOR);
        }

        public static ITVApiSystemInputSourceAidl asInterface(IBinder iBinder) {
            if (iBinder == null) {
                return null;
            }
            IInterface iInterfaceQueryLocalInterface = iBinder.queryLocalInterface(DESCRIPTOR);
            if (iInterfaceQueryLocalInterface != null && (iInterfaceQueryLocalInterface instanceof ITVApiSystemInputSourceAidl)) {
                return (ITVApiSystemInputSourceAidl) iInterfaceQueryLocalInterface;
            }
            return new Proxy(iBinder);
        }

        @Override // android.os.Binder
        public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
            if (i == 1598968902) {
                parcel2.writeString(DESCRIPTOR);
                return true;
            }
            switch (i) {
                case 1:
                    parcel.enforceInterface(DESCRIPTOR);
                    List<EntityInputSource> listEventSystemInputSourceGetList = eventSystemInputSourceGetList();
                    parcel2.writeNoException();
                    parcel2.writeTypedList(listEventSystemInputSourceGetList);
                    return true;
                case 2:
                    parcel.enforceInterface(DESCRIPTOR);
                    EntityInputSource entityInputSourceEventSystemInputSourceGetInputSource = eventSystemInputSourceGetInputSource();
                    parcel2.writeNoException();
                    if (entityInputSourceEventSystemInputSourceGetInputSource != null) {
                        parcel2.writeInt(1);
                        entityInputSourceEventSystemInputSourceGetInputSource.writeToParcel(parcel2, 1);
                    } else {
                        parcel2.writeInt(0);
                    }
                    return true;
                case 3:
                    parcel.enforceInterface(DESCRIPTOR);
                    boolean zEventSystemInputSourceSetInputSource = eventSystemInputSourceSetInputSource(parcel.readInt());
                    parcel2.writeNoException();
                    parcel2.writeInt(zEventSystemInputSourceSetInputSource ? 1 : 0);
                    return true;
                case 4:
                    parcel.enforceInterface(DESCRIPTOR);
                    boolean zEventSystemInputSourceSetInputSourceName = eventSystemInputSourceSetInputSourceName(parcel.readInt(), parcel.readString());
                    parcel2.writeNoException();
                    parcel2.writeInt(zEventSystemInputSourceSetInputSourceName ? 1 : 0);
                    return true;
                case 5:
                    parcel.enforceInterface(DESCRIPTOR);
                    boolean zEventSystemInputSourceSetBootInputSource = eventSystemInputSourceSetBootInputSource(parcel.readInt());
                    parcel2.writeNoException();
                    parcel2.writeInt(zEventSystemInputSourceSetBootInputSource ? 1 : 0);
                    return true;
                case 6:
                    parcel.enforceInterface(DESCRIPTOR);
                    EntityInputSource entityInputSourceEventSystemInputSourceGetBootInputSource = eventSystemInputSourceGetBootInputSource();
                    parcel2.writeNoException();
                    if (entityInputSourceEventSystemInputSourceGetBootInputSource != null) {
                        parcel2.writeInt(1);
                        entityInputSourceEventSystemInputSourceGetBootInputSource.writeToParcel(parcel2, 1);
                    } else {
                        parcel2.writeInt(0);
                    }
                    return true;
                case 7:
                    parcel.enforceInterface(DESCRIPTOR);
                    boolean zEventSystemInputSourceSetLock = eventSystemInputSourceSetLock(parcel.readInt(), parcel.readInt() != 0);
                    parcel2.writeNoException();
                    parcel2.writeInt(zEventSystemInputSourceSetLock ? 1 : 0);
                    return true;
                case 8:
                    parcel.enforceInterface(DESCRIPTOR);
                    boolean zEventSystemInputSourceIsDviTiming = eventSystemInputSourceIsDviTiming();
                    parcel2.writeNoException();
                    parcel2.writeInt(zEventSystemInputSourceIsDviTiming ? 1 : 0);
                    return true;
                case 9:
                    parcel.enforceInterface(DESCRIPTOR);
                    boolean zEventSystemInputSourceReset = eventSystemInputSourceReset(parcel.readInt() != 0 ? EnumResetLevel.CREATOR.createFromParcel(parcel) : null);
                    parcel2.writeNoException();
                    parcel2.writeInt(zEventSystemInputSourceReset ? 1 : 0);
                    return true;
                case 10:
                    parcel.enforceInterface(DESCRIPTOR);
                    int iEventSystemInputSourceGetColorSpace = eventSystemInputSourceGetColorSpace();
                    parcel2.writeNoException();
                    parcel2.writeInt(iEventSystemInputSourceGetColorSpace);
                    return true;
                case 11:
                    parcel.enforceInterface(DESCRIPTOR);
                    int iEventSystemInputSourceGetBitWidth = eventSystemInputSourceGetBitWidth();
                    parcel2.writeNoException();
                    parcel2.writeInt(iEventSystemInputSourceGetBitWidth);
                    return true;
                default:
                    return super.onTransact(i, parcel, parcel2, i2);
            }
        }

        private static class Proxy implements ITVApiSystemInputSourceAidl {
            private IBinder mRemote;

            Proxy(IBinder iBinder) {
                this.mRemote = iBinder;
            }

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

            public String getInterfaceDescriptor() {
                return Stub.DESCRIPTOR;
            }

            @Override // com.cvte.tv.api.aidl.ITVApiSystemInputSourceAidl
            public List<EntityInputSource> eventSystemInputSourceGetList() throws RemoteException {
                Parcel parcelObtain = Parcel.obtain();
                Parcel parcelObtain2 = Parcel.obtain();
                try {
                    parcelObtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    this.mRemote.transact(1, parcelObtain, parcelObtain2, 0);
                    parcelObtain2.readException();
                    return parcelObtain2.createTypedArrayList(EntityInputSource.CREATOR);
                } finally {
                    parcelObtain2.recycle();
                    parcelObtain.recycle();
                }
            }

            @Override // com.cvte.tv.api.aidl.ITVApiSystemInputSourceAidl
            public EntityInputSource eventSystemInputSourceGetInputSource() throws RemoteException {
                Parcel parcelObtain = Parcel.obtain();
                Parcel parcelObtain2 = Parcel.obtain();
                try {
                    parcelObtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    this.mRemote.transact(2, parcelObtain, parcelObtain2, 0);
                    parcelObtain2.readException();
                    return parcelObtain2.readInt() != 0 ? EntityInputSource.CREATOR.createFromParcel(parcelObtain2) : null;
                } finally {
                    parcelObtain2.recycle();
                    parcelObtain.recycle();
                }
            }

            @Override // com.cvte.tv.api.aidl.ITVApiSystemInputSourceAidl
            public boolean eventSystemInputSourceSetInputSource(int i) throws RemoteException {
                Parcel parcelObtain = Parcel.obtain();
                Parcel parcelObtain2 = Parcel.obtain();
                try {
                    parcelObtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    parcelObtain.writeInt(i);
                    this.mRemote.transact(3, parcelObtain, parcelObtain2, 0);
                    parcelObtain2.readException();
                    return parcelObtain2.readInt() != 0;
                } finally {
                    parcelObtain2.recycle();
                    parcelObtain.recycle();
                }
            }

            @Override // com.cvte.tv.api.aidl.ITVApiSystemInputSourceAidl
            public boolean eventSystemInputSourceSetInputSourceName(int i, String str) throws RemoteException {
                Parcel parcelObtain = Parcel.obtain();
                Parcel parcelObtain2 = Parcel.obtain();
                try {
                    parcelObtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    parcelObtain.writeInt(i);
                    parcelObtain.writeString(str);
                    this.mRemote.transact(4, parcelObtain, parcelObtain2, 0);
                    parcelObtain2.readException();
                    return parcelObtain2.readInt() != 0;
                } finally {
                    parcelObtain2.recycle();
                    parcelObtain.recycle();
                }
            }

            @Override // com.cvte.tv.api.aidl.ITVApiSystemInputSourceAidl
            public boolean eventSystemInputSourceSetBootInputSource(int i) throws RemoteException {
                Parcel parcelObtain = Parcel.obtain();
                Parcel parcelObtain2 = Parcel.obtain();
                try {
                    parcelObtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    parcelObtain.writeInt(i);
                    this.mRemote.transact(5, parcelObtain, parcelObtain2, 0);
                    parcelObtain2.readException();
                    return parcelObtain2.readInt() != 0;
                } finally {
                    parcelObtain2.recycle();
                    parcelObtain.recycle();
                }
            }

            @Override // com.cvte.tv.api.aidl.ITVApiSystemInputSourceAidl
            public EntityInputSource eventSystemInputSourceGetBootInputSource() throws RemoteException {
                Parcel parcelObtain = Parcel.obtain();
                Parcel parcelObtain2 = Parcel.obtain();
                try {
                    parcelObtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    this.mRemote.transact(6, parcelObtain, parcelObtain2, 0);
                    parcelObtain2.readException();
                    return parcelObtain2.readInt() != 0 ? EntityInputSource.CREATOR.createFromParcel(parcelObtain2) : null;
                } finally {
                    parcelObtain2.recycle();
                    parcelObtain.recycle();
                }
            }

            @Override // com.cvte.tv.api.aidl.ITVApiSystemInputSourceAidl
            public boolean eventSystemInputSourceSetLock(int i, boolean z) throws RemoteException {
                Parcel parcelObtain = Parcel.obtain();
                Parcel parcelObtain2 = Parcel.obtain();
                try {
                    parcelObtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    parcelObtain.writeInt(i);
                    parcelObtain.writeInt(z ? 1 : 0);
                    this.mRemote.transact(7, parcelObtain, parcelObtain2, 0);
                    parcelObtain2.readException();
                    return parcelObtain2.readInt() != 0;
                } finally {
                    parcelObtain2.recycle();
                    parcelObtain.recycle();
                }
            }

            @Override // com.cvte.tv.api.aidl.ITVApiSystemInputSourceAidl
            public boolean eventSystemInputSourceIsDviTiming() throws RemoteException {
                Parcel parcelObtain = Parcel.obtain();
                Parcel parcelObtain2 = Parcel.obtain();
                try {
                    parcelObtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    this.mRemote.transact(8, parcelObtain, parcelObtain2, 0);
                    parcelObtain2.readException();
                    return parcelObtain2.readInt() != 0;
                } finally {
                    parcelObtain2.recycle();
                    parcelObtain.recycle();
                }
            }

            @Override // com.cvte.tv.api.aidl.ITVApiSystemInputSourceAidl
            public boolean eventSystemInputSourceReset(EnumResetLevel enumResetLevel) throws RemoteException {
                Parcel parcelObtain = Parcel.obtain();
                Parcel parcelObtain2 = Parcel.obtain();
                try {
                    parcelObtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    if (enumResetLevel != null) {
                        parcelObtain.writeInt(1);
                        enumResetLevel.writeToParcel(parcelObtain, 0);
                    } else {
                        parcelObtain.writeInt(0);
                    }
                    this.mRemote.transact(9, parcelObtain, parcelObtain2, 0);
                    parcelObtain2.readException();
                    return parcelObtain2.readInt() != 0;
                } finally {
                    parcelObtain2.recycle();
                    parcelObtain.recycle();
                }
            }

            @Override // com.cvte.tv.api.aidl.ITVApiSystemInputSourceAidl
            public int eventSystemInputSourceGetColorSpace() throws RemoteException {
                Parcel parcelObtain = Parcel.obtain();
                Parcel parcelObtain2 = Parcel.obtain();
                try {
                    parcelObtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    this.mRemote.transact(10, parcelObtain, parcelObtain2, 0);
                    parcelObtain2.readException();
                    return parcelObtain2.readInt();
                } finally {
                    parcelObtain2.recycle();
                    parcelObtain.recycle();
                }
            }

            @Override // com.cvte.tv.api.aidl.ITVApiSystemInputSourceAidl
            public int eventSystemInputSourceGetBitWidth() throws RemoteException {
                Parcel parcelObtain = Parcel.obtain();
                Parcel parcelObtain2 = Parcel.obtain();
                try {
                    parcelObtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    this.mRemote.transact(11, parcelObtain, parcelObtain2, 0);
                    parcelObtain2.readException();
                    return parcelObtain2.readInt();
                } finally {
                    parcelObtain2.recycle();
                    parcelObtain.recycle();
                }
            }
        }
    }
}
