/frameworks/base/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/ |
H A D | GroupTest.java | 51 mConvolve = ScriptIntrinsicConvolve3x3.create(mRS, Element.U8_4(mRS)); 52 mMatrix = ScriptIntrinsicColorMatrix.create(mRS, Element.U8_4(mRS)); 66 Type.Builder tb = new Type.Builder(mRS, Element.U8_4(mRS)); 72 ScriptGroup.Builder b = new ScriptGroup.Builder(mRS); 78 mScratchPixelsAllocation1 = Allocation.createTyped(mRS, connect);
|
H A D | Blur25.java | 71 mIntrinsic = ScriptIntrinsicBlur.create(mRS, Element.U8_4(mRS)); 76 Type.Builder tb = new Type.Builder(mRS, Element.F32_4(mRS)); 79 mScratchPixelsAllocation1 = Allocation.createTyped(mRS, tb.create()); 80 mScratchPixelsAllocation2 = Allocation.createTyped(mRS, tb.create()); 82 mScript = new ScriptC_threshold(mRS, res, R.raw.threshold);
|
H A D | Grain.java | 73 Type.Builder tb = new Type.Builder(mRS, Element.U8(mRS)); 76 mNoise = Allocation.createTyped(mRS, tb.create()); 77 mNoise2 = Allocation.createTyped(mRS, tb.create()); 79 mScript = new ScriptC_grain(mRS, res, R.raw.grain);
|
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/ |
H A D | SceneGraphRS.java | 43 mRS = rs; 52 private RenderScriptGL mRS; field in class:SceneGraphRS 94 ProgramStore.Builder b = new ProgramStore.Builder(mRS); 105 Sampler.Builder bs = new Sampler.Builder(mRS); 112 ProgramFragmentFixedFunction.Builder b = new ProgramFragmentFixedFunction.Builder(mRS); 122 ProgramVertexFixedFunction.Builder pvb = new ProgramVertexFixedFunction.Builder(mRS); 125 mPVA = new ProgramVertexFixedFunction.Constants(mRS); 132 mGridImage = Allocation.createFromBitmapResource(mRS, mRes, R.drawable.robot, 140 mTextAlloc = Allocation.createFromString(mRS, allocString, Allocation.USAGE_SCRIPT); 151 mRootTransform = new SgTransform(mRS); [all...] |
H A D | SimpleModelRS.java | 33 mRS = rs; 39 mRS.getWidth(); 40 mRS.getHeight(); 44 private RenderScriptGL mRS; field in class:SimpleModelRS 78 ProgramStore.Builder b = new ProgramStore.Builder(mRS); 89 Sampler.Builder bs = new Sampler.Builder(mRS); 96 ProgramFragmentFixedFunction.Builder b = new ProgramFragmentFixedFunction.Builder(mRS); 106 ProgramVertexFixedFunction.Builder pvb = new ProgramVertexFixedFunction.Builder(mRS); 109 mPVA = new ProgramVertexFixedFunction.Constants(mRS); 116 mGridImage = Allocation.createFromBitmapResource(mRS, mRe [all...] |
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/ |
H A D | FillTest.java | 32 private RenderScriptGL mRS; field in class:FillTest 66 mTests[index].testName = Allocation.createFromString(mRS, 69 mTests[index].debugName = RsBenchRS.createZeroTerminatedAlloc(mRS, 77 ScriptField_FillTestData_s testData = new ScriptField_FillTestData_s(mRS, 1); 83 mRS = rs; 110 ProgramFragment.Builder pfbCustom = new ProgramFragment.Builder(mRS); 117 pfbCustom = new ProgramFragment.Builder(mRS); 122 pfbCustom = new ProgramFragment.Builder(mRS); 125 mFragData = new ScriptField_FillTestFragData_s(mRS, 1); 133 return Allocation.createFromBitmap(mRS, [all...] |
/frameworks/base/graphics/java/android/renderscript/ |
H A D | ProgramVertexFixedFunction.java | 45 mRS.validate(); 80 mRS.validate(); 87 tmp[idx++] = mInputs[i].getID(mRS); 91 tmp[idx++] = mOutputs[i].getID(mRS); 95 tmp[idx++] = mConstants[i].getID(mRS); 103 int id = mRS.nProgramVertexCreate(mShader, texNames, tmp); 104 ProgramVertexFixedFunction pv = new ProgramVertexFixedFunction(id, mRS); 116 RenderScript mRS; field in class:ProgramVertexFixedFunction.Builder 125 mRS = rs; 179 InternalBuilder sb = new InternalBuilder(mRS); [all...] |
H A D | FileA3D.java | 80 RenderScript mRS; field in class:FileA3D.IndexEntry 117 mRS.validate(); 118 BaseObj obj = internalCreate(mRS, this); 159 mRS = rs; 177 int numFileEntries = mRS.nFileA3DGetNumIndexEntries(getID(mRS)); 186 mRS.nFileA3DGetIndexEntries(getID(mRS), numFileEntries, ids, names); 189 mFileEntries[i] = new IndexEntry(mRS, i, getID(mRS), name [all...] |
H A D | ProgramRaster.java | 122 RenderScript mRS; field in class:ProgramRaster.Builder 130 mRS = rs; 155 mRS.validate(); 156 int id = mRS.nProgramRasterCreate(mPointSprite, mCullMode.mID); 157 ProgramRaster programRaster = new ProgramRaster(id, mRS);
|
H A D | Program.java | 149 a.getType().getID(mRS) != mConstants[slot].getID(mRS)) { 152 int id = a != null ? a.getID(mRS) : 0; 153 mRS.nProgramBindConstants(getID(mRS), slot, id); 165 mRS.validate(); 174 int id = va != null ? va.getID(mRS) : 0; 175 mRS.nProgramBindTexture(getID(mRS), slot, id); 189 mRS 200 RenderScript mRS; field in class:Program.BaseProgramBuilder [all...] |
H A D | Mesh.java | 153 int vtxCount = mRS.nMeshGetVertexBufferCount(getID(mRS)); 154 int idxCount = mRS.nMeshGetIndexCount(getID(mRS)); 160 mRS.nMeshGetVertices(getID(mRS), vtxIDs, vtxCount); 161 mRS.nMeshGetIndices(getID(mRS), idxIDs, primitives, idxCount); 169 mVertexBuffers[i] = new Allocation(vtxIDs[i], mRS, null, Allocation.USAGE_SCRIPT); 176 mIndexBuffers[i] = new Allocation(idxIDs[i], mRS, nul 191 RenderScript mRS; field in class:Mesh.Builder 406 RenderScript mRS; field in class:Mesh.AllocationBuilder 554 RenderScript mRS; field in class:Mesh.TriangleMeshBuilder [all...] |
/frameworks/base/tests/RenderScriptTests/ComputePerf/src/com/example/android/rs/computeperf/ |
H A D | ComputePerf.java | 31 private RenderScript mRS; field in class:ComputePerf 43 mRS = RenderScript.create(this); 44 mLT = new LaunchTest(mRS, getResources()); 59 mMandel = new Mandelbrot(mRS, getResources());
|
/frameworks/base/tests/RenderScriptTests/SampleTest/src/com/android/rs/sample/ |
H A D | SampleRSActivity.java | 75 private RenderScript mRS; field in class:SampleRSActivity 97 mRS = RenderScript.create(this); 98 mTwoByTwoAlloc = Allocation.createFromBitmap(mRS, mBitmapTwoByTwo, 102 mCityAlloc = Allocation.createFromBitmap(mRS, mBitmapCity, 106 Type.Builder b = new Type.Builder(mRS, Element.RGBA_8888(mRS)); 114 Allocation outAlloc = Allocation.createTyped(mRS, b.setX(outX).setY(outY).create(), usage); 115 TextureViewUpdater updater = new TextureViewUpdater(outAlloc, Sampler.WRAP_LINEAR(mRS)); 120 outAlloc = Allocation.createTyped(mRS, b.setX(outX).setY(outY).create(), usage); 121 updater = new TextureViewUpdater(outAlloc, Sampler.CLAMP_LINEAR(mRS)); [all...] |
/frameworks/base/tests/RenderScriptTests/Fountain_v11/src/com/android/fountain/ |
H A D | FountainView.java | 49 private RenderScriptGL mRS; field in class:FountainView 54 if (mRS == null) { 56 mRS = createRenderScriptGL(sc); 57 mRS.setSurface(holder, w, h); 59 mRender.init(mRS, getResources(), w, h); 65 if (mRS != null) { 66 mRS = null;
|
/frameworks/base/tests/RenderScriptTests/ImageProcessing2/src/com/android/rs/image/ |
H A D | Blur25.java | 67 mIntrinsic = ScriptIntrinsicBlur.create(mRS, Element.U8_4(mRS)); 72 Type.Builder tb = new Type.Builder(mRS, Element.F32_4(mRS)); 75 mScratchPixelsAllocation1 = Allocation.createTyped(mRS, tb.create()); 76 mScratchPixelsAllocation2 = Allocation.createTyped(mRS, tb.create()); 78 mScript = new ScriptC_threshold(mRS, res, R.raw.threshold);
|
H A D | TestBase.java | 39 protected RenderScript mRS; field in class:TestBase 93 mRS = RenderScript.create(act); 94 mInPixelsAllocation = Allocation.createFromBitmap(mRS, b, 97 mInPixelsAllocation2 = Allocation.createFromBitmap(mRS, b2, 100 mOutPixelsAllocation = Allocation.createFromBitmap(mRS, b, 116 mRS.finish(); 120 mRS.destroy();
|
H A D | Grain.java | 68 Type.Builder tb = new Type.Builder(mRS, Element.U8(mRS)); 71 mNoise = Allocation.createTyped(mRS, tb.create()); 72 mNoise2 = Allocation.createTyped(mRS, tb.create()); 74 mScript = new ScriptC_grain(mRS, res, R.raw.grain);
|
/frameworks/support/renderscript/v8/java/src/android/support/v8/renderscript/ |
H A D | ScriptGroup.java | 101 mRS.nScriptGroupSetInput(getID(mRS), s.getID(mRS), mRS.safeID(a)); 121 mRS.nScriptGroupSetOutput(getID(mRS), s.getID(mRS), mRS.safeID(a)); 134 mRS.nScriptGroupExecute(getID(mRS)); 157 private RenderScript mRS; field in class:ScriptGroup.Builder [all...] |
H A D | Allocation.java | 145 return mAdaptedAllocation.getID(mRS); 147 return getID(mRS); 280 mRS.validate(); 281 mRS.nAllocationSyncAll(getIDSafe(), srcLocation); 291 mRS.validate(); 299 i[ct] = d[ct].getID(mRS); 364 mRS.validate(); 375 mRS.validate(); 386 mRS.validate(); 397 mRS [all...] |
/frameworks/base/tests/RenderScriptTests/tests_v11/src/com/android/rs/test/ |
H A D | RSTestCore.java | 39 private RenderScriptGL mRS; field in class:RSTestCore 57 mRS = rs; 63 mScript = new ScriptC_rslist(mRS, mRes, R.raw.rslist); 86 mListAllocs = new ScriptField_ListAllocs_s(mRS, uta.length); 89 listElem.text = Allocation.createFromString(mRS, uta[i].name, Allocation.USAGE_SCRIPT); 99 mFont = Font.create(mRS, mRes, "serif", Font.Style.BOLD, 8); 102 mRS.bindRootScript(mScript); 151 if (mListAllocs != null && mScript != null && mRS != null) { 155 mRS.bindRootScript(mScript);
|
/frameworks/base/tests/RenderScriptTests/tests_v14/src/com/android/rs/test/ |
H A D | RSTestCore.java | 39 private RenderScriptGL mRS; field in class:RSTestCore 57 mRS = rs; 63 mScript = new ScriptC_rslist(mRS, mRes, R.raw.rslist); 90 mListAllocs = new ScriptField_ListAllocs_s(mRS, uta.length); 93 listElem.text = Allocation.createFromString(mRS, uta[i].name, Allocation.USAGE_SCRIPT); 103 mFont = Font.create(mRS, mRes, "serif", Font.Style.BOLD, 8); 106 mRS.bindRootScript(mScript); 155 if (mListAllocs != null && mScript != null && mRS != null) { 159 mRS.bindRootScript(mScript);
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/ |
H A D | TestAppRS.java | 63 private RenderScriptGL mRS; field in class:TestAppRS 84 mActiveScene.initRenderPassRS(mRS, mSceneManager); 96 mRS = rs; 105 mSceneManager.initRS(mRS, mRes, mWidth, mHeight); 107 mLoadingScreen = new TestAppLoadingScreen(mRS, mRes); 110 FullscreenBlur.createRenderTargets(mRS, mWidth, mHeight); 137 FragmentShader.Builder fb = new FragmentShader.Builder(mRS); 145 pf.getProgram().bindSampler(Sampler.WRAP_LINEAR_MIP_LINEAR(mRS), 0); 147 pf.getProgram().bindSampler(Sampler.CLAMP_LINEAR_MIP_LINEAR(mRS), 1); 155 ScriptField_CameraParams camParams = new ScriptField_CameraParams(mRS, [all...] |
/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/ |
H A D | FBOSyncView.java | 30 private RenderScriptGL mRS; field in class:FBOSyncView 45 if (mRS == null) { 48 mRS = createRenderScriptGL(sc); 50 mRender.init(mRS, getResources()); 69 if (mRS != null) { 70 mRS = null;
|
H A D | FBOTestView.java | 30 private RenderScriptGL mRS; field in class:FBOTestView 45 if (mRS == null) { 48 mRS = createRenderScriptGL(sc); 50 mRender.init(mRS, getResources()); 69 if (mRS != null) { 70 mRS = null;
|
/frameworks/base/tests/RenderScriptTests/Fountain/src/com/example/android/rs/fountain/ |
H A D | FountainView.java | 49 private RenderScriptGL mRS; field in class:FountainView 56 if (mRS == null) { 58 mRS = createRenderScriptGL(sc); 60 mRender.init(mRS, getResources()); 68 if (mRS != null) { 69 mRS = null;
|