Home
last modified time | relevance | path

Searched refs:rs (Results 1 – 25 of 1210) sorted by relevance

12345678910>>...49

/frameworks/base/rs/java/android/renderscript/
DElement.java315 public static Element BOOLEAN(RenderScript rs) { in BOOLEAN() argument
316 if (rs.mElement_BOOLEAN == null) { in BOOLEAN()
317 synchronized (rs) { in BOOLEAN()
318 if (rs.mElement_BOOLEAN == null) { in BOOLEAN()
319 rs.mElement_BOOLEAN = createUser(rs, DataType.BOOLEAN); in BOOLEAN()
323 return rs.mElement_BOOLEAN; in BOOLEAN()
333 public static Element U8(RenderScript rs) { in U8() argument
334 if (rs.mElement_U8 == null) { in U8()
335 synchronized (rs) { in U8()
336 if (rs.mElement_U8 == null) { in U8()
[all …]
DSampler.java52 Sampler(long id, RenderScript rs) { in Sampler() argument
53 super(id, rs); in Sampler()
100 public static Sampler CLAMP_NEAREST(RenderScript rs) { in CLAMP_NEAREST() argument
101 if (rs.mSampler_CLAMP_NEAREST == null) { in CLAMP_NEAREST()
102 synchronized (rs) { in CLAMP_NEAREST()
103 if (rs.mSampler_CLAMP_NEAREST == null) { in CLAMP_NEAREST()
104 Builder b = new Builder(rs); in CLAMP_NEAREST()
109 rs.mSampler_CLAMP_NEAREST = b.create(); in CLAMP_NEAREST()
113 return rs.mSampler_CLAMP_NEAREST; in CLAMP_NEAREST()
124 public static Sampler CLAMP_LINEAR(RenderScript rs) { in CLAMP_LINEAR() argument
[all …]
DProgramRaster.java56 ProgramRaster(long id, RenderScript rs) { in ProgramRaster() argument
57 super(id, rs); in ProgramRaster()
85 public static ProgramRaster CULL_BACK(RenderScript rs) { in CULL_BACK() argument
86 if(rs.mProgramRaster_CULL_BACK == null) { in CULL_BACK()
87 ProgramRaster.Builder builder = new ProgramRaster.Builder(rs); in CULL_BACK()
89 rs.mProgramRaster_CULL_BACK = builder.create(); in CULL_BACK()
91 return rs.mProgramRaster_CULL_BACK; in CULL_BACK()
97 public static ProgramRaster CULL_FRONT(RenderScript rs) { in CULL_FRONT() argument
98 if(rs.mProgramRaster_CULL_FRONT == null) { in CULL_FRONT()
99 ProgramRaster.Builder builder = new ProgramRaster.Builder(rs); in CULL_FRONT()
[all …]
DScriptIntrinsicConvolve5x5.java27 private ScriptIntrinsicConvolve5x5(long id, RenderScript rs) { in ScriptIntrinsicConvolve5x5() argument
28 super(id, rs); in ScriptIntrinsicConvolve5x5()
51 public static ScriptIntrinsicConvolve5x5 create(RenderScript rs, Element e) { in create() argument
52 if (!e.isCompatible(Element.U8(rs)) && in create()
53 !e.isCompatible(Element.U8_2(rs)) && in create()
54 !e.isCompatible(Element.U8_3(rs)) && in create()
55 !e.isCompatible(Element.U8_4(rs)) && in create()
56 !e.isCompatible(Element.F32(rs)) && in create()
57 !e.isCompatible(Element.F32_2(rs)) && in create()
58 !e.isCompatible(Element.F32_3(rs)) && in create()
[all …]
DProgramStore.java155 ProgramStore(long id, RenderScript rs) { in ProgramStore() argument
156 super(id, rs); in ProgramStore()
244 public static ProgramStore BLEND_NONE_DEPTH_TEST(RenderScript rs) { in BLEND_NONE_DEPTH_TEST() argument
245 if(rs.mProgramStore_BLEND_NONE_DEPTH_TEST == null) { in BLEND_NONE_DEPTH_TEST()
246 ProgramStore.Builder builder = new ProgramStore.Builder(rs); in BLEND_NONE_DEPTH_TEST()
251 rs.mProgramStore_BLEND_NONE_DEPTH_TEST = builder.create(); in BLEND_NONE_DEPTH_TEST()
253 return rs.mProgramStore_BLEND_NONE_DEPTH_TEST; in BLEND_NONE_DEPTH_TEST()
265 public static ProgramStore BLEND_NONE_DEPTH_NONE(RenderScript rs) { in BLEND_NONE_DEPTH_NONE() argument
266 if(rs.mProgramStore_BLEND_NONE_DEPTH_NO_DEPTH == null) { in BLEND_NONE_DEPTH_NONE()
267 ProgramStore.Builder builder = new ProgramStore.Builder(rs); in BLEND_NONE_DEPTH_NONE()
[all …]
/frameworks/rs/support/java/src/androidx/renderscript/
DElement.java317 public static Element BOOLEAN(RenderScript rs) { in BOOLEAN() argument
318 if(rs.mElement_BOOLEAN == null) { in BOOLEAN()
319 rs.mElement_BOOLEAN = createUser(rs, DataType.BOOLEAN); in BOOLEAN()
321 return rs.mElement_BOOLEAN; in BOOLEAN()
331 public static Element U8(RenderScript rs) { in U8() argument
332 if(rs.mElement_U8 == null) { in U8()
333 rs.mElement_U8 = createUser(rs, DataType.UNSIGNED_8); in U8()
335 return rs.mElement_U8; in U8()
345 public static Element I8(RenderScript rs) { in I8() argument
346 if(rs.mElement_I8 == null) { in I8()
[all …]
DSampler.java65 Sampler(long id, RenderScript rs) { in Sampler() argument
66 super(id, rs); in Sampler()
112 public static Sampler CLAMP_NEAREST(RenderScript rs) { in CLAMP_NEAREST() argument
113 if(rs.mSampler_CLAMP_NEAREST == null) { in CLAMP_NEAREST()
114 Builder b = new Builder(rs); in CLAMP_NEAREST()
119 rs.mSampler_CLAMP_NEAREST = b.create(); in CLAMP_NEAREST()
121 return rs.mSampler_CLAMP_NEAREST; in CLAMP_NEAREST()
132 public static Sampler CLAMP_LINEAR(RenderScript rs) { in CLAMP_LINEAR() argument
133 if(rs.mSampler_CLAMP_LINEAR == null) { in CLAMP_LINEAR()
134 Builder b = new Builder(rs); in CLAMP_LINEAR()
[all …]
/frameworks/compile/slang/tests/F_reduce_general_bad_function/
Dstderr.txt.expect1 …educe_general_bad_function.rs:18:13: error: initializer init0() for '#pragma rs reduce(init0)' (re…
2 …educe_general_bad_function.rs:22:13: error: initializer init2() for '#pragma rs reduce(init2)' (re…
3 …neral_bad_function.rs:26:13: error: initializer init_special1() for '#pragma rs reduce(init_specia…
4 …eral_bad_function.rs:30:13: error: initializer init2_special1() for '#pragma rs reduce(init2_speci…
5 …eral_bad_function.rs:34:13: error: initializer init2_special0() for '#pragma rs reduce(init2_speci…
6 …_general_bad_function.rs:38:13: error: initializer init_noptr() for '#pragma rs reduce(init_noptr)…
7rs:45:12: error: duplicate function definition for 'initializer(init_dup)' for '#pragma rs reduce(…
8 …educe_general_bad_function.rs:50:12: error: could not find function definition for 'initializer(in…
9 …eral_bad_function.rs:54:6: error: initializer init_nonstatic() for '#pragma rs reduce(init_nonstat…
10 …eneral_bad_function.rs:58:12: error: initializer init_nonvoid() for '#pragma rs reduce(init_nonvoi…
[all …]
Dreduce_general_bad_function.rs3 #pragma rs java_package_name(fn)
17 #pragma rs reduce(init0) initializer(init0) accumulator(AccumInt)
21 #pragma rs reduce(init2) initializer(init2) accumulator(AccumInt)
25 #pragma rs reduce(init_special1) initializer(init_special1) accumulator(AccumInt)
29 #pragma rs reduce(init2_special1) initializer(init2_special1) accumulator(AccumInt)
33 #pragma rs reduce(init2_special0) initializer(init2_special0) accumulator(AccumInt)
37 #pragma rs reduce(init_noptr) initializer(init_noptr) accumulator(AccumInt)
41 #pragma rs reduce(init_over) initializer(init_over) accumulator(AccumInt)
45 #pragma rs reduce(init_dup) initializer(init_dup) accumulator(AccumInt)
50 #pragma rs reduce(init_missing) initializer(init_missing) accumulator(AccumInt)
[all …]
/frameworks/rs/tests/java_api/RSTestForward/24.0.3/
DAndroid.mk23 my_rs_unit_tests_path := ../../RSUnitTests/src/com/android/rs/unittest
36 LOCAL_RENDERSCRIPT_CC := $(my_rs_path)/bin/llvm-rs-cc
44 $(my_rs_unit_tests_path)/alloc.rs\
48 $(my_rs_unit_tests_path)/array_alloc.rs\
50 $(my_rs_unit_tests_path)/array_init.rs\
52 $(my_rs_unit_tests_path)/atomic.rs\
54 $(my_rs_unit_tests_path)/bitfield.rs\
56 $(my_rs_unit_tests_path)/bug_char.rs\
58 $(my_rs_unit_tests_path)/check_dims.rs\
60 $(my_rs_unit_tests_path)/clamp.rs\
[all …]
/frameworks/rs/tests/java_api/RSTestForward/25.0.2/
DAndroid.mk23 my_rs_unit_tests_path := ../../RSUnitTests/src/com/android/rs/unittest
36 LOCAL_RENDERSCRIPT_CC := $(my_rs_path)/bin/llvm-rs-cc
44 $(my_rs_unit_tests_path)/alloc.rs\
48 $(my_rs_unit_tests_path)/array_alloc.rs\
50 $(my_rs_unit_tests_path)/array_init.rs\
52 $(my_rs_unit_tests_path)/atomic.rs\
54 $(my_rs_unit_tests_path)/bitfield.rs\
56 $(my_rs_unit_tests_path)/bug_char.rs\
58 $(my_rs_unit_tests_path)/check_dims.rs\
60 $(my_rs_unit_tests_path)/clamp.rs\
[all …]
/frameworks/rs/tests/java_api/RSTestForward/23.0.3/
DAndroid.mk23 my_rs_unit_tests_path := ../../RSUnitTests/src/com/android/rs/unittest
36 LOCAL_RENDERSCRIPT_CC := $(my_rs_path)/bin/llvm-rs-cc
44 $(my_rs_unit_tests_path)/alloc.rs\
48 $(my_rs_unit_tests_path)/array_alloc.rs\
50 $(my_rs_unit_tests_path)/array_init.rs\
52 $(my_rs_unit_tests_path)/atomic.rs\
54 $(my_rs_unit_tests_path)/bitfield.rs\
56 $(my_rs_unit_tests_path)/bug_char.rs\
58 $(my_rs_unit_tests_path)/check_dims.rs\
60 $(my_rs_unit_tests_path)/clamp.rs\
[all …]
/frameworks/rs/tests/java_api/RSTestBackward19/
DAndroid.mk30 my_rs_unit_tests_path := ../RSUnitTests/src/com/android/rs/unittest
35 $(my_rs_unit_tests_path)/alloc.rs\
37 $(my_rs_unit_tests_path)/array_alloc.rs\
39 $(my_rs_unit_tests_path)/array_init.rs\
41 $(my_rs_unit_tests_path)/atomic.rs\
43 $(my_rs_unit_tests_path)/bitfield.rs\
45 $(my_rs_unit_tests_path)/bug_char.rs\
47 $(my_rs_unit_tests_path)/check_dims.rs\
49 $(my_rs_unit_tests_path)/clamp.rs\
51 $(my_rs_unit_tests_path)/clamp_relaxed.rs\
[all …]
/frameworks/rs/tests/java_api/RSTest_CompatLib19/
DAndroid.mk32 LOCAL_RENDERSCRIPT_FLAGS := -rs-package-name=androidx.renderscript
36 my_rs_unit_tests_path := ../RSUnitTests/supportlibsrc_gen/com/android/rs/unittest
41 $(my_rs_unit_tests_path)/alloc.rs\
43 $(my_rs_unit_tests_path)/array_alloc.rs\
45 $(my_rs_unit_tests_path)/array_init.rs\
47 $(my_rs_unit_tests_path)/atomic.rs\
49 $(my_rs_unit_tests_path)/bitfield.rs\
51 $(my_rs_unit_tests_path)/bug_char.rs\
53 $(my_rs_unit_tests_path)/check_dims.rs\
55 $(my_rs_unit_tests_path)/clamp.rs\
[all …]
/frameworks/rs/tests/java_api/RSTestForward/21.1.2/
DAndroid.mk23 my_rs_unit_tests_path := ../../RSUnitTests/src/com/android/rs/unittest
36 LOCAL_RENDERSCRIPT_CC := $(my_rs_path)/bin/llvm-rs-cc
44 $(my_rs_unit_tests_path)/alloc.rs\
46 $(my_rs_unit_tests_path)/array_alloc.rs\
48 $(my_rs_unit_tests_path)/array_init.rs\
50 $(my_rs_unit_tests_path)/atomic.rs\
52 $(my_rs_unit_tests_path)/bitfield.rs\
54 $(my_rs_unit_tests_path)/bug_char.rs\
56 $(my_rs_unit_tests_path)/check_dims.rs\
58 $(my_rs_unit_tests_path)/clamp.rs\
[all …]
/frameworks/rs/tests/java_api/RSTestForward/22.0.1/
DAndroid.mk23 my_rs_unit_tests_path := ../../RSUnitTests/src/com/android/rs/unittest
36 LOCAL_RENDERSCRIPT_CC := $(my_rs_path)/bin/llvm-rs-cc
44 $(my_rs_unit_tests_path)/alloc.rs\
46 $(my_rs_unit_tests_path)/array_alloc.rs\
48 $(my_rs_unit_tests_path)/array_init.rs\
50 $(my_rs_unit_tests_path)/atomic.rs\
52 $(my_rs_unit_tests_path)/bitfield.rs\
54 $(my_rs_unit_tests_path)/bug_char.rs\
56 $(my_rs_unit_tests_path)/check_dims.rs\
58 $(my_rs_unit_tests_path)/clamp.rs\
[all …]
/frameworks/compile/slang/tests/F_reduce_general_bad_halter/
Dstderr.txt.expect1 reduce_general_bad_halter.rs:18:13: error: halter halt_void() for '#pragma rs reduce(halt_void)' (r…
2 reduce_general_bad_halter.rs:22:12: error: halter halt_int() for '#pragma rs reduce(halt_int)' (red…
3 reduce_general_bad_halter.rs:26:13: error: halter halt0() for '#pragma rs reduce(halt0)' (reduce_ge…
4 reduce_general_bad_halter.rs:30:13: error: halter halt2() for '#pragma rs reduce(halt2)' (reduce_ge…
5 …uce_general_bad_halter.rs:34:13: error: halter halt_special() for '#pragma rs reduce(halt_special)…
6 …educe_general_bad_halter.rs:38:13: error: halter hva_halt() for '#pragma rs reduce(halt_vs_accum)'…
7rs:45:12: error: duplicate function definition for 'halter(halt_dup)' for '#pragma rs reduce(halt_…
8 reduce_general_bad_halter.rs:50:12: error: could not find function definition for 'halter(halt_miss…
9 …ce_general_bad_halter.rs:54:6: error: halter halt_nonstatic() for '#pragma rs reduce(halt_nonstati…
10 …educe_general_bad_halter.rs:58:29: error: halter halt_const() for '#pragma rs reduce(halt_const)' …
/frameworks/compile/slang/tests/F_reduce_general_parse/
Dstderr.txt.expect1 reduce_general_parse.rs:5:18: error: missing '(' after 'reduce' for '#pragma rs reduce'
2 reduce_general_parse.rs:6:19: error: missing name after 'reduce(' for '#pragma rs reduce'
3 reduce_general_parse.rs:7:20: error: missing name after 'reduce(' for '#pragma rs reduce'
4 reduce_general_parse.rs:8:19: error: missing name after 'reduce(' for '#pragma rs reduce'
5 reduce_general_parse.rs:9:22: error: missing ')' after 'reduce(foo' for '#pragma rs reduce'
6 reduce_general_parse.rs:10:25: error: missing ')' after 'reduce(foo' for '#pragma rs reduce'
7 reduce_general_parse.rs:11:12: error: missing 'accumulator' for '#pragma rs reduce'
8 reduce_general_parse.rs:12:36: error: missing name after 'initializer(' for '#pragma rs reduce'
9 reduce_general_parse.rs:13:12: error: missing 'accumulator' for '#pragma rs reduce'
10 reduce_general_parse.rs:15:12: error: reduction kernel 'foo' declared multiple times (first one is …
[all …]
Dreduce_general_parse.rs3 #pragma rs java_package_name(all)
5 #pragma rs reduce
6 #pragma rs reduce(
7 #pragma rs reduce (
8 #pragma rs reduce(*
9 #pragma rs reduce(foo
10 #pragma rs reduce (foo
11 #pragma rs reduce(foo )
12 #pragma rs reduce(foo) initializer(
13 #pragma rs reduce(foo) initializer(init)
[all …]
/frameworks/compile/slang/tests/F_reduce_general_bad_accumulator/
Dstderr.txt.expect1 reduce_general_bad_accumulator.rs:44:34: warning: 'const' qualifier on function type 'Fn' (aka 'voi…
2 reduce_general_bad_accumulator.rs:48:29: warning: 'const' qualifier on function type 'Fn' (aka 'voi…
3 …neral_bad_accumulator.rs:14:13: error: accumulator AccumIntA() for '#pragma rs reduce(redIntA)' (r…
4 …eral_bad_accumulator.rs:14:13: error: accumulator AccumIntA() for '#pragma rs reduce(redIntAOut)' …
5 …cumulator.rs:28:13: error: accumulator AccumStructIncomplete() for '#pragma rs reduce(redStructInc…
6 …umulator.rs:28:13: error: accumulator AccumStructIncomplete() for '#pragma rs reduce(redStructInco…
7 …general_bad_accumulator.rs:43:13: error: accumulator AccumFn() for '#pragma rs reduce(redFn)' (red…
8 …_general_bad_accumulator.rs:44:44: error: combiner CombineFn() for '#pragma rs reduce(redFn)' (red…
9 …eneral_bad_accumulator.rs:43:13: error: accumulator AccumFn() for '#pragma rs reduce(redFnOut)' (r…
10 …eneral_bad_accumulator.rs:44:44: error: combiner CombineFn() for '#pragma rs reduce(redFnOut)' (re…
[all …]
/frameworks/compile/slang/tests/F_reduce_general_bad_result/
Dstderr.txt.expect1 reduce_general_bad_result.rs:22:36: error: multidimensional arrays cannot be exported: 'accum'
2 reduce_general_bad_result.rs:32:39: error: multidimensional arrays cannot be exported: 'out'
3 reduce_general_bad_result.rs:36:7: error: unions cannot be exported: 'UnionShortDouble'
4 reduce_general_bad_result.rs:46:7: error: unions cannot be exported: 'UnionLongFloat'
5 reduce_general_bad_result.rs:72:7: error: unions cannot be exported: 'UnionIntFloat'
6 reduce_general_bad_result.rs:84:7: error: unions cannot be exported: 'UnionCharLong'
7 reduce_general_bad_result.rs:113:7: error: bit fields are not able to be exported: 'Bits1.b'
8 reduce_general_bad_result.rs:122:7: error: bit fields are not able to be exported: 'Bits111.e'
9 reduce_general_bad_result.rs:146:7: error: bit fields are not able to be exported: 'Bits2.b'
10 reduce_general_bad_result.rs:157:7: error: bit fields are not able to be exported: 'Bits222.e'
[all …]
/frameworks/compile/slang/tests/P_reduce_general_inputs/
Dreduce_general_inputs.rs3 #pragma rs java_package_name(inputs)
17 #pragma rs reduce(my_half_half_0) accumulator(my_half_half_0_accum) combiner(combiner)
20 #pragma rs reduce(my_half_half_1) accumulator(my_half_half_1_accum) combiner(combiner)
23 #pragma rs reduce(my_half_half2_0) accumulator(my_half_half2_0_accum) combiner(combiner)
26 #pragma rs reduce(my_half_half2_1) accumulator(my_half_half2_1_accum) combiner(combiner)
29 #pragma rs reduce(my_half_half4_0) accumulator(my_half_half4_0_accum) combiner(combiner)
32 #pragma rs reduce(my_half_half4_1) accumulator(my_half_half4_1_accum) combiner(combiner)
35 #pragma rs reduce(my_half_float_0) accumulator(my_half_float_0_accum) combiner(combiner)
38 #pragma rs reduce(my_half_float_1) accumulator(my_half_float_1_accum) combiner(combiner)
41 #pragma rs reduce(my_half_float2_0) accumulator(my_half_float2_0_accum) combiner(combiner)
[all …]
/frameworks/compile/slang/tests/P_reduce_general_input/
Dreduce_general_input.rs3 #pragma rs java_package_name(input)
17 #pragma rs reduce(my_half_0) accumulator(my_half_0_accum) combiner(combiner)
20 #pragma rs reduce(my_half_1) accumulator(my_half_1_accum) combiner(combiner)
23 #pragma rs reduce(my_half_2) accumulator(my_half_2_accum) combiner(combiner)
26 #pragma rs reduce(my_half_3) accumulator(my_half_3_accum) combiner(combiner)
29 #pragma rs reduce(my_half_4) accumulator(my_half_4_accum) combiner(combiner)
32 #pragma rs reduce(my_half_5) accumulator(my_half_5_accum) combiner(combiner)
35 #pragma rs reduce(my_half_6) accumulator(my_half_6_accum) combiner(combiner)
38 #pragma rs reduce(my_half_7) accumulator(my_half_7_accum) combiner(combiner)
41 #pragma rs reduce(my_half_8) accumulator(my_half_8_accum) combiner(combiner)
[all …]
/frameworks/rs/tests/lldb/cpp/KernelVariables/
DKernelVariables.cpp24 sp<RS> rs = new RS(); in main() local
26 rs->init("/data/rscache", RS_INIT_LOW_LATENCY | RS_INIT_WAIT_FOR_ATTACH); in main()
28 auto e = Element::RGBA_8888(rs); in main()
29 Type::Builder tb(rs, e); in main()
34 auto a = Allocation::createTyped(rs, t); in main()
35 auto b = Allocation::createTyped(rs, t); in main()
37 sp<ScriptC_simple> s = new ScriptC_simple(rs); in main()
40 sp<Allocation> int_allocation = Allocation::createSized(rs, Element::I32(rs), 4); in main()
46 Type::Builder typeI32Builder2D(rs, Element::I32(rs)); in main()
50 sp<Allocation> int_allocation2 = Allocation::createTyped(rs, typeI32Builder2D.create()); in main()
[all …]
/frameworks/rs/tests/lldb/jni/KernelVariables/jnikernelvariables/
Djnikernelvariables.cpp31 sp<RS> rs = new RS(); in Java_com_android_rs_jnikernelvariables_MainActivity_nativeRS() local
34 rs->init(path, RS_INIT_LOW_LATENCY | RS_INIT_WAIT_FOR_ATTACH); in Java_com_android_rs_jnikernelvariables_MainActivity_nativeRS()
37 auto e = Element::RGBA_8888(rs); in Java_com_android_rs_jnikernelvariables_MainActivity_nativeRS()
38 Type::Builder tb(rs, e); in Java_com_android_rs_jnikernelvariables_MainActivity_nativeRS()
43 auto a = Allocation::createTyped(rs, t); in Java_com_android_rs_jnikernelvariables_MainActivity_nativeRS()
44 auto b = Allocation::createTyped(rs, t); in Java_com_android_rs_jnikernelvariables_MainActivity_nativeRS()
46 sp<ScriptC_simple> s = new ScriptC_simple(rs); in Java_com_android_rs_jnikernelvariables_MainActivity_nativeRS()
49 sp<Allocation> int_allocation = Allocation::createSized(rs, Element::I32(rs), 4); in Java_com_android_rs_jnikernelvariables_MainActivity_nativeRS()
55 Type::Builder typeI32Builder2D(rs, Element::I32(rs)); in Java_com_android_rs_jnikernelvariables_MainActivity_nativeRS()
59 sp<Allocation> int_allocation2 = Allocation::createTyped(rs, typeI32Builder2D.create()); in Java_com_android_rs_jnikernelvariables_MainActivity_nativeRS()
[all …]

12345678910>>...49