Home
last modified time | relevance | path

Searched refs:mRS (Results 1 – 25 of 212) sorted by relevance

123456789

/cts/tests/tests/rscpp/librscpptest/
Drs_jni_foreach.cpp41 sp<RS> mRS = new RS(); in Java_android_cts_rscpp_RSForEachTest_testForEach() local
42 mRS->init(path); in Java_android_cts_rscpp_RSForEachTest_testForEach()
48 sp<ScriptC_fe_all> fe_all = new ScriptC_fe_all(mRS); in Java_android_cts_rscpp_RSForEachTest_testForEach()
49 sp<const Type> t = Type::create(mRS, Element::I8(mRS), x, 0, 0); in Java_android_cts_rscpp_RSForEachTest_testForEach()
52 sp<Allocation> in = Allocation::createTyped(mRS, t); in Java_android_cts_rscpp_RSForEachTest_testForEach()
53 t = Type::create(mRS, Element::U8(mRS), x, 0, 0); in Java_android_cts_rscpp_RSForEachTest_testForEach()
54 sp<Allocation> out = Allocation::createTyped(mRS, t); in Java_android_cts_rscpp_RSForEachTest_testForEach()
56 mRS->finish(); in Java_android_cts_rscpp_RSForEachTest_testForEach()
59 t = Type::create(mRS, Element::I8_2(mRS), x, 0, 0); in Java_android_cts_rscpp_RSForEachTest_testForEach()
60 in = Allocation::createTyped(mRS, t); in Java_android_cts_rscpp_RSForEachTest_testForEach()
[all …]
Drs_jni_element.cpp37 sp<RS> mRS = new RS(); in Java_android_cts_rscpp_RSElementTest_testCreatePixel() local
38 mRS->init(path); in Java_android_cts_rscpp_RSElementTest_testCreatePixel()
42 passed &= (Element::createPixel(mRS, in Java_android_cts_rscpp_RSElementTest_testCreatePixel()
45 passed &= (Element::createPixel(mRS, in Java_android_cts_rscpp_RSElementTest_testCreatePixel()
48 passed &= (Element::createPixel(mRS, in Java_android_cts_rscpp_RSElementTest_testCreatePixel()
51 passed &= (Element::createPixel(mRS, in Java_android_cts_rscpp_RSElementTest_testCreatePixel()
54 passed &= (Element::createPixel(mRS, in Java_android_cts_rscpp_RSElementTest_testCreatePixel()
57 passed &= (Element::createPixel(mRS, in Java_android_cts_rscpp_RSElementTest_testCreatePixel()
69 sp<RS> mRS = new RS(); in Java_android_cts_rscpp_RSElementTest_testCreateVector() local
70 mRS->init(path); in Java_android_cts_rscpp_RSElementTest_testCreateVector()
[all …]
Drs_jni_type.cpp35 static bool testTypeBuilderHelper(const sp<RS> &mRS, sp<const Element> e) { in testTypeBuilderHelper() argument
39 Type::Builder b(mRS, e); in testTypeBuilderHelper()
66 sp<RS> mRS = new RS(); in Java_android_cts_rscpp_RSTypeTest_testCreate() local
67 mRS->init(path); in Java_android_cts_rscpp_RSTypeTest_testCreate()
72 passed &= testTypeBuilderHelper(mRS, Element::A_8(mRS)); in Java_android_cts_rscpp_RSTypeTest_testCreate()
73 passed &= testTypeBuilderHelper(mRS, Element::RGB_565(mRS)); in Java_android_cts_rscpp_RSTypeTest_testCreate()
74 passed &= testTypeBuilderHelper(mRS, Element::RGB_888(mRS)); in Java_android_cts_rscpp_RSTypeTest_testCreate()
75 passed &= testTypeBuilderHelper(mRS, Element::RGBA_8888(mRS)); in Java_android_cts_rscpp_RSTypeTest_testCreate()
76 passed &= testTypeBuilderHelper(mRS, Element::F32(mRS)); in Java_android_cts_rscpp_RSTypeTest_testCreate()
77 passed &= testTypeBuilderHelper(mRS, Element::F32_2(mRS)); in Java_android_cts_rscpp_RSTypeTest_testCreate()
[all …]
Drs_jni_object.cpp41 sp<RS> mRS = new RS(); in Java_android_cts_rscpp_RSObjectTest_testClearObjectElement() local
42 mRS->init(path); in Java_android_cts_rscpp_RSObjectTest_testClearObjectElement()
47 sp<ScriptC_clear_object> ms_clear = new ScriptC_clear_object(mRS); in Java_android_cts_rscpp_RSObjectTest_testClearObjectElement()
49 sp<const Element> element = Element::BOOLEAN(mRS); in Java_android_cts_rscpp_RSObjectTest_testClearObjectElement()
50 sp<Allocation> mOut = Allocation::createSized(mRS, Element::I32(mRS), ObjectNum); in Java_android_cts_rscpp_RSObjectTest_testClearObjectElement()
69 sp<RS> mRS = new RS(); in Java_android_cts_rscpp_RSObjectTest_testClearObjectType() local
70 mRS->init(path); in Java_android_cts_rscpp_RSObjectTest_testClearObjectType()
75 sp<ScriptC_clear_object> ms_clear = new ScriptC_clear_object(mRS); in Java_android_cts_rscpp_RSObjectTest_testClearObjectType()
77 sp<const Type> type= Type::create(mRS, Element::I8(mRS), 1, 0, 0); in Java_android_cts_rscpp_RSObjectTest_testClearObjectType()
78 sp<Allocation> mOut = Allocation::createSized(mRS, Element::I32(mRS), ObjectNum); in Java_android_cts_rscpp_RSObjectTest_testClearObjectType()
[all …]
Drs_jni_script.cpp51 sp<RS> mRS = new RS(); in Java_android_cts_rscpp_RSScriptTest_testSet() local
52 mRS->init(path); in Java_android_cts_rscpp_RSScriptTest_testSet()
55 mRS->setMessageHandler(mHandler); in Java_android_cts_rscpp_RSScriptTest_testSet()
59 sp<const Type> t = Type::create(mRS, Element::I32(mRS), 8, 0, 0); in Java_android_cts_rscpp_RSScriptTest_testSet()
60 sp<Allocation> alloc = Allocation::createTyped(mRS, t); in Java_android_cts_rscpp_RSScriptTest_testSet()
62 sp<ScriptC_primitives> script = new ScriptC_primitives(mRS); in Java_android_cts_rscpp_RSScriptTest_testSet()
75 mRS->finish(); in Java_android_cts_rscpp_RSScriptTest_testSet()
91 sp<RS> mRS = new RS(); in Java_android_cts_rscpp_RSScriptTest_testInstance() local
92 mRS->init(path); in Java_android_cts_rscpp_RSScriptTest_testInstance()
95 mRS->setMessageHandler(mHandler); in Java_android_cts_rscpp_RSScriptTest_testInstance()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DForEachTest.java59 Type t = new Type.Builder(mRS, Element.I8(mRS)).setX(x).create(); in testForEach()
60 Allocation badOut = Allocation.createTyped(mRS, t); in testForEach()
62 ScriptC_fe_all fe_all = new ScriptC_fe_all(mRS); in testForEach()
65 Allocation in = Allocation.createTyped(mRS, t); in testForEach()
66 t = new Type.Builder(mRS, Element.U8(mRS)).setX(x).create(); in testForEach()
67 Allocation out = Allocation.createTyped(mRS, t); in testForEach()
69 mRS.finish(); in testForEach()
72 mRS.finish(); in testForEach()
80 t = new Type.Builder(mRS, Element.I8_2(mRS)).setX(x).create(); in testForEach()
81 in = Allocation.createTyped(mRS, t); in testForEach()
[all …]
DKernelTest.java59 Type t = new Type.Builder(mRS, Element.I8(mRS)).setX(x).create(); in testForEach()
60 Allocation badOut = Allocation.createTyped(mRS, t); in testForEach()
62 ScriptC_kernel_all kernel_all = new ScriptC_kernel_all(mRS); in testForEach()
65 Allocation in = Allocation.createTyped(mRS, t); in testForEach()
66 t = new Type.Builder(mRS, Element.U8(mRS)).setX(x).create(); in testForEach()
67 Allocation out = Allocation.createTyped(mRS, t); in testForEach()
69 mRS.finish(); in testForEach()
72 mRS.finish(); in testForEach()
80 t = new Type.Builder(mRS, Element.I8_2(mRS)).setX(x).create(); in testForEach()
81 in = Allocation.createTyped(mRS, t); in testForEach()
[all …]
DElementTest.java27 assertTrue(Element.createPixel(mRS, in testCreatePixel()
30 assertTrue(Element.createPixel(mRS, in testCreatePixel()
33 assertTrue(Element.createPixel(mRS, in testCreatePixel()
36 assertTrue(Element.createPixel(mRS, in testCreatePixel()
39 assertTrue(Element.createPixel(mRS, in testCreatePixel()
42 assertTrue(Element.createPixel(mRS, in testCreatePixel()
51 assertTrue(Element.createVector(mRS, DataType.FLOAT_32, len) != null); in testCreateVector()
52 assertTrue(Element.createVector(mRS, DataType.FLOAT_64, len) != null); in testCreateVector()
53 assertTrue(Element.createVector(mRS, DataType.SIGNED_8, len) != null); in testCreateVector()
54 assertTrue(Element.createVector(mRS, DataType.SIGNED_16, len) != null); in testCreateVector()
[all …]
DKernelInputTest.java61 mRS.finish(); in checkForErrorsInScript()
68 ScriptC_kernel_input script = new ScriptC_kernel_input(mRS); in testInputNotModified_char()
69 Allocation ain = Allocation.createSized(mRS, Element.I8(mRS), 1); in testInputNotModified_char()
70 Allocation tmp = Allocation.createSized(mRS, Element.I8(mRS), 1); in testInputNotModified_char()
85 ScriptC_kernel_input script = new ScriptC_kernel_input(mRS); in testInputNotModified_char2()
86 Allocation ain = Allocation.createSized(mRS, Element.I8_2(mRS), 1); in testInputNotModified_char2()
87 Allocation tmp = Allocation.createSized(mRS, Element.I8_2(mRS), 1); in testInputNotModified_char2()
102 ScriptC_kernel_input script = new ScriptC_kernel_input(mRS); in testInputNotModified_char3()
103 Allocation ain = Allocation.createSized(mRS, Element.I8_3(mRS), 1); in testInputNotModified_char3()
104 Allocation tmp = Allocation.createSized(mRS, Element.I8_3(mRS), 1); in testInputNotModified_char3()
[all …]
DTypeTest.java34 Type.Builder b = new Type.Builder(mRS, e); in testTypeBuilderHelper()
49 testTypeBuilderHelper(Element.A_8(mRS)); in testTypeBuilder()
50 testTypeBuilderHelper(Element.RGB_565(mRS)); in testTypeBuilder()
51 testTypeBuilderHelper(Element.RGB_888(mRS)); in testTypeBuilder()
52 testTypeBuilderHelper(Element.RGBA_8888(mRS)); in testTypeBuilder()
53 testTypeBuilderHelper(Element.F32(mRS)); in testTypeBuilder()
54 testTypeBuilderHelper(Element.F32_2(mRS)); in testTypeBuilder()
55 testTypeBuilderHelper(Element.F32_3(mRS)); in testTypeBuilder()
56 testTypeBuilderHelper(Element.F32_4(mRS)); in testTypeBuilder()
57 testTypeBuilderHelper(Element.BOOLEAN(mRS)); in testTypeBuilder()
[all …]
DAllocationTest.java36 Type.Builder typeBuilder = new Type.Builder(mRS, e); in createTypedHelper()
48 Allocation.createTyped(mRS, typeBuilder.create()).destroy(); in createTypedHelper()
58 Type.Builder typeBuilder = new Type.Builder(mRS, e); in createTypedTextureHelper()
59 Allocation.createTyped(mRS, typeBuilder.setX(8).create(), in createTypedTextureHelper()
62 Allocation.createTyped(mRS, typeBuilder.setY(8).create(), in createTypedTextureHelper()
66 Allocation.createTyped(mRS, typeBuilder.create(), in createTypedTextureHelper()
71 Allocation.createTyped(mRS, typeBuilder.create(), in createTypedTextureHelper()
74 Allocation.createTyped(mRS, typeBuilder.create(), in createTypedTextureHelper()
80 Allocation.createTyped(mRS, typeBuilder.setX(7).setY(1).create(), in createTypedTextureHelper()
83 Allocation.createTyped(mRS, typeBuilder.setX(7).setY(3).create(), in createTypedTextureHelper()
[all …]
DScriptGroupTest.java45 Type connect = new Type.Builder(mRS, Element.U8_4(mRS)).setX(bDimX).setY(bDimY).create(); in testScriptGroupSingleKernel()
49 mColorMatrix = ScriptIntrinsicColorMatrix.create(mRS, Element.U8_4(mRS)); in testScriptGroupSingleKernel()
52 a1_copy = Allocation.createTyped(mRS, connect); in testScriptGroupSingleKernel()
53 a2_copy = Allocation.createTyped(mRS, connect); in testScriptGroupSingleKernel()
61 ScriptGroup.Builder b = new ScriptGroup.Builder(mRS); in testScriptGroupSingleKernel()
79 Type connect = new Type.Builder(mRS, Element.U8_4(mRS)).setX(bDimX).setY(bDimY).create(); in testScriptGroupDisconnectedKernel()
83 mColorMatrix = ScriptIntrinsicColorMatrix.create(mRS, Element.U8_4(mRS)); in testScriptGroupDisconnectedKernel()
84 mColorMatrix2 = ScriptIntrinsicColorMatrix.create(mRS, Element.U8_4(mRS)); in testScriptGroupDisconnectedKernel()
88 a1_copy = Allocation.createTyped(mRS, connect); in testScriptGroupDisconnectedKernel()
89 a2_copy = Allocation.createTyped(mRS, connect); in testScriptGroupDisconnectedKernel()
[all …]
DVoidPtr.java30 protected void setupVoidPtr(RenderScript mRS, ScriptC_void_ptr gs) { in setupVoidPtr() argument
31 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32(mRS)); in setupVoidPtr()
34 AFailed = Allocation.createTyped(mRS, t); in setupVoidPtr()
63 ScriptC_void_ptr gs = new ScriptC_void_ptr(mRS); in testVoidOutInt()
64 setupVoidPtr(mRS, gs); in testVoidOutInt()
66 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32(mRS)); in testVoidOutInt()
69 AOutput = Allocation.createTyped(mRS, t); in testVoidOutInt()
91 ScriptC_void_ptr gs = new ScriptC_void_ptr(mRS); in testVoidOutChar()
92 setupVoidPtr(mRS, gs); in testVoidOutChar()
94 Type.Builder typeBuilder = new Type.Builder(mRS, Element.U8(mRS)); in testVoidOutChar()
[all …]
DRenderScriptTest.java29 RenderScript mRS = RenderScript.create(getContext()); in testRenderScript() local
30 ScriptC_passthrough t = new ScriptC_passthrough(mRS); in testRenderScript()
32 mRS.finish(); in testRenderScript()
34 mRS.destroy(); in testRenderScript()
42 RenderScript mRS = RenderScript.create(null); in testAPI() local
47 RenderScript mRS = RenderScript.create(getContext()); in testAPI() local
48 mRS.contextDump(); in testAPI()
49 mRS.finish(); in testAPI()
50 assertEquals(mRS.getApplicationContext(), in testAPI()
52 RenderScript.RSErrorHandler mEH = mRS.getErrorHandler(); in testAPI()
[all …]
DClearObjectTest.java38 ms_clear = new ScriptC_clear_object(mRS); in setUp()
63 Element element = Element.BOOLEAN(mRS); in testClearObjectElement()
64 Allocation mIn = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum); in testClearObjectElement()
65 Allocation mOut = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum); in testClearObjectElement()
82 Type type= new Type.Builder(mRS, Element.I8(mRS)).setX(1).create(); in testclearObjectType()
83 Allocation mOut = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum); in testclearObjectType()
84 Allocation mIn = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum); in testclearObjectType()
102 Allocation mOut = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum); in testclearObjectAllocation()
103 Allocation mIn = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum); in testclearObjectAllocation()
104 Allocation allocation = Allocation.createTyped(mRS, mIn.getType()); in testclearObjectAllocation()
[all …]
DYuvTest.java76 ay = Allocation.createTyped(mRS, Type.createXY(mRS, Element.U8(mRS), w, h)); in makeYuvBuffer()
77 final Type tuv = Type.createXY(mRS, Element.U8(mRS), w >> 1, h >> 1); in makeYuvBuffer()
78 au = Allocation.createTyped(mRS, tuv); in makeYuvBuffer()
79 av = Allocation.createTyped(mRS, tuv); in makeYuvBuffer()
87 … return Allocation.createTyped(mRS, Type.createXY(mRS, Element.RGBA_8888(mRS), width, height)); in makeOutput()
91 return Allocation.createTyped(mRS, Type.createXY(mRS, Element.F32_4(mRS), width, height)); in makeOutput_f4()
96 mVerify = new ScriptC_verify(mRS); in testV17()
112 Allocation ta = Allocation.createSized(mRS, Element.U8(mRS), tmp.length); in testV17()
115 ScriptIntrinsicYuvToRGB syuv = ScriptIntrinsicYuvToRGB.create(mRS, Element.U8(mRS)); in testV17()
120 ScriptC_yuv script = new ScriptC_yuv(mRS); in testV17()
[all …]
DIsObjectTest.java44 element = Element.BOOLEAN(mRS); in setUp()
46 type = new Type.Builder(mRS, Element.I8(mRS)).setX(1).create(); in setUp()
47 allocation = Allocation.createTyped(mRS, type); in setUp()
48 sampler = new Sampler.Builder(mRS).create(); in setUp()
49 script = new ScriptC_is_object(mRS); in setUp()
50 ms_is_object = new ScriptC_is_object(mRS); in setUp()
71 mRS, 1); in testIsObjectElement()
78 mOut = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum); in testIsObjectElement()
92 ScriptField__object_type_input filed = new ScriptField__object_type_input(mRS, 1); in testIsObjectType()
98 mOut = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum); in testIsObjectType()
[all …]
DSetObjectTest.java43 element = Element.BOOLEAN(mRS); in setUp()
45 type = new Type.Builder(mRS, Element.I8(mRS)).setX(1).create(); in setUp()
46 allocation = Allocation.createTyped(mRS, type); in setUp()
47 sampler = new Sampler.Builder(mRS).create(); in setUp()
48 script = new ScriptC_set_object(mRS); in setUp()
51 ms_set = new ScriptC_set_object(mRS); in setUp()
73 mRS, 1); in testSetObjectElement()
79 mOut = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum); in testSetObjectElement()
93 ScriptField__set_object_type_input field = new ScriptField__set_object_type_input(mRS, 1); in testSetObjectType()
99 mOut = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum); in testSetObjectType()
[all …]
DVLoadTest.java37 script = new ScriptC_vload(mRS); in setUp()
38 scriptRelaxed = new ScriptC_vload_relaxed(mRS); in setUp()
95 walkAlloc = Allocation.createSized(mRS, Element.I32(mRS), i); in createWalk()
102 inAlloc = Allocation.createTyped(mRS, t); in testSetup()
103 outAlloc = Allocation.createTyped(mRS, t); in testSetup()
211 testSetup(Type.createX(mRS, Element.I8(mRS), w)); in testVload_char()
219 testSetup(Type.createX(mRS, Element.U8(mRS), w)); in testVload_uchar()
227 testSetup(Type.createX(mRS, Element.I8(mRS), w)); in testVload_char_relaxed()
235 testSetup(Type.createX(mRS, Element.U8(mRS), w)); in testVload_uchar_relaxed()
243 testSetup(Type.createX(mRS, Element.I16(mRS), w)); in testVload_short()
[all …]
DRsAllocationCopyTest.java38 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I8(mRS)); in test_RsAllocationCopy1D_Byte()
40 Allocation aIn = Allocation.createTyped(mRS, typeBuilder.create()); in test_RsAllocationCopy1D_Byte()
41 Allocation aOut = Allocation.createTyped(mRS, typeBuilder.create()); in test_RsAllocationCopy1D_Byte()
45 ScriptC_rsallocationcopy s = new ScriptC_rsallocationcopy(mRS); in test_RsAllocationCopy1D_Byte()
51 mRS.finish(); in test_RsAllocationCopy1D_Byte()
85 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I16(mRS)); in test_RsAllocationCopy1D_Short()
87 Allocation aIn = Allocation.createTyped(mRS, typeBuilder.create()); in test_RsAllocationCopy1D_Short()
88 Allocation aOut = Allocation.createTyped(mRS, typeBuilder.create()); in test_RsAllocationCopy1D_Short()
92 ScriptC_rsallocationcopy s = new ScriptC_rsallocationcopy(mRS); in test_RsAllocationCopy1D_Short()
98 mRS.finish(); in test_RsAllocationCopy1D_Short()
[all …]
DIntrinsicBlur.java51 Type.Builder tb = new Type.Builder(mRS, Element.F32_4(mRS)); in initTest()
54 mScratchPixelsAllocation1 = Allocation.createTyped(mRS, tb.create()); in initTest()
55 mScratchPixelsAllocation2 = Allocation.createTyped(mRS, tb.create()); in initTest()
57 mIntrinsic = ScriptIntrinsicBlur.create(mRS, e); in initTest()
61 mScript = new ScriptC_intrinsic_blur(mRS); in initTest()
77 if (mAllocSrc.getType().getElement().isCompatible(Element.U8(mRS))) { in copyInput()
81 if (mAllocSrc.getType().getElement().isCompatible(Element.U8_4(mRS))) { in copyInput()
89 if (mAllocSrc.getType().getElement().isCompatible(Element.U8(mRS))) { in copyOutput()
93 if (mAllocSrc.getType().getElement().isCompatible(Element.U8_4(mRS))) { in copyOutput()
103 Element e = Element.U8(mRS); in testU8_1()
[all …]
DAllocationCopyPaddedTest.java34 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I8_3(mRS)); in test_AllocationPadded_Byte3_1D()
36 Allocation alloc = Allocation.createTyped(mRS, typeBuilder.create()); in test_AllocationPadded_Byte3_1D()
63 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I8_3(mRS)); in test_AllocationPadded_Byte3_2D()
65 Allocation alloc = Allocation.createTyped(mRS, typeBuilder.create()); in test_AllocationPadded_Byte3_2D()
93 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I8_3(mRS)); in test_AllocationPadded_Byte3_3D()
95 Allocation alloc = Allocation.createTyped(mRS, typeBuilder.create()); in test_AllocationPadded_Byte3_3D()
124 Type.Builder typeBuilder = new Type.Builder(mRS, element); in test_AllocationPadded_Short3_1D_Helper()
126 Allocation alloc = Allocation.createTyped(mRS, typeBuilder.create()); in test_AllocationPadded_Short3_1D_Helper()
144 test_AllocationPadded_Short3_1D_Helper(Element.I16_3(mRS)); in test_AllocationPadded_Short3_1D()
145 test_AllocationPadded_Short3_1D_Helper(Element.F16_3(mRS)); in test_AllocationPadded_Short3_1D()
[all …]
DGlobalSync.java29 protected void setupGlobalSync(RenderScript mRS, ScriptC_global_sync gs, int v) { in setupGlobalSync() argument
30 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32(mRS)); in setupGlobalSync()
33 AFailed = Allocation.createTyped(mRS, t); in setupGlobalSync()
39 AIn = Allocation.createTyped(mRS, t); in setupGlobalSync()
61 ScriptC_global_sync gs = new ScriptC_global_sync(mRS); in testKIGlobalSync()
64 setupGlobalSync(mRS, gs, v); in testKIGlobalSync()
82 ScriptC_global_sync gs = new ScriptC_global_sync(mRS); in testKIStaticGlobalSync()
85 setupGlobalSync(mRS, gs, v); in testKIStaticGlobalSync()
103 ScriptC_global_sync gs = new ScriptC_global_sync(mRS); in testIKGlobalSync()
106 setupGlobalSync(mRS, gs, v); in testIKGlobalSync()
[all …]
/cts/tests/tests/rsblas/src/android/renderscript/cts/
DIntrinsicBLAS.java73 mBLAS = ScriptIntrinsicBLAS.create(mRS); in setUp()
80 … mMatrixS.add(Allocation.createTyped(mRS, Type.createXY(mRS, Element.F32(mRS), x, y))); in setUp()
81 … mMatrixD.add(Allocation.createTyped(mRS, Type.createXY(mRS, Element.F64(mRS), x, y))); in setUp()
82 … mMatrixC.add(Allocation.createTyped(mRS, Type.createXY(mRS, Element.F32_2(mRS), x, y))); in setUp()
83 … mMatrixZ.add(Allocation.createTyped(mRS, Type.createXY(mRS, Element.F64_2(mRS), x, y))); in setUp()
87 … Allocation misAlloc = Allocation.createTyped(mRS, Type.createXY(mRS, Element.U8(mRS), 1, 1)); in setUp()
132 if (e.isCompatible(Element.F32(mRS)) || e.isCompatible(Element.F32_2(mRS))) { in verifyMatrix()
251 if (elemA.isCompatible(Element.F32(mRS))) { in xGEMV_API_test()
253 } else if (elemA.isCompatible(Element.F64(mRS))) { in xGEMV_API_test()
255 } else if (elemA.isCompatible(Element.F32_2(mRS))) { in xGEMV_API_test()
[all …]
/cts/tests/tests/rscpp/src/android/cts/rscpp/
DRSColorMatrixTest.java54 Type.Builder build = new Type.Builder(mRS, Element.RGBA_8888(mRS)); in testRSColorMatrix0()
57 Allocation rsInput = Allocation.createTyped(mRS, build.create()); in testRSColorMatrix0()
58 Allocation rsOutput = Allocation.createTyped(mRS, build.create()); in testRSColorMatrix0()
61 … ScriptIntrinsicColorMatrix cm = ScriptIntrinsicColorMatrix.create(mRS, Element.RGBA_8888(mRS)); in testRSColorMatrix0()
69 Allocation rsCppOutput = Allocation.createTyped(mRS, build.create()); in testRSColorMatrix0()
85 Type.Builder build = new Type.Builder(mRS, Element.RGBA_8888(mRS)); in testRSColorMatrix1()
88 Allocation rsInput = Allocation.createTyped(mRS, build.create()); in testRSColorMatrix1()
89 Allocation rsOutput = Allocation.createTyped(mRS, build.create()); in testRSColorMatrix1()
92 … ScriptIntrinsicColorMatrix cm = ScriptIntrinsicColorMatrix.create(mRS, Element.RGBA_8888(mRS)); in testRSColorMatrix1()
99 Allocation rsCppOutput = Allocation.createTyped(mRS, build.create()); in testRSColorMatrix1()
[all …]

123456789