package com.cvte.tv.api;

import android.os.RemoteException;
import com.cvte.tv.api.aidl.EnumBurningKeyStatus;
import com.cvte.tv.api.aidl.EnumResetLevel;
import com.cvte.tv.api.aidl.ITVApiSystemCiPlusAidl;
import com.cvte.tv.api.functions.ITVApiSystemCiPlus;

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

    @Override // com.cvte.tv.api.aidl.ITVApiSystemCiPlusAidl
    public boolean eventSystemCiPlusKeyBurning(String str, byte[] bArr, int i) throws RemoteException {
        ITVApiSystemCiPlus iTVApiSystemCiPlus = (ITVApiSystemCiPlus) MiddleWareApi.getInstance().getTvApi(ITVApiSystemCiPlus.class);
        if (iTVApiSystemCiPlus == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiSystemCiPlus.eventSystemCiPlusKeyBurning(str, bArr, i);
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSystemCiPlusAidl
    public boolean eventSystemCiPlusKeyBurningByPath(String str) throws RemoteException {
        ITVApiSystemCiPlus iTVApiSystemCiPlus = (ITVApiSystemCiPlus) MiddleWareApi.getInstance().getTvApi(ITVApiSystemCiPlus.class);
        if (iTVApiSystemCiPlus == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiSystemCiPlus.eventSystemCiPlusKeyBurningByPath(str);
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSystemCiPlusAidl
    public String eventSystemCiPlusKeyGetName() throws RemoteException {
        ITVApiSystemCiPlus iTVApiSystemCiPlus = (ITVApiSystemCiPlus) MiddleWareApi.getInstance().getTvApi(ITVApiSystemCiPlus.class);
        if (iTVApiSystemCiPlus == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiSystemCiPlus.eventSystemCiPlusKeyGetName();
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSystemCiPlusAidl
    public EnumBurningKeyStatus eventSystemCiPlusKeyCheck() throws RemoteException {
        ITVApiSystemCiPlus iTVApiSystemCiPlus = (ITVApiSystemCiPlus) MiddleWareApi.getInstance().getTvApi(ITVApiSystemCiPlus.class);
        if (iTVApiSystemCiPlus == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiSystemCiPlus.eventSystemCiPlusKeyCheck();
    }

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