UT_refcountpublic class UT_refcount extends UnitTest
Fields Summary |
---|
private android.content.res.Resources | mRes |
Methods Summary |
---|
private void | initializeGlobals(RenderScript RS, ScriptC_refcount s)
Type.Builder typeBuilder = new Type.Builder(RS, Element.I32(RS));
int X = 500;
int Y = 700;
typeBuilder.setX(X).setY(Y);
Allocation A = Allocation.createTyped(RS, typeBuilder.create());
s.set_globalA(A);
| public void | run()
RenderScript pRS = RenderScript.create(mCtx);
pRS.setMessageHandler(mRsMessage);
ScriptC_refcount s = new ScriptC_refcount(pRS);
initializeGlobals(pRS, s);
s.invoke_refcount_test();
pRS.finish();
waitForMessage();
pRS.destroy();
|
|