package com.cvte.tv.api;

import android.os.RemoteException;
import com.cvte.tv.api.aidl.EnumResetLevel;
import com.cvte.tv.api.aidl.ITVApiSoundArcAidl;
import com.cvte.tv.api.functions.ITVApiSoundArc;

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

    @Override // com.cvte.tv.api.aidl.ITVApiSoundArcAidl
    public boolean eventSoundArcSetEnable(boolean z) throws RemoteException {
        ITVApiSoundArc iTVApiSoundArc = (ITVApiSoundArc) MiddleWareApi.getInstance().getTvApi(ITVApiSoundArc.class);
        if (iTVApiSoundArc == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiSoundArc.eventSoundArcSetEnable(z);
    }

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

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

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

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

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

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

    @Override // com.cvte.tv.api.aidl.ITVApiSoundArcAidl
    public boolean eventSoundArcSetMute(boolean z) throws RemoteException {
        ITVApiSoundArc iTVApiSoundArc = (ITVApiSoundArc) MiddleWareApi.getInstance().getTvApi(ITVApiSoundArc.class);
        if (iTVApiSoundArc == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiSoundArc.eventSoundArcSetMute(z);
    }

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

    @Override // com.cvte.tv.api.aidl.ITVApiSoundArcAidl
    public boolean eventSoundArcReset(EnumResetLevel enumResetLevel) throws RemoteException {
        ITVApiSoundArc iTVApiSoundArc = (ITVApiSoundArc) MiddleWareApi.getInstance().getTvApi(ITVApiSoundArc.class);
        if (iTVApiSoundArc == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiSoundArc.eventSoundArcReset(enumResetLevel);
    }
}
