package com.cvte.tv.api;

import android.os.RemoteException;
import com.cvte.tv.api.aidl.EntitySatellite;
import com.cvte.tv.api.aidl.EnumDvbsSatelliteType;
import com.cvte.tv.api.aidl.EnumResetLevel;
import com.cvte.tv.api.aidl.ITVApiDvbsSatelliteManagerAidl;
import com.cvte.tv.api.functions.ITVApiDvbsSatelliteManager;
import java.util.List;

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

    @Override // com.cvte.tv.api.aidl.ITVApiDvbsSatelliteManagerAidl
    public boolean eventAddSatellite(EntitySatellite entitySatellite) throws RemoteException {
        ITVApiDvbsSatelliteManager iTVApiDvbsSatelliteManager = (ITVApiDvbsSatelliteManager) MiddleWareApi.getInstance().getTvApi(ITVApiDvbsSatelliteManager.class);
        if (iTVApiDvbsSatelliteManager == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiDvbsSatelliteManager.eventAddSatellite(entitySatellite);
    }

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

    @Override // com.cvte.tv.api.aidl.ITVApiDvbsSatelliteManagerAidl
    public boolean eventUpdateSatellite(EntitySatellite entitySatellite) throws RemoteException {
        ITVApiDvbsSatelliteManager iTVApiDvbsSatelliteManager = (ITVApiDvbsSatelliteManager) MiddleWareApi.getInstance().getTvApi(ITVApiDvbsSatelliteManager.class);
        if (iTVApiDvbsSatelliteManager == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiDvbsSatelliteManager.eventUpdateSatellite(entitySatellite);
    }

    @Override // com.cvte.tv.api.aidl.ITVApiDvbsSatelliteManagerAidl
    public EntitySatellite eventGetSatellite(int i) throws RemoteException {
        ITVApiDvbsSatelliteManager iTVApiDvbsSatelliteManager = (ITVApiDvbsSatelliteManager) MiddleWareApi.getInstance().getTvApi(ITVApiDvbsSatelliteManager.class);
        if (iTVApiDvbsSatelliteManager == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiDvbsSatelliteManager.eventGetSatellite(i);
    }

    @Override // com.cvte.tv.api.aidl.ITVApiDvbsSatelliteManagerAidl
    public boolean eventSaveSelectedSatelliteList(EnumDvbsSatelliteType enumDvbsSatelliteType, int[] iArr) throws RemoteException {
        ITVApiDvbsSatelliteManager iTVApiDvbsSatelliteManager = (ITVApiDvbsSatelliteManager) MiddleWareApi.getInstance().getTvApi(ITVApiDvbsSatelliteManager.class);
        if (iTVApiDvbsSatelliteManager == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiDvbsSatelliteManager.eventSaveSelectedSatelliteList(enumDvbsSatelliteType, iArr);
    }

    @Override // com.cvte.tv.api.aidl.ITVApiDvbsSatelliteManagerAidl
    public int[] eventLoadSelectedSatelliteList(EnumDvbsSatelliteType enumDvbsSatelliteType) throws RemoteException {
        ITVApiDvbsSatelliteManager iTVApiDvbsSatelliteManager = (ITVApiDvbsSatelliteManager) MiddleWareApi.getInstance().getTvApi(ITVApiDvbsSatelliteManager.class);
        if (iTVApiDvbsSatelliteManager == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiDvbsSatelliteManager.eventLoadSelectedSatelliteList(enumDvbsSatelliteType);
    }

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

    @Override // com.cvte.tv.api.aidl.ITVApiDvbsSatelliteManagerAidl
    public List<EntitySatellite> eventGetSatelliteList() throws RemoteException {
        ITVApiDvbsSatelliteManager iTVApiDvbsSatelliteManager = (ITVApiDvbsSatelliteManager) MiddleWareApi.getInstance().getTvApi(ITVApiDvbsSatelliteManager.class);
        if (iTVApiDvbsSatelliteManager == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiDvbsSatelliteManager.eventGetSatelliteList();
    }

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

    @Override // com.cvte.tv.api.aidl.ITVApiDvbsSatelliteManagerAidl
    public boolean eventSetDvbsSatelliteType(EnumDvbsSatelliteType enumDvbsSatelliteType) throws RemoteException {
        ITVApiDvbsSatelliteManager iTVApiDvbsSatelliteManager = (ITVApiDvbsSatelliteManager) MiddleWareApi.getInstance().getTvApi(ITVApiDvbsSatelliteManager.class);
        if (iTVApiDvbsSatelliteManager == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiDvbsSatelliteManager.eventSetDvbsSatelliteType(enumDvbsSatelliteType);
    }

    @Override // com.cvte.tv.api.aidl.ITVApiDvbsSatelliteManagerAidl
    public EnumDvbsSatelliteType eventGetDvbsSatelliteType() throws RemoteException {
        ITVApiDvbsSatelliteManager iTVApiDvbsSatelliteManager = (ITVApiDvbsSatelliteManager) MiddleWareApi.getInstance().getTvApi(ITVApiDvbsSatelliteManager.class);
        if (iTVApiDvbsSatelliteManager == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiDvbsSatelliteManager.eventGetDvbsSatelliteType();
    }

    @Override // com.cvte.tv.api.aidl.ITVApiDvbsSatelliteManagerAidl
    public List<EnumDvbsSatelliteType> eventGetDvbsSatelliteTypeOptions() throws RemoteException {
        ITVApiDvbsSatelliteManager iTVApiDvbsSatelliteManager = (ITVApiDvbsSatelliteManager) MiddleWareApi.getInstance().getTvApi(ITVApiDvbsSatelliteManager.class);
        if (iTVApiDvbsSatelliteManager == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiDvbsSatelliteManager.eventGetDvbsSatelliteTypeOptions();
    }

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

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

    @Override // com.cvte.tv.api.aidl.ITVApiDvbsSatelliteManagerAidl
    public List<String> eventGetLnbFreqs() throws RemoteException {
        ITVApiDvbsSatelliteManager iTVApiDvbsSatelliteManager = (ITVApiDvbsSatelliteManager) MiddleWareApi.getInstance().getTvApi(ITVApiDvbsSatelliteManager.class);
        if (iTVApiDvbsSatelliteManager == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiDvbsSatelliteManager.eventGetLnbFreqs();
    }

    @Override // com.cvte.tv.api.aidl.ITVApiDvbsSatelliteManagerAidl
    public int[] eventGetUnicableIfFreqs() throws RemoteException {
        ITVApiDvbsSatelliteManager iTVApiDvbsSatelliteManager = (ITVApiDvbsSatelliteManager) MiddleWareApi.getInstance().getTvApi(ITVApiDvbsSatelliteManager.class);
        if (iTVApiDvbsSatelliteManager == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiDvbsSatelliteManager.eventGetUnicableIfFreqs();
    }

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