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 eventSystemLedLightSetStatus(EnumLedStatus enumLedStatus) throws RemoteException {
        ITVApiSystemLedLight iTVApiSystemLedLight = (ITVApiSystemLedLight) MiddleWareApi.getInstance().getTvApi(ITVApiSystemLedLight.class);
        if (iTVApiSystemLedLight == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiSystemLedLight.eventSystemLedLightSetStatus(enumLedStatus);
    }

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

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

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

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