package com.cvte.tv.api;

import android.os.RemoteException;
import com.cvte.tv.api.aidl.EnumFactoryDataType;
import com.cvte.tv.api.aidl.EnumResetLevel;
import com.cvte.tv.api.aidl.ITVApiSystemFactoryDataAidl;
import com.cvte.tv.api.functions.ITVApiSystemFactoryData;

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

    @Override // com.cvte.tv.api.aidl.ITVApiSystemFactoryDataAidl
    public String eventSystemGetAppData(int i2) throws RemoteException {
        ITVApiSystemFactoryData iTVApiSystemFactoryData = (ITVApiSystemFactoryData) MiddleWareApi.getInstance().getTvApi(ITVApiSystemFactoryData.class);
        if (iTVApiSystemFactoryData != null) {
            return iTVApiSystemFactoryData.eventSystemGetAppData(i2);
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSystemFactoryDataAidl
    public String eventSystemGetAppDataByString(String str) throws RemoteException {
        ITVApiSystemFactoryData iTVApiSystemFactoryData = (ITVApiSystemFactoryData) MiddleWareApi.getInstance().getTvApi(ITVApiSystemFactoryData.class);
        if (iTVApiSystemFactoryData != null) {
            return iTVApiSystemFactoryData.eventSystemGetAppDataByString(str);
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSystemFactoryDataAidl
    public String eventSystemGetFactoryData(EnumFactoryDataType enumFactoryDataType) throws RemoteException {
        ITVApiSystemFactoryData iTVApiSystemFactoryData = (ITVApiSystemFactoryData) MiddleWareApi.getInstance().getTvApi(ITVApiSystemFactoryData.class);
        if (iTVApiSystemFactoryData != null) {
            return iTVApiSystemFactoryData.eventSystemGetFactoryData(enumFactoryDataType);
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSystemFactoryDataAidl
    public String eventSystemGetModelName() throws RemoteException {
        ITVApiSystemFactoryData iTVApiSystemFactoryData = (ITVApiSystemFactoryData) MiddleWareApi.getInstance().getTvApi(ITVApiSystemFactoryData.class);
        if (iTVApiSystemFactoryData != null) {
            return iTVApiSystemFactoryData.eventSystemGetModelName();
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSystemFactoryDataAidl
    public String eventSystemGetPn() throws RemoteException {
        ITVApiSystemFactoryData iTVApiSystemFactoryData = (ITVApiSystemFactoryData) MiddleWareApi.getInstance().getTvApi(ITVApiSystemFactoryData.class);
        if (iTVApiSystemFactoryData != null) {
            return iTVApiSystemFactoryData.eventSystemGetPn();
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSystemFactoryDataAidl
    public String eventSystemGetSn() throws RemoteException {
        ITVApiSystemFactoryData iTVApiSystemFactoryData = (ITVApiSystemFactoryData) MiddleWareApi.getInstance().getTvApi(ITVApiSystemFactoryData.class);
        if (iTVApiSystemFactoryData != null) {
            return iTVApiSystemFactoryData.eventSystemGetSn();
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSystemFactoryDataAidl
    public boolean eventSystemResetFactoryCusData(EnumResetLevel enumResetLevel, int i2) throws RemoteException {
        ITVApiSystemFactoryData iTVApiSystemFactoryData = (ITVApiSystemFactoryData) MiddleWareApi.getInstance().getTvApi(ITVApiSystemFactoryData.class);
        if (iTVApiSystemFactoryData != null) {
            return iTVApiSystemFactoryData.eventSystemResetFactoryCusData(enumResetLevel, i2);
        }
        throw new RemoteException("TV Api not found");
    }

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

    @Override // com.cvte.tv.api.aidl.ITVApiSystemFactoryDataAidl
    public boolean eventSystemSetAppData(String str) throws RemoteException {
        ITVApiSystemFactoryData iTVApiSystemFactoryData = (ITVApiSystemFactoryData) MiddleWareApi.getInstance().getTvApi(ITVApiSystemFactoryData.class);
        if (iTVApiSystemFactoryData != null) {
            return iTVApiSystemFactoryData.eventSystemSetAppData(str);
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSystemFactoryDataAidl
    public boolean eventSystemSetAppDataByIndex(int i2, String str) throws RemoteException {
        ITVApiSystemFactoryData iTVApiSystemFactoryData = (ITVApiSystemFactoryData) MiddleWareApi.getInstance().getTvApi(ITVApiSystemFactoryData.class);
        if (iTVApiSystemFactoryData != null) {
            return iTVApiSystemFactoryData.eventSystemSetAppDataByIndex(i2, str);
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSystemFactoryDataAidl
    public boolean eventSystemSetAppDataByString(String str, String str2) throws RemoteException {
        ITVApiSystemFactoryData iTVApiSystemFactoryData = (ITVApiSystemFactoryData) MiddleWareApi.getInstance().getTvApi(ITVApiSystemFactoryData.class);
        if (iTVApiSystemFactoryData != null) {
            return iTVApiSystemFactoryData.eventSystemSetAppDataByString(str, str2);
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSystemFactoryDataAidl
    public boolean eventSystemSetFactoryData(EnumFactoryDataType enumFactoryDataType, String str) throws RemoteException {
        ITVApiSystemFactoryData iTVApiSystemFactoryData = (ITVApiSystemFactoryData) MiddleWareApi.getInstance().getTvApi(ITVApiSystemFactoryData.class);
        if (iTVApiSystemFactoryData != null) {
            return iTVApiSystemFactoryData.eventSystemSetFactoryData(enumFactoryDataType, str);
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSystemFactoryDataAidl
    public boolean eventSystemSetModelName(String str) throws RemoteException {
        ITVApiSystemFactoryData iTVApiSystemFactoryData = (ITVApiSystemFactoryData) MiddleWareApi.getInstance().getTvApi(ITVApiSystemFactoryData.class);
        if (iTVApiSystemFactoryData != null) {
            return iTVApiSystemFactoryData.eventSystemSetModelName(str);
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSystemFactoryDataAidl
    public boolean eventSystemSetPn(String str) throws RemoteException {
        ITVApiSystemFactoryData iTVApiSystemFactoryData = (ITVApiSystemFactoryData) MiddleWareApi.getInstance().getTvApi(ITVApiSystemFactoryData.class);
        if (iTVApiSystemFactoryData != null) {
            return iTVApiSystemFactoryData.eventSystemSetPn(str);
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSystemFactoryDataAidl
    public boolean eventSystemSetSn(String str) throws RemoteException {
        ITVApiSystemFactoryData iTVApiSystemFactoryData = (ITVApiSystemFactoryData) MiddleWareApi.getInstance().getTvApi(ITVApiSystemFactoryData.class);
        if (iTVApiSystemFactoryData != null) {
            return iTVApiSystemFactoryData.eventSystemSetSn(str);
        }
        throw new RemoteException("TV Api not found");
    }
}
