package com.cvte.tv.api;

import android.os.RemoteException;
import com.cvte.tv.api.aidl.EnumResetLevel;
import com.cvte.tv.api.aidl.ITVApiSoundPreScaleAidl;
import com.cvte.tv.api.functions.ITVApiSoundPreScale;

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

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

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

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