/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
MadTest.java | 32 script_f32 = new ScriptC_mad_f32(mRS); 33 script_f32_relaxed = new ScriptC_mad_f32_relaxed(mRS); 90 ScriptField_mad_input_f32 in = new ScriptField_mad_input_f32(mRS, INPUTSIZE); 96 ScriptField_mad_input_f32 in = new ScriptField_mad_input_f32(mRS, INPUTSIZE); 102 ScriptField_mad_input_f32_2 in = new ScriptField_mad_input_f32_2(mRS, INPUTSIZE); 108 ScriptField_mad_input_f32_2 in = new ScriptField_mad_input_f32_2(mRS, INPUTSIZE); 114 ScriptField_mad_input_f32_3 in = new ScriptField_mad_input_f32_3(mRS, INPUTSIZE); 120 ScriptField_mad_input_f32_3 in = new ScriptField_mad_input_f32_3(mRS, INPUTSIZE); 126 ScriptField_mad_input_f32_4 in = new ScriptField_mad_input_f32_4(mRS, INPUTSIZE); 132 ScriptField_mad_input_f32_4 in = new ScriptField_mad_input_f32_4(mRS, INPUTSIZE) [all...] |
NextafterTest.java | 32 script_f32 = new ScriptC_nextafter_f32(mRS); 33 script_f32_relaxed = new ScriptC_nextafter_f32_relaxed(mRS); 90 ScriptField_InputData inputDataArray = new ScriptField_InputData(mRS, INPUTSIZE); 96 ScriptField_InputData inputDataArray = new ScriptField_InputData(mRS, INPUTSIZE); 102 ScriptField_InputData_2 inputDataArray = new ScriptField_InputData_2(mRS, INPUTSIZE); 108 ScriptField_InputData_2 inputDataArray = new ScriptField_InputData_2(mRS, INPUTSIZE); 114 ScriptField_InputData_3 inputDataArray = new ScriptField_InputData_3(mRS, INPUTSIZE); 120 ScriptField_InputData_3 inputDataArray = new ScriptField_InputData_3(mRS, INPUTSIZE); 126 ScriptField_InputData_4 inputDataArray = new ScriptField_InputData_4(mRS, INPUTSIZE); 132 ScriptField_InputData_4 inputDataArray = new ScriptField_InputData_4(mRS, INPUTSIZE) [all...] |
RemainderTest.java | 32 script_f32 = new ScriptC_remainder_f32(mRS); 33 script_f32_relaxed = new ScriptC_remainder_f32_relaxed(mRS); 92 ScriptField_remainder_f32 in = new ScriptField_remainder_f32(mRS, INPUTSIZE); 98 ScriptField_remainder_f32 in = new ScriptField_remainder_f32(mRS, INPUTSIZE); 104 ScriptField_remainder_f32_2 in = new ScriptField_remainder_f32_2(mRS, INPUTSIZE); 110 ScriptField_remainder_f32_2 in = new ScriptField_remainder_f32_2(mRS, INPUTSIZE); 116 ScriptField_remainder_f32_3 in = new ScriptField_remainder_f32_3(mRS, INPUTSIZE); 122 ScriptField_remainder_f32_3 in = new ScriptField_remainder_f32_3(mRS, INPUTSIZE); 128 ScriptField_remainder_f32_4 in = new ScriptField_remainder_f32_4(mRS, INPUTSIZE); 134 ScriptField_remainder_f32_4 in = new ScriptField_remainder_f32_4(mRS, INPUTSIZE) [all...] |
StepTest.java | 31 script_f32 = new ScriptC_step_f32(mRS); 32 script_f32_relaxed = new ScriptC_step_f32_relaxed(mRS); 89 ScriptField_step_input in = new ScriptField_step_input(mRS, INPUTSIZE); 95 ScriptField_step_input in = new ScriptField_step_input(mRS, INPUTSIZE); 101 ScriptField_step_2_input in = new ScriptField_step_2_input(mRS, INPUTSIZE); 107 ScriptField_step_2_input in = new ScriptField_step_2_input(mRS, INPUTSIZE); 113 ScriptField_step_3_input in = new ScriptField_step_3_input(mRS, INPUTSIZE); 119 ScriptField_step_3_input in = new ScriptField_step_3_input(mRS, INPUTSIZE); 125 ScriptField_step_4_input in = new ScriptField_step_4_input(mRS, INPUTSIZE); 131 ScriptField_step_4_input in = new ScriptField_step_4_input(mRS, INPUTSIZE) [all...] |
ImageProcessingTest.java | 74 Type t = new Type.Builder(mRS, Element.U8_4(mRS)).setX(dimX).setY(dimX).create(); 75 a1 = Allocation.createTyped(mRS, t); 76 a2 = Allocation.createTyped(mRS, t); 81 mBlur = ScriptIntrinsicBlur.create(mRS, Element.U8_4(mRS)); 84 a1_copy = Allocation.createTyped(mRS, a1.getType()); 85 a2_copy = Allocation.createTyped(mRS, a2.getType()); 104 mBlend = ScriptIntrinsicBlend.create(mRS, Element.U8_4(mRS)); [all...] |
IntrinsicHistogram.java | 31 case 4: e1 = Element.U8_4(mRS); break; 32 case 3: e1 = Element.U8_3(mRS); break; 33 case 2: e1 = Element.U8_2(mRS); break; 34 default: e1 = Element.U8(mRS); break; 38 case 4: e2 = Element.I32_4(mRS); break; 39 case 3: e2 = Element.I32_3(mRS); break; 40 case 2: e2 = Element.I32_2(mRS); break; 41 default: e2 = Element.I32(mRS); break; 44 Type.Builder tb = new Type.Builder(mRS, e1); 47 mAin = Allocation.createTyped(mRS, tb.create()) [all...] |
GetElementAt.java | 59 script_x = new ScriptC_get_element_at_x(mRS, mRes, R.raw.get_element_at_x); 60 gIn = Allocation.createSized(mRS, Element.U32(mRS), INPUTSIZE); 62 mOut = Allocation.createTyped(mRS, gIn.getType()); 76 script_xy = new ScriptC_get_element_at_x_y(mRS, mRes, R.raw.get_element_at_x_y); 77 Type.Builder builder = new Type.Builder(mRS, Element.U32(mRS)); 81 gIn = Allocation.createTyped(mRS, type); 83 mOut = Allocation.createTyped(mRS, gIn.getType());
|
AllocationResize.java | 37 mScript = new ScriptC_allocation_resize(mRS, mRes, R.raw.allocation_resize); 38 mIn = Allocation.createSized(mRS, Element.I32(mRS), INPUTSIZE/2); 39 mOut = Allocation.createSized(mRS, Element.I32(mRS), INPUTSIZE*2);
|
InitTest.java | 35 script = new ScriptC_init_test(mRS, mRes, R.raw.init_test); 39 mIn = Allocation.createSized(mRS, Element.F32(mRS), INPUTSIZE); 40 mOut= Allocation.createSized(mRS, Element.F32(mRS), INPUTSIZE);
|
/cts/tests/tests/rscpp/src/android/cts/rscpp/ |
RS3DLUTTest.java | 44 RenderScript mRS = RenderScript.create(getContext()); 55 Type.Builder build = new Type.Builder(mRS, Element.RGBA_8888(mRS)); 58 Allocation rsInput = Allocation.createTyped(mRS, build.create()); 59 Allocation rsOutput = Allocation.createTyped(mRS, build.create()); 62 Type.Builder buildCube = new Type.Builder(mRS, Element.RGBA_8888(mRS)); 66 Allocation cube = Allocation.createTyped(mRS, build.create()); 68 ScriptIntrinsic3DLUT lut = ScriptIntrinsic3DLUT.create(mRS, Element.RGBA_8888(mRS)); [all...] |
RSConvolveTest.java | 51 RenderScript mRS = RenderScript.create(getContext()); 57 Type.Builder build = new Type.Builder(mRS, Element.A_8(mRS)); 60 Allocation rsInput = Allocation.createTyped(mRS, build.create()); 61 Allocation rsOutput = Allocation.createTyped(mRS, build.create()); 63 ScriptIntrinsicConvolve3x3 convolve = ScriptIntrinsicConvolve3x3.create(mRS, Element.A_8(mRS)); 109 RenderScript mRS = RenderScript.create(getContext()); 115 Type.Builder build = new Type.Builder(mRS, Element.A_8(mRS)); [all...] |
RSLUTTest.java | 40 RenderScript mRS = RenderScript.create(getContext()); 46 Type.Builder build = new Type.Builder(mRS, Element.RGBA_8888(mRS)); 49 Allocation rsInput = Allocation.createTyped(mRS, build.create()); 50 Allocation rsOutput = Allocation.createTyped(mRS, build.create()); 52 ScriptIntrinsicLUT lut = ScriptIntrinsicLUT.create(mRS, Element.RGBA_8888(mRS));
|
/frameworks/rs/cpp/ |
Allocation.cpp | 127 const void *typeID = RS::dispatch->AllocationGetType(mRS->getContext(), getID()); 130 sp<Type> t = new Type((void *)typeID, mRS); 146 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Source must be exactly one usage type."); 149 tryDispatch(mRS, RS::dispatch->AllocationSyncAll(mRS->getContext(), getIDSafe(), srcLocation)); 155 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Can only send buffer if IO_OUTPUT usage specified."); 158 tryDispatch(mRS, RS::dispatch->AllocationIoSend(mRS->getContext(), getID())); 165 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Can only send buffer if IO_OUTPUT usage specified."); 168 tryDispatch(mRS, RS::dispatch->AllocationIoReceive(mRS->getContext(), getID())) [all...] |
/frameworks/base/tests/RenderScriptTests/FountainFbo/src/com/example/android/rs/fountainfbo/ |
FountainFboView.java | 32 private RenderScriptGL mRS; 37 if (mRS == null) { 39 mRS = createRenderScriptGL(sc); 40 mRS.setSurface(holder, w, h); 42 mRender.init(mRS, getResources()); 50 if (mRS != null) { 51 mRS = null;
|
FountainFboRS.java | 35 private RenderScriptGL mRS; 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);
|
/frameworks/base/tests/RenderScriptTests/MiscSamples/src/com/example/android/rs/miscsamples/ |
RsListRS.java | 80 mRS = rs; 86 private RenderScriptGL mRS; 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);
|
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/ |
SceneGraphView.java | 49 private RenderScriptGL mRS; 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/ |
RsBenchView.java | 49 private RenderScriptGL mRS; 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;
|
TorusTest.java | 39 private RenderScriptGL mRS; 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...] |
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/ |
Blur25G.java | 61 Type.Builder tb = new Type.Builder(mRS, Element.U8(mRS)); 64 mScratchPixelsAllocation1 = Allocation.createTyped(mRS, tb.create()); 65 mScratchPixelsAllocation2 = Allocation.createTyped(mRS, tb.create()); 67 mScript = new ScriptC_greyscale(mRS); 70 mIntrinsic = ScriptIntrinsicBlur.create(mRS, Element.U8(mRS));
|
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/ |
RSTestView.java | 52 private RenderScriptGL mRS; 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/rs/java/tests/RsTest_11/src/com/android/rs/test/ |
RSTestView.java | 52 private RenderScriptGL mRS; 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/rs/java/tests/RsTest_14/src/com/android/rs/test/ |
RSTestView.java | 52 private RenderScriptGL mRS; 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;
|
/cts/tests/tests/rsg/src/android/renderscriptgraphics/cts/ |
ProgramRasterTest.java | 26 ProgramRaster.Builder b = new ProgramRaster.Builder(mRS); 34 mRS.bindProgramRaster(pr); 40 assertTrue(ProgramRaster.CULL_BACK(mRS) != null); 41 assertTrue(ProgramRaster.CULL_FRONT(mRS) != null); 42 assertTrue(ProgramRaster.CULL_NONE(mRS) != null);
|
/frameworks/rs/java/tests/LatencyBenchmark/src/com/example/android/rs/computebench/ |
Benchmark.java | 23 private final RenderScript mRS; 29 mRS = rs; 30 mScript = new ScriptC_compute_benchmark(mRS, res, R.raw.compute_benchmark); 31 ain = Allocation.createSized(rs, Element.U32(mRS), 10000); 32 aout = Allocation.createSized(rs, Element.U32(mRS), 10000);
|