package com.cvte.tv.api;

import android.os.RemoteException;
import com.cvte.tv.api.aidl.EntityPvrRecordFile;
import com.cvte.tv.api.aidl.EntityPvrScheduleRecordTask;
import com.cvte.tv.api.aidl.EnumPlayerControlAction;
import com.cvte.tv.api.aidl.ITVApiTvPvrAidl;
import com.cvte.tv.api.functions.ITVApiTvPvr;
import java.util.List;

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

    @Override // com.cvte.tv.api.aidl.ITVApiTvPvrAidl
    public boolean eventPvrControlAction(EnumPlayerControlAction enumPlayerControlAction) throws RemoteException {
        ITVApiTvPvr iTVApiTvPvr = (ITVApiTvPvr) MiddleWareApi.getInstance().getTvApi(ITVApiTvPvr.class);
        if (iTVApiTvPvr == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiTvPvr.eventPvrControlAction(enumPlayerControlAction);
    }

    @Override // com.cvte.tv.api.aidl.ITVApiTvPvrAidl
    public boolean eventPvrAddScheduleTask(EntityPvrScheduleRecordTask entityPvrScheduleRecordTask) throws RemoteException {
        ITVApiTvPvr iTVApiTvPvr = (ITVApiTvPvr) MiddleWareApi.getInstance().getTvApi(ITVApiTvPvr.class);
        if (iTVApiTvPvr == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiTvPvr.eventPvrAddScheduleTask(entityPvrScheduleRecordTask);
    }

    @Override // com.cvte.tv.api.aidl.ITVApiTvPvrAidl
    public List<EntityPvrScheduleRecordTask> eventPvrGetScheduleTaskList() throws RemoteException {
        ITVApiTvPvr iTVApiTvPvr = (ITVApiTvPvr) MiddleWareApi.getInstance().getTvApi(ITVApiTvPvr.class);
        if (iTVApiTvPvr == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiTvPvr.eventPvrGetScheduleTaskList();
    }

    @Override // com.cvte.tv.api.aidl.ITVApiTvPvrAidl
    public List<EntityPvrRecordFile> eventGetRecordedList() throws RemoteException {
        ITVApiTvPvr iTVApiTvPvr = (ITVApiTvPvr) MiddleWareApi.getInstance().getTvApi(ITVApiTvPvr.class);
        if (iTVApiTvPvr == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiTvPvr.eventGetRecordedList();
    }

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

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

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

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

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