/frameworks/base/tests/RenderScriptTests/HelloWorld/src/com/example/android/rs/helloworld/ |
HelloWorldRS.java | 25 private RenderScriptGL mRS; 35 mRS = rs; 46 mScript = new ScriptC_helloworld(mRS, mRes, R.raw.helloworld); 47 mRS.bindRootScript(mScript);
|
/frameworks/rs/java/tests/ComputeBenchmark/src/com/example/android/rs/computebench/ |
Benchmark.java | 23 private final RenderScript mRS; 27 mRS = rs; 28 mScript = new ScriptC_compute_benchmark(mRS, res, R.raw.compute_benchmark); 34 mRS.finish();
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
ScriptGroupTest.java | 45 Type connect = new Type.Builder(mRS, Element.U8_4(mRS)).setX(bDimX).setY(bDimY).create(); 49 mColorMatrix = ScriptIntrinsicColorMatrix.create(mRS, Element.U8_4(mRS)); 52 a1_copy = Allocation.createTyped(mRS, connect); 53 a2_copy = Allocation.createTyped(mRS, connect); 61 ScriptGroup.Builder b = new ScriptGroup.Builder(mRS); 74 Type connect = new Type.Builder(mRS, Element.U8_4(mRS)).setX(bDimX).setY(bDimY).create(); 78 mColorMatrix = ScriptIntrinsicColorMatrix.create(mRS, Element.U8_4(mRS)) [all...] |
IsObjectTest.java | 45 element = Element.BOOLEAN(mRS); 47 type = new Type.Builder(mRS, Element.I8(mRS)).setX(1).create(); 48 allocation = Allocation.createTyped(mRS, type); 49 sampler = new Sampler.Builder(mRS).create(); 50 script = new ScriptC_is_object(mRS); 51 ms_is_object = new ScriptC_is_object(mRS); 59 mRS, 1); 66 mOut = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum) [all...] |
SetObjectTest.java | 44 element = Element.BOOLEAN(mRS); 46 type = new Type.Builder(mRS, Element.I8(mRS)).setX(1).create(); 47 allocation = Allocation.createTyped(mRS, type); 48 sampler = new Sampler.Builder(mRS).create(); 49 script = new ScriptC_set_object(mRS); 51 ms_set = new ScriptC_set_object(mRS); 59 mRS, 1); 65 mOut = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum) [all...] |
YuvTest.java | 61 Type.Builder tb = new Type.Builder(mRS, Element.U8(mRS)); 64 ay = Allocation.createTyped(mRS, tb.create()); 66 tb = new Type.Builder(mRS, Element.U8(mRS)); 69 au = Allocation.createTyped(mRS, tb.create()); 70 av = Allocation.createTyped(mRS, tb.create()); 78 Type.Builder tb = new Type.Builder(mRS, Element.RGBA_8888(mRS)); 82 return Allocation.createTyped(mRS, t) [all...] |
VersionTest.java | 29 new ScriptC_set_target_api_11(mRS, 39 new ScriptC_set_target_api_12(mRS, 49 new ScriptC_set_target_api_13(mRS, 59 new ScriptC_set_target_api_14(mRS, 69 new ScriptC_set_target_api_15(mRS, 79 new ScriptC_set_target_api_16(mRS, 89 new ScriptC_set_target_api_17(mRS, 100 new ScriptC_set_target_api_too_high(mRS,
|
SampleTest.java | 41 Element format = Element.RGBA_8888(mRS); 42 Type.Builder b = new Type.Builder(mRS, format); 44 mAlloc_RGBA_1D = Allocation.createTyped(mRS, b.setX(8).create(), 47 mAlloc_RGBA_2D = Allocation.createTyped(mRS, b.setX(8).setY(8).create(), 51 mScript = new ScriptC_sample(mRS, mRes, R.raw.sample); 57 mScript.set_gNearest(Sampler.CLAMP_NEAREST(mRS)); 58 mScript.set_gLinear(Sampler.CLAMP_LINEAR(mRS)); 60 Sampler.Builder sb = new Sampler.Builder(mRS); 64 mScript.set_gMipLinear(Sampler.CLAMP_LINEAR_MIP_LINEAR(mRS)); 74 mRS.finish() [all...] |
AllocationTest.java | 38 Type.Builder typeBuilder = new Type.Builder(mRS, e); 50 Allocation.createTyped(mRS, typeBuilder.create()); 60 Type.Builder typeBuilder = new Type.Builder(mRS, e); 61 Allocation.createTyped(mRS, typeBuilder.setX(8).create(), 64 Allocation.createTyped(mRS, typeBuilder.setY(8).create(), 68 Allocation.createTyped(mRS, typeBuilder.create(), 73 Allocation.createTyped(mRS, typeBuilder.create(), 76 Allocation.createTyped(mRS, typeBuilder.create(), 82 Allocation.createTyped(mRS, typeBuilder.setX(7).setY(1).create(), 85 Allocation.createTyped(mRS, typeBuilder.setX(7).setY(3).create() [all...] |
PownTest.java | 32 script_f32 = new ScriptC_pown_f32(mRS); 33 script_f32_relaxed = new ScriptC_pown_f32_relaxed(mRS); 82 Allocation nAlloc = Allocation.createSized(mRS, Element.I32(mRS), INPUTSIZE); 93 Allocation nAlloc = Allocation.createSized(mRS, Element.I32(mRS), INPUTSIZE); 104 Allocation nAlloc = Allocation.createSized(mRS, Element.I32_2(mRS), INPUTSIZE); 115 Allocation nAlloc = Allocation.createSized(mRS, Element.I32_2(mRS), INPUTSIZE) [all...] |
RootnTest.java | 32 script_f32 = new ScriptC_rootn_f32(mRS); 33 script_f32_relaxed = new ScriptC_rootn_f32_relaxed(mRS); 80 Allocation nAlloc = Allocation.createSized(mRS, Element.I32(mRS), INPUTSIZE); 91 Allocation nAlloc = Allocation.createSized(mRS, Element.I32(mRS), INPUTSIZE); 103 Allocation nAlloc = Allocation.createSized(mRS, Element.I32_2(mRS), INPUTSIZE); 114 Allocation nAlloc = Allocation.createSized(mRS, Element.I32_2(mRS), INPUTSIZE) [all...] |
GlobalTest.java | 26 ScriptC_large_global lg = new ScriptC_large_global(mRS);
|
/frameworks/rs/cpp/ |
Script.cpp | 26 tryDispatch(mRS, RS::dispatch->ScriptInvokeV(mRS->getContext(), getID(), slot, v, len)); 32 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "At least one of ain or aout is required to be non-null."); 36 tryDispatch(mRS, RS::dispatch->ScriptForEach(mRS->getContext(), getID(), slot, in_id, out_id, usr, usrLen, NULL, 0)); 45 tryDispatch(mRS, RS::dispatch->ScriptBindAllocation(mRS->getContext(), getID(), BaseObj::getObjID(va), slot)); 50 tryDispatch(mRS, RS::dispatch->ScriptSetVarObj(mRS->getContext(), getID(), index, (o == NULL) ? 0 : o->getID())); 54 tryDispatch(mRS, RS::dispatch->ScriptSetVarV(mRS->getContext(), getID(), index, v, len)) [all...] |
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/ |
BallsRS.java | 31 private RenderScriptGL mRS; 42 mVpConsts = new ScriptField_VpConsts(mRS, 1, 47 mvp.loadOrtho(0, mRS.getWidth(), mRS.getHeight(), 0, -1, 1); 55 ProgramVertex.Builder sb = new ProgramVertex.Builder(mRS); 69 mRS.bindProgramVertex(pvs); 74 Allocation.createFromBitmapResource(mRS, mRes, 90 ProgramFragmentFixedFunction.Builder pfb = new ProgramFragmentFixedFunction.Builder(mRS); 99 mRS = rs; 106 mPoints = new ScriptField_Point(mRS, PART_COUNT, Allocation.USAGE_SCRIPT) [all...] |
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
BaseObj.java | 30 mRS = rs; 52 mRS.validate(); 65 if ((rs != null) && (rs != mRS)) { 83 RenderScript mRS; 87 if(mID != 0 && mRS.isAlive()) { 88 mRS.nObjDestroy(mID); 90 mRS = null; 109 mRS.nObjDestroy(mID);
|
/packages/wallpapers/Galaxy4/src/com/android/galaxy4/ |
GalaxyView.java | 16 private RenderScriptGL mRS; 27 if (mRS == null) { 29 mRS = createRenderScriptGL(sc); 30 mRS.setSurface(holder, w, h); 38 mRender.init(metrics.densityDpi, mRS, getResources(), w, h); 46 if (mRS != null) { 47 mRS.setSurface(null, 0, 0); 48 mRS = null;
|
/cts/tests/tests/rscpp/src/android/cts/rscpp/ |
RSBlurTest.java | 40 RenderScript mRS = RenderScript.create(getContext()); 46 Type.Builder build = new Type.Builder(mRS, Element.A_8(mRS)); 49 Allocation rsInput = Allocation.createTyped(mRS, build.create()); 50 Allocation rsOutput = Allocation.createTyped(mRS, build.create()); 52 ScriptIntrinsicBlur blur = ScriptIntrinsicBlur.create(mRS, Element.A_8(mRS)); 71 RenderScript mRS = RenderScript.create(getContext()); 77 Type.Builder build = new Type.Builder(mRS, Element.RGBA_8888(mRS)); [all...] |
RSColorMatrixTest.java | 40 RenderScript mRS = RenderScript.create(getContext()); 57 Type.Builder build = new Type.Builder(mRS, Element.RGBA_8888(mRS)); 60 Allocation rsInput = Allocation.createTyped(mRS, build.create()); 61 Allocation rsOutput = Allocation.createTyped(mRS, build.create()); 64 ScriptIntrinsicColorMatrix cm = ScriptIntrinsicColorMatrix.create(mRS, Element.RGBA_8888(mRS)); 82 RenderScript mRS = RenderScript.create(getContext()); 90 Type.Builder build = new Type.Builder(mRS, Element.RGBA_8888(mRS)); [all...] |
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/ |
UT_instance.java | 39 RenderScript mRS = RenderScript.create(mCtx); 40 mRS.setMessageHandler(mRsMessage); 42 ScriptC_instance instance_1 = new ScriptC_instance(mRS); 43 ScriptC_instance instance_2 = new ScriptC_instance(mRS); 44 ScriptC_instance instance_3 = new ScriptC_instance(mRS); 45 ScriptC_instance instance_4 = new ScriptC_instance(mRS); 46 ScriptC_instance instance_5 = new ScriptC_instance(mRS); 48 Type t = new Type.Builder(mRS, Element.I32(mRS)).setX(1).create(); 49 Allocation ai1 = Allocation.createTyped(mRS, t) [all...] |
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/ |
WhiteBalance.java | 31 mScript = new ScriptC_wbalance(mRS); 32 mHist = ScriptIntrinsicHistogram.create(mRS, Element.U8_4(mRS)); 33 mSums = Allocation.createSized(mRS, Element.I32_3(mRS), 256);
|
/cts/tests/tests/rsg/src/android/renderscriptgraphics/cts/ |
RenderscriptGLStubActivity.java | 31 private RenderScriptGL mRS; 41 mRS = rs; 47 mScript = new ScriptC_stub_activity(mRS, mRes, R.raw.stub_activity); 48 mRS.bindRootScript(mScript); 54 private RenderScriptGL mRS; 64 if (mRS == null) { 68 mRS = createRenderScriptGL(sc); 71 mRender.init(mRS, getResources()); 85 if (mRS != null) { 86 mRS = null [all...] |
ProgramVertexTest.java | 43 Element.Builder eb = new Element.Builder(mRS); 44 eb.add(Element.F32_4(mRS), "position"); 47 eb = new Element.Builder(mRS); 48 eb.add(Element.F32_3(mRS), "normal"); 49 eb.add(Element.F32_2(mRS), "texture0"); 52 eb = new Element.Builder(mRS); 53 eb.add(Element.F32_4(mRS), "position"); 54 eb.add(Element.F32_3(mRS), "normal"); 55 eb.add(Element.F32_2(mRS), "texture0"); 58 eb.add(Element.F32(mRS), "extra1") [all...] |
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/ |
TestAppLoadingScreen.java | 44 private RenderScriptGL mRS; 48 mRS = rs; 58 mRS.bindRootScript(mScript); 60 mRS.bindRootScript(SceneManager.getInstance().getRenderLoop()); 70 robotTex = Allocation.createFromBitmapResource(mRS, mRes, R.drawable.robot, 74 FileA3D model = FileA3D.createFromResource(mRS, mRes, R.raw.robot); 80 mScript.set_gPFSBackground(ProgramStore.BLEND_NONE_DEPTH_TEST(mRS)); 82 ProgramFragmentFixedFunction.Builder b = new ProgramFragmentFixedFunction.Builder(mRS); 86 pfDefault.bindSampler(Sampler.CLAMP_LINEAR(mRS), 0); 89 ProgramVertexFixedFunction.Builder pvb = new ProgramVertexFixedFunction.Builder(mRS); [all...] |
SimpleAppView.java | 36 private RenderScriptGL mRS; 41 if (mRS == null) { 45 mRS = createRenderScriptGL(sc); 46 mRS.setSurface(holder, w, h); 48 mRender.init(mRS, getResources(), w, h); 54 if (mRS != null) { 56 mRS = null;
|
/frameworks/rs/java/tests/MathErr/src/com/example/android/rs/matherr/ |
MathErrActivity.java | 27 private RenderScript mRS; 34 mRS = RenderScript.create(this); 35 mME = new MathErr(mRS);
|