/frameworks/base/tests/RenderScriptTests/Fountain_v11/src/com/android/fountain/ |
FountainView.java | 49 private RenderScriptGL mRS; 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/rs/java/tests/ImageProcessing/src/com/android/rs/image/ |
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);
|
Blur25G.java | 67 Type.Builder tb = new Type.Builder(mRS, Element.U8(mRS)); 70 mScratchPixelsAllocation1 = Allocation.createTyped(mRS, tb.create()); 71 mScratchPixelsAllocation2 = Allocation.createTyped(mRS, tb.create()); 73 mCM = ScriptIntrinsicColorMatrix.create(mRS); 76 mIntrinsic = ScriptIntrinsicBlur.create(mRS, Element.U8(mRS));
|
TestBase.java | 42 protected RenderScript mRS; 107 mRS = ipact.mRS; 108 mRS.setMessageHandler(new MessageProcessor(act)); 127 mRS.sendMessage(0, null); 131 mRS.finish(); 135 mRS.setMessageHandler(null);
|
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);
|
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/ |
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);
|
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);
|
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
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);
|
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);
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
TestConvert.java | 33 script = new ScriptC_TestConvert(mRS); 34 scriptRelaxed = new ScriptC_TestConvertRelaxed(mRS); 43 Allocation inV = createRandomFloatAllocation(mRS, Element.DataType.FLOAT_32, 2, 0xfb5215c44e1f6ac6l, -1.6163412428744576259e+38, 1.6163412428744576259e+38); 45 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE); 52 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE); 102 Allocation inV = createRandomFloatAllocation(mRS, Element.DataType.FLOAT_32, 3, 0xfb53dedf443a8ba4l, -1.6163412428744576259e+38, 1.6163412428744576259e+38); 104 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE) [all...] |
SamplerTest.java | 70 Sampler.Builder b = new Sampler.Builder(mRS); 112 assertTrue(Sampler.CLAMP_LINEAR(mRS) != null); 113 assertTrue(Sampler.CLAMP_LINEAR_MIP_LINEAR(mRS) != null); 114 assertTrue(Sampler.CLAMP_NEAREST(mRS) != null); 115 assertTrue(Sampler.WRAP_LINEAR(mRS) != null); 116 assertTrue(Sampler.WRAP_LINEAR_MIP_LINEAR(mRS) != null); 117 assertTrue(Sampler.WRAP_NEAREST(mRS) != null); 118 assertTrue(Sampler.MIRRORED_REPEAT_NEAREST(mRS) != null); 119 assertTrue(Sampler.MIRRORED_REPEAT_LINEAR(mRS) != null); 120 assertTrue(Sampler.MIRRORED_REPEAT_LINEAR_MIP_LINEAR(mRS) != null) [all...] |
TestClamp.java | 33 script = new ScriptC_TestClamp(mRS); 34 scriptRelaxed = new ScriptC_TestClampRelaxed(mRS); 45 Allocation inValue = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x7e886d7cc83c447dl, false); 46 Allocation inMinValue = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0xdcebf6f230234027l, false); 47 Allocation inMaxValue = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0xdcebf6e6c180322dl, false); 50 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 59 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 125 Allocation inValue = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 2, 0xa0d28bf142b07a5l, false) [all...] |
TestAbs.java | 33 script = new ScriptC_TestAbs(mRS); 34 scriptRelaxed = new ScriptC_TestAbsRelaxed(mRS); 43 Allocation inValue = createRandomAllocation(mRS, Element.DataType.SIGNED_8, 1, 0x4c0d03eb0d0c5a91l, false); 45 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 1), INPUTSIZE); 52 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 1), INPUTSIZE); 99 Allocation inValue = createRandomAllocation(mRS, Element.DataType.SIGNED_8, 2, 0x901d551e7f67bb87l, false); 101 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 2), INPUTSIZE) [all...] |
RsUnpackColor8888Test.java | 34 script = new ScriptC_rs_unpack_color_8888(mRS); 35 Allocation mAllocationIn = Allocation.createSized(mRS, Element.U8_4(mRS), INPUTSIZE); 36 Allocation mAllocationOut = Allocation.createSized(mRS, Element.F32_4(mRS), INPUTSIZE);
|
TestFrexp.java | 33 script = new ScriptC_TestFrexp(mRS); 34 scriptRelaxed = new ScriptC_TestFrexpRelaxed(mRS); 44 Allocation inV = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x57ae9fe07384e56dl, false); 46 Allocation outIptr = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 1), INPUTSIZE); 47 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 55 Allocation outIptr = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 1), INPUTSIZE); 56 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE) [all...] |
TestModf.java | 33 script = new ScriptC_TestModf(mRS); 34 scriptRelaxed = new ScriptC_TestModfRelaxed(mRS); 44 Allocation inX = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0xd655dc05ccaef47l, false); 46 Allocation outIret = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 47 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 55 Allocation outIret = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 56 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE) [all...] |
TestNativeSincos.java | 33 script = new ScriptC_TestNativeSincos(mRS); 34 scriptRelaxed = new ScriptC_TestNativeSincosRelaxed(mRS); 44 Allocation inV = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0xe15df2366436cc13l, false); 46 Allocation outCosptr = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 47 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 55 Allocation outCosptr = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 56 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE) [all...] |
TestSincos.java | 33 script = new ScriptC_TestSincos(mRS); 34 scriptRelaxed = new ScriptC_TestSincosRelaxed(mRS); 44 Allocation inV = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0xb8748e13e46c48d4l, false); 46 Allocation outCosptr = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 47 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 55 Allocation outCosptr = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 56 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE) [all...] |
TestAtan2.java | 33 script = new ScriptC_TestAtan2(mRS); 34 scriptRelaxed = new ScriptC_TestAtan2Relaxed(mRS); 44 Allocation inY = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x8f58f1f953c03c32l, false); 45 Allocation inX = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x8f58f1f953c03c31l, false); 47 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 55 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 113 Allocation inY = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 2, 0xbe78dcdcd414b6c0l, false); 114 Allocation inX = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 2, 0xbe78dcdcd414b6bfl, false) [all...] |
TestAtan2pi.java | 33 script = new ScriptC_TestAtan2pi(mRS); 34 scriptRelaxed = new ScriptC_TestAtan2piRelaxed(mRS); 44 Allocation inY = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x5a912731bef85233l, false); 45 Allocation inX = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 1, 0x5a912731bef85232l, false); 47 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 55 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 113 Allocation inY = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 2, 0x8031be184fee8f53l, false); 114 Allocation inX = createRandomAllocation(mRS, Element.DataType.FLOAT_32, 2, 0x8031be184fee8f52l, false) [all...] |
/frameworks/base/rs/java/android/renderscript/ |
FileA3D.java | 76 RenderScript mRS; 113 mRS.validate(); 114 BaseObj obj = internalCreate(mRS, this); 155 mRS = rs; 173 int numFileEntries = mRS.nFileA3DGetNumIndexEntries(getID(mRS)); 182 mRS.nFileA3DGetIndexEntries(getID(mRS), numFileEntries, ids, names); 185 mFileEntries[i] = new IndexEntry(mRS, i, getID(mRS), names[i], EntryType.toEntryType(ids[i])) [all...] |
ProgramRaster.java | 120 RenderScript mRS; 128 mRS = rs; 153 mRS.validate(); 154 long id = mRS.nProgramRasterCreate(mPointSprite, mCullMode.mID); 155 ProgramRaster programRaster = new ProgramRaster(id, mRS);
|
Program.java | 150 a.getType().getID(mRS) != mConstants[slot].getID(mRS)) { 153 long id = a != null ? a.getID(mRS) : 0; 154 mRS.nProgramBindConstants(getID(mRS), slot, id); 166 mRS.validate(); 175 long id = va != null ? va.getID(mRS) : 0; 176 mRS.nProgramBindTexture(getID(mRS), slot, id); 190 mRS.validate() [all...] |
Mesh.java | 152 int vtxCount = mRS.nMeshGetVertexBufferCount(getID(mRS)); 153 int idxCount = mRS.nMeshGetIndexCount(getID(mRS)); 159 mRS.nMeshGetVertices(getID(mRS), vtxIDs, vtxCount); 160 mRS.nMeshGetIndices(getID(mRS), idxIDs, primitives, idxCount); 168 mVertexBuffers[i] = new Allocation(vtxIDs[i], mRS, null, Allocation.USAGE_SCRIPT); 175 mIndexBuffers[i] = new Allocation(idxIDs[i], mRS, null, Allocation.USAGE_SCRIPT) [all...] |
/development/samples/RenderScript/HelloCompute/src/com/example/android/rs/hellocompute/ |
HelloCompute.java | 31 private RenderScript mRS; 56 mRS = RenderScript.create(this); 58 mInAllocation = Allocation.createFromBitmap(mRS, mBitmapIn, 61 mOutAllocation = Allocation.createFromBitmap(mRS, mBitmapOut, 65 mScript = new ScriptC_mono(mRS);
|