package com.cvte.tv.api;

import android.os.RemoteException;
import com.cvte.tv.api.aidl.EntityCrop;
import com.cvte.tv.api.aidl.EnumResetLevel;
import com.cvte.tv.api.aidl.ITVApiScreenCropAidl;
import com.cvte.tv.api.functions.ITVApiScreenCrop;

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

    @Override // com.cvte.tv.api.aidl.ITVApiScreenCropAidl
    public boolean eventScreenCropSetValue(EntityCrop entityCrop) throws RemoteException {
        ITVApiScreenCrop iTVApiScreenCrop = (ITVApiScreenCrop) MiddleWareApi.getInstance().getTvApi(ITVApiScreenCrop.class);
        if (iTVApiScreenCrop == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiScreenCrop.eventScreenCropSetValue(entityCrop);
    }

    @Override // com.cvte.tv.api.aidl.ITVApiScreenCropAidl
    public EntityCrop eventScreenCropGetValue() throws RemoteException {
        ITVApiScreenCrop iTVApiScreenCrop = (ITVApiScreenCrop) MiddleWareApi.getInstance().getTvApi(ITVApiScreenCrop.class);
        if (iTVApiScreenCrop == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiScreenCrop.eventScreenCropGetValue();
    }

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