/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
H A D | UT_fp16.java | 36 private void initializeGlobals(RenderScript RS, ScriptC_fp16 s, Element e, int nDims) { argument 37 Type.Builder typeBuilder = new Type.Builder(RS, e); 50 alloc = Allocation.createTyped(RS, type); 58 private void TestHalf(RenderScript RS, ScriptC_fp16 s, int nDims) { argument 59 initializeGlobals(RS, s, Element.F16(RS), nDims); 65 RS.finish(); 69 initializeGlobals(RS, s, Element.F16(RS), nDims); 74 RS 79 TestHalf2(RenderScript RS, ScriptC_fp16 s, int nDims) argument 100 TestHalf3(RenderScript RS, ScriptC_fp16 s, int nDims) argument 121 TestHalf4(RenderScript RS, ScriptC_fp16 s, int nDims) argument [all...] |
H A D | UT_blur_validation.java | 30 private RenderScript RS; field in class:UT_blur_validation 40 RS.finish(); 46 RS.destroy(); 50 RS = createRenderScript(false); 55 input1D = Allocation.createSized(RS, 56 Element.U8(RS), 60 output1D = Allocation.createTyped(RS, input1D.getType()); 62 Type.Builder typeBuilder = new Type.Builder(RS, Element.U8(RS)); 67 input2D = Allocation.createTyped(RS, t [all...] |
H A D | UT_foreach_multi.java | 40 private void initializeGlobals(RenderScript RS, ScriptC_foreach_multi s) { argument 41 Type.Builder type32Builder = new Type.Builder(RS, Element.U32(RS)); 42 Type.Builder type16Builder = new Type.Builder(RS, Element.U16(RS)); 51 Ain0 = Allocation.createTyped(RS, type32Builder.create()); 55 Ain1 = Allocation.createTyped(RS, type32Builder.create()); 59 Ain2 = Allocation.createTyped(RS, type32Builder.create()); 65 Ain3 = Allocation.createTyped(RS, type16Builder.create()); 71 Out0 = Allocation.createTyped(RS, type32Builde [all...] |
H A D | UT_check_dims.java | 36 private void initializeGlobals(RenderScript RS, ScriptC_check_dims s) { argument 37 Type.Builder typeBuilder = new Type.Builder(RS, Element.U8(RS)); 39 mAFailed = Allocation.createTyped(RS, typeBuilder.create()); 46 typeBuilder = new Type.Builder(RS, Element.I32(RS)); 50 mA = Allocation.createTyped(RS, typeBuilder.create());
|
H A D | UT_small_struct.java | 36 private void initializeGlobals(RenderScript RS, ScriptC_small_struct s) { argument 40 Type.Builder builderA = new Type.Builder(RS, ScriptField_small_struct.createElement(RS)); 44 A = Allocation.createTyped(RS, builderA.create()); 47 Type.Builder builderB = new Type.Builder(RS, ScriptField_struct_of_struct.createElement(RS)); 51 B = Allocation.createTyped(RS, builderB.create());
|
H A D | UT_small_struct_2.java | 36 private void initializeGlobals(RenderScript RS, ScriptC_small_struct_2 s) { argument 40 Type.Builder builderA = new Type.Builder(RS, ScriptField_small_struct_2.createElement(RS)); 44 A = Allocation.createTyped(RS, builderA.create()); 47 Type.Builder builderB = new Type.Builder(RS, ScriptField_struct_of_struct_2.createElement(RS)); 51 B = Allocation.createTyped(RS, builderB.create());
|
H A D | UT_alloc.java | 38 private void initializeGlobals(RenderScript RS, ScriptC_alloc s) { argument 39 Type.Builder typeBuilder = new Type.Builder(RS, Element.I32(RS)); 48 Allocation A = Allocation.createTyped(RS, T); 52 typeBuilder = new Type.Builder(RS, Element.I32(RS)); 55 mAFaces = Allocation.createTyped(RS, mTFaces); 59 mALOD = Allocation.createTyped(RS, mTLOD); 63 mAFacesLOD = Allocation.createTyped(RS, mTFacesLOD);
|
H A D | UT_ctxt_default.java | 34 private void initializeGlobals(RenderScript RS, ScriptC_ctxt_default s) { argument 35 Type.Builder typeBuilder = new Type.Builder(RS, Element.I32(RS)); 41 A = Allocation.createTyped(RS, T); 43 B = Allocation.createTyped(RS, T);
|
H A D | UT_kernel.java | 35 private void initializeGlobals(RenderScript RS, ScriptC_kernel s) { argument 36 Type.Builder typeBuilder = new Type.Builder(RS, Element.I32(RS)); 41 A = Allocation.createTyped(RS, TA); 44 B = Allocation.createTyped(RS, TB);
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
H A D | UT_blur_validation.java | 32 private RenderScript RS; field in class:UT_blur_validation 42 RS.finish(); 48 RS.destroy(); 52 RS = createRenderScript(false); 57 input1D = Allocation.createSized(RS, 58 Element.U8(RS), 62 output1D = Allocation.createTyped(RS, input1D.getType()); 64 Type.Builder typeBuilder = new Type.Builder(RS, Element.U8(RS)); 69 input2D = Allocation.createTyped(RS, t [all...] |
H A D | UT_foreach_multi.java | 42 private void initializeGlobals(RenderScript RS, ScriptC_foreach_multi s) { argument 43 Type.Builder type32Builder = new Type.Builder(RS, Element.U32(RS)); 44 Type.Builder type16Builder = new Type.Builder(RS, Element.U16(RS)); 53 Ain0 = Allocation.createTyped(RS, type32Builder.create()); 57 Ain1 = Allocation.createTyped(RS, type32Builder.create()); 61 Ain2 = Allocation.createTyped(RS, type32Builder.create()); 67 Ain3 = Allocation.createTyped(RS, type16Builder.create()); 73 Out0 = Allocation.createTyped(RS, type32Builde [all...] |
H A D | UT_small_struct.java | 38 private void initializeGlobals(RenderScript RS, ScriptC_small_struct s) { argument 42 Type.Builder builderA = new Type.Builder(RS, ScriptField_small_struct.createElement(RS)); 46 A = Allocation.createTyped(RS, builderA.create()); 49 Type.Builder builderB = new Type.Builder(RS, ScriptField_struct_of_struct.createElement(RS)); 53 B = Allocation.createTyped(RS, builderB.create());
|
H A D | UT_small_struct_2.java | 38 private void initializeGlobals(RenderScript RS, ScriptC_small_struct_2 s) { argument 42 Type.Builder builderA = new Type.Builder(RS, ScriptField_small_struct_2.createElement(RS)); 46 A = Allocation.createTyped(RS, builderA.create()); 49 Type.Builder builderB = new Type.Builder(RS, ScriptField_struct_of_struct_2.createElement(RS)); 53 B = Allocation.createTyped(RS, builderB.create());
|
H A D | UT_check_dims.java | 38 private void initializeGlobals(RenderScript RS, ScriptC_check_dims s) { argument 39 Type.Builder typeBuilder = new Type.Builder(RS, Element.U8(RS)); 41 mAFailed = Allocation.createTyped(RS, typeBuilder.create()); 48 typeBuilder = new Type.Builder(RS, Element.I32(RS)); 52 mA = Allocation.createTyped(RS, typeBuilder.create());
|
H A D | UT_alloc.java | 40 private void initializeGlobals(RenderScript RS, ScriptC_alloc s) { argument 41 Type.Builder typeBuilder = new Type.Builder(RS, Element.I32(RS)); 50 Allocation A = Allocation.createTyped(RS, T); 54 typeBuilder = new Type.Builder(RS, Element.I32(RS)); 57 mAFaces = Allocation.createTyped(RS, mTFaces); 61 mALOD = Allocation.createTyped(RS, mTLOD); 65 mAFacesLOD = Allocation.createTyped(RS, mTFacesLOD);
|
H A D | UT_alloc_supportlib.java | 40 private void initializeGlobals(RenderScript RS, ScriptC_alloc_supportlib s) { argument 41 Type.Builder typeBuilder = new Type.Builder(RS, Element.I32(RS)); 50 Allocation A = Allocation.createTyped(RS, T); 54 typeBuilder = new Type.Builder(RS, Element.I32(RS)); 57 mAFaces = Allocation.createTyped(RS, mTFaces); 61 mALOD = Allocation.createTyped(RS, mTLOD); 65 mAFacesLOD = Allocation.createTyped(RS, mTFacesLOD);
|
/frameworks/rs/rsov/tests/RSoVTest/src/com/android/rs/rsov/test/ |
H A D | UT_global.java | 30 private RenderScript RS; field in class:UT_global 34 A = Allocation.createSized(RS, elem, 128); 41 ScriptC_global_int s = new ScriptC_global_int(RS); 43 test(Element.I32(RS), () -> { 50 test(Element.I32_2(RS), () -> { 57 test(Element.I32_4(RS), () -> { 68 ScriptC_global_float s = new ScriptC_global_float(RS); 70 test(Element.F32(RS), () -> { 77 test(Element.F32_2(RS), () -> { 84 test(Element.F32_4(RS), () [all...] |
/frameworks/rs/cpp/ |
H A D | RenderScript.cpp | 28 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() { function in class:RS 49 RS::~RS() { 55 RS [all...] |
H A D | ScriptC.cpp | 22 ScriptC::ScriptC(sp<RS> rs, 27 mID = RS::dispatch->ScriptCCreate(rs->getContext(), cachedName, cachedNameLength,
|
H A D | Script.cpp | 25 tryDispatch(mRS, RS::dispatch->ScriptInvokeV(mRS->getContext(), getID(), slot, v, len)); 35 tryDispatch(mRS, RS::dispatch->ScriptForEach(mRS->getContext(), getID(), slot, in_id, out_id, usr, usrLen, nullptr, 0)); 38 Script::Script(void *id, sp<RS> rs) : BaseObj(id, rs) { 43 tryDispatch(mRS, RS::dispatch->ScriptBindAllocation(mRS->getContext(), getID(), BaseObj::getObjID(va), slot)); 48 tryDispatch(mRS, RS::dispatch->ScriptSetVarObj(mRS->getContext(), getID(), index, (o == nullptr) ? 0 : o->getID())); 52 tryDispatch(mRS, RS::dispatch->ScriptSetVarV(mRS->getContext(), getID(), index, v, len)); 55 void Script::FieldBase::init(const sp<RS>& rs, uint32_t dimx, uint32_t usages) {
|
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
H A D | UT_alloc.java | 31 private void initializeGlobals(RenderScript RS, ScriptC_alloc s) { argument 32 Type.Builder typeBuilder = new Type.Builder(RS, Element.I32(RS)); 40 Allocation A = Allocation.createTyped(RS, typeBuilder.create()); 44 typeBuilder = new Type.Builder(RS, Element.I32(RS)); 46 Allocation AFaces = Allocation.createTyped(RS, typeBuilder.create()); 49 Allocation ALOD = Allocation.createTyped(RS, typeBuilder.create()); 52 Allocation AFacesLOD = Allocation.createTyped(RS, typeBuilder.create());
|
H A D | UT_kernel.java | 34 private void initializeGlobals(RenderScript RS, ScriptC_kernel s) { argument 35 Type.Builder typeBuilder = new Type.Builder(RS, Element.I32(RS)); 39 A = Allocation.createTyped(RS, typeBuilder.create()); 41 B = Allocation.createTyped(RS, typeBuilder.create());
|
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/ |
H A D | UT_alloc.java | 31 private void initializeGlobals(RenderScript RS, ScriptC_alloc s) { argument 32 Type.Builder typeBuilder = new Type.Builder(RS, Element.I32(RS)); 40 Allocation A = Allocation.createTyped(RS, typeBuilder.create()); 44 typeBuilder = new Type.Builder(RS, Element.I32(RS)); 46 Allocation AFaces = Allocation.createTyped(RS, typeBuilder.create()); 49 Allocation ALOD = Allocation.createTyped(RS, typeBuilder.create()); 52 Allocation AFacesLOD = Allocation.createTyped(RS, typeBuilder.create());
|
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/ |
H A D | UT_alloc.java | 31 private void initializeGlobals(RenderScript RS, ScriptC_alloc s) { argument 32 Type.Builder typeBuilder = new Type.Builder(RS, Element.I32(RS)); 40 Allocation A = Allocation.createTyped(RS, typeBuilder.create()); 44 typeBuilder = new Type.Builder(RS, Element.I32(RS)); 46 Allocation AFaces = Allocation.createTyped(RS, typeBuilder.create()); 49 Allocation ALOD = Allocation.createTyped(RS, typeBuilder.create()); 52 Allocation AFacesLOD = Allocation.createTyped(RS, typeBuilder.create());
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibonlysrc/com/android/rs/unittest/ |
H A D | UT_alloc_supportlib.java | 38 private void initializeGlobals(RenderScript RS, ScriptC_alloc_supportlib s) { argument 39 Type.Builder typeBuilder = new Type.Builder(RS, Element.I32(RS)); 48 Allocation A = Allocation.createTyped(RS, T); 52 typeBuilder = new Type.Builder(RS, Element.I32(RS)); 55 mAFaces = Allocation.createTyped(RS, mTFaces); 59 mALOD = Allocation.createTyped(RS, mTLOD); 63 mAFacesLOD = Allocation.createTyped(RS, mTFacesLOD);
|