/frameworks/base/rs/java/android/renderscript/ |
D | Element.java | 315 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 …]
|
D | Sampler.java | 52 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 …]
|
D | ProgramRaster.java | 56 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 …]
|
D | ProgramStore.java | 155 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 …]
|
D | ScriptIntrinsicConvolve5x5.java | 27 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 …]
|
D | ScriptC.java | 38 protected ScriptC(int id, RenderScript rs) { in ScriptC() argument 39 super(id, rs); in ScriptC() 48 protected ScriptC(long id, RenderScript rs) { in ScriptC() argument 49 super(id, rs); in ScriptC() 59 protected ScriptC(RenderScript rs, Resources resources, int resourceID) { in ScriptC() argument 60 super(0, rs); in ScriptC() 61 long id = internalCreate(rs, resources, resourceID); in ScriptC() 73 protected ScriptC(RenderScript rs, String resName, byte[] bitcode32, byte[] bitcode64) { in ScriptC() argument 74 super(0, rs); in ScriptC() 77 id = internalStringCreate(rs, resName, bitcode32); in ScriptC() [all …]
|
D | ScriptIntrinsicConvolve3x3.java | 27 private ScriptIntrinsicConvolve3x3(long id, RenderScript rs) { in ScriptIntrinsicConvolve3x3() argument 28 super(id, rs); in ScriptIntrinsicConvolve3x3() 49 public static ScriptIntrinsicConvolve3x3 create(RenderScript rs, Element e) { in create() argument 51 if (!e.isCompatible(Element.U8(rs)) && in create() 52 !e.isCompatible(Element.U8_2(rs)) && in create() 53 !e.isCompatible(Element.U8_3(rs)) && in create() 54 !e.isCompatible(Element.U8_4(rs)) && in create() 55 !e.isCompatible(Element.F32(rs)) && in create() 56 !e.isCompatible(Element.F32_2(rs)) && in create() 57 !e.isCompatible(Element.F32_3(rs)) && in create() [all …]
|
D | FileA3D.java | 133 static synchronized BaseObj internalCreate(RenderScript rs, IndexEntry entry) { in internalCreate() argument 143 long objectID = rs.nFileA3DGetEntryByIndex(entry.mID, entry.mIndex); in internalCreate() 150 entry.mLoadedObj = new Mesh(objectID, rs); in internalCreate() 161 IndexEntry(RenderScript rs, int index, long id, String name, EntryType type) { in IndexEntry() argument 162 mRS = rs; in IndexEntry() 174 FileA3D(long id, RenderScript rs, InputStream stream) { in FileA3D() argument 175 super(id, rs); in FileA3D() 237 static public FileA3D createFromAsset(RenderScript rs, AssetManager mgr, String path) { in createFromAsset() argument 238 rs.validate(); in createFromAsset() 239 long fileId = rs.nFileA3DCreateFromAsset(mgr, path); in createFromAsset() [all …]
|
/frameworks/rs/support/java/src/androidx/renderscript/ |
D | Element.java | 317 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 …]
|
D | Sampler.java | 65 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 …]
|
D | ScriptIntrinsicConvolve5x5.java | 31 ScriptIntrinsicConvolve5x5(long id, RenderScript rs) { in ScriptIntrinsicConvolve5x5() argument 32 super(id, rs); in ScriptIntrinsicConvolve5x5() 55 public static ScriptIntrinsicConvolve5x5 create(RenderScript rs, Element e) { in create() argument 56 if (!e.isCompatible(Element.U8(rs)) && in create() 57 !e.isCompatible(Element.U8_2(rs)) && in create() 58 !e.isCompatible(Element.U8_3(rs)) && in create() 59 !e.isCompatible(Element.U8_4(rs)) && in create() 60 !e.isCompatible(Element.F32(rs)) && in create() 61 !e.isCompatible(Element.F32_2(rs)) && in create() 62 !e.isCompatible(Element.F32_3(rs)) && in create() [all …]
|
D | ScriptIntrinsicConvolve3x3.java | 31 ScriptIntrinsicConvolve3x3(long id, RenderScript rs) { in ScriptIntrinsicConvolve3x3() argument 32 super(id, rs); in ScriptIntrinsicConvolve3x3() 53 public static ScriptIntrinsicConvolve3x3 create(RenderScript rs, Element e) { in create() argument 55 if (!e.isCompatible(Element.U8(rs)) && in create() 56 !e.isCompatible(Element.U8_2(rs)) && in create() 57 !e.isCompatible(Element.U8_3(rs)) && in create() 58 !e.isCompatible(Element.U8_4(rs)) && in create() 59 !e.isCompatible(Element.F32(rs)) && in create() 60 !e.isCompatible(Element.F32_2(rs)) && in create() 61 !e.isCompatible(Element.F32_3(rs)) && in create() [all …]
|
D | ScriptC.java | 45 protected ScriptC(long id, RenderScript rs) { in ScriptC() argument 46 super(id, rs); in ScriptC() 57 protected ScriptC(RenderScript rs, Resources resources, int resourceID) { in ScriptC() argument 58 super(0, rs); in ScriptC() 59 long id = internalCreate(rs, resources, resourceID); in ScriptC() 74 protected ScriptC(RenderScript rs, String resName, byte[] bitcode32, byte[] bitcode64) { in ScriptC() argument 75 super(0, rs); in ScriptC() 78 id = internalStringCreate(rs, resName, bitcode32); in ScriptC() 80 id = internalStringCreate(rs, resName, bitcode64); in ScriptC() 88 …private static synchronized long internalCreate(RenderScript rs, Resources resources, int resource… in internalCreate() argument [all …]
|
/frameworks/compile/slang/tests/P_reduce_general_inputs/ |
D | reduce_general_inputs.rscript | 3 #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/rs/tests/lldb/cpp/KernelVariables/ |
D | KernelVariables.cpp | 24 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/ |
D | jnikernelvariables.cpp | 31 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 …]
|
/frameworks/compile/slang/tests/P_reduce_general_input/ |
D | reduce_general_input.rscript | 3 #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/compile/slang/tests/F_reduce_general_parse/ |
D | reduce_general_parse.rscript | 3 #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/rs/cpp/ |
D | ScriptIntrinsics.cpp | 35 ScriptIntrinsic::ScriptIntrinsic(sp<RS> rs, int id, sp<const Element> e) in ScriptIntrinsic() argument 36 : Script(nullptr, rs) { in ScriptIntrinsic() 37 mID = createDispatch(rs, RS::dispatch->ScriptIntrinsicCreate(rs->getContext(), id, in ScriptIntrinsic() 46 sp<ScriptIntrinsic3DLUT> ScriptIntrinsic3DLUT::create(const sp<RS>& rs, const sp<const Element>& e)… in create() argument 47 if (e->isCompatible(Element::U8_4(rs)) == false) { in create() 48 rs->throwError(RS_ERROR_INVALID_ELEMENT, "Element not supported for intrinsic"); in create() 51 return new ScriptIntrinsic3DLUT(rs, e); in create() 54 ScriptIntrinsic3DLUT::ScriptIntrinsic3DLUT(sp<RS> rs, sp<const Element> e) in ScriptIntrinsic3DLUT() argument 55 : ScriptIntrinsic(rs, RS_SCRIPT_INTRINSIC_ID_3DLUT, e) { in ScriptIntrinsic3DLUT() 80 sp<ScriptIntrinsicBlend> ScriptIntrinsicBlend::create(const sp<RS>& rs, const sp<const Element>& e)… in create() argument [all …]
|
D | Element.cpp | 74 #define CREATE_USER(N, T) android::RSC::sp<const Element> Element::N(const android::RSC::sp<RS>& rs… 75 if (rs->mElements.N == nullptr) { \ 76 rs->mElements.N = (createUser(rs, RS_TYPE_##T)); \ 78 return rs->mElements.N; \ 102 …REATE_PIXEL(N, T, K) android::RSC::sp<const Element> Element::N(const android::RSC::sp<RS> &rs) { \ 103 if (rs->mElements.N == nullptr) { \ 104 rs->mElements.N = createPixel(rs, RS_TYPE_##T, RS_KIND_##K); \ 106 return rs->mElements.N; \ 117 …ATE_VECTOR(N, T) android::RSC::sp<const Element> Element::N##_2(const android::RSC::sp<RS> &rs) { \ 118 if (rs->mElements.N##_2 == nullptr) { \ [all …]
|
/frameworks/compile/slang/tests/F_reduce_general_bad_function/ |
D | stderr.txt.expect | 1 reduce_general_bad_function.rscript:18:13: error: initializer init0() for '#pragma rs reduce(init0)… 2 reduce_general_bad_function.rscript:22:13: error: initializer init2() for '#pragma rs reduce(init2)… 3 reduce_general_bad_function.rscript:26:13: error: initializer init_special1() for '#pragma rs reduc… 4 reduce_general_bad_function.rscript:30:13: error: initializer init2_special1() for '#pragma rs redu… 5 reduce_general_bad_function.rscript:34:13: error: initializer init2_special0() for '#pragma rs redu… 6 reduce_general_bad_function.rscript:38:13: error: initializer init_noptr() for '#pragma rs reduce(i… 7 …or: duplicate function definition for 'initializer(init_dup)' for '#pragma rs reduce(init_dup)' (r… 8 … not find function definition for 'initializer(init_missing)' for '#pragma rs reduce(init_missing)' 9 reduce_general_bad_function.rscript:54:6: error: initializer init_nonstatic() for '#pragma rs reduc… 10 reduce_general_bad_function.rscript:58:12: error: initializer init_nonvoid() for '#pragma rs reduce… [all …]
|
D | reduce_general_bad_function.rscript | 3 #pragma rs java_package_name(fn) 6 // Also see reduce_general_bad_halter.rs for halter function semantic checks. 7 // Also see reduce_general_bad_accumulator.rs for accumulator data type checks. 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) [all …]
|
/frameworks/rs/tests/cpp_api/cppf16/ |
D | compute.cpp | 11 void testAllocationCreation(const sp<RS>& rs, const sp<const Element>& e, uint32_t nDims) { in testAllocationCreation() argument 12 Type::Builder tb(rs, e); in testAllocationCreation() 20 sp<Allocation> alloc = Allocation::createTyped(rs, t); in testAllocationCreation() 25 sp<RS> rs = new RS(); in main() local 27 if (!rs->init("/system/bin")) { in main() 34 sp<const Element> half = Element::F16(rs); in main() 35 sp<const Element> half2 = Element::F16_2(rs); in main() 36 sp<const Element> half3 = Element::F16_3(rs); in main() 37 sp<const Element> half4 = Element::F16_4(rs); in main() 40 testAllocationCreation(rs, half, nDims); in main() [all …]
|
/frameworks/rs/tests/cpp_api/cppbasic/ |
D | compute.cpp | 11 sp<RS> rs = new RS(); in test_compute() local 12 printf("New RS %p\n", rs.get()); in test_compute() 15 bool r = rs->init("/system/bin"); in test_compute() 18 sp<const Element> e = Element::RGBA_8888(rs); in test_compute() 21 Type::Builder tb(rs, e); in test_compute() 28 sp<Allocation> a1 = Allocation::createSized(rs, e, 1000); in test_compute() 31 sp<Allocation> ain = Allocation::createTyped(rs, t); in test_compute() 32 sp<Allocation> aout = Allocation::createTyped(rs, t); in test_compute() 35 sp<ScriptC_mono> sc = new ScriptC_mono(rs); in test_compute() 43 sp<const Sampler> samp = Sampler::CLAMP_NEAREST(rs); in test_compute() [all …]
|
/frameworks/rs/tests/cpp_api/cppbasic-shared/ |
D | compute.cpp | 11 sp<RS> rs = new RS(); in test_compute() local 12 printf("New RS %p\n", rs.get()); in test_compute() 15 bool r = rs->init("/system/bin"); in test_compute() 18 sp<const Element> e = Element::RGBA_8888(rs); in test_compute() 21 Type::Builder tb(rs, e); in test_compute() 28 sp<Allocation> a1 = Allocation::createSized(rs, e, 1000); in test_compute() 31 sp<Allocation> ain = Allocation::createTyped(rs, t); in test_compute() 32 sp<Allocation> aout = Allocation::createTyped(rs, t); in test_compute() 35 sp<ScriptC_mono> sc = new ScriptC_mono(rs); in test_compute() 43 sp<const Sampler> samp = Sampler::CLAMP_NEAREST(rs); in test_compute() [all …]
|