package com.cvte.tv.api;

import android.os.RemoteException;
import com.cvte.tv.api.aidl.EnumDbxTotalVolumeMode;
import com.cvte.tv.api.aidl.EnumResetLevel;
import com.cvte.tv.api.aidl.ITVApiSoundDbxAidl;
import com.cvte.tv.api.functions.ITVApiSoundDbx;

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

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

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

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

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

    @Override // com.cvte.tv.api.aidl.ITVApiSoundDbxAidl
    public EnumDbxTotalVolumeMode eventSoundDbxGetTotalVolumeMode() throws RemoteException {
        ITVApiSoundDbx iTVApiSoundDbx = (ITVApiSoundDbx) MiddleWareApi.getInstance().getTvApi(ITVApiSoundDbx.class);
        if (iTVApiSoundDbx == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiSoundDbx.eventSoundDbxGetTotalVolumeMode();
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSoundDbxAidl
    public boolean eventSoundSetTotalVolumeMode(EnumDbxTotalVolumeMode enumDbxTotalVolumeMode) throws RemoteException {
        ITVApiSoundDbx iTVApiSoundDbx = (ITVApiSoundDbx) MiddleWareApi.getInstance().getTvApi(ITVApiSoundDbx.class);
        if (iTVApiSoundDbx == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiSoundDbx.eventSoundSetTotalVolumeMode(enumDbxTotalVolumeMode);
    }

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