Searched refs:mRS (Results 26 - 50 of 129) sorted by relevance

123456

/frameworks/base/tests/RenderScriptTests/Fountain/src/com/example/android/rs/fountain/
H A DFountainRS.java31 private RenderScriptGL mRS; field in class:FountainRS
34 mRS = rs;
41 ScriptField_Point points = new ScriptField_Point(mRS, PART_COUNT);//
44 Mesh.AllocationBuilder smb = new Mesh.AllocationBuilder(mRS);
49 mScript = new ScriptC_fountain(mRS, mRes, R.raw.fountain);
52 mRS.bindRootScript(mScript);
/frameworks/base/tests/RenderScriptTests/Fountain_v11/src/com/android/fountain/
H A DFountainRS.java31 private RenderScriptGL mRS; field in class:FountainRS
34 mRS = rs;
41 ScriptField_Point points = new ScriptField_Point(mRS, PART_COUNT);//
44 Mesh.AllocationBuilder smb = new Mesh.AllocationBuilder(mRS);
49 mScript = new ScriptC_fountain(mRS, mRes, R.raw.fountain);
52 mRS.bindRootScript(mScript);
/frameworks/base/tests/RenderScriptTests/MiscSamples/src/com/example/android/rs/miscsamples/
H A DRsListView.java31 private RenderScriptGL mRS; field in class:RsListView
35 if (mRS == null) {
37 mRS = createRenderScriptGL(sc);
39 mRender.init(mRS, getResources());
52 if (mRS != null) {
53 mRS = null;
H A DRsRenderStatesView.java33 private RenderScriptGL mRS; field in class:RsRenderStatesView
37 if (mRS == null) {
40 mRS = createRenderScriptGL(sc);
42 mRender.init(mRS, getResources());
61 if (mRS != null) {
62 mRS = null;
H A DRsListRS.java80 mRS = rs;
86 private RenderScriptGL mRS; field in class:RsListRS
119 mScript = new ScriptC_rslist(mRS, mRes, R.raw.rslist);
121 mListAllocs = new ScriptField_ListAllocs_s(mRS, DATA_LIST.length);
124 listElem.text = Allocation.createFromString(mRS, DATA_LIST[i], Allocation.USAGE_SCRIPT);
132 mItalic = Font.create(mRS, mRes, "serif", Font.Style.BOLD_ITALIC, 8);
135 mRS.bindRootScript(mScript);
H A DRsRenderStatesRS.java41 mRS = rs;
42 mWidth = mRS.getWidth();
43 mHeight = mRS.getHeight();
53 mWidth = mRS.getWidth();
54 mHeight = mRS.getHeight();
62 private RenderScriptGL mRS; field in class:RsRenderStatesRS
142 Mesh.TriangleMeshBuilder tmb = new Mesh.TriangleMeshBuilder(mRS,
172 mProgStoreBlendNoneDepth = ProgramStore.BLEND_NONE_DEPTH_TEST(mRS);
173 mProgStoreBlendNone = ProgramStore.BLEND_NONE_DEPTH_NONE(mRS);
176 ProgramStore.Builder builder = new ProgramStore.Builder(mRS);
[all...]
/frameworks/rs/cpp/
H A DScript.cpp32 rsScriptInvokeV(mRS->mContext, getID(), slot, v, len);
38 mRS->throwError("At least one of ain or aout is required to be non-null.");
42 rsScriptForEach(mRS->mContext, getID(), slot, in_id, out_id, usr, usrLen);
51 rsScriptBindAllocation(mRS->mContext, getID(), BaseObj::getObjID(va), slot);
56 rsScriptSetVarObj(mRS->mContext, getID(), index, (o == NULL) ? 0 : o->getID());
60 rsScriptSetVarV(mRS->mContext, getID(), index, v, len);
/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/
H A DFBOTestRS.java36 mRS = rs;
42 mRS.getWidth();
43 mRS.getHeight();
47 private RenderScriptGL mRS; field in class:FBOTestRS
79 ProgramStore.Builder b = new ProgramStore.Builder(mRS);
90 Sampler.Builder bs = new Sampler.Builder(mRS);
97 ProgramFragmentFixedFunction.Builder b = new ProgramFragmentFixedFunction.Builder(mRS);
107 ProgramVertexFixedFunction.Builder pvb = new ProgramVertexFixedFunction.Builder(mRS);
110 mPVA = new ProgramVertexFixedFunction.Constants(mRS);
117 mGridImage = Allocation.createFromBitmapResource(mRS, mRe
[all...]
/frameworks/base/tests/RenderScriptTests/ShadersTest/src/com/android/shaderstest/
H A DShadersTestRS.java44 mRS = rs;
50 initBuffers(mRS.getWidth(), mRS.getHeight());
54 private RenderScriptGL mRS; field in class:ShadersTestRS
86 ProgramStore.Builder b = new ProgramStore.Builder(mRS);
97 mLinearClamp = Sampler.CLAMP_LINEAR(mRS);
100 mNearestClamp = Sampler.CLAMP_NEAREST(mRS);
103 ProgramFragmentFixedFunction.Builder b = new ProgramFragmentFixedFunction.Builder(mRS);
110 mFSVignetteConst = new ScriptField_VignetteConstants_s(mRS, 1);
115 fs = new ProgramFragment.Builder(mRS);
[all...]
/frameworks/base/graphics/java/android/renderscript/
H A DAllocation.java185 return mAdaptedAllocation.getID(mRS);
187 return getID(mRS);
321 int typeID = mRS.nAllocationGetType(getID(mRS));
323 mType = new Type(typeID, mRS);
354 mRS.validate();
355 mRS.nAllocationSyncAll(getIDSafe(), srcLocation);
368 mRS.validate();
369 mRS.nAllocationIoSend(getID(mRS));
[all...]
H A DProgramVertex.java125 mRS.validate();
132 tmp[idx++] = mInputs[i].getID(mRS);
136 tmp[idx++] = mOutputs[i].getID(mRS);
140 tmp[idx++] = mConstants[i].getID(mRS);
148 int id = mRS.nProgramVertexCreate(mShader, texNames, tmp);
149 ProgramVertex pv = new ProgramVertex(id, mRS);
H A DType.java183 mRS.nTypeGetNativeData(getID(mRS), dataBuffer);
193 mElement = new Element(elementID, mRS);
204 RenderScript mRS; field in class:Type.Builder
221 mRS = rs;
283 int id = mRS.nTypeCreate(mElement.getID(mRS),
285 Type t = new Type(id, mRS);
/frameworks/base/tests/RenderScriptTests/LivePreview/src/com/android/rs/livepreview/
H A DRsYuv.java41 private RenderScript mRS; field in class:RsYuv
50 mRS = rs;
51 mScript = new ScriptC_yuv(mRS, res, R.raw.yuv);
54 mYuv = ScriptIntrinsicYuvToRGB.create(rs, Element.RGBA_8888(mRS));
56 Type.Builder tb = new Type.Builder(mRS, Element.RGBA_8888(mRS));
61 mAllocationIn = Allocation.createSized(rs, Element.U8(mRS), (mHeight * mWidth) +
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/
H A DSceneGraphView.java49 private RenderScriptGL mRS; field in class:SceneGraphView
55 if (mRS == null) {
58 mRS = createRenderScriptGL(sc);
59 mRS.setSurface(holder, w, h);
61 mRender.init(mRS, getResources(), w, h);
67 if (mRS != null) {
68 mRS = null;
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
H A DRsBenchView.java49 private RenderScriptGL mRS; field in class:RsBenchView
55 if (mRS == null) {
58 mRS = createRenderScriptGL(sc);
59 mRS.setSurface(holder, w, h);
62 mRender.init(mRS, getResources(), w, h, mLoops);
68 if (mRS != null) {
69 mRS = null;
H A DTorusTest.java39 private RenderScriptGL mRS; field in class:TorusTest
98 mTests[index].testName = Allocation.createFromString(mRS,
101 mTests[index].debugName = RsBenchRS.createZeroTerminatedAlloc(mRS,
109 ScriptField_TorusTestData_s testData = new ScriptField_TorusTestData_s(mRS, 1);
115 mRS = rs;
156 mVSConst = new ScriptField_VertexShaderConstants_s(mRS, 1);
157 mFSConst = new ScriptField_FragentShaderConstants_s(mRS, 1);
159 mVSConstPixel = new ScriptField_VertexShaderConstants3_s(mRS, 1);
160 mFSConstPixel = new ScriptField_FragentShaderConstants3_s(mRS, 1);
163 ProgramVertex.Builder pvbCustom = new ProgramVertex.Builder(mRS);
[all...]
H A DUiTest.java47 private RenderScriptGL mRS; field in class:UiTest
82 mTests[index].testName = Allocation.createFromString(mRS,
85 mTests[index].debugName = RsBenchRS.createZeroTerminatedAlloc(mRS,
94 ScriptField_UiTestData_s testData = new ScriptField_UiTestData_s(mRS, 1);
100 mRS = rs;
102 mFontSans = Font.create(mRS, mRes, "sans-serif", Font.Style.NORMAL, 8);
129 return Allocation.createFromBitmapResource(mRS, mRes, id,
136 return Allocation.createFromBitmap(mRS, b,
142 ScriptField_Particle p = new ScriptField_Particle(mRS, PARTICLES_COUNT);
144 final Mesh.AllocationBuilder meshBuilder = new Mesh.AllocationBuilder(mRS);
[all...]
H A DRsBenchRS.java58 mRS = rs;
73 private RenderScriptGL mRS; field in class:RsBenchRS
142 allTests = new ScriptField_TestScripts_s(mRS, numTests);
227 ProgramFragmentFixedFunction.Builder texBuilder = new ProgramFragmentFixedFunction.Builder(mRS);
231 mProgFragmentTexture.bindSampler(Sampler.CLAMP_LINEAR(mRS), 0);
233 ProgramFragmentFixedFunction.Builder colBuilder = new ProgramFragmentFixedFunction.Builder(mRS);
241 ProgramVertexFixedFunction.Builder pvb = new ProgramVertexFixedFunction.Builder(mRS);
244 mPVA = new ProgramVertexFixedFunction.Constants(mRS);
275 mScript = new ScriptC_rsbench(mRS, mRes, R.raw.rsbench);
276 mRS
[all...]
/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/
H A DRSTestView.java52 private RenderScriptGL mRS; field in class:RSTestView
57 if (mRS == null) {
59 mRS = createRenderScriptGL(sc);
60 mRS.setSurface(holder, w, h);
62 mRender.init(mRS, getResources(), w, h);
68 if(mRS != null) {
70 mRS = null;
/frameworks/base/tests/RenderScriptTests/tests_v11/src/com/android/rs/test/
H A DRSTestView.java52 private RenderScriptGL mRS; field in class:RSTestView
57 if (mRS == null) {
59 mRS = createRenderScriptGL(sc);
60 mRS.setSurface(holder, w, h);
62 mRender.init(mRS, getResources(), w, h);
68 if(mRS != null) {
70 mRS = null;
/frameworks/base/tests/RenderScriptTests/tests_v14/src/com/android/rs/test/
H A DRSTestView.java52 private RenderScriptGL mRS; field in class:RSTestView
57 if (mRS == null) {
59 mRS = createRenderScriptGL(sc);
60 mRS.setSurface(holder, w, h);
62 mRender.init(mRS, getResources(), w, h);
68 if(mRS != null) {
70 mRS = null;
/frameworks/base/tests/RenderScriptTests/FountainFbo/src/com/example/android/rs/fountainfbo/
H A DFountainFboRS.java35 private RenderScriptGL mRS; field in class:FountainFboRS
41 mRS = rs;
44 ScriptField_Point points = new ScriptField_Point(mRS, PART_COUNT);
46 Mesh.AllocationBuilder smb = new Mesh.AllocationBuilder(mRS);
51 mScript = new ScriptC_fountainfbo(mRS, mRes, R.raw.fountainfbo);
69 Type.Builder colorBuilder = new Type.Builder(mRS, Element.RGBA_8888(mRS));
71 mColorBuffer = Allocation.createTyped(mRS, colorBuilder.create(),
78 mRS.bindRootScript(mScript);
H A DFountainFboView.java31 private RenderScriptGL mRS; field in class:FountainFboView
38 if (mRS == null) {
40 mRS = createRenderScriptGL(sc);
42 mRender.init(mRS, getResources());
50 if (mRS != null) {
51 mRS = null;
/frameworks/base/tests/RenderScriptTests/ImageProcessing2/src/com/android/rs/image/
H A DColorMatrix.java42 mIntrinsic = ScriptIntrinsicColorMatrix.create(mRS, Element.U8_4(mRS));
49 mScript = new ScriptC_colormatrix(mRS, res, R.raw.colormatrix);
/frameworks/base/tests/RenderScriptTests/Balls/src/com/example/android/rs/balls/
H A DBallsView.java49 private RenderScriptGL mRS; field in class:BallsView
54 if (mRS == null) {
56 mRS = createRenderScriptGL(sc);
57 mRS.setSurface(holder, w, h);
59 mRender.init(mRS, getResources(), w, h);
66 if(mRS != null) {
67 mRS = null;
108 if ((mRender == null) || (mRS == null)) {

Completed in 251 milliseconds

123456