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

12345678

/frameworks/base/graphics/java/android/renderscript/
H A DRSTextureView.java39 private RenderScriptGL mRS; field in class:RSTextureView
79 if (mRS != null) {
80 mRS.setSurfaceTexture(mSurfaceTexture, width, height);
92 if (mRS != null) {
93 mRS.setSurfaceTexture(mSurfaceTexture, width, height);
105 if (mRS != null) {
106 mRS.setSurfaceTexture(null, 0, 0);
129 if(mRS != null) {
130 mRS.pause();
143 if(mRS !
[all...]
H A DRSSurfaceView.java45 private RenderScriptGL mRS; field in class:RSSurfaceView
95 if (mRS != null) {
96 mRS.setSurface(null, 0, 0);
108 if (mRS != null) {
109 mRS.setSurface(holder, w, h);
122 if(mRS != null) {
123 mRS.pause();
136 if(mRS != null) {
137 mRS.resume();
155 mRS
[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);
114 if(mID != 0 && mRS.isAlive()) {
115 mRS.nObjDestroy(mID);
117 mRS = null;
136 mRS.nObjDestroy(mID);
144 mRS
[all...]
H A DScript.java57 int id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig);
62 k = new KernelID(id, mRS, this, slot, sig);
95 int id = mRS.nScriptFieldIDCreate(getID(mRS), slot);
100 f = new FieldID(id, mRS, this, slot);
111 mRS.nScriptInvoke(getID(mRS), slot);
120 mRS.nScriptInvokeV(getID(mRS), slo
300 RenderScript mRS; field in class:Script.Builder
[all...]
/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/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DScript.java74 if (mRS.isNative == true) {
75 k = new KernelID(0, mRS, this, slot, sig);
84 int id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig);
89 k = new KernelID(id, mRS, this, slot, sig);
127 if (mRS.isNative == true) {
128 FieldID f = new FieldID(0, mRS, this, slot);
140 int id = mRS.nScriptFieldIDCreate(getID(mRS), slot);
145 f = new FieldID(id, mRS, thi
422 RenderScript mRS; field in class:Script.Builder
[all...]
H A DBaseObj.java30 mRS = rs;
52 mRS.validate();
65 if ((rs != null) && (rs != mRS)) {
83 RenderScript mRS; field in class:BaseObj
87 if(mID != 0 && mRS.isAlive()) {
88 mRS.nObjDestroy(mID);
90 mRS = null;
109 mRS.nObjDestroy(mID);
/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/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, res, R.raw.compute_benchmark);
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/rs/cpp/
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, NULL, 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 == NULL) ? 0 : o->getID()));
54 tryDispatch(mRS, R
[all...]
H A DBaseObj.cpp36 mRS = rs;
47 RS::dispatch->ObjDestroy(mRS->getContext(), mID);
48 mRS = NULL;
54 RS::dispatch->GetName(mRS->getContext(), mID, &name);
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/
H A DBallsRS.java31 private RenderScriptGL mRS; field in class:BallsRS
42 mVpConsts = new ScriptField_VpConsts(mRS, 1,
47 mvp.loadOrtho(0, mRS.getWidth(), mRS.getHeight(), 0, -1, 1);
55 ProgramVertex.Builder sb = new ProgramVertex.Builder(mRS);
69 mRS.bindProgramVertex(pvs);
74 Allocation.createFromBitmapResource(mRS, mRes,
90 ProgramFragmentFixedFunction.Builder pfb = new ProgramFragmentFixedFunction.Builder(mRS);
99 mRS = rs;
106 mPoints = new ScriptField_Point(mRS, PART_COUN
[all...]
/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/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);
H A DArtistic1.java29 mScript = new ScriptC_artistic1(mRS);
30 mBlured = Allocation.createTyped(mRS, mInPixelsAllocation.getType());
33 ScriptIntrinsicBlur blur = ScriptIntrinsicBlur.create(mRS, Element.U8_4(mRS));
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/
H A DTestAppLoadingScreen.java44 private RenderScriptGL mRS; field in class:TestAppLoadingScreen
48 mRS = rs;
58 mRS.bindRootScript(mScript);
60 mRS.bindRootScript(SceneManager.getInstance().getRenderLoop());
70 robotTex = Allocation.createFromBitmapResource(mRS, mRes, R.drawable.robot,
74 FileA3D model = FileA3D.createFromResource(mRS, mRes, R.raw.robot);
80 mScript.set_gPFSBackground(ProgramStore.BLEND_NONE_DEPTH_TEST(mRS));
82 ProgramFragmentFixedFunction.Builder b = new ProgramFragmentFixedFunction.Builder(mRS);
86 pfDefault.bindSampler(Sampler.CLAMP_LINEAR(mRS), 0);
89 ProgramVertexFixedFunction.Builder pvb = new ProgramVertexFixedFunction.Builder(mRS);
[all...]
H A DSimpleAppView.java36 private RenderScriptGL mRS; field in class:SimpleAppView
41 if (mRS == null) {
45 mRS = createRenderScriptGL(sc);
46 mRS.setSurface(holder, w, h);
48 mRender.init(mRS, getResources(), w, h);
54 if (mRS != null) {
56 mRS = null;
/frameworks/rs/java/tests/MathErr/src/com/example/android/rs/matherr/
H A DMathErrActivity.java27 private RenderScript mRS; field in class:MathErrActivity
34 mRS = RenderScript.create(this);
35 mME = new MathErr(mRS);
/frameworks/rs/java/tests/ComputePerf/src/com/example/android/rs/computeperf/
H A DMandelbrot.java23 private RenderScript mRS; field in class:Mandelbrot
28 mRS = rs;
29 mScript = new ScriptC_mandelbrot(mRS, res, R.raw.mandelbrot);
40 mRS.finish();
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
H A DTextTest.java30 private RenderScriptGL mRS; field in class:TextTest
48 mTests[index].testName = Allocation.createFromString(mRS,
51 mTests[index].debugName = RsBenchRS.createZeroTerminatedAlloc(mRS,
57 ScriptField_TextTestData_s testData = new ScriptField_TextTestData_s(mRS, 1);
63 mRS = rs;
87 mTextScript = new ScriptC_text_test(mRS, mRes, R.raw.text_test);
88 mTextScript.set_gFontSans(Font.create(mRS, mRes, "sans-serif",
90 mTextScript.set_gFontSerif(Font.create(mRS, mRes, "serif",

Completed in 276 milliseconds

12345678