Searched refs:mRS (Results 76 - 100 of 129) sorted by relevance

123456

/frameworks/base/tests/RenderScriptTests/ShadersTest/src/com/android/shaderstest/
H A DShadersTestView.java28 private RenderScriptGL mRS; field in class:ShadersTestView
43 if (mRS == null) {
46 mRS = createRenderScriptGL(sc);
48 mRender.init(mRS, getResources());
67 if (mRS != null) {
68 mRS = null;
/frameworks/base/graphics/java/android/renderscript/
H A DProgramFragmentFixedFunction.java53 mRS.validate();
60 tmp[idx++] = mInputs[i].getID(mRS);
64 tmp[idx++] = mOutputs[i].getID(mRS);
68 tmp[idx++] = mConstants[i].getID(mRS);
76 int id = mRS.nProgramFragmentCreate(mShader, texNames, tmp);
77 ProgramFragmentFixedFunction pf = new ProgramFragmentFixedFunction(id, mRS);
95 RenderScript mRS; field in class:ProgramFragmentFixedFunction.Builder
234 mRS = rs;
294 InternalBuilder sb = new InternalBuilder(mRS);
306 Element.Builder b = new Element.Builder(mRS);
[all...]
H A DScriptGroup.java107 mRS.nScriptGroupSetInput(getID(mRS), s.getID(mRS), mRS.safeID(a));
127 mRS.nScriptGroupSetOutput(getID(mRS), s.getID(mRS), mRS.safeID(a));
140 mRS.nScriptGroupExecute(getID(mRS));
163 private RenderScript mRS; field in class:ScriptGroup.Builder
[all...]
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
H A DMeshTest.java39 private RenderScriptGL mRS; field in class:MeshTest
69 mTests[index].testName = Allocation.createFromString(mRS,
72 mTests[index].debugName = RsBenchRS.createZeroTerminatedAlloc(mRS,
78 ScriptField_MeshTestData_s testData = new ScriptField_MeshTestData_s(mRS, 1);
84 mRS = rs;
107 Mesh.TriangleMeshBuilder tmb = new Mesh.TriangleMeshBuilder(mRS,
136 return Allocation.createFromBitmapResource(mRS, mRes, id,
142 mGeoScript = new ScriptC_mesh_test(mRS, mRes, R.raw.mesh_test);
144 ProgramVertexFixedFunction.Builder pvb = new ProgramVertexFixedFunction.Builder(mRS);
146 ProgramVertexFixedFunction.Constants PVA = new ProgramVertexFixedFunction.Constants(mRS);
[all...]
/frameworks/base/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/
H A DFisheye.java101 mScript_approx_relaxed = new ScriptC_fisheye_approx_relaxed(mRS,
104 mScript_approx_relaxed.set_sampler(Sampler.CLAMP_LINEAR(mRS));
106 mScript_approx_full = new ScriptC_fisheye_approx_full(mRS, res,
109 mScript_approx_full.set_sampler(Sampler.CLAMP_LINEAR(mRS));
112 mScript_relaxed = new ScriptC_fisheye_relaxed(mRS, res,
115 mScript_relaxed.set_sampler(Sampler.CLAMP_LINEAR(mRS));
117 mScript_full = new ScriptC_fisheye_full(mRS, res,
120 mScript_full.set_sampler(Sampler.CLAMP_LINEAR(mRS));
H A DTestBase.java44 protected RenderScript mRS; field in class:TestBase
98 mRS = RenderScript.create(act);
99 mInPixelsAllocation = Allocation.createFromBitmap(mRS, b,
102 mInPixelsAllocation2 = Allocation.createFromBitmap(mRS, b2,
105 mOutPixelsAllocation = Allocation.createFromBitmap(mRS, b,
121 mRS.finish();
125 mRS.destroy();
126 mRS = null;
H A DColorMatrix.java50 mIntrinsic = ScriptIntrinsicColorMatrix.create(mRS, Element.U8_4(mRS));
57 mScript = new ScriptC_colormatrix(mRS, res, R.raw.colormatrix);
H A DConvolve3x3.java54 mIntrinsic = ScriptIntrinsicConvolve3x3.create(mRS, Element.U8_4(mRS));
58 mScript = new ScriptC_convolve3x3(mRS, res, R.raw.convolve3x3);
H A DBlend.java55 if (mRS != null) {
67 mBlend = ScriptIntrinsicBlend.create(mRS, Element.U8_4(mRS));
68 mBlendHelper = new ScriptC_blend(mRS);
71 image1 = Allocation.createTyped(mRS, mInPixelsAllocation.getType());
72 image2 = Allocation.createTyped(mRS, mInPixelsAllocation2.getType());
H A DConvolve5x5.java68 mIntrinsic = ScriptIntrinsicConvolve5x5.create(mRS, Element.U8_4(mRS));
72 mScript = new ScriptC_convolve5x5(mRS, res, R.raw.convolve5x5);
H A DCopy.java33 mScript = new ScriptC_copy(mRS, res, R.raw.copy);
H A DGreyscale.java33 mScript = new ScriptC_greyscale(mRS, res, R.raw.greyscale);
/frameworks/base/tests/RenderScriptTests/ImageProcessing2/src/com/android/rs/image/
H A DFisheye.java98 mScript_approx_relaxed = new ScriptC_fisheye_approx_relaxed(mRS,
101 mScript_approx_relaxed.set_sampler(Sampler.CLAMP_LINEAR(mRS));
103 mScript_approx_full = new ScriptC_fisheye_approx_full(mRS, res,
106 mScript_approx_full.set_sampler(Sampler.CLAMP_LINEAR(mRS));
109 mScript_relaxed = new ScriptC_fisheye_relaxed(mRS, res,
112 mScript_relaxed.set_sampler(Sampler.CLAMP_LINEAR(mRS));
114 mScript_full = new ScriptC_fisheye_full(mRS, res,
117 mScript_full.set_sampler(Sampler.CLAMP_LINEAR(mRS));
H A DCopy.java28 mScript = new ScriptC_copy(mRS, res, R.raw.copy);
H A DGreyscale.java28 mScript = new ScriptC_greyscale(mRS, res, R.raw.greyscale);
H A DConvolve3x3.java46 mIntrinsic = ScriptIntrinsicConvolve3x3.create(mRS, Element.U8_4(mRS));
50 mScript = new ScriptC_convolve3x3(mRS, res, R.raw.convolve3x3);
H A DConvolve5x5.java60 mIntrinsic = ScriptIntrinsicConvolve5x5.create(mRS, Element.U8_4(mRS));
64 mScript = new ScriptC_convolve5x5(mRS, res, R.raw.convolve5x5);
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/
H A DSgTransform.java49 RenderScript mRS; field in class:SgTransform
83 mRS = rs;
91 mChildField = new ScriptField_SgTransform(mRS, mChildren.size());
105 mTransformField = new ScriptField_SgTransform(mRS, 1);
H A DSimpleModelView.java35 private RenderScriptGL mRS; field in class:SimpleModelView
62 if (mRS == null) {
65 mRS = createRenderScriptGL(sc);
67 mRender.init(mRS, getResources());
96 if (mRS != null) {
97 mRS = null;
/frameworks/support/renderscript/v8/java/src/android/support/v8/renderscript/
H A DType.java177 RenderScript mRS; field in class:Type.Builder
194 mRS = rs;
256 int id = mRS.nTypeCreate(mElement.getID(mRS),
258 Type t = new Type(id, mRS);
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/
H A DSimpleAppRS.java39 RenderScriptGL mRS; field in class:SimpleAppRS
48 mRS = rs;
51 mSceneManager.initRS(mRS, mRes, width, height);
65 mRS.bindRootScript(mSceneManager.getRenderLoop());
69 Mesh.TriangleMeshBuilder tmb = new Mesh.TriangleMeshBuilder(mRS, 3,
83 FileA3D model = FileA3D.createFromResource(mRS, mRes, R.raw.unit_obj);
116 ProgramStore alphaBlend = ProgramStore.BLEND_ALPHA_DEPTH_TEST(mRS);
134 Element.Builder b = new Element.Builder(mRS);
135 b.add(Element.F32_4(mRS), "cameraPos");
138 FragmentShader.Builder fb = new FragmentShader.Builder(mRS);
[all...]
H A DTestAppView.java50 private RenderScriptGL mRS; field in class:TestAppView
59 if (mRS == null) {
63 mRS = createRenderScriptGL(sc);
64 mRS.setSurface(holder, w, h);
66 mRender.init(mRS, getResources(), w, h);
72 if (mRS != null) {
74 mRS = null;
/frameworks/rs/cpp/
H A DAllocation.cpp132 const void *typeID = rsaAllocationGetType(mRS->mContext, getID());
135 sp<Type> t = new Type((void *)typeID, mRS);
152 rsAllocationSyncAll(mRS->mContext, getIDSafe(), srcLocation);
159 rsAllocationIoSend(mRS->mContext, getID());
166 rsAllocationIoReceive(mRS->mContext, getID());
171 mRS.validate();
188 mRS.validate();
201 mRS.validate();
218 mRS.nAllocationElementData1D(getIDSafe(), xoff, mSelectedLOD,
224 rsAllocationGenerateMipmaps(mRS
[all...]
/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/
H A DRSTestCore.java39 private RenderScriptGL mRS; field in class:RSTestCore
57 mRS = rs;
63 mScript = new ScriptC_rslist(mRS, mRes, R.raw.rslist);
115 mListAllocs = new ScriptField_ListAllocs_s(mRS, uta.length);
118 listElem.text = Allocation.createFromString(mRS, uta[i].name, Allocation.USAGE_SCRIPT);
128 mFont = Font.create(mRS, mRes, "serif", Font.Style.BOLD, 8);
131 mRS.bindRootScript(mScript);
180 if (mListAllocs != null && mScript != null && mRS != null) {
184 mRS.bindRootScript(mScript);
/frameworks/ex/carousel/java/com/android/ex/carousel/
H A DCarouselRS.java67 private RenderScriptGL mRS; field in class:CarouselRS
264 mRS = rs;
268 mScript = new ScriptC_carousel(mRS, mRes, resId);
269 mRS.setMessageHandler(mRsMessage);
354 ProgramVertexFixedFunction.Builder pvb = new ProgramVertexFixedFunction.Builder(mRS);
356 ProgramVertexFixedFunction.Constants pva = new ProgramVertexFixedFunction.Constants(mRS);
365 ProgramRaster.Builder programRasterBuilder = new ProgramRaster.Builder(mRS);
375 ProgramFragment.Builder pfbSingle = new ProgramFragment.Builder(mRS);
382 mSingleTextureFragmentProgram.bindSampler(Sampler.CLAMP_LINEAR(mRS), 0);
387 mFSConst = new ScriptField_FragmentShaderConstants_s(mRS,
[all...]

Completed in 267 milliseconds

123456