public interface IBase extends android.os.IHwInterface {
    public static final String kInterfaceName = "android.hidl.base@1.0::IBase";

    public static IBase asInterface(android.os.IHwBinder binder) {
        if (binder == null) {
            return null;
        }

        android.os.IHwInterface iface = binder.queryLocalInterface(kInterfaceName);
        if (iface != null && iface instanceof IBase) {
            return (IBase) iface;
        }

        IBase proxy = new IBase.Proxy(binder);
        try {
            java.util.Iterator<String> descriptorIterator = proxy.interfaceChain().iterator();
            while (descriptorIterator.hasNext()) {
                String descriptor = descriptorIterator.next();
                if (descriptor.equals(kInterfaceName)) {
                    return proxy;
                }
            }
        } catch (android.os.RemoteException e) {
            return null;
        }

        return null;
    }

    public static IBase castFrom(android.os.IHwInterface iface) {
        if (iface == null) {
            return null;
        }

        return asInterface(iface.asBinder());
    }
}
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence