FileDocCategorySizeDatePackage
UT_static_globals.javaAPI DocAndroid 5.1 API1475Thu Mar 12 22:22:54 GMT 2015com.android.rs.test

UT_static_globals

public class UT_static_globals extends UnitTest

Fields Summary
private android.content.res.Resources
mRes
Constructors Summary
protected UT_static_globals(RSTestCore rstc, android.content.res.Resources res, android.content.Context ctx)

        super(rstc, "Static Globals", ctx);
        mRes = res;
    
Methods Summary
public voidrun()

        RenderScript pRS = RenderScript.create(mCtx);
        ScriptC_static_globals s = new ScriptC_static_globals(pRS);
        pRS.setMessageHandler(mRsMessage);
        Type.Builder typeBuilder = new Type.Builder(pRS, Element.I32(pRS));
        Allocation A = Allocation.createTyped(pRS, typeBuilder.setX(1).create());
        s.forEach_root(A);
        s.invoke_static_globals_test();
        pRS.finish();
        waitForMessage();
        pRS.destroy();