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 boolean eventSoundAvlSetEnable(boolean z) throws RemoteException {
        ITVApiSoundAvl iTVApiSoundAvl = (ITVApiSoundAvl) MiddleWareApi.getInstance().getTvApi(ITVApiSoundAvl.class);
        if (iTVApiSoundAvl == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiSoundAvl.eventSoundAvlSetEnable(z);
    }

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

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

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

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

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

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

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

    @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) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiSoundAvl.eventSoundAvlReset(enumResetLevel);
    }

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

    @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) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiSoundAvl.eventSoundDrcSetEnable(z);
    }
}
