package com.cvte.tv.api;

import android.os.RemoteException;
import com.cvte.tv.api.aidl.EntityBluetoothDevice;
import com.cvte.tv.api.aidl.ITVApiBluetoothAidl;
import com.cvte.tv.api.functions.ITVApiBluetooth;
import java.util.List;

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

    @Override // com.cvte.tv.api.aidl.ITVApiBluetoothAidl
    public boolean eventBluetoothConnectToDevice(int i2) throws RemoteException {
        ITVApiBluetooth iTVApiBluetooth = (ITVApiBluetooth) MiddleWareApi.getInstance().getTvApi(ITVApiBluetooth.class);
        if (iTVApiBluetooth != null) {
            return iTVApiBluetooth.eventBluetoothConnectToDevice(i2);
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiBluetoothAidl
    public boolean eventBluetoothDisconnectToDevice(int i2) throws RemoteException {
        ITVApiBluetooth iTVApiBluetooth = (ITVApiBluetooth) MiddleWareApi.getInstance().getTvApi(ITVApiBluetooth.class);
        if (iTVApiBluetooth != null) {
            return iTVApiBluetooth.eventBluetoothDisconnectToDevice(i2);
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiBluetoothAidl
    public List<EntityBluetoothDevice> eventBluetoothGetNewDevicesList() throws RemoteException {
        ITVApiBluetooth iTVApiBluetooth = (ITVApiBluetooth) MiddleWareApi.getInstance().getTvApi(ITVApiBluetooth.class);
        if (iTVApiBluetooth != null) {
            return iTVApiBluetooth.eventBluetoothGetNewDevicesList();
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiBluetoothAidl
    public List<EntityBluetoothDevice> eventBluetoothGetStoredDevicesList() throws RemoteException {
        ITVApiBluetooth iTVApiBluetooth = (ITVApiBluetooth) MiddleWareApi.getInstance().getTvApi(ITVApiBluetooth.class);
        if (iTVApiBluetooth != null) {
            return iTVApiBluetooth.eventBluetoothGetStoredDevicesList();
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiBluetoothAidl
    public boolean eventBluetoothIsDetectEnabled() throws RemoteException {
        ITVApiBluetooth iTVApiBluetooth = (ITVApiBluetooth) MiddleWareApi.getInstance().getTvApi(ITVApiBluetooth.class);
        if (iTVApiBluetooth != null) {
            return iTVApiBluetooth.eventBluetoothIsDetectEnabled();
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiBluetoothAidl
    public boolean eventBluetoothIsEnabled() throws RemoteException {
        ITVApiBluetooth iTVApiBluetooth = (ITVApiBluetooth) MiddleWareApi.getInstance().getTvApi(ITVApiBluetooth.class);
        if (iTVApiBluetooth != null) {
            return iTVApiBluetooth.eventBluetoothIsEnabled();
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiBluetoothAidl
    public boolean eventBluetoothMatchToDevice(int i2) throws RemoteException {
        ITVApiBluetooth iTVApiBluetooth = (ITVApiBluetooth) MiddleWareApi.getInstance().getTvApi(ITVApiBluetooth.class);
        if (iTVApiBluetooth != null) {
            return iTVApiBluetooth.eventBluetoothMatchToDevice(i2);
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiBluetoothAidl
    public boolean eventBluetoothScanDevices() throws RemoteException {
        ITVApiBluetooth iTVApiBluetooth = (ITVApiBluetooth) MiddleWareApi.getInstance().getTvApi(ITVApiBluetooth.class);
        if (iTVApiBluetooth != null) {
            return iTVApiBluetooth.eventBluetoothScanDevices();
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiBluetoothAidl
    public boolean eventBluetoothSetDetectEnable(boolean z) throws RemoteException {
        ITVApiBluetooth iTVApiBluetooth = (ITVApiBluetooth) MiddleWareApi.getInstance().getTvApi(ITVApiBluetooth.class);
        if (iTVApiBluetooth != null) {
            return iTVApiBluetooth.eventBluetoothSetDetectEnable(z);
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiBluetoothAidl
    public boolean eventBluetoothSetEnable(boolean z) throws RemoteException {
        ITVApiBluetooth iTVApiBluetooth = (ITVApiBluetooth) MiddleWareApi.getInstance().getTvApi(ITVApiBluetooth.class);
        if (iTVApiBluetooth != null) {
            return iTVApiBluetooth.eventBluetoothSetEnable(z);
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiBluetoothAidl
    public boolean eventBluetoothUnmatchDevice(int i2) throws RemoteException {
        ITVApiBluetooth iTVApiBluetooth = (ITVApiBluetooth) MiddleWareApi.getInstance().getTvApi(ITVApiBluetooth.class);
        if (iTVApiBluetooth != null) {
            return iTVApiBluetooth.eventBluetoothUnmatchDevice(i2);
        }
        throw new RemoteException("TV Api not found");
    }

    @Override // com.cvte.tv.api.aidl.ITVApiBluetoothAidl
    public boolean eventCheckBluetoothAT() throws RemoteException {
        ITVApiBluetooth iTVApiBluetooth = (ITVApiBluetooth) MiddleWareApi.getInstance().getTvApi(ITVApiBluetooth.class);
        if (iTVApiBluetooth != null) {
            return iTVApiBluetooth.eventCheckBluetoothAT();
        }
        throw new RemoteException("TV Api not found");
    }
}
