package com.cvte.tv.api;

import android.os.RemoteException;
import com.cvte.tv.api.aidl.ITVApiSystemPropertiesAidl;
import com.cvte.tv.api.functions.ITVApiSystemProperties;

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

    @Override // com.cvte.tv.api.aidl.ITVApiSystemPropertiesAidl
    public boolean set(String str, String str2) throws RemoteException {
        ITVApiSystemProperties iTVApiSystemProperties = (ITVApiSystemProperties) MiddleWareApi.getInstance().getTvApi(ITVApiSystemProperties.class);
        if (iTVApiSystemProperties == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiSystemProperties.set(str, str2);
    }

    @Override // com.cvte.tv.api.aidl.ITVApiSystemPropertiesAidl
    public String get(String str, String str2) throws RemoteException {
        ITVApiSystemProperties iTVApiSystemProperties = (ITVApiSystemProperties) MiddleWareApi.getInstance().getTvApi(ITVApiSystemProperties.class);
        if (iTVApiSystemProperties == null) {
            throw new RemoteException("TV Api not found");
        }
        return iTVApiSystemProperties.get(str, str2);
    }
}
