Home
last modified time | relevance | path

Searched refs:mRS (Results 1 – 25 of 195) sorted by relevance

12345678

/frameworks/rs/tests/lldb/java/Allocations/src/com/android/rs/allocations/
DMainActivity.java25 private RenderScript mRS; field in MainActivity
111 mRS = RenderScript.create(this, in createScript()
116 mScript = new ScriptC_allocs(mRS); in createScript()
120 Type.Builder typeI8Builder = new Type.Builder(mRS, Element.I8(mRS)); in createSignedAllocations()
125 mCharAllocation = Allocation.createTyped(mRS, typeI8Builder.create()); in createSignedAllocations()
126 mRS.finish(); in createSignedAllocations()
127 mChar2Allocation = Allocation.createSized(mRS, Element.I8_2(mRS), mAllocSize / 2); in createSignedAllocations()
128 mRS.finish(); in createSignedAllocations()
129 mChar3Allocation = Allocation.createSized(mRS, Element.I8_3(mRS), mAllocSize / 4); in createSignedAllocations()
130 mRS.finish(); in createSignedAllocations()
[all …]
/frameworks/rs/tests/lldb/cpp/Allocations/
DAllocations.cpp21 sp<RS> mRS; variable
83 Type::Builder typeI8Builder(mRS, Element::I8(mRS)); in createSignedAllocations()
88 mCharAllocation = Allocation::createTyped(mRS, typeI8Builder.create()); in createSignedAllocations()
89 mChar2Allocation = Allocation::createSized(mRS, Element::I8_2(mRS), mAllocSize / 2); in createSignedAllocations()
90 mChar3Allocation = Allocation::createSized(mRS, Element::I8_3(mRS), mAllocSize / 4); in createSignedAllocations()
91 mChar4Allocation = Allocation::createSized(mRS, Element::I8_4(mRS), mAllocSize / 4); in createSignedAllocations()
93 Type::Builder typeI16_2Builder(mRS, Element::I16_2(mRS)); in createSignedAllocations()
98 mShortAllocation = Allocation::createSized(mRS, Element::I16(mRS), mAllocSize); in createSignedAllocations()
99 mShort2Allocation = Allocation::createTyped(mRS, typeI16_2Builder.create()); in createSignedAllocations()
100 mShort3Allocation = Allocation::createSized(mRS, Element::I16_3(mRS), mAllocSize / 4); in createSignedAllocations()
[all …]
/frameworks/rs/tests/lldb/jni/Allocations/jniallocations/
Djniallocations.cpp24 sp<RS> mRS; variable
87 Type::Builder typeI8Builder(mRS, Element::I8(mRS)); in createSignedAllocations()
92 mCharAllocation = Allocation::createTyped(mRS, typeI8Builder.create()); in createSignedAllocations()
93 mChar2Allocation = Allocation::createSized(mRS, Element::I8_2(mRS), mAllocSize / 2); in createSignedAllocations()
94 mChar3Allocation = Allocation::createSized(mRS, Element::I8_3(mRS), mAllocSize / 4); in createSignedAllocations()
95 mChar4Allocation = Allocation::createSized(mRS, Element::I8_4(mRS), mAllocSize / 4); in createSignedAllocations()
97 Type::Builder typeI16_2Builder(mRS, Element::I16_2(mRS)); in createSignedAllocations()
102 mShortAllocation = Allocation::createSized(mRS, Element::I16(mRS), mAllocSize); in createSignedAllocations()
103 mShort2Allocation = Allocation::createTyped(mRS, typeI16_2Builder.create()); in createSignedAllocations()
104 mShort3Allocation = Allocation::createSized(mRS, Element::I16_3(mRS), mAllocSize / 4); in createSignedAllocations()
[all …]
/frameworks/base/rs/java/android/renderscript/
DScriptIntrinsicBLAS.java321 validateGEMV(Element.F32(mRS), TransA, A, X, incX, Y, incY); in SGEMV()
324mRS.nScriptIntrinsicBLAS_Single(getID(mRS), RsBlas_sgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha, A.ge… in SGEMV()
343 validateGEMV(Element.F64(mRS), TransA, A, X, incX, Y, incY); in DGEMV()
346mRS.nScriptIntrinsicBLAS_Double(getID(mRS), RsBlas_dgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha, A.ge… in DGEMV()
365 validateGEMV(Element.F32_2(mRS), TransA, A, X, incX, Y, incY); in CGEMV()
368mRS.nScriptIntrinsicBLAS_Complex(getID(mRS), RsBlas_cgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha.x, a… in CGEMV()
387 validateGEMV(Element.F64_2(mRS), TransA, A, X, incX, Y, incY); in ZGEMV()
390mRS.nScriptIntrinsicBLAS_Z(getID(mRS), RsBlas_zgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha.x, alpha.y… in ZGEMV()
419 validateGEMV(Element.F32(mRS), TransA, A, X, incX, Y, incY); in SGBMV()
425mRS.nScriptIntrinsicBLAS_Single(getID(mRS), RsBlas_sgbmv, TransA, 0, 0, 0, 0, M, N, 0, alpha, A.ge… in SGBMV()
[all …]
DScript.java58 long id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig); in createKernelID()
63 k = new KernelID(id, mRS, this, slot, sig); in createKernelID()
96 long id = mRS.nScriptInvokeIDCreate(getID(mRS), slot); in createInvokeID()
101 i = new InvokeID(id, mRS, this, slot); in createInvokeID()
134 long id = mRS.nScriptFieldIDCreate(getID(mRS), slot); in createFieldID()
139 f = new FieldID(id, mRS, this, slot); in createFieldID()
150 mRS.nScriptInvoke(getID(mRS), slot); in invoke()
159 mRS.nScriptInvokeV(getID(mRS), slot, v.getData()); in invoke()
161 mRS.nScriptInvoke(getID(mRS), slot); in invoke()
181 mRS.validate(); in forEach()
[all …]
DRSTextureView.java32 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 …]
DRSSurfaceView.java37 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 …]
DScriptIntrinsicHistogram.java94 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 …]
DBaseObj.java31 mRS = rs; in BaseObj()
53 mRS.validate(); in getID()
60 if ((rs != null) && (rs != mRS)) { in getID()
76 RenderScript mRS; field in BaseObj
100 mRS.nAssignName(mID, bytes); in setName()
126 ReentrantReadWriteLock.ReadLock rlock = mRS.mRWLock.readLock(); in helpDestroy()
129 if(mRS.isAlive() && mID != 0) { in helpDestroy()
130 mRS.nObjDestroy(mID); in helpDestroy()
133 mRS = null; in helpDestroy()
166 mRS.validate(); in updateFromNative()
[all …]
/frameworks/rs/cpp/
DScriptIntrinsicBLAS.cpp107 nScriptIntrinsicBLAS_Single(RS* mRS, RsContext con, RsScript id, RsBlasFunction func, int TransA, in nScriptIntrinsicBLAS_Single() argument
115 …tryDispatch(mRS, RS::dispatch->ScriptForEachMulti(con, id, 0, in_allocs, NELEM(in_allocs), nullptr, in nScriptIntrinsicBLAS_Single()
121 nScriptIntrinsicBLAS_Double(RS* mRS, RsContext con, RsScript id, RsBlasFunction func, int TransA, in nScriptIntrinsicBLAS_Double() argument
129 …tryDispatch(mRS, RS::dispatch->ScriptForEachMulti(con, id, 0, in_allocs, NELEM(in_allocs), nullptr, in nScriptIntrinsicBLAS_Double()
134 nScriptIntrinsicBLAS_Complex(RS* mRS, RsContext con, RsScript id, RsBlasFunction func, int TransA, in nScriptIntrinsicBLAS_Complex() argument
142 …tryDispatch(mRS, RS::dispatch->ScriptForEachMulti(con, id, 0, in_allocs, NELEM(in_allocs), nullptr, in nScriptIntrinsicBLAS_Complex()
147 nScriptIntrinsicBLAS_Z(RS* mRS, RsContext con, RsScript id, RsBlasFunction func, int TransA, in nScriptIntrinsicBLAS_Z() argument
155 …tryDispatch(mRS, RS::dispatch->ScriptForEachMulti(con, id, 0, in_allocs, NELEM(in_allocs), nullptr, in nScriptIntrinsicBLAS_Z()
161 nScriptIntrinsicBLAS_BNNM(RS* mRS, RsContext con, RsScript id, int M, int N, int K, in nScriptIntrinsicBLAS_BNNM() argument
176 …tryDispatch(mRS, RS::dispatch->ScriptForEachMulti(con, id, 0, in_allocs, NELEM(in_allocs), nullptr, in nScriptIntrinsicBLAS_BNNM()
[all …]
DScriptIntrinsics.cpp61 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "3DLUT forEach element mismatch"); in forEach()
69 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "setLUT element does not match"); in setLUT()
73 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "setLUT Allocation must be 3D"); in setLUT()
95 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); in forEachClear()
103 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); in forEachSrc()
111 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); in forEachDst()
119 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); in forEachSrcOver()
127 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); in forEachDstOver()
135 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); in forEachSrcIn()
143 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Invalid element in blend"); in forEachDstIn()
[all …]
DAllocation.cpp144 const void *typeID = RS::dispatch->AllocationGetType(mRS->getContext(), getID()); in updateFromNative()
146 sp<Type> t = new Type((void *)typeID, mRS); in updateFromNative()
162 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Source must be exactly one usage type."); in syncAll()
165 tryDispatch(mRS, RS::dispatch->AllocationSyncAll(mRS->getContext(), getIDSafe(), srcLocation)); in syncAll()
171 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Allocation does not support USAGE_SHARED."); in getPointer()
177 mRS->throwError(RS_ERROR_RUNTIME_ERROR, "Can't use getPointer on older APIs"); in getPointer()
181 p = RS::dispatch->AllocationGetPointer(mRS->getContext(), getIDSafe(), 0, in getPointer()
183 if (mRS->getError() != RS_SUCCESS) { in getPointer()
184 mRS->throwError(RS_ERROR_RUNTIME_ERROR, "Allocation lock failed"); in getPointer()
220 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Count must be >= 1."); in copy1DRangeFrom()
[all …]
/frameworks/rs/support/java/src/android/support/v8/renderscript/
DScript.java48 dInElement = inType.getElement().getDummyElement(mRS); in getDummyAlloc()
49 dInType = inType.getDummyType(mRS, dInElement); in getDummyAlloc()
51 dummyAlloc = mRS.nIncAllocationCreateTyped(ain.getID(mRS), dInType, xBytesSize); in getDummyAlloc()
96 long id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig, mUseIncSupp); in createKernelID()
101 k = new KernelID(id, mRS, this, slot, sig); in createKernelID()
135 long id = mRS.nScriptInvokeIDCreate(getID(mRS), slot); in createInvokeID()
140 i = new InvokeID(id, mRS, this, slot); in createInvokeID()
179 long id = mRS.nScriptFieldIDCreate(getID(mRS), slot, mUseIncSupp); in createFieldID()
184 f = new FieldID(id, mRS, this, slot); in createFieldID()
195 mRS.nScriptInvoke(getID(mRS), slot, mUseIncSupp); in invoke()
[all …]
DScriptIntrinsicBLAS.java328 validateGEMV(Element.F32(mRS), TransA, A, X, incX, Y, incY); in SGEMV()
333 long aID = A.getID(mRS); in SGEMV()
334 long xID = X.getID(mRS); in SGEMV()
335 long yID = Y.getID(mRS); in SGEMV()
341mRS.nScriptIntrinsicBLAS_Single(getID(mRS), RsBlas_sgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha, aID,… in SGEMV()
360 validateGEMV(Element.F64(mRS), TransA, A, X, incX, Y, incY); in DGEMV()
365 long aID = A.getID(mRS); in DGEMV()
366 long xID = X.getID(mRS); in DGEMV()
367 long yID = Y.getID(mRS); in DGEMV()
373mRS.nScriptIntrinsicBLAS_Double(getID(mRS), RsBlas_dgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha, aID,… in DGEMV()
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_alloc_copyPadded.java36 RenderScript mRS = createRenderScript(false); in run() local
38 testAllocation_Byte3_1D(mRS); in run()
39 testAllocation_Byte3_2D(mRS); in run()
40 testAllocation_Byte3_3D(mRS); in run()
42 testAllocation_Short3_1D(mRS); in run()
43 testAllocation_Short3_2D(mRS); in run()
44 testAllocation_Short3_3D(mRS); in run()
46 testAllocation_Int3_1D(mRS); in run()
47 testAllocation_Int3_2D(mRS); in run()
48 testAllocation_Int3_3D(mRS); in run()
[all …]
DUT_alloc_copy.java37 RenderScript mRS = createRenderScript(false); in run() local
39 allocation_copy1DRangeTo_Byte(mRS); in run()
40 allocation_copy1DRangeTo_Short(mRS); in run()
41 allocation_copy1DRangeTo_Int(mRS); in run()
42 allocation_copy1DRangeTo_Float(mRS); in run()
43 allocation_copy1DRangeTo_Long(mRS); in run()
45 allocation_copy2DRangeTo_Byte(mRS); in run()
46 allocation_copy2DRangeTo_Short(mRS); in run()
47 allocation_copy2DRangeTo_Int(mRS); in run()
48 allocation_copy2DRangeTo_Float(mRS); in run()
[all …]
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
DUT_alloc_copyPadded.java33 RenderScript mRS = RenderScript.create(mCtx); in run() local
35 testAllocation_Byte3_1D(mRS); in run()
36 testAllocation_Byte3_2D(mRS); in run()
37 testAllocation_Byte3_3D(mRS); in run()
39 testAllocation_Short3_1D(mRS); in run()
40 testAllocation_Short3_2D(mRS); in run()
41 testAllocation_Short3_3D(mRS); in run()
43 testAllocation_Int3_1D(mRS); in run()
44 testAllocation_Int3_2D(mRS); in run()
45 testAllocation_Int3_3D(mRS); in run()
[all …]
DUT_alloc_copy.java33 RenderScript mRS = RenderScript.create(mCtx); in run() local
35 allocation_copy1DRangeTo_Byte(mRS); in run()
36 allocation_copy1DRangeTo_Short(mRS); in run()
37 allocation_copy1DRangeTo_Int(mRS); in run()
38 allocation_copy1DRangeTo_Float(mRS); in run()
39 allocation_copy1DRangeTo_Long(mRS); in run()
41 allocation_copy2DRangeTo_Byte(mRS); in run()
42 allocation_copy2DRangeTo_Short(mRS); in run()
43 allocation_copy2DRangeTo_Int(mRS); in run()
44 allocation_copy2DRangeTo_Float(mRS); in run()
[all …]
DUT_instance.java39 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/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUT_alloc_copyPadded.java34 RenderScript mRS = createRenderScript(false); in run() local
36 testAllocation_Byte3_1D(mRS); in run()
37 testAllocation_Byte3_2D(mRS); in run()
38 testAllocation_Byte3_3D(mRS); in run()
40 testAllocation_Short3_1D(mRS); in run()
41 testAllocation_Short3_2D(mRS); in run()
42 testAllocation_Short3_3D(mRS); in run()
44 testAllocation_Int3_1D(mRS); in run()
45 testAllocation_Int3_2D(mRS); in run()
46 testAllocation_Int3_3D(mRS); in run()
[all …]
DUT_alloc_copy.java35 RenderScript mRS = createRenderScript(false); in run() local
37 allocation_copy1DRangeTo_Byte(mRS); in run()
38 allocation_copy1DRangeTo_Short(mRS); in run()
39 allocation_copy1DRangeTo_Int(mRS); in run()
40 allocation_copy1DRangeTo_Float(mRS); in run()
41 allocation_copy1DRangeTo_Long(mRS); in run()
43 allocation_copy2DRangeTo_Byte(mRS); in run()
44 allocation_copy2DRangeTo_Short(mRS); in run()
45 allocation_copy2DRangeTo_Int(mRS); in run()
46 allocation_copy2DRangeTo_Float(mRS); in run()
[all …]
DUT_instance.java37 RenderScript mRS = createRenderScript(false); in run() local
39 ScriptC_instance instance_1 = new ScriptC_instance(mRS); in run()
40 ScriptC_instance instance_2 = new ScriptC_instance(mRS); in run()
41 ScriptC_instance instance_3 = new ScriptC_instance(mRS); in run()
42 ScriptC_instance instance_4 = new ScriptC_instance(mRS); in run()
43 ScriptC_instance instance_5 = new ScriptC_instance(mRS); in run()
45 Type t = new Type.Builder(mRS, Element.I32(mRS)).setX(1).create(); in run()
46 Allocation ai1 = Allocation.createTyped(mRS, t); in run()
47 Allocation ai2 = Allocation.createTyped(mRS, t); in run()
48 Allocation ai3 = Allocation.createTyped(mRS, t); in run()
[all …]
/frameworks/rs/tests/java_api/Balls/src/com/example/android/rs/balls/
DBallsRS.java34 private RenderScriptGL mRS; field in BallsRS
45 mVpConsts = new ScriptField_VpConsts(mRS, 1, in updateProjectionMatrices()
50 mvp.loadOrtho(0, mRS.getWidth(), mRS.getHeight(), 0, -1, 1); in updateProjectionMatrices()
58 ProgramVertex.Builder sb = new ProgramVertex.Builder(mRS); in createProgramVertex()
72 mRS.bindProgramVertex(pvs); in createProgramVertex()
80 Allocation.createFromBitmap(mRS, bp, in loadTexture()
96 ProgramFragmentFixedFunction.Builder pfb = new ProgramFragmentFixedFunction.Builder(mRS); in createPF()
105 mRS = rs; in init()
112 mPoints = new ScriptField_Point(mRS, PART_COUNT, Allocation.USAGE_SCRIPT); in init()
114 Mesh.AllocationBuilder smb = new Mesh.AllocationBuilder(mRS); in init()
[all …]
/frameworks/rs/tests/lldb/java/KernelVariables/src/com/android/rs/kernelvariables/
DMainActivity.java31 private RenderScript mRS; field in MainActivity
54 mRS = RenderScript.create(this, in createScript()
59 mInAllocation = Allocation.createFromBitmap(mRS, mBitmapIn); in createScript()
60 mOutAllocation = Allocation.createFromBitmap(mRS, mBitmapOut); in createScript()
62 mScript = new ScriptC_simple(mRS); in createScript()
67 Allocation int_allocation = Allocation.createSized(mRS, Element.I32(mRS), 4); in updateImage()
73 Type.Builder typeI32Builder2D = new Type.Builder(mRS, Element.I32(mRS)); in updateImage()
77 Allocation int_allocation2 = Allocation.createTyped(mRS, typeI32Builder2D.create()); in updateImage()
89 Type.Builder typeI32Builder3D = new Type.Builder(mRS, Element.I32(mRS)); in updateImage()
94 Allocation int_allocation3 = Allocation.createTyped(mRS, typeI32Builder3D.create()); in updateImage()
[all …]
/frameworks/rs/tests/lldb/java/SingleSource/src/com/android/rs/singlesource/
DMainActivity.java27 private RenderScript mRS; field in MainActivity
41 mRS = RenderScript.create( in onCreate()
48 mScript = new ScriptC_rs_single_source(mRS); in onCreate()
51 mAllocIn1 = Allocation.createSized(mRS, Element.F32(mRS), 4); in onCreate()
56 mAllocIn2 = Allocation.createSized(mRS, Element.F32(mRS), 4); in onCreate()
61 mAllocOut = Allocation.createSized(mRS, Element.F32(mRS), 4); in onCreate()
64 mScript.set_global_alloc(Allocation.createSized(mRS, Element.F32(mRS), 4)); in onCreate()

12345678