HomeSort by relevance Sort by last modified time
    Searched refs:mRS (Results 26 - 50 of 407) sorted by null

12 3 4 5 6 7 8 91011>>

  /frameworks/rs/cpp/
BaseObj.cpp 36 mRS = rs.get();
47 if (mRS && mRS->getContext()) {
48 RS::dispatch->ObjDestroy(mRS->getContext(), mID);
50 mRS = NULL;
56 RS::dispatch->GetName(mRS->getContext(), mID, &name);
Script.cpp 26 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, RS::dispatch->ScriptSetVarV(mRS->getContext(), getID(), index, v, len))
    [all...]
  /frameworks/base/rs/java/android/renderscript/
BaseObj.java 30 mRS = rs;
52 mRS.validate();
59 if ((rs != null) && (rs != mRS)) {
74 RenderScript mRS;
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.validate()
    [all...]
  /frameworks/rs/java/tests/ComputeBenchmark/src/com/example/android/rs/computebench/
ComputeBench.java 24 private RenderScript mRS;
32 mRS = RenderScript.create(this);
34 mBenchmark = new Benchmark(mRS, getResources());
Benchmark.java 23 private final RenderScript mRS;
27 mRS = rs;
28 mScript = new ScriptC_compute_benchmark(mRS);
34 mRS.finish();
  /frameworks/rs/java/tests/LatencyBenchmark/src/com/example/android/rs/computebench/
LatencyBench.java 24 private RenderScript mRS;
32 mRS = RenderScript.create(this);
34 mBenchmark = new Benchmark(mRS, getResources());
  /frameworks/base/tests/RenderScriptTests/HelloWorld/src/com/example/android/rs/helloworld/
HelloWorldRS.java 25 private RenderScriptGL mRS;
35 mRS = rs;
46 mScript = new ScriptC_helloworld(mRS, mRes, R.raw.helloworld);
47 mRS.bindRootScript(mScript);
  /cts/tests/tests/renderscript/src/android/renderscript/cts/
ScriptGroupTest.java 43 Type connect = new Type.Builder(mRS, Element.U8_4(mRS)).setX(bDimX).setY(bDimY).create();
47 mColorMatrix = ScriptIntrinsicColorMatrix.create(mRS, Element.U8_4(mRS));
50 a1_copy = Allocation.createTyped(mRS, connect);
51 a2_copy = Allocation.createTyped(mRS, connect);
59 ScriptGroup.Builder b = new ScriptGroup.Builder(mRS);
72 Type connect = new Type.Builder(mRS, Element.U8_4(mRS)).setX(bDimX).setY(bDimY).create();
76 mColorMatrix = ScriptIntrinsicColorMatrix.create(mRS, Element.U8_4(mRS))
    [all...]
IsObjectTest.java 44 element = Element.BOOLEAN(mRS);
46 type = new Type.Builder(mRS, Element.I8(mRS)).setX(1).create();
47 allocation = Allocation.createTyped(mRS, type);
48 sampler = new Sampler.Builder(mRS).create();
49 script = new ScriptC_is_object(mRS);
50 ms_is_object = new ScriptC_is_object(mRS);
58 mRS, 1);
65 mOut = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum)
    [all...]
SetObjectTest.java 43 element = Element.BOOLEAN(mRS);
45 type = new Type.Builder(mRS, Element.I8(mRS)).setX(1).create();
46 allocation = Allocation.createTyped(mRS, type);
47 sampler = new Sampler.Builder(mRS).create();
48 script = new ScriptC_set_object(mRS);
50 ms_set = new ScriptC_set_object(mRS);
58 mRS, 1);
64 mOut = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum)
    [all...]
YuvTest.java 61 ay = Allocation.createTyped(mRS, Type.createXY(mRS, Element.U8(mRS), w, h));
62 final Type tuv = Type.createXY(mRS, Element.U8(mRS), w >> 1, h >> 1);
63 au = Allocation.createTyped(mRS, tuv);
64 av = Allocation.createTyped(mRS, tuv);
72 return Allocation.createTyped(mRS, Type.createXY(mRS, Element.RGBA_8888(mRS), width, height))
    [all...]
