package com.cvte.tv.api;

import android.os.RemoteException;
import com.cvte.tv.api.aidl.EnumLedStatus;
import com.cvte.tv.api.aidl.EnumResetLevel;
import com.cvte.tv.api.aidl.ITVApiSystemLedLightAidl;
import com.cvte.tv.api.functions.ITVApiSystemLedLight;

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

    @Override // com.cvte.tv.api.aidl.ITVApiSystemLedLightAidl
    public boolean eventSystemEnableIrLight(boolean z) throws RemoteException {
        ITVApiSystemLedLight iTVApiSystemLedLight = (ITVApiSystemLedLight) MiddleWareApi.getInstance().getTvApi(ITVApiSystemLedLight.class);
        if (iTVApiSystemLedLight != null) {
            return iTVApiSystemLedLight.eventSystemEnableIrLight(z);
        }
        throw new RemoteException("TV Api not found");
    }

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

    @Override // com.cvte.tv.api.aidl.ITVApiSystemLedLightAidl
    public EnumLedStatus eventSystemLedLightGetStatus() throws RemoteException {
        ITVApiSystemLedLight iTVApiSystemLedLight = (ITVApiSystemLedLight) MiddleWareApi.getInstance().getTvApi(ITVApiSystemLedLight.class);
        if (iTVApiSystemLedLight != null) {
            return iTVApiSystemLedLight.eventSystemLedLightGetStatus();
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSystemLedLightAidl
    public boolean eventSystemLedLightReset(EnumResetLevel enumResetLevel) throws RemoteException {
        ITVApiSystemLedLight iTVApiSystemLedLight = (ITVApiSystemLedLight) MiddleWareApi.getInstance().getTvApi(ITVApiSystemLedLight.class);
        if (iTVApiSystemLedLight != null) {
            return iTVApiSystemLedLight.eventSystemLedLightReset(enumResetLevel);
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSystemLedLightAidl
    public boolean eventSystemLedLightSetStatus(EnumLedStatus enumLedStatus) throws RemoteException {
        ITVApiSystemLedLight iTVApiSystemLedLight = (ITVApiSystemLedLight) MiddleWareApi.getInstance().getTvApi(ITVApiSystemLedLight.class);
        if (iTVApiSystemLedLight != null) {
            return iTVApiSystemLedLight.eventSystemLedLightSetStatus(enumLedStatus);
        }
        throw new RemoteException("TV Api not found");
    }
}
