Searched refs:mRS (Results 1 - 25 of 196) sorted by relevance

12345678

/frameworks/rs/tests/lldb/java/Allocations/src/com/android/rs/allocations/
H A DMainActivity.java25 private RenderScript mRS; field in class:MainActivity
111 mRS = RenderScript.create(this,
116 mScript = new ScriptC_allocs(mRS);
120 Type.Builder typeI8Builder = new Type.Builder(mRS, Element.I8(mRS));
125 mCharAllocation = Allocation.createTyped(mRS, typeI8Builder.create());
126 mRS.finish();
127 mChar2Allocation = Allocation.createSized(mRS, Element.I8_2(mRS), mAllocSize / 2);
128 mRS
[all...]
/frameworks/base/rs/java/android/renderscript/
H A DRSTextureView.java32 private RenderScriptGL mRS; field in class:RSTextureView
72 if (mRS != null) {
73 mRS.setSurfaceTexture(mSurfaceTexture, width, height);
85 if (mRS != null) {
86 mRS.setSurfaceTexture(mSurfaceTexture, width, height);
98 if (mRS != null) {
99 mRS.setSurfaceTexture(null, 0, 0);
122 if(mRS != null) {
123 mRS.pause();
136 if(mRS !
[all...]
H A DRSSurfaceView.java37 private RenderScriptGL mRS; field in class:RSSurfaceView
87 if (mRS != null) {
88 mRS.setSurface(null, 0, 0);
100 if (mRS != null) {
101 mRS.setSurface(holder, w, h);
114 if(mRS != null) {
115 mRS.pause();
128 if(mRS != null) {
129 mRS.resume();
147 mRS
[all...]
H A DScript.java59 long id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig);
64 k = new KernelID(id, mRS, this, slot, sig);
97 long id = mRS.nScriptInvokeIDCreate(getID(mRS), slot);
102 i = new InvokeID(id, mRS, this, slot);
136 long id = mRS.nScriptFieldIDCreate(getID(mRS), slot);
141 f = new FieldID(id, mRS, this, slot);
152 mRS
480 RenderScript mRS; field in class:Script.Builder
[all...]
H A DBaseObj.java31 mRS = rs;
53 mRS.validate();
60 if ((rs != null) && (rs != mRS)) {
76 RenderScript mRS; field in class:BaseObj
100 mRS.nAssignName(mID, bytes);
126 ReentrantReadWriteLock.ReadLock rlock = mRS.mRWLock.readLock();
129 if(mRS.isAlive() && mID != 0) {
130 mRS.nObjDestroy(mID);
133 mRS = null;
166 mRS
[all...]
H A DScriptIntrinsicBLAS.java321 validateGEMV(Element.F32(mRS), TransA, A, X, incX, Y, incY);
324 mRS.nScriptIntrinsicBLAS_Single(getID(mRS), RsBlas_sgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha, A.getID(mRS), X.getID(mRS), beta, Y.getID(mRS), incX, incY, 0, 0);
343 validateGEMV(Element.F64(mRS), TransA, A, X, incX, Y, incY);
346 mRS.nScriptIntrinsicBLAS_Double(getID(mRS), RsBlas_dgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha, A.getID(mRS),
[all...]
H A DScriptIntrinsicResize.java54 if (!e.isCompatible(Element.U8(mRS)) &&
55 !e.isCompatible(Element.U8_2(mRS)) &&
56 !e.isCompatible(Element.U8_3(mRS)) &&
57 !e.isCompatible(Element.U8_4(mRS)) &&
58 !e.isCompatible(Element.F32(mRS)) &&
59 !e.isCompatible(Element.F32_2(mRS)) &&
60 !e.isCompatible(Element.F32_3(mRS)) &&
61 !e.isCompatible(Element.F32_4(mRS))) {
/frameworks/compile/libbcc/tests/debuginfo/target-tests/driver-common/SRC/
H A DDriverView.java.template27 private RenderScriptGL mRS;
37 if (mRS == null) {
41 mRS = createRenderScriptGL(sc);
44 mRender.init(mRS, getResources());
58 if (mRS != null) {
59 mRS = null;
H A DDriverRS.java.template25 private RenderScriptGL mRS;
35 mRS = rs;
41 mScript = new ScriptC_%TESTCASE% (mRS, mRes, R.raw.%TESTCASE%);
/frameworks/rs/tests/lldb/cpp/Allocations/
H A DAllocations.cpp21 sp<RS> mRS; variable
83 Type::Builder typeI8Builder(mRS, Element::I8(mRS));
88 mCharAllocation = Allocation::createTyped(mRS, typeI8Builder.create());
89 mChar2Allocation = Allocation::createSized(mRS, Element::I8_2(mRS), mAllocSize / 2);
90 mChar3Allocation = Allocation::createSized(mRS, Element::I8_3(mRS), mAllocSize / 4);
91 mChar4Allocation = Allocation::createSized(mRS, Element::I8_4(mRS), mAllocSiz
[all...]
/frameworks/rs/tests/lldb/jni/Allocations/jniallocations/
H A Djniallocations.cpp24 sp<RS> mRS; variable
87 Type::Builder typeI8Builder(mRS, Element::I8(mRS));
92 mCharAllocation = Allocation::createTyped(mRS, typeI8Builder.create());
93 mChar2Allocation = Allocation::createSized(mRS, Element::I8_2(mRS), mAllocSize / 2);
94 mChar3Allocation = Allocation::createSized(mRS, Element::I8_3(mRS), mAllocSize / 4);
95 mChar4Allocation = Allocation::createSized(mRS, Element::I8_4(mRS), mAllocSiz
[all...]
/frameworks/rs/tests/lldb/java/SingleSource/src/com/android/rs/singlesource/
H A DMainActivity.java27 private RenderScript mRS; field in class:MainActivity
41 mRS = RenderScript.create(
48 mScript = new ScriptC_rs_single_source(mRS);
51 mAllocIn1 = Allocation.createSized(mRS, Element.F32(mRS), 4);
56 mAllocIn2 = Allocation.createSized(mRS, Element.F32(mRS), 4);
61 mAllocOut = Allocation.createSized(mRS, Element.F32(mRS), 4);
64 mScript.set_global_alloc(Allocation.createSized(mRS, Elemen
[all...]
/frameworks/rs/support/java/src/android/support/v8/renderscript/
H A DScript.java48 dInElement = inType.getElement().getDummyElement(mRS);
49 dInType = inType.getDummyType(mRS, dInElement);
51 dummyAlloc = mRS.nIncAllocationCreateTyped(ain.getID(mRS), dInType, xBytesSize);
96 long id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig, mUseIncSupp);
101 k = new KernelID(id, mRS, this, slot, sig);
135 long id = mRS.nScriptInvokeIDCreate(getID(mRS), slot);
140 i = new InvokeID(id, mRS, thi
522 RenderScript mRS; field in class:Script.Builder
[all...]
H A DScriptIntrinsicBLAS.java328 validateGEMV(Element.F32(mRS), TransA, A, X, incX, Y, incY);
333 long aID = A.getID(mRS);
334 long xID = X.getID(mRS);
335 long yID = Y.getID(mRS);
341 mRS.nScriptIntrinsicBLAS_Single(getID(mRS), RsBlas_sgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha, aID, xID, beta, yID, incX, incY, 0, 0, mUseIncSupp);
360 validateGEMV(Element.F64(mRS), TransA, A, X, incX, Y, incY);
365 long aID = A.getID(mRS);
366 long xID = X.getID(mRS);
367 long yID = Y.getID(mRS);
[all...]
H A DBaseObj.java31 mRS = rs;
53 mRS.validate();
60 if ((rs != null) && (rs != mRS)) {
78 RenderScript mRS; field in class:BaseObj
91 ReentrantReadWriteLock.ReadLock rlock = mRS.mRWLock.readLock();
93 if(mRS.isAlive()) {
94 mRS.nObjDestroy(mID);
97 mRS = null;
/frameworks/rs/tests/lldb/java/KernelVariables/src/com/android/rs/kernelvariables/
H A DMainActivity.java31 private RenderScript mRS; field in class:MainActivity
54 mRS = RenderScript.create(this,
59 mInAllocation = Allocation.createFromBitmap(mRS, mBitmapIn);
60 mOutAllocation = Allocation.createFromBitmap(mRS, mBitmapOut);
62 mScript = new ScriptC_simple(mRS);
67 Allocation int_allocation = Allocation.createSized(mRS, Element.I32(mRS), 4);
73 Type.Builder typeI32Builder2D = new Type.Builder(mRS, Element.I32(mRS));
77 Allocation int_allocation2 = Allocation.createTyped(mRS, typeI32Builder2
[all...]
/frameworks/compile/libbcc/tests/debuginfo/target-tests/driver-int-param/
H A DDriverRS.java.template25 private RenderScriptGL mRS;
35 mRS = rs;
41 mScript = new ScriptC_%TESTCASE% (mRS, mRes, R.raw.%TESTCASE%);
/frameworks/rs/cpp/
H A DBaseObj.cpp35 mRS = rs.get();
46 if (mRS && mRS->getContext()) {
47 RS::dispatch->ObjDestroy(mRS->getContext(), mID);
49 mRS = nullptr;
55 RS::dispatch->GetName(mRS->getContext(), mID, &name);
H A DScript.cpp25 tryDispatch(mRS, RS::dispatch->ScriptInvokeV(mRS->getContext(), getID(), slot, v, len));
31 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "At least one of ain or aout is required to be non-null.");
35 tryDispatch(mRS, RS::dispatch->ScriptForEach(mRS->getContext(), getID(), slot, in_id, out_id, usr, usrLen, nullptr, 0));
43 tryDispatch(mRS, RS::dispatch->ScriptBindAllocation(mRS->getContext(), getID(), BaseObj::getObjID(va), slot));
48 tryDispatch(mRS, RS::dispatch->ScriptSetVarObj(mRS->getContext(), getID(), index, (o == nullptr) ? 0 : o->getID()));
52 tryDispatch(mRS, R
[all...]
H A DScriptIntrinsicBLAS.cpp107 nScriptIntrinsicBLAS_Single(RS* mRS, RsContext con, RsScript id, RsBlasFunction func, int TransA, argument
115 tryDispatch(mRS, RS::dispatch->ScriptForEachMulti(con, id, 0, in_allocs, NELEM(in_allocs), nullptr,
121 nScriptIntrinsicBLAS_Double(RS* mRS, RsContext con, RsScript id, RsBlasFunction func, int TransA, argument
129 tryDispatch(mRS, RS::dispatch->ScriptForEachMulti(con, id, 0, in_allocs, NELEM(in_allocs), nullptr,
134 nScriptIntrinsicBLAS_Complex(RS* mRS, RsContext con, RsScript id, RsBlasFunction func, int TransA, argument
142 tryDispatch(mRS, RS::dispatch->ScriptForEachMulti(con, id, 0, in_allocs, NELEM(in_allocs), nullptr,
147 nScriptIntrinsicBLAS_Z(RS* mRS, RsContext con, RsScript id, RsBlasFunction func, int TransA, argument
155 tryDispatch(mRS, RS::dispatch->ScriptForEachMulti(con, id, 0, in_allocs, NELEM(in_allocs), nullptr,
161 nScriptIntrinsicBLAS_BNNM(RS* mRS, RsContext con, RsScript id, int M, int N, int K, argument
176 tryDispatch(mRS, R
183 validateGEMV(RS* mRS, const sp<const Element>& e, RsBlasTranspose TransA, const sp<Allocation>& A, const sp<Allocation>& X, int incX, const sp<Allocation>& Y, int incY) argument
321 validateTRMV(RS* mRS, const sp<const Element>& e, RsBlasUplo Uplo, RsBlasTranspose TransA, RsBlasDiag Diag, const sp<Allocation>& A, const sp<Allocation>& X, int incX) argument
344 validateTPMV(RS* mRS, const sp<const Element>& e, RsBlasUplo Uplo, RsBlasTranspose TransA, RsBlasDiag Diag, const sp<Allocation>& Ap, const sp<Allocation>& X, int incX) argument
628 validateSYMV(RS* mRS, const sp<const Element>& e, RsBlasUplo Uplo, const sp<Allocation>& A, const sp<Allocation>& X, const sp<Allocation>& Y, int incX, int incY) argument
656 validateSPMV(RS* mRS, const sp<const Element>& e, RsBlasUplo Uplo, const sp<Allocation>& Ap, const sp<Allocation>& X, int incX, const sp<Allocation>& Y, int incY) argument
689 validateGER(RS* mRS, const sp<const Element>& e, const sp<Allocation>& X, int incX, const sp<Allocation>& Y, int incY, const sp<Allocation>& A) argument
721 validateSYR(RS* mRS, const sp<const Element>& e, RsBlasUplo Uplo, const sp<Allocation>& X, int incX, const sp<Allocation>& A) argument
745 validateSPR(RS* mRS, const sp<const Element>& e, RsBlasUplo Uplo, const sp<Allocation>& X, int incX, const sp<Allocation>& Ap) argument
774 validateSYR2(RS* mRS, const sp<const Element>& e, RsBlasUplo Uplo, const sp<Allocation>& X, int incX, const sp<Allocation>& Y, int incY, const sp<Allocation>& A) argument
802 validateSPR2(RS* mRS, const sp<const Element>& e, RsBlasUplo Uplo, const sp<Allocation>& X, int incX, const sp<Allocation>& Y, int incY, const sp<Allocation>& Ap) argument
978 validateGERU(RS* mRS, const sp<const Element>& e, const sp<Allocation>& X, int incX, const sp<Allocation>& Y, int incY, const sp<Allocation>& A) argument
1202 validateL3(RS* mRS, const sp<const Element>& e, int TransA, int TransB, int Side, const sp<Allocation>& A, const sp<Allocation>& B, const sp<Allocation>& C) argument
1468 validateSYR2K(RS* mRS, const sp<const Element>& e, RsBlasTranspose Trans, const sp<Allocation>& A, const sp<Allocation>& B, const sp<Allocation>& C) argument
1554 validateTRMM(RS* mRS, const sp<const Element>& e, RsBlasSide Side, RsBlasTranspose TransA, const sp<Allocation>& A, const sp<Allocation>& B) argument
1617 validateTRSM(RS* mRS, const sp<const Element>& e, RsBlasSide Side, RsBlasTranspose TransA, const sp<Allocation>& A, const sp<Allocation>& B) argument
1682 validateHEMM(RS* mRS, const sp<const Element>& e, RsBlasSide Side, const sp<Allocation>& A, const sp<Allocation>& B, const sp<Allocation>& C) argument
1725 validateHERK(RS* mRS, const sp<const Element>& e, RsBlasTranspose Trans, const sp<Allocation>& A, const sp<Allocation>& C) argument
1779 validateHER2K(RS* mRS, const sp<const Element>& e, RsBlasTranspose Trans, const sp<Allocation>& A, const sp<Allocation>& B, const sp<Allocation>& C) argument
[all...]
/frameworks/rs/tests/java_api/ComputeBenchmark/src/com/example/android/rs/computebench/
H A DComputeBench.java24 private RenderScript mRS; field in class:ComputeBench
32 mRS = RenderScript.create(this);
34 mBenchmark = new Benchmark(mRS, getResources());
H A DBenchmark.java23 private final RenderScript mRS; field in class:Benchmark
27 mRS = rs;
28 mScript = new ScriptC_compute_benchmark(mRS);
34 mRS.finish();
/frameworks/rs/tests/java_api/LatencyBenchmark/src/com/example/android/rs/computebench/
H A DLatencyBench.java24 private RenderScript mRS; field in class:LatencyBench
32 mRS = RenderScript.create(this);
34 mBenchmark = new Benchmark(mRS, getResources());
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
H A DArtistic1.java26 mScript = new ScriptC_artistic1(mRS);
27 mBlured = Allocation.createTyped(mRS, mInPixelsAllocation.getType());
30 ScriptIntrinsicBlur blur = ScriptIntrinsicBlur.create(mRS, Element.U8_4(mRS));
/frameworks/rs/tests/java_api/RSTest_CompatLib/src/com/android/rs/test/
H A DUT_instance.java39 RenderScript mRS = RenderScript.create(mCtx);
40 mRS.setMessageHandler(mRsMessage);
42 ScriptC_instance instance_1 = new ScriptC_instance(mRS);
43 ScriptC_instance instance_2 = new ScriptC_instance(mRS);
44 ScriptC_instance instance_3 = new ScriptC_instance(mRS);
45 ScriptC_instance instance_4 = new ScriptC_instance(mRS);
46 ScriptC_instance instance_5 = new ScriptC_instance(mRS);
48 Type t = new Type.Builder(mRS, Element.I32(mRS)).setX(1).create();
49 Allocation ai1 = Allocation.createTyped(mRS,
[all...]

Completed in 990 milliseconds

12345678