/frameworks/base/graphics/java/android/renderscript/ |
D | Script.java | 57 int id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig); in createKernelID() 62 k = new KernelID(id, mRS, this, slot, sig); in createKernelID() 95 int 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() 137 in_id = ain.getID(mRS); in forEach() 141 out_id = aout.getID(mRS); in forEach() 147 mRS.nScriptForEach(getID(mRS), slot, in_id, out_id, params); in forEach() [all …]
|
D | RSTextureView.java | 39 private RenderScriptGL mRS; field in RSTextureView 79 if (mRS != null) { in onSurfaceTextureAvailable() 80 mRS.setSurfaceTexture(mSurfaceTexture, width, height); in onSurfaceTextureAvailable() 92 if (mRS != null) { in onSurfaceTextureSizeChanged() 93 mRS.setSurfaceTexture(mSurfaceTexture, width, height); in onSurfaceTextureSizeChanged() 105 if (mRS != null) { in onSurfaceTextureDestroyed() 106 mRS.setSurfaceTexture(null, 0, 0); in onSurfaceTextureDestroyed() 129 if(mRS != null) { in pause() 130 mRS.pause(); in pause() 143 if(mRS != null) { in resume() [all …]
|
D | RSSurfaceView.java | 45 private RenderScriptGL mRS; field in RSSurfaceView 95 if (mRS != null) { in surfaceDestroyed() 96 mRS.setSurface(null, 0, 0); in surfaceDestroyed() 108 if (mRS != null) { in surfaceChanged() 109 mRS.setSurface(holder, w, h); in surfaceChanged() 122 if(mRS != null) { in pause() 123 mRS.pause(); in pause() 136 if(mRS != null) { in resume() 137 mRS.resume(); in resume() 155 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 | Mesh.java | 154 int vtxCount = mRS.nMeshGetVertexBufferCount(getID(mRS)); in updateFromNative() 155 int idxCount = mRS.nMeshGetIndexCount(getID(mRS)); in updateFromNative() 161 mRS.nMeshGetVertices(getID(mRS), vtxIDs, vtxCount); in updateFromNative() 162 mRS.nMeshGetIndices(getID(mRS), idxIDs, primitives, idxCount); in updateFromNative() 170 mVertexBuffers[i] = new Allocation(vtxIDs[i], mRS, null, Allocation.USAGE_SCRIPT); in updateFromNative() 177 mIndexBuffers[i] = new Allocation(idxIDs[i], mRS, null, Allocation.USAGE_SCRIPT); in updateFromNative() 192 RenderScript mRS; field in Mesh.Builder 216 mRS = rs; in Builder() 341 Type.Builder tb = new Type.Builder(mRS, e); in newType() 352 mRS.validate(); in create() [all …]
|
D | ScriptIntrinsicColorMatrix.java | 228 if (!ain.getElement().isCompatible(Element.U8(mRS)) && in forEach() 229 !ain.getElement().isCompatible(Element.U8_2(mRS)) && in forEach() 230 !ain.getElement().isCompatible(Element.U8_3(mRS)) && in forEach() 231 !ain.getElement().isCompatible(Element.U8_4(mRS)) && in forEach() 232 !ain.getElement().isCompatible(Element.F32(mRS)) && in forEach() 233 !ain.getElement().isCompatible(Element.F32_2(mRS)) && in forEach() 234 !ain.getElement().isCompatible(Element.F32_3(mRS)) && in forEach() 235 !ain.getElement().isCompatible(Element.F32_4(mRS))) { in forEach() 240 if (!aout.getElement().isCompatible(Element.U8(mRS)) && in forEach() 241 !aout.getElement().isCompatible(Element.U8_2(mRS)) && in forEach() [all …]
|
D | Allocation.java | 193 return mAdaptedAllocation.getID(mRS); in getIDSafe() 195 return getID(mRS); in getIDSafe() 348 int typeID = mRS.nAllocationGetType(getID(mRS)); in updateFromNative() 350 mType = new Type(typeID, mRS); in updateFromNative() 391 mRS.validate(); in syncAll() 392 mRS.nAllocationSyncAll(getIDSafe(), srcLocation); in syncAll() 409 mRS.validate(); in ioSend() 410 mRS.nAllocationIoSend(getID(mRS)); in ioSend() 433 mRS.validate(); in ioReceive() 434 mRS.nAllocationIoReceive(getID(mRS)); in ioReceive() [all …]
|
D | ProgramVertexFixedFunction.java | 46 mRS.validate(); in bindConstants() 81 mRS.validate(); in create() 88 tmp[idx++] = mInputs[i].getID(mRS); in create() 92 tmp[idx++] = mOutputs[i].getID(mRS); in create() 96 tmp[idx++] = mConstants[i].getID(mRS); in create() 104 int id = mRS.nProgramVertexCreate(mShader, texNames, tmp); in create() 105 ProgramVertexFixedFunction pv = new ProgramVertexFixedFunction(id, mRS); in create() 117 RenderScript mRS; field in ProgramVertexFixedFunction.Builder 126 mRS = rs; in Builder() 180 InternalBuilder sb = new InternalBuilder(mRS); in create() [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() 333 mRS.validate(); in syncAll() 334 mRS.nAllocationSyncAll(getIDSafe(), srcLocation); in syncAll() 349 mRS.validate(); in ioSend() 350 mRS.nAllocationIoSend(getID(mRS)); in ioSend() 371 mRS.validate(); in ioReceive() 372 mRS.nAllocationIoReceive(getID(mRS)); in ioReceive() 381 mRS.validate(); in copyFrom() 389 i[ct] = d[ct].getID(mRS); in copyFrom() [all …]
|
/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() 173 tryDispatch(mRS, RS::dispatch->AllocationGenerateMipmaps(mRS->getContext(), getID())); in generateMipmaps() 179 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Count must be >= 1."); in copy1DRangeFrom() [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/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/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/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 …]
|