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;

/* JADX INFO: loaded from: classes.dex */
public interface ITVApiSoundSpdifOutAidl extends IInterface {

    public static abstract class Stub extends Binder implements ITVApiSoundSpdifOutAidl {
        private static final String DESCRIPTOR = "com.cvte.tv.api.aidl.ITVApiSoundSpdifOutAidl";
        public static final int TRANSACTION_eventGetSoundSpdifOutIsMute = 8;
        public static final int TRANSACTION_eventSoundSpdifOutGetAudioDelay = 2;
        public static final int TRANSACTION_eventSoundSpdifOutGetBalance = 4;
        public static final int TRANSACTION_eventSoundSpdifOutGetMode = 9;
        public static final int TRANSACTION_eventSoundSpdifOutGetVolume = 6;
        public static final int TRANSACTION_eventSoundSpdifOutReset = 11;
        public static final int TRANSACTION_eventSoundSpdifOutSetAudioDelay = 1;
        public static final int TRANSACTION_eventSoundSpdifOutSetBalance = 3;
        public static final int TRANSACTION_eventSoundSpdifOutSetMode = 10;
        public static final int TRANSACTION_eventSoundSpdifOutSetMute = 7;
        public static final int TRANSACTION_eventSoundSpdifOutSetVolume = 5;

        public static class Proxy implements ITVApiSoundSpdifOutAidl {
            private IBinder mRemote;

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

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

            @Override // com.cvte.tv.api.aidl.ITVApiSoundSpdifOutAidl
            public boolean eventGetSoundSpdifOutIsMute() 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.ITVApiSoundSpdifOutAidl
            public int eventSoundSpdifOutGetAudioDelay() 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();
                } finally {
                    parcelObtain2.recycle();
                    parcelObtain.recycle();
                }
            }

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

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

            @Override // com.cvte.tv.api.aidl.ITVApiSoundSpdifOutAidl
            public int eventSoundSpdifOutGetVolume() 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();
                } finally {
                    parcelObtain2.recycle();
                    parcelObtain.recycle();
                }
            }

            @Override // com.cvte.tv.api.aidl.ITVApiSoundSpdifOutAidl
            public boolean eventSoundSpdifOutReset(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(11, parcelObtain, parcelObtain2, 0);
                    parcelObtain2.readException();
                    return parcelObtain2.readInt() != 0;
                } finally {
                    parcelObtain2.recycle();
                    parcelObtain.recycle();
                }
            }

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

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

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

            @Override // com.cvte.tv.api.aidl.ITVApiSoundSpdifOutAidl
            public boolean eventSoundSpdifOutSetMute(boolean z) throws RemoteException {
                Parcel parcelObtain = Parcel.obtain();
                Parcel parcelObtain2 = Parcel.obtain();
                try {
                    parcelObtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    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.ITVApiSoundSpdifOutAidl
            public boolean eventSoundSpdifOutSetVolume(int i2) throws RemoteException {
                Parcel parcelObtain = Parcel.obtain();
                Parcel parcelObtain2 = Parcel.obtain();
                try {
                    parcelObtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    parcelObtain.writeInt(i2);
                    this.mRemote.transact(5, parcelObtain, parcelObtain2, 0);
                    parcelObtain2.readException();
                    return parcelObtain2.readInt() != 0;
                } finally {
                    parcelObtain2.recycle();
                    parcelObtain.recycle();
                }
            }

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

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

        public static ITVApiSoundSpdifOutAidl asInterface(IBinder iBinder) {
            if (iBinder == null) {
                return null;
            }
            IInterface iInterfaceQueryLocalInterface = iBinder.queryLocalInterface(DESCRIPTOR);
            return (iInterfaceQueryLocalInterface == null || !(iInterfaceQueryLocalInterface instanceof ITVApiSoundSpdifOutAidl)) ? new Proxy(iBinder) : (ITVApiSoundSpdifOutAidl) iInterfaceQueryLocalInterface;
        }

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

        @Override // android.os.Binder
        public boolean onTransact(int i2, Parcel parcel, Parcel parcel2, int i3) throws RemoteException {
            if (i2 == 1598968902) {
                parcel2.writeString(DESCRIPTOR);
                return true;
            }
            switch (i2) {
                case 1:
                    parcel.enforceInterface(DESCRIPTOR);
                    boolean zEventSoundSpdifOutSetAudioDelay = eventSoundSpdifOutSetAudioDelay(parcel.readInt());
                    parcel2.writeNoException();
                    parcel2.writeInt(zEventSoundSpdifOutSetAudioDelay ? 1 : 0);
                    return true;
                case 2:
                    parcel.enforceInterface(DESCRIPTOR);
                    int iEventSoundSpdifOutGetAudioDelay = eventSoundSpdifOutGetAudioDelay();
                    parcel2.writeNoException();
                    parcel2.writeInt(iEventSoundSpdifOutGetAudioDelay);
                    return true;
                case 3:
                    parcel.enforceInterface(DESCRIPTOR);
                    boolean zEventSoundSpdifOutSetBalance = eventSoundSpdifOutSetBalance(parcel.readInt());
                    parcel2.writeNoException();
                    parcel2.writeInt(zEventSoundSpdifOutSetBalance ? 1 : 0);
                    return true;
                case 4:
                    parcel.enforceInterface(DESCRIPTOR);
                    int iEventSoundSpdifOutGetBalance = eventSoundSpdifOutGetBalance();
                    parcel2.writeNoException();
                    parcel2.writeInt(iEventSoundSpdifOutGetBalance);
                    return true;
                case 5:
                    parcel.enforceInterface(DESCRIPTOR);
                    boolean zEventSoundSpdifOutSetVolume = eventSoundSpdifOutSetVolume(parcel.readInt());
                    parcel2.writeNoException();
                    parcel2.writeInt(zEventSoundSpdifOutSetVolume ? 1 : 0);
                    return true;
                case 6:
                    parcel.enforceInterface(DESCRIPTOR);
                    int iEventSoundSpdifOutGetVolume = eventSoundSpdifOutGetVolume();
                    parcel2.writeNoException();
                    parcel2.writeInt(iEventSoundSpdifOutGetVolume);
                    return true;
                case 7:
                    parcel.enforceInterface(DESCRIPTOR);
                    boolean zEventSoundSpdifOutSetMute = eventSoundSpdifOutSetMute(parcel.readInt() != 0);
                    parcel2.writeNoException();
                    parcel2.writeInt(zEventSoundSpdifOutSetMute ? 1 : 0);
                    return true;
                case 8:
                    parcel.enforceInterface(DESCRIPTOR);
                    boolean zEventGetSoundSpdifOutIsMute = eventGetSoundSpdifOutIsMute();
                    parcel2.writeNoException();
                    parcel2.writeInt(zEventGetSoundSpdifOutIsMute ? 1 : 0);
                    return true;
                case 9:
                    parcel.enforceInterface(DESCRIPTOR);
                    EnumSoundSpdifOutMode enumSoundSpdifOutModeEventSoundSpdifOutGetMode = eventSoundSpdifOutGetMode();
                    parcel2.writeNoException();
                    if (enumSoundSpdifOutModeEventSoundSpdifOutGetMode != null) {
                        parcel2.writeInt(1);
                        enumSoundSpdifOutModeEventSoundSpdifOutGetMode.writeToParcel(parcel2, 1);
                    } else {
                        parcel2.writeInt(0);
                    }
                    return true;
                case 10:
                    parcel.enforceInterface(DESCRIPTOR);
                    boolean zEventSoundSpdifOutSetMode = eventSoundSpdifOutSetMode(parcel.readInt() != 0 ? EnumSoundSpdifOutMode.CREATOR.createFromParcel(parcel) : null);
                    parcel2.writeNoException();
                    parcel2.writeInt(zEventSoundSpdifOutSetMode ? 1 : 0);
                    return true;
                case 11:
                    parcel.enforceInterface(DESCRIPTOR);
                    boolean zEventSoundSpdifOutReset = eventSoundSpdifOutReset(parcel.readInt() != 0 ? EnumResetLevel.CREATOR.createFromParcel(parcel) : null);
                    parcel2.writeNoException();
                    parcel2.writeInt(zEventSoundSpdifOutReset ? 1 : 0);
                    return true;
                default:
                    return super.onTransact(i2, parcel, parcel2, i3);
            }
        }
    }

    boolean eventGetSoundSpdifOutIsMute() throws RemoteException;

    int eventSoundSpdifOutGetAudioDelay() throws RemoteException;

    int eventSoundSpdifOutGetBalance() throws RemoteException;

    EnumSoundSpdifOutMode eventSoundSpdifOutGetMode() throws RemoteException;

    int eventSoundSpdifOutGetVolume() throws RemoteException;

    boolean eventSoundSpdifOutReset(EnumResetLevel enumResetLevel) throws RemoteException;

    boolean eventSoundSpdifOutSetAudioDelay(int i2) throws RemoteException;

    boolean eventSoundSpdifOutSetBalance(int i2) throws RemoteException;

    boolean eventSoundSpdifOutSetMode(EnumSoundSpdifOutMode enumSoundSpdifOutMode) throws RemoteException;

    boolean eventSoundSpdifOutSetMute(boolean z) throws RemoteException;

    boolean eventSoundSpdifOutSetVolume(int i2) throws RemoteException;
}
