HomeSort by relevance Sort by last modified time
    Searched refs:mRS (Results 1 - 25 of 420) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /frameworks/rs/tests/lldb/java/Allocations/src/com/android/rs/allocations/
MainActivity.java 25 private RenderScript mRS;
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.finish()
    [all...]
  /cts/tests/tests/rscpp/librscpptest/
rs_jni_foreach.cpp 41 sp<RS> mRS = new RS();
42 mRS->init(path);
48 sp<ScriptC_fe_all> fe_all = new ScriptC_fe_all(mRS);
49 sp<const Type> t = Type::create(mRS, Element::I8(mRS), x, 0, 0);
52 sp<Allocation> in = Allocation::createTyped(mRS, t);
53 t = Type::create(mRS, Element::U8(mRS), x, 0, 0);
54 sp<Allocation> out = Allocation::createTyped(mRS, t);
56 mRS->finish()
    [all...]
rs_jni_type.cpp 35 static bool testTypeBuilderHelper(const sp<RS> &mRS, sp<const Element> e) {
39 Type::Builder b(mRS, e);
66 sp<RS> mRS = new RS();
67 mRS->init(path);
72 passed &= testTypeBuilderHelper(mRS, Element::A_8(mRS));
73 passed &= testTypeBuilderHelper(mRS, Element::RGB_565(mRS));
74 passed &= testTypeBuilderHelper(mRS, Element::RGB_888(mRS));
    [all...]
rs_jni_element.cpp 37 sp<RS> mRS = new RS();
38 mRS->init(path);
42 passed &= (Element::createPixel(mRS,
45 passed &= (Element::createPixel(mRS,
48 passed &= (Element::createPixel(mRS,
51 passed &= (Element::createPixel(mRS,
54 passed &= (Element::createPixel(mRS,
57 passed &= (Element::createPixel(mRS,
69 sp<RS> mRS = new RS();
70 mRS->init(path)
    [all...]
  /cts/tests/tests/renderscript/src/android/renderscript/cts/
ElementTest.java 27 assertTrue(Element.createPixel(mRS,
30 assertTrue(Element.createPixel(mRS,
33 assertTrue(Element.createPixel(mRS,
36 assertTrue(Element.createPixel(mRS,
39 assertTrue(Element.createPixel(mRS,
42 assertTrue(Element.createPixel(mRS,
51 assertTrue(Element.createVector(mRS, DataType.FLOAT_32, len) != null);
52 assertTrue(Element.createVector(mRS, DataType.FLOAT_64, len) != null);
53 assertTrue(Element.createVector(mRS, DataType.SIGNED_8, len) != null);
54 assertTrue(Element.createVector(mRS, DataType.SIGNED_16, len) != null)
    [all...]
RenderScriptTest.java 29 RenderScript mRS = RenderScript.create(getContext());
30 ScriptC_passthrough t = new ScriptC_passthrough(mRS);
32 mRS.finish();
34 mRS.destroy();
42 RenderScript mRS = RenderScript.create(null);
47 RenderScript mRS = RenderScript.create(getContext());
48 mRS.contextDump();
49 mRS.finish();
50 assertEquals(mRS.getApplicationContext(),
52 RenderScript.RSErrorHandler mEH = mRS.getErrorHandler()
    [all...]
ForEachTest.java 59 Type t = new Type.Builder(mRS, Element.I8(mRS)).setX(x).create();
60 Allocation badOut = Allocation.createTyped(mRS, t);
62 ScriptC_fe_all fe_all = new ScriptC_fe_all(mRS);
65 Allocation in = Allocation.createTyped(mRS, t);
66 t = new Type.Builder(mRS, Element.U8(mRS)).setX(x).create();
67 Allocation out = Allocation.createTyped(mRS, t);
69 mRS.finish();
72 mRS.finish()
    [all...]
KernelTest.java 59 Type t = new Type.Builder(mRS, Element.I8(mRS)).setX(x).create();
60 Allocation badOut = Allocation.createTyped(mRS, t);
62 ScriptC_kernel_all kernel_all = new ScriptC_kernel_all(mRS);
65 Allocation in = Allocation.createTyped(mRS, t);
66 t = new Type.Builder(mRS, Element.U8(mRS)).setX(x).create();
67 Allocation out = Allocation.createTyped(mRS, t);
69 mRS.finish();
72 mRS.finish()
    [all...]
KernelInputTest.java 61 mRS.finish();
68 ScriptC_kernel_input script = new ScriptC_kernel_input(mRS);
69 Allocation ain = Allocation.createSized(mRS, Element.I8(mRS), 1);
70 Allocation tmp = Allocation.createSized(mRS, Element.I8(mRS), 1);
85 ScriptC_kernel_input script = new ScriptC_kernel_input(mRS);
86 Allocation ain = Allocation.createSized(mRS, Element.I8_2(mRS), 1);
87 Allocation tmp = Allocation.createSized(mRS, Element.I8_2(mRS), 1)
    [all...]
StructArrayTest.java 24 mRS.setErrorHandler(mRsError);
25 ScriptC_struct_array pad = new ScriptC_struct_array(mRS);
26 ScriptField_ArrayMe S = new ScriptField_ArrayMe(mRS, 1);
ClearObjectTest.java 38 ms_clear = new ScriptC_clear_object(mRS);
63 Element element = Element.BOOLEAN(mRS);
64 Allocation mIn = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum);
65 Allocation mOut = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum);
82 Type type= new Type.Builder(mRS, Element.I8(mRS)).setX(1).create();
83 Allocation mOut = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum)
    [all...]
VoidPtr.java 30 protected void setupVoidPtr(RenderScript mRS, ScriptC_void_ptr gs) {
31 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32(mRS));
34 AFailed = Allocation.createTyped(mRS, t);
63 ScriptC_void_ptr gs = new ScriptC_void_ptr(mRS);
64 setupVoidPtr(mRS, gs);
66 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32(mRS));
69 AOutput = Allocation.createTyped(mRS, t);
91 ScriptC_void_ptr gs = new ScriptC_void_ptr(mRS);
    [all...]
TypeTest.java 34 Type.Builder b = new Type.Builder(mRS, e);
49 testTypeBuilderHelper(Element.A_8(mRS));
50 testTypeBuilderHelper(Element.RGB_565(mRS));
51 testTypeBuilderHelper(Element.RGB_888(mRS));
52 testTypeBuilderHelper(Element.RGBA_8888(mRS));
53 testTypeBuilderHelper(Element.F32(mRS));
54 testTypeBuilderHelper(Element.F32_2(mRS));
55 testTypeBuilderHelper(Element.F32_3(mRS));
56 testTypeBuilderHelper(Element.F32_4(mRS));
57 testTypeBuilderHelper(Element.BOOLEAN(mRS));
    [all...]
  /cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/
RSBaseCompute.java 30 RenderScript mRS;
35 mRS = RenderScript.create(mCtx);
36 mRS.setMessageHandler(mRsMessage);
41 if (mRS != null) {
42 mRS.destroy();
43 mRS = null;
VersionTest.java 27 ScriptC_set_target_api_11 test11 = new ScriptC_set_target_api_11(mRS);
34 ScriptC_set_target_api_12 test12 = new ScriptC_set_target_api_12(mRS);
41 ScriptC_set_target_api_13 test13 = new ScriptC_set_target_api_13(mRS);
48 ScriptC_set_target_api_14 test14 = new ScriptC_set_target_api_14(mRS);
55 ScriptC_set_target_api_15 test15 = new ScriptC_set_target_api_15(mRS);
62 ScriptC_set_target_api_16 test16 = new ScriptC_set_target_api_16(mRS);
69 ScriptC_set_target_api_17 test17 = new ScriptC_set_target_api_17(mRS);
76 ScriptC_set_target_api_18 test18 = new ScriptC_set_target_api_18(mRS);
83 ScriptC_set_target_api_19 test19 = new ScriptC_set_target_api_19(mRS);
92 new ScriptC_set_target_api_too_high(mRS);
    [all...]
LeakTest.java 61 ScriptC_leak leak = new ScriptC_leak(mRS);
62 Type t = new Type.Builder(mRS, Element.I32(mRS)).setX(x).create();
63 Allocation A = Allocation.createTyped(mRS, t);
68 mRS.finish();
70 mRS.finish();
  /frameworks/base/rs/java/android/renderscript/
RSTextureView.java 32 private RenderScriptGL mRS;
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 != null)
    [all...]
RSSurfaceView.java 37 private RenderScriptGL mRS;
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.destroy()
    [all...]
Script.java 58 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.nScriptInvoke(getID(mRS), slot)
    [all...]
  /frameworks/compile/libbcc/tests/debuginfo/target-tests/driver-common/SRC/
DriverView.java.template 27 private RenderScriptGL mRS;
37 if (mRS == null) {
41 mRS = createRenderScriptGL(sc);
44 mRender.init(mRS, getResources());
58 if (mRS != null) {
59 mRS = null;
  /frameworks/rs/tests/lldb/cpp/Allocations/
Allocations.cpp 21 sp<RS> mRS;
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), mAllocSize / 4)
    [all...]
  /frameworks/rs/tests/lldb/jni/Allocations/jniallocations/
jniallocations.cpp 24 sp<RS> mRS;
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), mAllocSize / 4)
    [all...]
  /frameworks/rs/tests/lldb/java/SingleSource/src/com/android/rs/singlesource/
MainActivity.java 27 private RenderScript mRS;
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, Element.F32(mRS), 4))
    [all...]
  /frameworks/rs/support/java/src/android/support/v8/renderscript/
Script.java 48 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, this, slot)
    [all...]
  /frameworks/rs/tests/lldb/java/KernelVariables/src/com/android/rs/kernelvariables/
MainActivity.java 31 private RenderScript mRS;
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, typeI32Builder2D.create())
    [all...]

Completed in 671 milliseconds

1 2 3 4 5 6 7 8 91011>>