/frameworks/base/rs/java/android/renderscript/ |
D | Script.java | 57 long id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig); in createKernelID() 62 k = new KernelID(id, mRS, this, slot, sig); in createKernelID() 95 long id = mRS.nScriptFieldIDCreate(getID(mRS), slot); in createFieldID() 100 f = new FieldID(id, mRS, this, slot); in createFieldID() 111 mRS.nScriptInvoke(getID(mRS), slot); in invoke() 120 mRS.nScriptInvokeV(getID(mRS), slot, v.getData()); in invoke() 122 mRS.nScriptInvoke(getID(mRS), slot); in invoke() 131 mRS.validate(); in forEach() 132 mRS.validateObject(ain); in forEach() 133 mRS.validateObject(aout); in forEach() [all …]
|
D | RSTextureView.java | 32 private RenderScriptGL mRS; field in RSTextureView 72 if (mRS != null) { in onSurfaceTextureAvailable() 73 mRS.setSurfaceTexture(mSurfaceTexture, width, height); in onSurfaceTextureAvailable() 85 if (mRS != null) { in onSurfaceTextureSizeChanged() 86 mRS.setSurfaceTexture(mSurfaceTexture, width, height); in onSurfaceTextureSizeChanged() 98 if (mRS != null) { in onSurfaceTextureDestroyed() 99 mRS.setSurfaceTexture(null, 0, 0); in onSurfaceTextureDestroyed() 122 if(mRS != null) { in pause() 123 mRS.pause(); in pause() 136 if(mRS != null) { in resume() [all …]
|
D | RSSurfaceView.java | 37 private RenderScriptGL mRS; field in RSSurfaceView 87 if (mRS != null) { in surfaceDestroyed() 88 mRS.setSurface(null, 0, 0); in surfaceDestroyed() 100 if (mRS != null) { in surfaceChanged() 101 mRS.setSurface(holder, w, h); in surfaceChanged() 114 if(mRS != null) { in pause() 115 mRS.pause(); in pause() 128 if(mRS != null) { in resume() 129 mRS.resume(); in resume() 147 mRS.destroy(); in destroyRenderScriptGL() [all …]
|
D | BaseObj.java | 30 mRS = rs; in BaseObj() 52 mRS.validate(); in getID() 59 if ((rs != null) && (rs != mRS)) { in getID() 74 RenderScript mRS; field in BaseObj 98 mRS.nAssignName(mID, bytes); in setName() 123 ReentrantReadWriteLock.ReadLock rlock = mRS.mRWLock.readLock(); in helpDestroy() 126 if(mRS.isAlive() && mID != 0) { in helpDestroy() 127 mRS.nObjDestroy(mID); in helpDestroy() 130 mRS = null; in helpDestroy() 157 mRS.validate(); in updateFromNative() [all …]
|
D | ScriptIntrinsicHistogram.java | 94 if (!ain.getType().getElement().isCompatible(Element.U8(mRS)) && in forEach() 95 !ain.getType().getElement().isCompatible(Element.U8_2(mRS)) && in forEach() 96 !ain.getType().getElement().isCompatible(Element.U8_3(mRS)) && in forEach() 97 !ain.getType().getElement().isCompatible(Element.U8_4(mRS))) { in forEach() 141 if (mOut.getType().getElement() != Element.U32(mRS) && in setOutput() 142 mOut.getType().getElement() != Element.U32_2(mRS) && in setOutput() 143 mOut.getType().getElement() != Element.U32_3(mRS) && in setOutput() 144 mOut.getType().getElement() != Element.U32_4(mRS) && in setOutput() 145 mOut.getType().getElement() != Element.I32(mRS) && in setOutput() 146 mOut.getType().getElement() != Element.I32_2(mRS) && in setOutput() [all …]
|
D | Mesh.java | 152 int vtxCount = mRS.nMeshGetVertexBufferCount(getID(mRS)); in updateFromNative() 153 int idxCount = mRS.nMeshGetIndexCount(getID(mRS)); in updateFromNative() 159 mRS.nMeshGetVertices(getID(mRS), vtxIDs, vtxCount); in updateFromNative() 160 mRS.nMeshGetIndices(getID(mRS), idxIDs, primitives, idxCount); in updateFromNative() 168 mVertexBuffers[i] = new Allocation(vtxIDs[i], mRS, null, Allocation.USAGE_SCRIPT); in updateFromNative() 175 mIndexBuffers[i] = new Allocation(idxIDs[i], mRS, null, Allocation.USAGE_SCRIPT); in updateFromNative() 190 RenderScript mRS; field in Mesh.Builder 214 mRS = rs; in Builder() 339 Type.Builder tb = new Type.Builder(mRS, e); in newType() 350 mRS.validate(); in create() [all …]
|
D | ScriptIntrinsicColorMatrix.java | 245 if (!ain.getElement().isCompatible(Element.U8(mRS)) && in forEach() 246 !ain.getElement().isCompatible(Element.U8_2(mRS)) && in forEach() 247 !ain.getElement().isCompatible(Element.U8_3(mRS)) && in forEach() 248 !ain.getElement().isCompatible(Element.U8_4(mRS)) && in forEach() 249 !ain.getElement().isCompatible(Element.F32(mRS)) && in forEach() 250 !ain.getElement().isCompatible(Element.F32_2(mRS)) && in forEach() 251 !ain.getElement().isCompatible(Element.F32_3(mRS)) && in forEach() 252 !ain.getElement().isCompatible(Element.F32_4(mRS))) { in forEach() 257 if (!aout.getElement().isCompatible(Element.U8(mRS)) && in forEach() 258 !aout.getElement().isCompatible(Element.U8_2(mRS)) && in forEach() [all …]
|
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
D | Script.java | 74 if (mRS.isNative == true) { in createKernelID() 75 k = new KernelID(0, mRS, this, slot, sig); in createKernelID() 84 int id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig); in createKernelID() 89 k = new KernelID(id, mRS, this, slot, sig); in createKernelID() 127 if (mRS.isNative == true) { in createFieldID() 128 FieldID f = new FieldID(0, mRS, this, slot); in createFieldID() 140 int id = mRS.nScriptFieldIDCreate(getID(mRS), slot); in createFieldID() 145 f = new FieldID(id, mRS, this, slot); in createFieldID() 162 mRS.nScriptInvoke(getID(mRS), slot); in invoke() 178 mRS.nScriptInvokeV(getID(mRS), slot, v.getData()); in invoke() [all …]
|
D | Allocation.java | 164 return mAdaptedAllocation.getID(mRS); in getIDSafe() 166 return getID(mRS); in getIDSafe() 336 mRS.validate(); in syncAll() 337 mRS.nAllocationSyncAll(getIDSafe(), srcLocation); in syncAll() 352 mRS.validate(); in ioSend() 353 mRS.nAllocationIoSend(getID(mRS)); in ioSend() 374 mRS.validate(); in ioReceive() 375 mRS.nAllocationIoReceive(getID(mRS)); in ioReceive() 384 mRS.validate(); in copyFrom() 392 i[ct] = d[ct].getID(mRS); in copyFrom() [all …]
|
D | BaseObj.java | 31 mRS = rs; in BaseObj() 53 mRS.validate(); in getID() 60 if ((rs != null) && (rs != mRS)) { in getID() 78 RenderScript mRS; field in BaseObj 91 ReentrantReadWriteLock.ReadLock rlock = mRS.mRWLock.readLock(); in helpDestroy() 93 if(mRS.isAlive()) { in helpDestroy() 94 mRS.nObjDestroy(mID); in helpDestroy() 97 mRS = null; in helpDestroy() 151 if (mRS.isNative) { in equals() 152 return ((RenderScriptThunker)mRS).equals((Object)this, obj); in equals()
|
/frameworks/base/tests/RenderScriptTests/MiscSamples/src/com/example/android/rs/miscsamples/ |
D | RsRenderStatesRS.java | 41 mRS = rs; in init() 42 mWidth = mRS.getWidth(); in init() 43 mHeight = mRS.getHeight(); in init() 53 mWidth = mRS.getWidth(); in surfaceChanged() 54 mHeight = mRS.getHeight(); in surfaceChanged() 62 private RenderScriptGL mRS; field in RsRenderStatesRS 142 Mesh.TriangleMeshBuilder tmb = new Mesh.TriangleMeshBuilder(mRS, in getMbyNMesh() 172 mProgStoreBlendNoneDepth = ProgramStore.BLEND_NONE_DEPTH_TEST(mRS); in initProgramStore() 173 mProgStoreBlendNone = ProgramStore.BLEND_NONE_DEPTH_NONE(mRS); in initProgramStore() 176 ProgramStore.Builder builder = new ProgramStore.Builder(mRS); in initProgramStore() [all …]
|
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/ |
D | BallsRS.java | 31 private RenderScriptGL mRS; field in BallsRS 42 mVpConsts = new ScriptField_VpConsts(mRS, 1, in updateProjectionMatrices() 47 mvp.loadOrtho(0, mRS.getWidth(), mRS.getHeight(), 0, -1, 1); in updateProjectionMatrices() 55 ProgramVertex.Builder sb = new ProgramVertex.Builder(mRS); in createProgramVertex() 69 mRS.bindProgramVertex(pvs); in createProgramVertex() 74 Allocation.createFromBitmapResource(mRS, mRes, in loadTexture() 90 ProgramFragmentFixedFunction.Builder pfb = new ProgramFragmentFixedFunction.Builder(mRS); in createPF() 99 mRS = rs; in init() 106 mPoints = new ScriptField_Point(mRS, PART_COUNT, Allocation.USAGE_SCRIPT); in init() 108 Mesh.AllocationBuilder smb = new Mesh.AllocationBuilder(mRS); in init() [all …]
|
/frameworks/rs/cpp/ |
D | ScriptIntrinsics.cpp | 50 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "3DLUT forEach element mismatch"); in forEach() 58 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "setLUT element does not match"); in setLUT() 62 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "setLUT Allocation must be 3D"); in setLUT() 84 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); in forEachClear() 92 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); in forEachSrc() 100 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); in forEachDst() 108 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); in forEachSrcOver() 116 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); in forEachDstOver() 124 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); in forEachSrcIn() 132 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); in forEachDstIn() [all …]
|
D | Allocation.cpp | 127 const void *typeID = RS::dispatch->AllocationGetType(mRS->getContext(), getID()); in updateFromNative() 130 sp<Type> t = new Type((void *)typeID, mRS); in updateFromNative() 146 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Source must be exactly one usage type."); in syncAll() 149 tryDispatch(mRS, RS::dispatch->AllocationSyncAll(mRS->getContext(), getIDSafe(), srcLocation)); in syncAll() 155 … mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Can only send buffer if IO_OUTPUT usage specified."); in ioSendOutput() 158 tryDispatch(mRS, RS::dispatch->AllocationIoSend(mRS->getContext(), getID())); in ioSendOutput() 165 … mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Can only send buffer if IO_OUTPUT usage specified."); in ioGetInput() 168 tryDispatch(mRS, RS::dispatch->AllocationIoReceive(mRS->getContext(), getID())); in ioGetInput() 175 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Allocation does not support USAGE_SHARED."); in getPointer() 181 mRS->throwError(RS_ERROR_RUNTIME_ERROR, "Can't use getPointer on older APIs"); in getPointer() [all …]
|
D | Script.cpp | 26 tryDispatch(mRS, RS::dispatch->ScriptInvokeV(mRS->getContext(), getID(), slot, v, len)); in invoke() 32 …mRS->throwError(RS_ERROR_INVALID_PARAMETER, "At least one of ain or aout is required to be non-nul… in forEach() 36 …tryDispatch(mRS, RS::dispatch->ScriptForEach(mRS->getContext(), getID(), slot, in_id, out_id, usr,… in forEach() 45 …tryDispatch(mRS, RS::dispatch->ScriptBindAllocation(mRS->getContext(), getID(), BaseObj::getObjID(… in bindAllocation() 50 …tryDispatch(mRS, RS::dispatch->ScriptSetVarObj(mRS->getContext(), getID(), index, (o == NULL) ? 0 … in setVar() 54 tryDispatch(mRS, RS::dispatch->ScriptSetVarV(mRS->getContext(), getID(), index, v, len)); in setVar()
|
/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/ |
D | FBOTestRS.java | 36 mRS = rs; in init() 42 mRS.getWidth(); in surfaceChanged() 43 mRS.getHeight(); in surfaceChanged() 47 private RenderScriptGL mRS; field in FBOTestRS 79 ProgramStore.Builder b = new ProgramStore.Builder(mRS); in initPFS() 90 Sampler.Builder bs = new Sampler.Builder(mRS); in initPF() 97 ProgramFragmentFixedFunction.Builder b = new ProgramFragmentFixedFunction.Builder(mRS); in initPF() 107 ProgramVertexFixedFunction.Builder pvb = new ProgramVertexFixedFunction.Builder(mRS); in initPV() 110 mPVA = new ProgramVertexFixedFunction.Constants(mRS); in initPV() 117 mGridImage = Allocation.createFromBitmapResource(mRS, mRes, R.drawable.robot, in loadImage() [all …]
|
D | FBOSyncRS.java | 36 mRS = rs; in init() 42 mRS.getWidth(); in surfaceChanged() 43 mRS.getHeight(); in surfaceChanged() 47 private RenderScriptGL mRS; field in FBOSyncRS 80 ProgramStore.Builder b = new ProgramStore.Builder(mRS); in initPFS() 91 Sampler.Builder bs = new Sampler.Builder(mRS); in initPF() 98 ProgramFragmentFixedFunction.Builder b = new ProgramFragmentFixedFunction.Builder(mRS); in initPF() 108 ProgramVertexFixedFunction.Builder pvb = new ProgramVertexFixedFunction.Builder(mRS); in initPV() 111 mPVA = new ProgramVertexFixedFunction.Constants(mRS); in initPV() 118 mGridImage = Allocation.createFromBitmapResource(mRS, mRes, R.drawable.robot, in loadImage() [all …]
|
/frameworks/base/tests/RenderScriptTests/ShadersTest/src/com/android/shaderstest/ |
D | ShadersTestRS.java | 44 mRS = rs; in init() 50 initBuffers(mRS.getWidth(), mRS.getHeight()); in surfaceChanged() 54 private RenderScriptGL mRS; field in ShadersTestRS 86 ProgramStore.Builder b = new ProgramStore.Builder(mRS); in initPFS() 97 mLinearClamp = Sampler.CLAMP_LINEAR(mRS); in initPF() 100 mNearestClamp = Sampler.CLAMP_NEAREST(mRS); in initPF() 103 ProgramFragmentFixedFunction.Builder b = new ProgramFragmentFixedFunction.Builder(mRS); in initPF() 110 mFSVignetteConst = new ScriptField_VignetteConstants_s(mRS, 1); in initPF() 115 fs = new ProgramFragment.Builder(mRS); in initPF() 125 ProgramVertexFixedFunction.Builder pvb = new ProgramVertexFixedFunction.Builder(mRS); in initPV() [all …]
|
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/ |
D | TorusTest.java | 39 private RenderScriptGL mRS; field in TorusTest 98 mTests[index].testName = Allocation.createFromString(mRS, in addTest() 101 mTests[index].debugName = RsBenchRS.createZeroTerminatedAlloc(mRS, in addTest() 109 ScriptField_TorusTestData_s testData = new ScriptField_TorusTestData_s(mRS, 1); in addTest() 115 mRS = rs; in init() 156 mVSConst = new ScriptField_VertexShaderConstants_s(mRS, 1); in initCustomShaders() 157 mFSConst = new ScriptField_FragentShaderConstants_s(mRS, 1); in initCustomShaders() 159 mVSConstPixel = new ScriptField_VertexShaderConstants3_s(mRS, 1); in initCustomShaders() 160 mFSConstPixel = new ScriptField_FragentShaderConstants3_s(mRS, 1); in initCustomShaders() 163 ProgramVertex.Builder pvbCustom = new ProgramVertex.Builder(mRS); in initCustomShaders() [all …]
|
D | UiTest.java | 47 private RenderScriptGL mRS; field in UiTest 82 mTests[index].testName = Allocation.createFromString(mRS, in addTest() 85 mTests[index].debugName = RsBenchRS.createZeroTerminatedAlloc(mRS, in addTest() 94 ScriptField_UiTestData_s testData = new ScriptField_UiTestData_s(mRS, 1); in addTest() 100 mRS = rs; in init() 102 mFontSans = Font.create(mRS, mRes, "sans-serif", Font.Style.NORMAL, 8); in init() 129 return Allocation.createFromBitmapResource(mRS, mRes, id, in loadTextureRGB() 136 return Allocation.createFromBitmap(mRS, b, in loadTextureARGB() 142 ScriptField_Particle p = new ScriptField_Particle(mRS, PARTICLES_COUNT); in createParticlesMesh() 144 final Mesh.AllocationBuilder meshBuilder = new Mesh.AllocationBuilder(mRS); in createParticlesMesh() [all …]
|
D | FillTest.java | 32 private RenderScriptGL mRS; field in FillTest 66 mTests[index].testName = Allocation.createFromString(mRS, in addTest() 69 mTests[index].debugName = RsBenchRS.createZeroTerminatedAlloc(mRS, in addTest() 77 ScriptField_FillTestData_s testData = new ScriptField_FillTestData_s(mRS, 1); in addTest() 83 mRS = rs; in init() 110 ProgramFragment.Builder pfbCustom = new ProgramFragment.Builder(mRS); in initCustomShaders() 117 pfbCustom = new ProgramFragment.Builder(mRS); in initCustomShaders() 122 pfbCustom = new ProgramFragment.Builder(mRS); in initCustomShaders() 125 mFragData = new ScriptField_FillTestFragData_s(mRS, 1); in initCustomShaders() 133 return Allocation.createFromBitmap(mRS, b, in loadTextureARGB() [all …]
|
D | RsBenchRS.java | 58 mRS = rs; in init() 73 private RenderScriptGL mRS; field in RsBenchRS 142 allTests = new ScriptField_TestScripts_s(mRS, numTests); in createTestAllocation() 227 … ProgramFragmentFixedFunction.Builder texBuilder = new ProgramFragmentFixedFunction.Builder(mRS); in initProgramFragment() 231 mProgFragmentTexture.bindSampler(Sampler.CLAMP_LINEAR(mRS), 0); in initProgramFragment() 233 … ProgramFragmentFixedFunction.Builder colBuilder = new ProgramFragmentFixedFunction.Builder(mRS); in initProgramFragment() 241 ProgramVertexFixedFunction.Builder pvb = new ProgramVertexFixedFunction.Builder(mRS); in initProgramVertex() 244 mPVA = new ProgramVertexFixedFunction.Constants(mRS); in initProgramVertex() 275 mScript = new ScriptC_rsbench(mRS, mRes, R.raw.rsbench); in initRS() 276 mRS.bindRootScript(mScript); in initRS() [all …]
|
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/ |
D | UT_instance.java | 39 RenderScript mRS = RenderScript.create(mCtx); in run() local 40 mRS.setMessageHandler(mRsMessage); in run() 42 ScriptC_instance instance_1 = new ScriptC_instance(mRS); in run() 43 ScriptC_instance instance_2 = new ScriptC_instance(mRS); in run() 44 ScriptC_instance instance_3 = new ScriptC_instance(mRS); in run() 45 ScriptC_instance instance_4 = new ScriptC_instance(mRS); in run() 46 ScriptC_instance instance_5 = new ScriptC_instance(mRS); in run() 48 Type t = new Type.Builder(mRS, Element.I32(mRS)).setX(1).create(); in run() 49 Allocation ai1 = Allocation.createTyped(mRS, t); in run() 50 Allocation ai2 = Allocation.createTyped(mRS, t); in run() [all …]
|
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/ |
D | SimpleModelRS.java | 33 mRS = rs; in init() 39 mRS.getWidth(); in surfaceChanged() 40 mRS.getHeight(); in surfaceChanged() 44 private RenderScriptGL mRS; field in SimpleModelRS 78 ProgramStore.Builder b = new ProgramStore.Builder(mRS); in initPFS() 89 Sampler.Builder bs = new Sampler.Builder(mRS); in initPF() 96 ProgramFragmentFixedFunction.Builder b = new ProgramFragmentFixedFunction.Builder(mRS); in initPF() 106 ProgramVertexFixedFunction.Builder pvb = new ProgramVertexFixedFunction.Builder(mRS); in initPV() 109 mPVA = new ProgramVertexFixedFunction.Constants(mRS); in initPV() 116 mGridImage = Allocation.createFromBitmapResource(mRS, mRes, R.drawable.robot, in loadImage() [all …]
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/ |
D | TestAppLoadingScreen.java | 44 private RenderScriptGL mRS; field in TestAppLoadingScreen 48 mRS = rs; in TestAppLoadingScreen() 58 mRS.bindRootScript(mScript); in showLoadingScreen() 60 mRS.bindRootScript(SceneManager.getInstance().getRenderLoop()); in showLoadingScreen() 70 robotTex = Allocation.createFromBitmapResource(mRS, mRes, R.drawable.robot, in doInBackground() 74 FileA3D model = FileA3D.createFromResource(mRS, mRes, R.raw.robot); in doInBackground() 80 mScript.set_gPFSBackground(ProgramStore.BLEND_NONE_DEPTH_TEST(mRS)); in doInBackground() 82 ProgramFragmentFixedFunction.Builder b = new ProgramFragmentFixedFunction.Builder(mRS); in doInBackground() 86 pfDefault.bindSampler(Sampler.CLAMP_LINEAR(mRS), 0); in doInBackground() 89 ProgramVertexFixedFunction.Builder pvb = new ProgramVertexFixedFunction.Builder(mRS); in doInBackground() [all …]
|