/frameworks/base/graphics/java/android/renderscript/ |
D | Allocation.java | 48 mRS.validate(); in uploadToTexture() 49 mRS.nAllocationUploadToTexture(mID, false, baseMipLevel); in uploadToTexture() 53 mRS.validate(); in uploadToTexture() 54 mRS.nAllocationUploadToTexture(mID, genMips, baseMipLevel); in uploadToTexture() 58 mRS.validate(); in uploadToBufferObject() 59 mRS.nAllocationUploadToBufferObject(mID); in uploadToBufferObject() 63 mRS.validate(); in data() 67 mRS.validate(); in data() 71 mRS.validate(); in data() 75 mRS.validate(); in data() [all …]
|
D | Script.java | 31 RenderScript mRS; field in Script.Invokable 41 mRS.nScriptInvoke(mScript.mID, mSlot); in execute() 51 mRS.validate(); in bindAllocation() 52 mRS.nScriptBindAllocation(mID, va.mID, slot); in bindAllocation() 56 mRS.validate(); in setClearColor() 57 mRS.nScriptSetClearColor(mID, r, g, b, a); in setClearColor() 61 mRS.validate(); in setClearDepth() 62 mRS.nScriptSetClearDepth(mID, d); in setClearDepth() 66 mRS.validate(); in setClearStencil() 67 mRS.nScriptSetClearStencil(mID, stencil); in setClearStencil() [all …]
|
D | RSSurfaceView.java | 39 private RenderScriptGL mRS; field in RSSurfaceView 84 if (mRS != null) { in surfaceDestroyed() 85 mRS.contextSetSurface(0, 0, null); in surfaceDestroyed() 95 if (mRS != null) { in surfaceChanged() 96 mRS.contextSetSurface(w, h, holder.getSurface()); in surfaceChanged() 107 if(mRS != null) { in onPause() 108 mRS.pause(); in onPause() 121 if(mRS != null) { in onResume() 122 mRS.resume(); in onResume() 151 mRS = new RenderScriptGL(useDepth, forceSW); in createRenderScript() [all …]
|
D | ProgramRaster.java | 49 mRS.validate(); in setLineWidth() 51 mRS.nProgramRasterSetLineWidth(mID, w); in setLineWidth() 55 mRS.validate(); in setPointSize() 57 mRS.nProgramRasterSetPointSize(mID, s); in setPointSize() 69 mID = mRS.nProgramRasterCreate(inID, outID, mPointSmooth, mLineSmooth, mPointSprite); in internalInit() 74 RenderScript mRS; field in ProgramRaster.Builder 78 mRS = rs; in Builder() 98 b.mPR = new ProgramRaster(0, b.mRS); in internalCreate() 103 mRS.validate(); in create() 104 return internalCreate(mRS, this); in create()
|
D | Light.java | 33 mRS.validate(); in setColor() 34 mRS.nLightSetColor(mID, r, g, b); in setColor() 38 mRS.validate(); in setPosition() 39 mRS.nLightSetPosition(mID, x, y, z); in setPosition() 43 RenderScript mRS; field in Light.Builder 48 mRS = rs; in Builder() 70 mRS.validate(); in create() 71 return internalCreate(mRS, this); in create()
|
D | BaseObj.java | 29 mRS = rs; in BaseObj() 41 RenderScript mRS; field in BaseObj 54 mRS.nAssignName(mID, bytes); in setName() 64 if(mID != 0 && mRS.isAlive()) { in finalize() 65 mRS.nObjDestroyOOB(mID); in finalize() 67 mRS = null; in finalize() 81 mRS.nObjDestroy(mID); in destroy()
|
D | SimpleMesh.java | 38 mRS.validate(); in bindVertexAllocation() 39 mRS.nSimpleMeshBindVertex(mID, a.mID, slot); in bindVertexAllocation() 43 mRS.validate(); in bindIndexAllocation() 44 mRS.nSimpleMeshBindIndex(mID, a.mID); in bindIndexAllocation() 48 mRS.validate(); in createVertexAllocation() 49 return Allocation.createTyped(mRS, mVertexTypes[slot]); in createVertexAllocation() 53 mRS.validate(); in createIndexAllocation() 54 return Allocation.createTyped(mRS, mIndexType); in createIndexAllocation() 66 RenderScript mRS; field in SimpleMesh.Builder 82 mRS = rs; in Builder() [all …]
|
D | ProgramFragment.java | 39 mRS.validate(); in create() 58 int id = mRS.nProgramFragmentCreate2(mShader, tmp); in create() 59 ProgramFragment pf = new ProgramFragment(id, mRS); in create() 67 RenderScript mRS; field in ProgramFragment.Builder 104 mRS = rs; in Builder() 122 mRS.validate(); in create() 133 int id = mRS.nProgramFragmentCreate(tmp); in create() 134 ProgramFragment pf = new ProgramFragment(id, mRS); in create()
|
D | Program.java | 46 mRS.nProgramBindConstants(mID, slot, a.mID); in bindConstants() 51 mRS.validate(); in bindTexture() 56 mRS.nProgramBindTexture(mID, slot, va.mID); in bindTexture() 61 mRS.validate(); in bindSampler() 66 mRS.nProgramBindSampler(mID, slot, vs.mID); in bindSampler() 71 RenderScript mRS; field in Program.BaseProgramBuilder 84 mRS = rs; in BaseProgramBuilder()
|
D | ProgramVertex.java | 37 mRS.validate(); in bindAllocation() 43 RenderScript mRS; field in ProgramVertex.Builder 47 mRS = rs; in Builder() 55 int id = mRS.nProgramVertexCreate(mTextureMatrixEnable); in create() 56 return new ProgramVertex(id, mRS); in create() 66 mRS.validate(); in create() 85 int id = mRS.nProgramVertexCreate2(mShader, tmp); in create() 86 ProgramVertex pv = new ProgramVertex(id, mRS); in create()
|
D | ScriptC.java | 94 b.mRS.nScriptCBegin(); in internalCreate() 98 b.mRS.nScriptCAddDefineI32(e.getKey(), e.getValue().intValue()); in internalCreate() 101 b.mRS.nScriptCAddDefineF(e.getKey(), e.getValue().floatValue()); in internalCreate() 104 b.mRS.nScriptCSetScript(b.mProgram, 0, b.mProgramLength); in internalCreate() 106 int id = b.mRS.nScriptCCreate(); in internalCreate() 107 ScriptC obj = new ScriptC(id, b.mRS); in internalCreate()
|
D | Sampler.java | 55 RenderScript mRS; field in Sampler.Builder 63 mRS = rs; in Builder() 125 mRS.validate(); in create() 126 return internalCreate(mRS, this); in create()
|
D | RenderScript.java | 254 RenderScript mRS; field in RenderScript.MessageThread 259 mRS = rs; in MessageThread() 267 mRS.nContextInitToClient(); in run() 269 int msg = mRS.nContextGetMessage(rbuf, true); in run() 280 if(mRS.mMessageCallback != null) { in run() 281 mRS.mMessageCallback.mData = rbuf; in run() 282 mRS.mMessageCallback.mID = msg; in run() 283 mRS.mMessageCallback.run(); in run()
|
D | ProgramStore.java | 86 RenderScript mRS; field in ProgramStore.Builder 102 mRS = rs; in Builder() 165 mRS.validate(); in create() 166 return internalCreate(mRS, this); in create()
|
D | Type.java | 105 mRS.nTypeFinalDestroy(this); in finalize() 157 RenderScript mRS; field in Type.Builder 172 mRS = rs; in Builder() 203 Type t = internalCreate(mRS, this); in create()
|
D | Element.java | 374 RenderScript mRS; field in Element.Builder 380 mRS = rs; in Builder() 401 mRS.validate(); in create() 406 return new Element(mRS, ein, sin); in create()
|
/frameworks/base/libs/rs/java/Film/src/com/android/film/ |
D | FilmRS.java | 44 mRS = rs; in init() 68 private RenderScriptGL mRS; field in FilmRS 99 ProgramStore.Builder b = new ProgramStore.Builder(mRS, null, null); in initPFS() 117 Sampler.Builder bs = new Sampler.Builder(mRS); in initPF() 124 ProgramFragment.Builder b = new ProgramFragment.Builder(mRS); in initPF() 128 b = new ProgramFragment.Builder(mRS); in initPF() 137 mLight = (new Light.Builder(mRS)).create(); in initPV() 140 ProgramVertex.Builder pvb = new ProgramVertex.Builder(mRS, null, null); in initPV() 145 pvb = new ProgramVertex.Builder(mRS, null, null); in initPV() 154 mAllocIDs = Allocation.createSized(mRS, in loadImages() [all …]
|
D | FilmView.java | 49 private RenderScriptGL mRS; field in FilmView 55 if (mRS == null) { in surfaceChanged() 56 mRS = createRenderScript(true); in surfaceChanged() 57 mRS.contextSetSurface(w, h, holder.getSurface()); in surfaceChanged() 59 mRender.init(mRS, getResources(), w, h); in surfaceChanged() 65 if(mRS != null) { in onDetachedFromWindow() 66 mRS = null; in onDetachedFromWindow()
|
/frameworks/base/libs/rs/java/Fountain/src/com/android/fountain/ |
D | FountainRS.java | 41 mRS = rs; in init() 68 private RenderScriptGL mRS; field in FountainRS 76 mSDType = Type.createFromClass(mRS, SomeData.class, 1, "SomeData"); in initRS() 77 mIntAlloc = Allocation.createTyped(mRS, mSDType); in initRS() 81 Element.Builder eb = new Element.Builder(mRS); in initRS() 82 eb.add(Element.createVector(mRS, Element.DataType.FLOAT_32, 2), "delta"); in initRS() 83 …eb.add(Element.createAttrib(mRS, Element.DataType.FLOAT_32, Element.DataKind.POSITION, 2), "positi… in initRS() 84 …eb.add(Element.createAttrib(mRS, Element.DataType.UNSIGNED_8, Element.DataKind.COLOR, 4), "color"); in initRS() 88 SimpleMesh.Builder smb = new SimpleMesh.Builder(mRS); in initRS() 100 ScriptC.Builder sb = new ScriptC.Builder(mRS); in initRS() [all …]
|
D | FountainView.java | 49 private RenderScriptGL mRS; field in FountainView 54 if (mRS == null) { in surfaceChanged() 55 mRS = createRenderScript(false); in surfaceChanged() 56 mRS.contextSetSurface(w, h, holder.getSurface()); in surfaceChanged() 58 mRender.init(mRS, getResources(), w, h); in surfaceChanged() 64 if(mRS != null) { in onDetachedFromWindow() 65 mRS = null; in onDetachedFromWindow()
|
/frameworks/base/libs/rs/java/ImageProcessing/src/com/android/rs/image/ |
D | ImageProcessingActivity.java | 44 private RenderScript mRS; field in ImageProcessingActivity 170 mRS = RenderScript.create(); in createScript() 171 mRS.mMessageCallback = new FilterCallback(); in createScript() 173 mParamsType = Type.createFromClass(mRS, Params.class, 1, "Parameters"); in createScript() 174 mParamsAllocation = Allocation.createTyped(mRS, mParamsType); in createScript() 179 mPixelType = Type.createFromClass(mRS, Pixel.class, 1, "Pixel"); in createScript() 180 mInPixelsAllocation = Allocation.createSized(mRS, in createScript() 181 Element.createUser(mRS, Element.DataType.SIGNED_32), in createScript() 183 mOutPixelsAllocation = Allocation.createSized(mRS, in createScript() 184 Element.createUser(mRS, Element.DataType.SIGNED_32), in createScript() [all …]
|