package com.cvte.tv.api;

import android.os.RemoteException;
import com.cvte.tv.api.aidl.EnumAcPowerMode;
import com.cvte.tv.api.aidl.EnumAgingMode;
import com.cvte.tv.api.aidl.EnumResetLevel;
import com.cvte.tv.api.aidl.ITVApiSystemAgingAidl;
import com.cvte.tv.api.functions.ITVApiSystemAging;

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

    @Override // com.cvte.tv.api.aidl.ITVApiSystemAgingAidl
    public boolean eventSystemAgingSetMode(EnumAgingMode enumAgingMode) throws RemoteException {
        ITVApiSystemAging iTVApiSystemAging = (ITVApiSystemAging) MiddleWareApi.getInstance().getTvApi(ITVApiSystemAging.class);
        if (iTVApiSystemAging == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiSystemAging.eventSystemAgingSetMode(enumAgingMode);
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSystemAgingAidl
    public EnumAgingMode eventSystemAgingGetMode() throws RemoteException {
        ITVApiSystemAging iTVApiSystemAging = (ITVApiSystemAging) MiddleWareApi.getInstance().getTvApi(ITVApiSystemAging.class);
        if (iTVApiSystemAging == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiSystemAging.eventSystemAgingGetMode();
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSystemAgingAidl
    public boolean eventSystemAgingSetPowerMode(EnumAcPowerMode enumAcPowerMode) throws RemoteException {
        ITVApiSystemAging iTVApiSystemAging = (ITVApiSystemAging) MiddleWareApi.getInstance().getTvApi(ITVApiSystemAging.class);
        if (iTVApiSystemAging == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiSystemAging.eventSystemAgingSetPowerMode(enumAcPowerMode);
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSystemAgingAidl
    public EnumAcPowerMode eventSystemAgingGetPowerMode() throws RemoteException {
        ITVApiSystemAging iTVApiSystemAging = (ITVApiSystemAging) MiddleWareApi.getInstance().getTvApi(ITVApiSystemAging.class);
        if (iTVApiSystemAging == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiSystemAging.eventSystemAgingGetPowerMode();
    }

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