package com.cvte.tv.api;

import android.os.RemoteException;
import com.cvte.tv.api.aidl.EnumResetLevel;
import com.cvte.tv.api.aidl.ITVApiSoundSurroundAidl;
import com.cvte.tv.api.functions.ITVApiSoundSurround;

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

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

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

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