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

123456789

/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.java58 long id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig);
63 k = new KernelID(id, mRS, this, slot, sig);
96 long id = mRS.nScriptInvokeIDCreate(getID(mRS), slot);
101 i = new InvokeID(id, mRS, this, slot);
134 long id = mRS.nScriptFieldIDCreate(getID(mRS), slot);
139 f = new FieldID(id, mRS, this, slot);
150 mRS
427 RenderScript mRS; field in class:Script.Builder
[all...]
H A DBaseObj.java30 mRS = rs;
52 mRS.validate();
59 if ((rs != null) && (rs != mRS)) {
74 RenderScript mRS; field in class:BaseObj
98 mRS.nAssignName(mID, bytes);
123 ReentrantReadWriteLock.ReadLock rlock = mRS.mRWLock.readLock();
126 if(mRS.isAlive() && mID != 0) {
127 mRS.nObjDestroy(mID);
130 mRS = null;
157 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/base/tests/RenderScriptTests/HelloWorld/src/com/example/android/rs/helloworld/
H A DHelloWorldView.java27 private RenderScriptGL mRS; field in class:HelloWorldView
37 if (mRS == null) {
41 mRS = createRenderScriptGL(sc);
44 mRender.init(mRS, getResources());
58 if (mRS != null) {
59 mRS = null;
H A DHelloWorldRS.java25 private RenderScriptGL mRS; field in class:HelloWorldRS
35 mRS = rs;
46 mScript = new ScriptC_helloworld(mRS, mRes, R.raw.helloworld);
47 mRS.bindRootScript(mScript);
/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.cpp36 mRS = rs.get();
47 if (mRS && mRS->getContext()) {
48 RS::dispatch->ObjDestroy(mRS->getContext(), mID);
50 mRS = nullptr;
56 RS::dispatch->GetName(mRS->getContext(), mID, &name);
H A DScript.cpp26 tryDispatch(mRS, RS::dispatch->ScriptInvokeV(mRS->getContext(), getID(), slot, v, len));
32 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "At least one of ain or aout is required to be non-null.");
36 tryDispatch(mRS, RS::dispatch->ScriptForEach(mRS->getContext(), getID(), slot, in_id, out_id, usr, usrLen, nullptr, 0));
45 tryDispatch(mRS, RS::dispatch->ScriptBindAllocation(mRS->getContext(), getID(), BaseObj::getObjID(va), slot));
50 tryDispatch(mRS, RS::dispatch->ScriptSetVarObj(mRS->getContext(), getID(), index, (o == nullptr) ? 0 : o->getID()));
54 tryDispatch(mRS, R
[all...]
/frameworks/rs/java/tests/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/java/tests/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/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DScript.java47 dInElement = ain.getType().getElement().getDummyElement(mRS);
48 dInType = ain.getType().getDummyType(mRS, dInElement);
49 dummyAlloc = mRS.nIncAllocationCreateTyped(ain.getID(mRS), dInType);
94 long id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig, mUseIncSupp);
99 k = new KernelID(id, mRS, this, slot, sig);
133 long id = mRS.nScriptInvokeIDCreate(getID(mRS), slot);
138 i = new InvokeID(id, mRS, thi
414 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/java/tests/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));
H A DWhiteBalance.java30 mScript = new ScriptC_wbalance(mRS);
31 mHist = ScriptIntrinsicHistogram.create(mRS, Element.U8_4(mRS));
32 mSums = Allocation.createSized(mRS, Element.I32_4(mRS), 256);
/frameworks/rs/java/tests/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...]
/frameworks/rs/java/tests/RSTest_CompatLibLegacy/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...]
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
H A DWhiteBalance.java31 mScript = new ScriptC_wbalance(mRS);
32 mHist = ScriptIntrinsicHistogram.create(mRS, Element.U8_4(mRS));
33 mSums = Allocation.createSized(mRS, Element.I32_3(mRS), 256);
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
H A DWhiteBalance.java31 mScript = new ScriptC_wbalance(mRS);
32 mHist = ScriptIntrinsicHistogram.create(mRS, Element.U8_4(mRS));
33 mSums = Allocation.createSized(mRS, Element.I32_3(mRS), 256);

Completed in 557 milliseconds

123456789