package com.cvte.tv.api;

import android.os.RemoteException;
import com.cvte.tv.api.aidl.EntityChannel;
import com.cvte.tv.api.aidl.EnumChannelFilterMode;
import com.cvte.tv.api.aidl.EnumChannelSortMode;
import com.cvte.tv.api.aidl.EnumChannelType;
import com.cvte.tv.api.aidl.EnumInputSourceCategory;
import com.cvte.tv.api.aidl.EnumProgramChangeType;
import com.cvte.tv.api.aidl.EnumResetLevel;
import com.cvte.tv.api.aidl.EnumVideoStandard;
import com.cvte.tv.api.aidl.ITVApiTvChannelsAidl;
import com.cvte.tv.api.functions.ITVApiTvChannels;
import java.util.List;

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

    @Override // com.cvte.tv.api.aidl.ITVApiTvChannelsAidl
    public boolean eventTVChannelsProgramChange(EnumProgramChangeType enumProgramChangeType) throws RemoteException {
        ITVApiTvChannels iTVApiTvChannels = (ITVApiTvChannels) MiddleWareApi.getInstance().getTvApi(ITVApiTvChannels.class);
        if (iTVApiTvChannels == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiTvChannels.eventTVChannelsProgramChange(enumProgramChangeType);
    }

    @Override // com.cvte.tv.api.aidl.ITVApiTvChannelsAidl
    public List<EntityChannel> eventTVChannelsGetChannelList(EnumInputSourceCategory enumInputSourceCategory) throws RemoteException {
        ITVApiTvChannels iTVApiTvChannels = (ITVApiTvChannels) MiddleWareApi.getInstance().getTvApi(ITVApiTvChannels.class);
        if (iTVApiTvChannels == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiTvChannels.eventTVChannelsGetChannelList(enumInputSourceCategory);
    }

    @Override // com.cvte.tv.api.aidl.ITVApiTvChannelsAidl
    public EntityChannel eventTVChannelsGetChannel() throws RemoteException {
        ITVApiTvChannels iTVApiTvChannels = (ITVApiTvChannels) MiddleWareApi.getInstance().getTvApi(ITVApiTvChannels.class);
        if (iTVApiTvChannels == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiTvChannels.eventTVChannelsGetChannel();
    }

    @Override // com.cvte.tv.api.aidl.ITVApiTvChannelsAidl
    public boolean eventTVChannelsTuneChannelById(int i) throws RemoteException {
        ITVApiTvChannels iTVApiTvChannels = (ITVApiTvChannels) MiddleWareApi.getInstance().getTvApi(ITVApiTvChannels.class);
        if (iTVApiTvChannels == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiTvChannels.eventTVChannelsTuneChannelById(i);
    }

    @Override // com.cvte.tv.api.aidl.ITVApiTvChannelsAidl
    public boolean eventTVChannelsTuneChannelByLcn(int i, int i2) throws RemoteException {
        ITVApiTvChannels iTVApiTvChannels = (ITVApiTvChannels) MiddleWareApi.getInstance().getTvApi(ITVApiTvChannels.class);
        if (iTVApiTvChannels == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiTvChannels.eventTVChannelsTuneChannelByLcn(i, i2);
    }

    @Override // com.cvte.tv.api.aidl.ITVApiTvChannelsAidl
    public int eventTVChannelsGetBootChannelId() throws RemoteException {
        ITVApiTvChannels iTVApiTvChannels = (ITVApiTvChannels) MiddleWareApi.getInstance().getTvApi(ITVApiTvChannels.class);
        if (iTVApiTvChannels == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiTvChannels.eventTVChannelsGetBootChannelId();
    }

    @Override // com.cvte.tv.api.aidl.ITVApiTvChannelsAidl
    public boolean eventTVChannelsSetBootChannelId(int i) throws RemoteException {
        ITVApiTvChannels iTVApiTvChannels = (ITVApiTvChannels) MiddleWareApi.getInstance().getTvApi(ITVApiTvChannels.class);
        if (iTVApiTvChannels == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiTvChannels.eventTVChannelsSetBootChannelId(i);
    }

    @Override // com.cvte.tv.api.aidl.ITVApiTvChannelsAidl
    public EnumVideoStandard eventTVChannelsGetCurrentChannelVideoStandard() throws RemoteException {
        ITVApiTvChannels iTVApiTvChannels = (ITVApiTvChannels) MiddleWareApi.getInstance().getTvApi(ITVApiTvChannels.class);
        if (iTVApiTvChannels == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiTvChannels.eventTVChannelsGetCurrentChannelVideoStandard();
    }

    @Override // com.cvte.tv.api.aidl.ITVApiTvChannelsAidl
    public List<EntityChannel> eventTVChannelsGetSortResult(EnumChannelSortMode enumChannelSortMode) throws RemoteException {
        ITVApiTvChannels iTVApiTvChannels = (ITVApiTvChannels) MiddleWareApi.getInstance().getTvApi(ITVApiTvChannels.class);
        if (iTVApiTvChannels == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiTvChannels.eventTVChannelsGetSortResult(enumChannelSortMode);
    }

    @Override // com.cvte.tv.api.aidl.ITVApiTvChannelsAidl
    public List<EntityChannel> eventTVChannelsGetFilterResult(String str, EnumChannelFilterMode enumChannelFilterMode) throws RemoteException {
        ITVApiTvChannels iTVApiTvChannels = (ITVApiTvChannels) MiddleWareApi.getInstance().getTvApi(ITVApiTvChannels.class);
        if (iTVApiTvChannels == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiTvChannels.eventTVChannelsGetFilterResult(str, enumChannelFilterMode);
    }

    @Override // com.cvte.tv.api.aidl.ITVApiTvChannelsAidl
    public int eventTVChannelsGetBatchCount(EnumInputSourceCategory enumInputSourceCategory) throws RemoteException {
        ITVApiTvChannels iTVApiTvChannels = (ITVApiTvChannels) MiddleWareApi.getInstance().getTvApi(ITVApiTvChannels.class);
        if (iTVApiTvChannels == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiTvChannels.eventTVChannelsGetBatchCount(enumInputSourceCategory);
    }

    @Override // com.cvte.tv.api.aidl.ITVApiTvChannelsAidl
    public List<EntityChannel> eventTVChannelsGetBatchList(int i, EnumInputSourceCategory enumInputSourceCategory) throws RemoteException {
        ITVApiTvChannels iTVApiTvChannels = (ITVApiTvChannels) MiddleWareApi.getInstance().getTvApi(ITVApiTvChannels.class);
        if (iTVApiTvChannels == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiTvChannels.eventTVChannelsGetBatchList(i, enumInputSourceCategory);
    }

    @Override // com.cvte.tv.api.aidl.ITVApiTvChannelsAidl
    public int eventTVChannelsGetTotalCount(EnumInputSourceCategory enumInputSourceCategory, EnumChannelType enumChannelType) throws RemoteException {
        ITVApiTvChannels iTVApiTvChannels = (ITVApiTvChannels) MiddleWareApi.getInstance().getTvApi(ITVApiTvChannels.class);
        if (iTVApiTvChannels == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiTvChannels.eventTVChannelsGetTotalCount(enumInputSourceCategory, enumChannelType);
    }

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