RenderScript pRS = RenderScript.create(mCtx);
ScriptC_array_alloc s = new ScriptC_array_alloc(pRS);
pRS.setMessageHandler(mRsMessage);
int dimX = s.get_dimX();
Allocation[] Arr = new Allocation[dimX];
Type.Builder typeBuilder = new Type.Builder(pRS, Element.I32(pRS));
Type T = typeBuilder.setX(1).create();
for (int i = 0; i < dimX; i++) {
Allocation A = Allocation.createTyped(pRS, T);
Arr[i] = A;
}
s.set_a(Arr);
s.invoke_array_alloc_test();
pRS.finish();
waitForMessage();
pRS.destroy();
passTest();