FileDocCategorySizeDatePackage
ScriptCThunker.javaAPI DocAndroid 5.1 API7730Thu Mar 12 22:22:56 GMT 2015android.support.v8.renderscript

ScriptCThunker

public class ScriptCThunker extends android.renderscript.ScriptC

Fields Summary
private static final String
TAG
Constructors Summary
protected ScriptCThunker(RenderScriptThunker rs, android.content.res.Resources resources, int resourceID)


           
        super(rs.mN, resources, resourceID);
    
Methods Summary
voidthunkBindAllocation(Allocation va, int slot)

        android.renderscript.Allocation nva = null;
        if (va != null) {
            nva = ((AllocationThunker)va).mN;
        }
        try {
            bindAllocation(nva, slot);
        } catch (android.renderscript.RSRuntimeException e) {
            throw ExceptionThunker.convertException(e);
        }
    
android.renderscript.Script.FieldIDthunkCreateFieldID(int slot, Element e)

        try {
            ElementThunker et = (ElementThunker) e;
            return createFieldID(slot, et.getNObj());
        } catch (android.renderscript.RSRuntimeException exc) {
            throw ExceptionThunker.convertException(exc);
        }
    
android.renderscript.Script.KernelIDthunkCreateKernelID(int slot, int sig, Element ein, Element eout)


        android.renderscript.Element nein = null;
        android.renderscript.Element neout = null;
        if (ein != null) {
            nein = ((ElementThunker)ein).mN;
        }
        if (eout != null) {
            neout = ((ElementThunker)eout).mN;
        }
        try {
            android.renderscript.Script.KernelID kid = createKernelID(slot, sig, nein, neout);
            return kid;
        } catch (android.renderscript.RSRuntimeException e) {
            throw ExceptionThunker.convertException(e);
        }
    
voidthunkForEach(int slot, Allocation ain, Allocation aout, FieldPacker v)

        android.renderscript.Allocation nin = null;
        android.renderscript.Allocation nout = null;
        android.renderscript.FieldPacker nfp = null;
        if (ain != null) {
            nin = ((AllocationThunker)ain).mN;
        }
        if (aout != null) {
            nout = ((AllocationThunker)aout).mN;
        }
        try {
            if (v != null) {
                nfp = new android.renderscript.FieldPacker(v.getData());
            }
            forEach(slot, nin, nout, nfp);
        } catch (android.renderscript.RSRuntimeException e) {
            throw ExceptionThunker.convertException(e);
        }
    
voidthunkForEach(int slot, Allocation ain, Allocation aout, FieldPacker v, android.support.v8.renderscript.Script.LaunchOptions sc)

        try {
            android.renderscript.Script.LaunchOptions lo = null;
            if (sc != null) {
                lo = new android.renderscript.Script.LaunchOptions();
                if (sc.getXEnd() > 0) lo.setX(sc.getXStart(), sc.getXEnd());
                if (sc.getYEnd() > 0) lo.setY(sc.getYStart(), sc.getYEnd());
                if (sc.getZEnd() > 0) lo.setZ(sc.getZStart(), sc.getZEnd());
            }

            android.renderscript.Allocation nin = null;
            android.renderscript.Allocation nout = null;
            android.renderscript.FieldPacker nfp = null;
            if (ain != null) {
                nin = ((AllocationThunker)ain).mN;
            }
            if (aout != null) {
                nout = ((AllocationThunker)aout).mN;
            }
            if (v != null) {
                nfp = new android.renderscript.FieldPacker(v.getData());
            }
            forEach(slot, nin, nout, nfp, lo);
        } catch (android.renderscript.RSRuntimeException e) {
            throw ExceptionThunker.convertException(e);
        }
    
voidthunkInvoke(int slot)

        try {
            invoke(slot);
        } catch (android.renderscript.RSRuntimeException e) {
            throw ExceptionThunker.convertException(e);
        }
    
voidthunkInvoke(int slot, FieldPacker v)

        try {
            android.renderscript.FieldPacker nfp =
                new android.renderscript.FieldPacker(v.getData());
            invoke(slot, nfp);
        } catch (android.renderscript.RSRuntimeException e) {
            throw ExceptionThunker.convertException(e);
        }
    
voidthunkSetTimeZone(java.lang.String timeZone)

        try {
            setTimeZone(timeZone);
        } catch (android.renderscript.RSRuntimeException e) {
            throw ExceptionThunker.convertException(e);
        }
    
voidthunkSetVar(int index, double v)

        try {
            setVar(index, v);
        } catch (android.renderscript.RSRuntimeException e) {
            throw ExceptionThunker.convertException(e);
        }
    
voidthunkSetVar(int index, int v)

        try {
            setVar(index, v);
        } catch (android.renderscript.RSRuntimeException e) {
            throw ExceptionThunker.convertException(e);
        }
    
voidthunkSetVar(int index, long v)

        try {
            setVar(index, v);
        } catch (android.renderscript.RSRuntimeException e) {
            throw ExceptionThunker.convertException(e);
        }
    
voidthunkSetVar(int index, boolean v)

        try {
            setVar(index, v);
        } catch (android.renderscript.RSRuntimeException e) {
            throw ExceptionThunker.convertException(e);
        }
    
voidthunkSetVar(int index, BaseObj o)

        if (o == null) {
            try {
                setVar(index, 0);
            } catch (android.renderscript.RSRuntimeException e) {
                throw ExceptionThunker.convertException(e);
            }
            return;
        }
        try {
            setVar(index, o.getNObj());
        } catch (android.renderscript.RSRuntimeException e) {
            throw ExceptionThunker.convertException(e);
        }
    
voidthunkSetVar(int index, FieldPacker v)

        try {
            android.renderscript.FieldPacker nfp =
                new android.renderscript.FieldPacker(v.getData());
            setVar(index, nfp);
        } catch (android.renderscript.RSRuntimeException e) {
            throw ExceptionThunker.convertException(e);
        }
    
voidthunkSetVar(int index, FieldPacker v, Element e, int[] dims)

        try {
            android.renderscript.FieldPacker nfp =
                new android.renderscript.FieldPacker(v.getData());
            ElementThunker et = (ElementThunker)e;
            setVar(index, nfp, et.mN, dims);
        } catch (android.renderscript.RSRuntimeException exc) {
            throw ExceptionThunker.convertException(exc);
        }
    
voidthunkSetVar(int index, float v)

        try {
            setVar(index, v);
        } catch (android.renderscript.RSRuntimeException e) {
            throw ExceptionThunker.convertException(e);
        }