package com.cvte.tv.api;

import android.os.RemoteException;
import com.cvte.tv.api.aidl.EnumResetLevel;
import com.cvte.tv.api.aidl.ITVApiSoundAvlAidl;
import com.cvte.tv.api.functions.ITVApiSoundAvl;

/* JADX INFO: loaded from: classes.dex */
public class TVApiSoundAvlService extends ITVApiSoundAvlAidl.Stub {
    public static final String TVAPI_NOFOUND_ERROR = "TV Api not found";

    @Override // com.cvte.tv.api.aidl.ITVApiSoundAvlAidl
    public int eventSoundAvlGetAttackTime() throws RemoteException {
        ITVApiSoundAvl iTVApiSoundAvl = (ITVApiSoundAvl) MiddleWareApi.getInstance().getTvApi(ITVApiSoundAvl.class);
        if (iTVApiSoundAvl != null) {
            return iTVApiSoundAvl.eventSoundAvlGetAttackTime();
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSoundAvlAidl
    public int eventSoundAvlGetReleaseTime() throws RemoteException {
        ITVApiSoundAvl iTVApiSoundAvl = (ITVApiSoundAvl) MiddleWareApi.getInstance().getTvApi(ITVApiSoundAvl.class);
        if (iTVApiSoundAvl != null) {
            return iTVApiSoundAvl.eventSoundAvlGetReleaseTime();
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSoundAvlAidl
    public int eventSoundAvlGetThershold() throws RemoteException {
        ITVApiSoundAvl iTVApiSoundAvl = (ITVApiSoundAvl) MiddleWareApi.getInstance().getTvApi(ITVApiSoundAvl.class);
        if (iTVApiSoundAvl != null) {
            return iTVApiSoundAvl.eventSoundAvlGetThershold();
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSoundAvlAidl
    public boolean eventSoundAvlIsEnabled() throws RemoteException {
        ITVApiSoundAvl iTVApiSoundAvl = (ITVApiSoundAvl) MiddleWareApi.getInstance().getTvApi(ITVApiSoundAvl.class);
        if (iTVApiSoundAvl != null) {
            return iTVApiSoundAvl.eventSoundAvlIsEnabled();
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSoundAvlAidl
    public boolean eventSoundAvlReset(EnumResetLevel enumResetLevel) throws RemoteException {
        ITVApiSoundAvl iTVApiSoundAvl = (ITVApiSoundAvl) MiddleWareApi.getInstance().getTvApi(ITVApiSoundAvl.class);
        if (iTVApiSoundAvl != null) {
            return iTVApiSoundAvl.eventSoundAvlReset(enumResetLevel);
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSoundAvlAidl
    public boolean eventSoundAvlSetAttackTime(int i2) throws RemoteException {
        ITVApiSoundAvl iTVApiSoundAvl = (ITVApiSoundAvl) MiddleWareApi.getInstance().getTvApi(ITVApiSoundAvl.class);
        if (iTVApiSoundAvl != null) {
            return iTVApiSoundAvl.eventSoundAvlSetAttackTime(i2);
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSoundAvlAidl
    public boolean eventSoundAvlSetEnable(boolean z) throws RemoteException {
        ITVApiSoundAvl iTVApiSoundAvl = (ITVApiSoundAvl) MiddleWareApi.getInstance().getTvApi(ITVApiSoundAvl.class);
        if (iTVApiSoundAvl != null) {
            return iTVApiSoundAvl.eventSoundAvlSetEnable(z);
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSoundAvlAidl
    public boolean eventSoundAvlSetReleaseTime(int i2) throws RemoteException {
        ITVApiSoundAvl iTVApiSoundAvl = (ITVApiSoundAvl) MiddleWareApi.getInstance().getTvApi(ITVApiSoundAvl.class);
        if (iTVApiSoundAvl != null) {
            return iTVApiSoundAvl.eventSoundAvlSetReleaseTime(i2);
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSoundAvlAidl
    public boolean eventSoundAvlSetThershold(int i2) throws RemoteException {
        ITVApiSoundAvl iTVApiSoundAvl = (ITVApiSoundAvl) MiddleWareApi.getInstance().getTvApi(ITVApiSoundAvl.class);
        if (iTVApiSoundAvl != null) {
            return iTVApiSoundAvl.eventSoundAvlSetThershold(i2);
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSoundAvlAidl
    public boolean eventSoundDrcSetEnable(boolean z) throws RemoteException {
        ITVApiSoundAvl iTVApiSoundAvl = (ITVApiSoundAvl) MiddleWareApi.getInstance().getTvApi(ITVApiSoundAvl.class);
        if (iTVApiSoundAvl != null) {
            return iTVApiSoundAvl.eventSoundDrcSetEnable(z);
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSoundAvlAidl
    public boolean eventSoundIsDrcEnable() throws RemoteException {
        ITVApiSoundAvl iTVApiSoundAvl = (ITVApiSoundAvl) MiddleWareApi.getInstance().getTvApi(ITVApiSoundAvl.class);
        if (iTVApiSoundAvl != null) {
            return iTVApiSoundAvl.eventSoundIsDrcEnable();
        }
        throw new RemoteException("TV Api not found");
    }
}
