Home
last modified time | relevance | path

Searched refs:RS (Results 1 – 25 of 121) sorted by relevance

12345

/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUT_fp16.java36 private void initializeGlobals(RenderScript RS, ScriptC_fp16 s, Element e, int nDims) { in initializeGlobals() argument
37 Type.Builder typeBuilder = new Type.Builder(RS, e); in initializeGlobals()
50 alloc = Allocation.createTyped(RS, type); in initializeGlobals()
58 private void TestHalf(RenderScript RS, ScriptC_fp16 s, int nDims) { in TestHalf() argument
59 initializeGlobals(RS, s, Element.F16(RS), nDims); in TestHalf()
65 RS.finish(); in TestHalf()
69 initializeGlobals(RS, s, Element.F16(RS), nDims); in TestHalf()
74 RS.finish(); in TestHalf()
79 private void TestHalf2(RenderScript RS, ScriptC_fp16 s, int nDims) { in TestHalf2() argument
80 initializeGlobals(RS, s, Element.F16_2(RS), nDims); in TestHalf2()
[all …]
DUT_blur_validation.java30 private RenderScript RS; field in UT_blur_validation
40 RS.finish(); in cleanup()
46 RS.destroy(); in cleanup()
50 RS = createRenderScript(false); in run()
55 input1D = Allocation.createSized(RS, in run()
56 Element.U8(RS), in run()
60 output1D = Allocation.createTyped(RS, input1D.getType()); in run()
62 Type.Builder typeBuilder = new Type.Builder(RS, Element.U8(RS)); in run()
67 input2D = Allocation.createTyped(RS, ty); in run()
68 output2D = Allocation.createTyped(RS, ty); in run()
[all …]
DUT_foreach_multi.java40 private void initializeGlobals(RenderScript RS, ScriptC_foreach_multi s) { in initializeGlobals() argument
41 Type.Builder type32Builder = new Type.Builder(RS, Element.U32(RS)); in initializeGlobals()
42 Type.Builder type16Builder = new Type.Builder(RS, Element.U16(RS)); in initializeGlobals()
51 Ain0 = Allocation.createTyped(RS, type32Builder.create()); in initializeGlobals()
55 Ain1 = Allocation.createTyped(RS, type32Builder.create()); in initializeGlobals()
59 Ain2 = Allocation.createTyped(RS, type32Builder.create()); in initializeGlobals()
65 Ain3 = Allocation.createTyped(RS, type16Builder.create()); in initializeGlobals()
71 Out0 = Allocation.createTyped(RS, type32Builder.create()); in initializeGlobals()
74 Out1 = Allocation.createTyped(RS, type32Builder.create()); in initializeGlobals()
77 Out2 = Allocation.createTyped(RS, type32Builder.create()); in initializeGlobals()
[all …]
DUT_reduce_backward.java112 private boolean addint1D(RenderScript RS, ScriptC_reduce_backward s) { in addint1D() argument
121 private boolean addint2D(RenderScript RS, ScriptC_reduce_backward s) { in addint2D() argument
125 Type.Builder typeBuilder = new Type.Builder(RS, Element.I32(RS)); in addint2D()
127 Allocation inputAllocation = Allocation.createTyped(RS, typeBuilder.create()); in addint2D()
158 private boolean findMinAndMax(RenderScript RS, ScriptC_reduce_backward s) { in findMinAndMax() argument
175 private boolean fz(RenderScript RS, ScriptC_reduce_backward s) { in fz() argument
192 private boolean fz2(RenderScript RS, ScriptC_reduce_backward s) { in fz2() argument
200 Type.Builder typeBuilder = new Type.Builder(RS, Element.I32(RS)); in fz2()
202 Allocation inputAllocation = Allocation.createTyped(RS, typeBuilder.create()); in fz2()
217 private boolean fz3(RenderScript RS, ScriptC_reduce_backward s) { in fz3() argument
[all …]
DUT_reduce.java287 private boolean addint1D_array(RenderScript RS, ScriptC_reduce s, int seed, int[] size) { in addint1D_array() argument
296 private boolean addint1D(RenderScript RS, ScriptC_reduce s, int seed, int[] size) { in addint1D() argument
305 Allocation inputAllocation = Allocation.createSized(RS, Element.I32(RS), inputArray.length); in addint1D()
324 private boolean addint2D(RenderScript RS, ScriptC_reduce s, int seed, int[] size) { in addint2D() argument
336 Type.Builder typeBuilder = new Type.Builder(RS, Element.I32(RS)); in addint2D()
338 Allocation inputAllocation = Allocation.createTyped(RS, typeBuilder.create()); in addint2D()
357 private boolean addint3D(RenderScript RS, ScriptC_reduce s, int seed, int[] size) { in addint3D() argument
370 Type.Builder typeBuilder = new Type.Builder(RS, Element.I32(RS)); in addint3D()
372 Allocation inputAllocation = Allocation.createTyped(RS, typeBuilder.create()); in addint3D()
393 private boolean patternInterleavedReduce(RenderScript RS, ScriptC_reduce s) { in patternInterleavedReduce() argument
[all …]
DUT_alloc.java38 private void initializeGlobals(RenderScript RS, ScriptC_alloc s) { in initializeGlobals() argument
39 Type.Builder typeBuilder = new Type.Builder(RS, Element.I32(RS)); in initializeGlobals()
48 Allocation A = Allocation.createTyped(RS, T); in initializeGlobals()
52 typeBuilder = new Type.Builder(RS, Element.I32(RS)); in initializeGlobals()
55 mAFaces = Allocation.createTyped(RS, mTFaces); in initializeGlobals()
59 mALOD = Allocation.createTyped(RS, mTLOD); in initializeGlobals()
63 mAFacesLOD = Allocation.createTyped(RS, mTFacesLOD); in initializeGlobals()
DUT_small_struct.java36 private void initializeGlobals(RenderScript RS, ScriptC_small_struct s) { in initializeGlobals() argument
40 Type.Builder builderA = new Type.Builder(RS, ScriptField_small_struct.createElement(RS)); in initializeGlobals()
44 A = Allocation.createTyped(RS, builderA.create()); in initializeGlobals()
47 … Type.Builder builderB = new Type.Builder(RS, ScriptField_struct_of_struct.createElement(RS)); in initializeGlobals()
51 B = Allocation.createTyped(RS, builderB.create()); in initializeGlobals()
DUT_small_struct_2.java36 private void initializeGlobals(RenderScript RS, ScriptC_small_struct_2 s) { in initializeGlobals() argument
40 Type.Builder builderA = new Type.Builder(RS, ScriptField_small_struct_2.createElement(RS)); in initializeGlobals()
44 A = Allocation.createTyped(RS, builderA.create()); in initializeGlobals()
47 … Type.Builder builderB = new Type.Builder(RS, ScriptField_struct_of_struct_2.createElement(RS)); in initializeGlobals()
51 B = Allocation.createTyped(RS, builderB.create()); in initializeGlobals()
/frameworks/rs/cpp/
DRenderScript.cpp28 using android::RSC::RS;
31 bool RS::gInitialized = false;
32 bool RS::usingNative = false;
33 pthread_mutex_t RS::gInitMutex = PTHREAD_MUTEX_INITIALIZER;
34 dispatchTable* RS::dispatch = nullptr;
37 RS::RS() { in RS() function in RS
49 RS::~RS() { in ~RS()
55 RS::dispatch->ContextDeinitToClient(mContext); in ~RS()
60 RS::dispatch->ContextDestroy(mContext); in ~RS()
66 bool RS::init(const char * name, uint32_t flags) { in init()
[all …]
DrsCppStructs.h43 class RS; variable
352 class RS : public android::RSC::LightRefBase<RS> {
355 RS();
356 virtual ~RS();
548 RS* mRS;
551 BaseObj(void *id, sp<RS> rs);
599 Allocation(void *id, sp<RS> rs, sp<const Type> t, uint32_t usage);
846 static sp<Allocation> createTyped(const sp<RS>& rs, const sp<const Type>& type,
859 static sp<Allocation> createTyped(const sp<RS>& rs, const sp<const Type>& type,
869 static sp<Allocation> createTyped(const sp<RS>& rs, const sp<const Type>& type,
[all …]
/frameworks/rs/rsov/tests/RSoVTest/src/com/android/rs/rsov/test/
DUT_global.java30 private RenderScript RS; field in UT_global
34 A = Allocation.createSized(RS, elem, 128); in test()
41 ScriptC_global_int s = new ScriptC_global_int(RS); in testIntTypes()
43 test(Element.I32(RS), () -> { in testIntTypes()
50 test(Element.I32_2(RS), () -> { in testIntTypes()
57 test(Element.I32_4(RS), () -> { in testIntTypes()
68 ScriptC_global_float s = new ScriptC_global_float(RS); in testFloatTypes()
70 test(Element.F32(RS), () -> { in testFloatTypes()
77 test(Element.F32_2(RS), () -> { in testFloatTypes()
84 test(Element.F32_4(RS), () -> { in testFloatTypes()
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_blur_validation.java32 private RenderScript RS; field in UT_blur_validation
42 RS.finish(); in cleanup()
48 RS.destroy(); in cleanup()
52 RS = createRenderScript(false); in run()
57 input1D = Allocation.createSized(RS, in run()
58 Element.U8(RS), in run()
62 output1D = Allocation.createTyped(RS, input1D.getType()); in run()
64 Type.Builder typeBuilder = new Type.Builder(RS, Element.U8(RS)); in run()
69 input2D = Allocation.createTyped(RS, ty); in run()
70 output2D = Allocation.createTyped(RS, ty); in run()
[all …]
DUT_foreach_multi.java42 private void initializeGlobals(RenderScript RS, ScriptC_foreach_multi s) { in initializeGlobals() argument
43 Type.Builder type32Builder = new Type.Builder(RS, Element.U32(RS)); in initializeGlobals()
44 Type.Builder type16Builder = new Type.Builder(RS, Element.U16(RS)); in initializeGlobals()
53 Ain0 = Allocation.createTyped(RS, type32Builder.create()); in initializeGlobals()
57 Ain1 = Allocation.createTyped(RS, type32Builder.create()); in initializeGlobals()
61 Ain2 = Allocation.createTyped(RS, type32Builder.create()); in initializeGlobals()
67 Ain3 = Allocation.createTyped(RS, type16Builder.create()); in initializeGlobals()
73 Out0 = Allocation.createTyped(RS, type32Builder.create()); in initializeGlobals()
76 Out1 = Allocation.createTyped(RS, type32Builder.create()); in initializeGlobals()
79 Out2 = Allocation.createTyped(RS, type32Builder.create()); in initializeGlobals()
[all …]
DUT_reduce_backward.java114 private boolean addint1D(RenderScript RS, ScriptC_reduce_backward s) { in addint1D() argument
123 private boolean addint2D(RenderScript RS, ScriptC_reduce_backward s) { in addint2D() argument
127 Type.Builder typeBuilder = new Type.Builder(RS, Element.I32(RS)); in addint2D()
129 Allocation inputAllocation = Allocation.createTyped(RS, typeBuilder.create()); in addint2D()
160 private boolean findMinAndMax(RenderScript RS, ScriptC_reduce_backward s) { in findMinAndMax() argument
177 private boolean fz(RenderScript RS, ScriptC_reduce_backward s) { in fz() argument
194 private boolean fz2(RenderScript RS, ScriptC_reduce_backward s) { in fz2() argument
202 Type.Builder typeBuilder = new Type.Builder(RS, Element.I32(RS)); in fz2()
204 Allocation inputAllocation = Allocation.createTyped(RS, typeBuilder.create()); in fz2()
219 private boolean fz3(RenderScript RS, ScriptC_reduce_backward s) { in fz3() argument
[all …]
DUT_reduce.java289 private boolean addint1D_array(RenderScript RS, ScriptC_reduce s, int seed, int[] size) { in addint1D_array() argument
298 private boolean addint1D(RenderScript RS, ScriptC_reduce s, int seed, int[] size) { in addint1D() argument
307 Allocation inputAllocation = Allocation.createSized(RS, Element.I32(RS), inputArray.length); in addint1D()
326 private boolean addint2D(RenderScript RS, ScriptC_reduce s, int seed, int[] size) { in addint2D() argument
338 Type.Builder typeBuilder = new Type.Builder(RS, Element.I32(RS)); in addint2D()
340 Allocation inputAllocation = Allocation.createTyped(RS, typeBuilder.create()); in addint2D()
359 private boolean addint3D(RenderScript RS, ScriptC_reduce s, int seed, int[] size) { in addint3D() argument
372 Type.Builder typeBuilder = new Type.Builder(RS, Element.I32(RS)); in addint3D()
374 Allocation inputAllocation = Allocation.createTyped(RS, typeBuilder.create()); in addint3D()
395 private boolean patternInterleavedReduce(RenderScript RS, ScriptC_reduce s) { in patternInterleavedReduce() argument
[all …]
DUT_alloc_supportlib.java40 private void initializeGlobals(RenderScript RS, ScriptC_alloc_supportlib s) { in initializeGlobals() argument
41 Type.Builder typeBuilder = new Type.Builder(RS, Element.I32(RS)); in initializeGlobals()
50 Allocation A = Allocation.createTyped(RS, T); in initializeGlobals()
54 typeBuilder = new Type.Builder(RS, Element.I32(RS)); in initializeGlobals()
57 mAFaces = Allocation.createTyped(RS, mTFaces); in initializeGlobals()
61 mALOD = Allocation.createTyped(RS, mTLOD); in initializeGlobals()
65 mAFacesLOD = Allocation.createTyped(RS, mTFacesLOD); in initializeGlobals()
DUT_alloc.java40 private void initializeGlobals(RenderScript RS, ScriptC_alloc s) { in initializeGlobals() argument
41 Type.Builder typeBuilder = new Type.Builder(RS, Element.I32(RS)); in initializeGlobals()
50 Allocation A = Allocation.createTyped(RS, T); in initializeGlobals()
54 typeBuilder = new Type.Builder(RS, Element.I32(RS)); in initializeGlobals()
57 mAFaces = Allocation.createTyped(RS, mTFaces); in initializeGlobals()
61 mALOD = Allocation.createTyped(RS, mTLOD); in initializeGlobals()
65 mAFacesLOD = Allocation.createTyped(RS, mTFacesLOD); in initializeGlobals()
DUT_small_struct_2.java38 private void initializeGlobals(RenderScript RS, ScriptC_small_struct_2 s) { in initializeGlobals() argument
42 Type.Builder builderA = new Type.Builder(RS, ScriptField_small_struct_2.createElement(RS)); in initializeGlobals()
46 A = Allocation.createTyped(RS, builderA.create()); in initializeGlobals()
49 … Type.Builder builderB = new Type.Builder(RS, ScriptField_struct_of_struct_2.createElement(RS)); in initializeGlobals()
53 B = Allocation.createTyped(RS, builderB.create()); in initializeGlobals()
DUT_small_struct.java38 private void initializeGlobals(RenderScript RS, ScriptC_small_struct s) { in initializeGlobals() argument
42 Type.Builder builderA = new Type.Builder(RS, ScriptField_small_struct.createElement(RS)); in initializeGlobals()
46 A = Allocation.createTyped(RS, builderA.create()); in initializeGlobals()
49 … Type.Builder builderB = new Type.Builder(RS, ScriptField_struct_of_struct.createElement(RS)); in initializeGlobals()
53 B = Allocation.createTyped(RS, builderB.create()); in initializeGlobals()
DUT_check_dims.java38 private void initializeGlobals(RenderScript RS, ScriptC_check_dims s) { in initializeGlobals() argument
39 Type.Builder typeBuilder = new Type.Builder(RS, Element.U8(RS)); in initializeGlobals()
41 mAFailed = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals()
48 typeBuilder = new Type.Builder(RS, Element.I32(RS)); in initializeGlobals()
52 mA = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals()
/frameworks/rs/tests/java_api/RsMinimalTest/src/com/android/rs/minimaltest/
DUT_blur_validation.java30 private RenderScript RS; field in UT_blur_validation
40 RS.finish(); in cleanup()
46 RS.destroy(); in cleanup()
50 RS = createRenderScript(false); in run()
55 input1D = Allocation.createSized(RS, in run()
56 Element.U8(RS), in run()
60 output1D = Allocation.createTyped(RS, input1D.getType()); in run()
62 Type.Builder typeBuilder = new Type.Builder(RS, Element.U8(RS)); in run()
67 input2D = Allocation.createTyped(RS, ty); in run()
68 output2D = Allocation.createTyped(RS, ty); in run()
[all …]
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
DUT_alloc.java31 private void initializeGlobals(RenderScript RS, ScriptC_alloc s) { in initializeGlobals() argument
32 Type.Builder typeBuilder = new Type.Builder(RS, Element.I32(RS)); in initializeGlobals()
40 Allocation A = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals()
44 typeBuilder = new Type.Builder(RS, Element.I32(RS)); in initializeGlobals()
46 Allocation AFaces = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals()
49 Allocation ALOD = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals()
52 Allocation AFacesLOD = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals()
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/
DUT_alloc.java31 private void initializeGlobals(RenderScript RS, ScriptC_alloc s) { in initializeGlobals() argument
32 Type.Builder typeBuilder = new Type.Builder(RS, Element.I32(RS)); in initializeGlobals()
40 Allocation A = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals()
44 typeBuilder = new Type.Builder(RS, Element.I32(RS)); in initializeGlobals()
46 Allocation AFaces = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals()
49 Allocation ALOD = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals()
52 Allocation AFacesLOD = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals()
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/
DUT_alloc.java31 private void initializeGlobals(RenderScript RS, ScriptC_alloc s) { in initializeGlobals() argument
32 Type.Builder typeBuilder = new Type.Builder(RS, Element.I32(RS)); in initializeGlobals()
40 Allocation A = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals()
44 typeBuilder = new Type.Builder(RS, Element.I32(RS)); in initializeGlobals()
46 Allocation AFaces = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals()
49 Allocation ALOD = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals()
52 Allocation AFacesLOD = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals()
/frameworks/rs/tests/java_api/RSUnitTests/supportlibonlysrc/com/android/rs/unittest/
DUT_alloc_supportlib.java38 private void initializeGlobals(RenderScript RS, ScriptC_alloc_supportlib s) { in initializeGlobals() argument
39 Type.Builder typeBuilder = new Type.Builder(RS, Element.I32(RS)); in initializeGlobals()
48 Allocation A = Allocation.createTyped(RS, T); in initializeGlobals()
52 typeBuilder = new Type.Builder(RS, Element.I32(RS)); in initializeGlobals()
55 mAFaces = Allocation.createTyped(RS, mTFaces); in initializeGlobals()
59 mALOD = Allocation.createTyped(RS, mTLOD); in initializeGlobals()
63 mAFacesLOD = Allocation.createTyped(RS, mTFacesLOD); in initializeGlobals()

12345