AllocationTest.java 36 Type.Builder typeBuilder = new Type.Builder(mRS, e);
48 Allocation.createTyped(mRS, typeBuilder.create());
58 Type.Builder typeBuilder = new Type.Builder(mRS, e);
59 Allocation.createTyped(mRS, typeBuilder.setX(8).create(),
62 Allocation.createTyped(mRS, typeBuilder.setY(8).create(),
66 Allocation.createTyped(mRS, typeBuilder.create(),
71 Allocation.createTyped(mRS, typeBuilder.create(),
74 Allocation.createTyped(mRS, typeBuilder.create(),
80 Allocation.createTyped(mRS, typeBuilder.setX(7).setY(1).create(),
83 Allocation.createTyped(mRS, typeBuilder.setX(7).setY(3).create()
    [all...]
IntrinsicBlur.java 36 Type.Builder tb = new Type.Builder(mRS, Element.F32_4(mRS));
39 mScratchPixelsAllocation1 = Allocation.createTyped(mRS, tb.create());
40 mScratchPixelsAllocation2 = Allocation.createTyped(mRS, tb.create());
42 mIntrinsic = ScriptIntrinsicBlur.create(mRS, e);
46 mScript = new ScriptC_intrinsic_blur(mRS);
62 if (mAllocSrc.getType().getElement().isCompatible(Element.U8(mRS))) {
66 if (mAllocSrc.getType().getElement().isCompatible(Element.U8_4(mRS))) {
74 if (mAllocSrc.getType().getElement().isCompatible(Element.U8(mRS))) {
78 if (mAllocSrc.getType().getElement().isCompatible(Element.U8_4(mRS))) {
    [all...]
TestVLoad.java 37 script = new ScriptC_vload(mRS);
38 scriptRelaxed = new ScriptC_vload_relaxed(mRS);
81 walkAlloc = Allocation.createSized(mRS, Element.I32(mRS), i);
88 inAlloc = Allocation.createTyped(mRS, t);
89 outAlloc = Allocation.createTyped(mRS, t);
197 testSetup(Type.createX(mRS, Element.I8(mRS), w));
205 testSetup(Type.createX(mRS, Element.I8(mRS), w))
    [all...]
CompilerTest.java 32 ScriptC_missing_link t = new ScriptC_missing_link(mRS);
  /frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/
BallsRS.java 31 private RenderScriptGL mRS;
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_COUNT, Allocation.USAGE_SCRIPT)
    [all...]
  /cts/tests/tests/rscpp/src/android/cts/rscpp/
RSCppTest.java 34 RenderScript mRS;
77 mRS.finish();
91 mRS = RenderScript.create(mCtx);
92 mRS.setMessageHandler(mRsMessage);
93 mVerify = new ScriptC_verify(mRS);
103 if (mRS != null) {
104 mRS.destroy();
105 mRS = null;
RSBlurTest.java 43 Type.Builder build = new Type.Builder(mRS, Element.A_8(mRS));
46 Allocation rsInput = Allocation.createTyped(mRS, build.create());
47 Allocation rsOutput = Allocation.createTyped(mRS, build.create());
49 ScriptIntrinsicBlur blur = ScriptIntrinsicBlur.create(mRS, Element.A_8(mRS));
57 Allocation rsCppOutput = Allocation.createTyped(mRS, build.create());
72 Type.Builder build = new Type.Builder(mRS, Element.RGBA_8888(mRS));
75 Allocation rsInput = Allocation.createTyped(mRS, build.create())
    [all...]
RSColorMatrixTest.java 54 Type.Builder build = new Type.Builder(mRS, Element.RGBA_8888(mRS));
57 Allocation rsInput = Allocation.createTyped(mRS, build.create());
58 Allocation rsOutput = Allocation.createTyped(mRS, build.create());
61 ScriptIntrinsicColorMatrix cm = ScriptIntrinsicColorMatrix.create(mRS, Element.RGBA_8888(mRS));
69 Allocation rsCppOutput = Allocation.createTyped(mRS, build.create());
85 Type.Builder build = new Type.Builder(mRS, Element.RGBA_8888(mRS));
88 Allocation rsInput = Allocation.createTyped(mRS, build.create())
    [all...]
  /packages/wallpapers/Galaxy4/src/com/android/galaxy4/
GalaxyView.java 16 private RenderScriptGL mRS;
27 if (mRS == null) {
29 mRS = createRenderScriptGL(sc);
30 mRS.setSurface(holder, w, h);
38 mRender.init(metrics.densityDpi, mRS, getResources(), w, h);
46 if (mRS != null) {
47 mRS.setSurface(null, 0, 0);
48 mRS = null;
  /frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/
UT_instance.java 39 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, t)
    [all...]
  /frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
WhiteBalance.java 31 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/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/
TestAppLoadingScreen.java 44 private RenderScriptGL mRS;
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...]
SimpleAppView.java 36 private RenderScriptGL mRS;
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/
MathErrActivity.java 27 private RenderScript mRS;
34 mRS = RenderScript.create(this);
35 mME = new MathErr(mRS);

Completed in 1192 milliseconds

12 3 4 5 6 7 8 91011>>