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 int eventSoundArcGetAudioDelay() throws RemoteException {
        ITVApiSoundArc iTVApiSoundArc = (ITVApiSoundArc) MiddleWareApi.getInstance().getTvApi(ITVApiSoundArc.class);
        if (iTVApiSoundArc != null) {
            return iTVApiSoundArc.eventSoundArcGetAudioDelay();
        }
        throw new RemoteException("TV Api not found");
    }

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

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

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

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

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

    @Override // com.cvte.tv.api.aidl.ITVApiSoundArcAidl
    public boolean eventSoundArcSetAudioDelay(int i2) throws RemoteException {
        ITVApiSoundArc iTVApiSoundArc = (ITVApiSoundArc) MiddleWareApi.getInstance().getTvApi(ITVApiSoundArc.class);
        if (iTVApiSoundArc != null) {
            return iTVApiSoundArc.eventSoundArcSetAudioDelay(i2);
        }
        throw new RemoteException("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) {
            return iTVApiSoundArc.eventSoundArcSetEnable(z);
        }
        throw new RemoteException("TV Api not found");
    }

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

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

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