/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/ |
BallsView.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); 66 if(mRS != null) { 67 mRS = null; 108 if ((mRender == null) || (mRS == null)) {
|
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/ |
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);
|
BWFilter.java | 26 mScript = new ScriptC_bwfilter(mRS);
|
Contrast.java | 27 mScript = new ScriptC_contrast(mRS);
|
Exposure.java | 27 mScript = new ScriptC_exposure(mRS);
|
Shadows.java | 27 mScript = new ScriptC_shadows(mRS);
|
UsageIO.java | 41 mMatrix = ScriptIntrinsicColorMatrix.create(mRS, Element.U8_4(mRS)); 51 mScratchPixelsAllocation1 = Allocation.createTyped(mRS, connect, Allocation.USAGE_IO_OUTPUT | Allocation.USAGE_SCRIPT); 52 mScratchPixelsAllocation2 = Allocation.createTyped(mRS, connect, Allocation.USAGE_IO_INPUT | Allocation.USAGE_SCRIPT);
|
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
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);
|
/packages/wallpapers/NoiseField/src/com/android/noisefield/ |
NoiseFieldRS.java | 37 private RenderScriptGL mRS; 54 mRS = rs; 63 Mesh.AllocationBuilder smb2 = new Mesh.AllocationBuilder(mRS); 65 mDotParticles = new ScriptField_Particle(mRS, 83); 69 mScript = new ScriptC_noisefield(mRS, mRes, R.raw.noisefield); 75 mPvConsts = new ScriptField_VpConsts(mRS, 1); 142 mVertexColors = new ScriptField_VertexColor_s(mRS, meshDataSize); 156 Mesh.AllocationBuilder backgroundBuilder = new Mesh.AllocationBuilder(mRS); 164 final Allocation allocation = Allocation.createFromBitmapResource(mRS, mRes, id, 176 ProgramVertex.Builder backgroundBuilder = new ProgramVertex.Builder(mRS); [all...] |
/frameworks/base/graphics/java/android/renderscript/ |
Allocation.java | 193 return mAdaptedAllocation.getID(mRS); 195 return getID(mRS); 348 int typeID = mRS.nAllocationGetType(getID(mRS)); 350 mType = new Type(typeID, mRS); 391 mRS.validate(); 392 mRS.nAllocationSyncAll(getIDSafe(), srcLocation); 409 mRS.validate(); 410 mRS.nAllocationIoSend(getID(mRS)); [all...] |
ProgramVertexFixedFunction.java | 46 mRS.validate(); 81 mRS.validate(); 88 tmp[idx++] = mInputs[i].getID(mRS); 92 tmp[idx++] = mOutputs[i].getID(mRS); 96 tmp[idx++] = mConstants[i].getID(mRS); 104 int id = mRS.nProgramVertexCreate(mShader, texNames, tmp); 105 ProgramVertexFixedFunction pv = new ProgramVertexFixedFunction(id, mRS); 117 RenderScript mRS; 126 mRS = rs; 180 InternalBuilder sb = new InternalBuilder(mRS); [all...] |
ScriptIntrinsicColorMatrix.java | 228 if (!ain.getElement().isCompatible(Element.U8(mRS)) && 229 !ain.getElement().isCompatible(Element.U8_2(mRS)) && 230 !ain.getElement().isCompatible(Element.U8_3(mRS)) && 231 !ain.getElement().isCompatible(Element.U8_4(mRS)) && 232 !ain.getElement().isCompatible(Element.F32(mRS)) && 233 !ain.getElement().isCompatible(Element.F32_2(mRS)) && 234 !ain.getElement().isCompatible(Element.F32_3(mRS)) && 235 !ain.getElement().isCompatible(Element.F32_4(mRS))) { 240 if (!aout.getElement().isCompatible(Element.U8(mRS)) && 241 !aout.getElement().isCompatible(Element.U8_2(mRS)) & [all...] |
/frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/ |
RsYuv.java | 41 private RenderScript mRS; 51 mRS = rs; 52 mScript = new ScriptC_yuv(mRS); 53 mYuv = ScriptIntrinsicYuvToRGB.create(rs, Element.RGBA_8888(mRS)); 77 Type.Builder tb = new Type.Builder(mRS, Element.RGBA_8888(mRS)); 81 mAllocationOut = Allocation.createTyped(mRS, t, Allocation.USAGE_SCRIPT | 85 tb = new Type.Builder(mRS, Element.createPixel(mRS, Element.DataType.UNSIGNED_8, Element.DataKind.PIXEL_YUV)); 89 mAllocationIn = Allocation.createTyped(mRS, tb.create(), Allocation.USAGE_SCRIPT) [all...] |
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/ |
SimpleModelRS.java | 33 mRS = rs; 39 mRS.getWidth(); 40 mRS.getHeight(); 44 private RenderScriptGL mRS; 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, mRes, R.drawable.robot [all...] |
/frameworks/rs/cpp/ |
ScriptIntrinsics.cpp | 50 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "3DLUT forEach element mismatch"); 58 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "setLUT element does not match"); 62 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "setLUT Allocation must be 3D"); 84 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); 92 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); 100 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); 108 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); 116 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); 124 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); 132 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend") [all...] |
/packages/wallpapers/HoloSpiral/src/com/android/wallpaper/holospiral/ |
HoloSpiralRS.java | 65 private RenderScriptGL mRS = null; 73 mRS = renderer; 88 mRS.bindRootScript(mScript); 92 mRS.bindRootScript(null); 100 mScript = new ScriptC_holo_spiral(mRS, mResources, R.raw.holo_spiral); 115 new ScriptField_VertexShaderConstants_s(mRS, 1); 120 ProgramVertex.Builder backgroundBuilder = new ProgramVertex.Builder(mRS); 122 backgroundBuilder.addInput(ScriptField_VertexColor_s.createElement(mRS)); 126 ProgramVertex.Builder geometryBuilder = new ProgramVertex.Builder(mRS); 129 geometryBuilder.addInput(ScriptField_VertexColor_s.createElement(mRS)); [all...] |
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
CompilerTest.java | 34 ScriptC_missing_link t = new ScriptC_missing_link(mRS,
|
GetAllocationTest.java | 34 new ScriptC_get_allocation(mRS, mRes, R.raw.get_allocation); 36 Allocation mTemp = Allocation.createSized(mRS, Element.I32(mRS), INPUTSIZE); 38 Allocation mOut = Allocation.createTyped(mRS, mTemp.getType());
|
ScriptTest.java | 36 Script S = new ScriptC_primitives(mRS, mRes, R.raw.primitives); 52 Type.Builder tb = new Type.Builder(mRS, Element.I32(mRS)); 53 Allocation a = Allocation.createTyped(mRS, tb.create());
|
SendToClientBlockingTest.java | 58 mRS.setMessageHandler(mRsMessageForTest); 59 mScript = new ScriptC_sendToClientBlocking(mRS, mRes, 78 mRS.setMessageHandler(mRsMessageForTest); 79 mScript = new ScriptC_sendToClientBlocking(mRS, mRes,
|
/frameworks/rs/java/tests/ComputePerf/src/com/example/android/rs/computeperf/ |
ComputePerf.java | 31 private RenderScript mRS; 43 mRS = RenderScript.create(this); 44 mLT = new LaunchTest(mRS, getResources()); 59 mMandel = new Mandelbrot(mRS, getResources());
|
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/ |
BWFilter.java | 26 mScript = new ScriptC_bwfilter(mRS);
|
Contrast.java | 26 mScript = new ScriptC_contrast(mRS);
|
Exposure.java | 27 mScript = new ScriptC_exposure(mRS);
|
Greyscale.java | 25 mScript = new ScriptC_greyscale(mRS, res, R.raw.greyscale);
|