package com.cvte.tv.api;

import android.os.RemoteException;
import com.cvte.tv.api.aidl.EnumResetLevel;
import com.cvte.tv.api.aidl.ITVApiSystemDebugAidl;
import com.cvte.tv.api.functions.ITVApiSystemDebug;

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

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

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

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

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

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

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

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

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

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

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