Home
last modified time | relevance | path

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

12345678910>>...17

/cts/tests/tests/rscpp/librscpptest/
Drs_jni_allocation.cpp34 static void createTypedHelper (const sp<RS> &rs, sp<const Element> e) { in createTypedHelper() argument
35 Type::Builder typeBuilder(rs, e); in createTypedHelper()
48 Allocation::createTyped(rs, typeBuilder.create()); in createTypedHelper()
61 sp<RS> rs = new RS(); in Java_android_cts_rscpp_RSAllocationTest_typedTest() local
62 rs->init(path); in Java_android_cts_rscpp_RSAllocationTest_typedTest()
65 createTypedHelper(rs, Element::A_8(rs)); in Java_android_cts_rscpp_RSAllocationTest_typedTest()
66 createTypedHelper(rs, Element::RGBA_4444(rs)); in Java_android_cts_rscpp_RSAllocationTest_typedTest()
67 createTypedHelper(rs, Element::RGBA_5551(rs)); in Java_android_cts_rscpp_RSAllocationTest_typedTest()
68 createTypedHelper(rs, Element::RGB_565(rs)); in Java_android_cts_rscpp_RSAllocationTest_typedTest()
69 createTypedHelper(rs, Element::RGB_888(rs)); in Java_android_cts_rscpp_RSAllocationTest_typedTest()
[all …]
Drs_jni.cpp53 sp<const Element> makeElement(const sp<RS> &rs, RsDataType dt, int vecSize) { in makeElement() argument
55 return Element::createVector(rs, dt, vecSize); in makeElement()
58 return Element::U8(rs); in makeElement()
60 return Element::F32(rs); in makeElement()
72 sp<RS> rs = new RS(); in Java_android_cts_rscpp_RSInitTest_initTest() local
73 r &= rs->init(path); in Java_android_cts_rscpp_RSInitTest_initTest()
93 sp<RS> rs = new RS(); in Java_android_cts_rscpp_RSBlurTest_blurTest() local
94 rs->init(path); in Java_android_cts_rscpp_RSBlurTest_blurTest()
98 e = Element::A_8(rs); in Java_android_cts_rscpp_RSBlurTest_blurTest()
100 e = Element::RGBA_8888(rs); in Java_android_cts_rscpp_RSBlurTest_blurTest()
[all …]
DAndroid.mk45 LOCAL_C_INCLUDES += frameworks/rs/cpp
46 LOCAL_C_INCLUDES += frameworks/rs
/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/
DScriptC_set_target_api_11.java32 public ScriptC_set_target_api_11(RenderScript rs) { in ScriptC_set_target_api_11() argument
33 this(rs, in ScriptC_set_target_api_11()
34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_11()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_11()
37 rs.getApplicationContext().getPackageName())); in ScriptC_set_target_api_11()
40 public ScriptC_set_target_api_11(RenderScript rs, Resources resources, int id) { in ScriptC_set_target_api_11() argument
41 super(rs, resources, id); in ScriptC_set_target_api_11()
DScriptC_set_target_api_12.java32 public ScriptC_set_target_api_12(RenderScript rs) { in ScriptC_set_target_api_12() argument
33 this(rs, in ScriptC_set_target_api_12()
34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_12()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_12()
37 rs.getApplicationContext().getPackageName())); in ScriptC_set_target_api_12()
40 public ScriptC_set_target_api_12(RenderScript rs, Resources resources, int id) { in ScriptC_set_target_api_12() argument
41 super(rs, resources, id); in ScriptC_set_target_api_12()
DScriptC_set_target_api_13.java32 public ScriptC_set_target_api_13(RenderScript rs) { in ScriptC_set_target_api_13() argument
33 this(rs, in ScriptC_set_target_api_13()
34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_13()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_13()
37 rs.getApplicationContext().getPackageName())); in ScriptC_set_target_api_13()
40 public ScriptC_set_target_api_13(RenderScript rs, Resources resources, int id) { in ScriptC_set_target_api_13() argument
41 super(rs, resources, id); in ScriptC_set_target_api_13()
DScriptC_set_target_api_16.java32 public ScriptC_set_target_api_16(RenderScript rs) { in ScriptC_set_target_api_16() argument
33 this(rs, in ScriptC_set_target_api_16()
34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_16()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_16()
37 rs.getApplicationContext().getPackageName())); in ScriptC_set_target_api_16()
40 public ScriptC_set_target_api_16(RenderScript rs, Resources resources, int id) { in ScriptC_set_target_api_16() argument
41 super(rs, resources, id); in ScriptC_set_target_api_16()
DScriptC_set_target_api_17.java32 public ScriptC_set_target_api_17(RenderScript rs) { in ScriptC_set_target_api_17() argument
33 this(rs, in ScriptC_set_target_api_17()
34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_17()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_17()
37 rs.getApplicationContext().getPackageName())); in ScriptC_set_target_api_17()
40 public ScriptC_set_target_api_17(RenderScript rs, Resources resources, int id) { in ScriptC_set_target_api_17() argument
41 super(rs, resources, id); in ScriptC_set_target_api_17()
DScriptC_set_target_api_18.java32 public ScriptC_set_target_api_18(RenderScript rs) { in ScriptC_set_target_api_18() argument
33 this(rs, in ScriptC_set_target_api_18()
34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_18()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_18()
37 rs.getApplicationContext().getPackageName())); in ScriptC_set_target_api_18()
40 public ScriptC_set_target_api_18(RenderScript rs, Resources resources, int id) { in ScriptC_set_target_api_18() argument
41 super(rs, resources, id); in ScriptC_set_target_api_18()
DScriptC_set_target_api_19.java32 public ScriptC_set_target_api_19(RenderScript rs) { in ScriptC_set_target_api_19() argument
33 this(rs, in ScriptC_set_target_api_19()
34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_19()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_19()
37 rs.getApplicationContext().getPackageName())); in ScriptC_set_target_api_19()
40 public ScriptC_set_target_api_19(RenderScript rs, Resources resources, int id) { in ScriptC_set_target_api_19() argument
41 super(rs, resources, id); in ScriptC_set_target_api_19()
DScriptC_set_target_api_too_high.java32 public ScriptC_set_target_api_too_high(RenderScript rs) { in ScriptC_set_target_api_too_high() argument
33 this(rs, in ScriptC_set_target_api_too_high()
34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_too_high()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_too_high()
37 rs.getApplicationContext().getPackageName())); in ScriptC_set_target_api_too_high()
40 public ScriptC_set_target_api_too_high(RenderScript rs, Resources resources, int id) { in ScriptC_set_target_api_too_high() argument
41 super(rs, resources, id); in ScriptC_set_target_api_too_high()
DScriptC_set_target_api_14.java32 public ScriptC_set_target_api_14(RenderScript rs) { in ScriptC_set_target_api_14() argument
33 this(rs, in ScriptC_set_target_api_14()
34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_14()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_14()
37 rs.getApplicationContext().getPackageName())); in ScriptC_set_target_api_14()
40 public ScriptC_set_target_api_14(RenderScript rs, Resources resources, int id) { in ScriptC_set_target_api_14() argument
41 super(rs, resources, id); in ScriptC_set_target_api_14()
DScriptC_set_target_api_15.java32 public ScriptC_set_target_api_15(RenderScript rs) { in ScriptC_set_target_api_15() argument
33 this(rs, in ScriptC_set_target_api_15()
34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_15()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_15()
37 rs.getApplicationContext().getPackageName())); in ScriptC_set_target_api_15()
40 public ScriptC_set_target_api_15(RenderScript rs, Resources resources, int id) { in ScriptC_set_target_api_15() argument
41 super(rs, resources, id); in ScriptC_set_target_api_15()
DScriptC_leak.java32 public ScriptC_leak(RenderScript rs) { in ScriptC_leak() argument
33 this(rs, in ScriptC_leak()
34 rs.getApplicationContext().getResources(), in ScriptC_leak()
35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_leak()
37 rs.getApplicationContext().getPackageName())); in ScriptC_leak()
40 public ScriptC_leak(RenderScript rs, Resources resources, int id) { in ScriptC_leak() argument
41 super(rs, resources, id); in ScriptC_leak()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DDebugContext.java184 (RenderScript rs)-> new Type.Builder(rs, Element.I8(rs)), in testDebugContextRsAllocationCopy1D_Byte_Normal()
227 (RenderScript rs)-> new Type.Builder(rs, Element.I16(rs)), in testDebugContextRsAllocationCopy2D_Short_Normal()
281 (RenderScript rs)-> new Type.Builder(rs, Element.I8(rs)), in testDebugContextRsAllocationCopy1D_Byte_BadSrcLOD()
305 (RenderScript rs)-> new Type.Builder(rs, Element.I8(rs)), in testDebugContextRsAllocationCopy1D_Byte_BadDstLOD()
330 (RenderScript rs)-> new Type.Builder(rs, Element.I8(rs)), in testDebugContextRsAllocationCopy1D_Byte_BadCount()
353 (RenderScript rs)-> new Type.Builder(rs, Element.I8(rs)), in testDebugContextRsAllocationCopy1D_Byte_BadSrcOffset()
377 (RenderScript rs)-> new Type.Builder(rs, Element.I8(rs)), in testDebugContextRsAllocationCopy1D_Byte_BadDstOffset()
402 (RenderScript rs)-> new Type.Builder(rs, Element.I16(rs)), in testDebugContextRsAllocationCopy2D_Short_BadYCount()
DRSBaseCompute.java76 protected Element getElement(RenderScript rs, Element.DataType dataType, int size) { in getElement() argument
80 element = Element.F64(rs); in getElement()
82 element = Element.F32(rs); in getElement()
84 element = Element.F16(rs); in getElement()
86 element = Element.I64(rs); in getElement()
88 element = Element.U64(rs); in getElement()
90 element = Element.I32(rs); in getElement()
92 element = Element.U32(rs); in getElement()
94 element = Element.I16(rs); in getElement()
96 element = Element.U16(rs); in getElement()
[all …]
DDoubleTest.java27 RenderScript rs = RenderScript.create(getContext()); in testDoubleGlobal() local
28 ScriptC_doubleglobal dc = new ScriptC_doubleglobal(rs); in testDoubleGlobal()
31 Allocation out = Allocation.createSized(rs, Element.F32(rs), big); in testDoubleGlobal()
Dreduce.rscript36 #pragma rs reduce(addint) \
45 #pragma rs reduce(findMinAndMax) \
98 #pragma rs reduce(findMinAndMaxHalf) \
149 #pragma rs reduce(findMinAndMaxHalfIntoArray) \
171 #pragma rs reduce(findMinAndMaxHalf2) \
233 #pragma rs reduce(findMinMat) \
266 #pragma rs reduce(findMinAndMaxMat) \
320 #pragma rs reduce(fz) \
337 #pragma rs reduce(fz2) \
359 #pragma rs reduce(fz3) \
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DBitmapUtils.java16 package android.hardware.camera2.cts.rs;
41 public static int[] calcHistograms(RenderScript rs, Bitmap bmap) { in calcHistograms() argument
42 ScriptIntrinsicHistogram hist = ScriptIntrinsicHistogram.create(rs, Element.U8_4(rs)); in calcHistograms()
43 Allocation sums = Allocation.createSized(rs, Element.I32_4(rs), COLOR_BIT_DEPTH); in calcHistograms()
46 Allocation input = Allocation.createFromBitmap(rs, bmap); in calcHistograms()
DRawConverter.java17 package android.hardware.camera2.cts.rs;
279 public static void convertToSRGB(RenderScript rs, int inputWidth, int inputHeight, in convertToSRGB() argument
298 convertToSRGB(rs, inputWidth, inputHeight, inputStride, cfa, blackLevelPattern, in convertToSRGB()
308 private static void convertToSRGB(RenderScript rs, int inputWidth, int inputHeight, in convertToSRGB() argument
314 if (argbOutput == null || rs == null || rawImageInput == null) { in convertToSRGB()
354 gainMap = createFloat4Allocation(rs, lsm, lensShadingMap.getColumnCount(), in convertToSRGB()
424 Allocation output = Allocation.createFromBitmap(rs, argbOutput); in convertToSRGB()
427 Type.Builder typeBuilder = new Type.Builder(rs, Element.U16(rs)); in convertToSRGB()
431 Allocation input = Allocation.createTyped(rs, inputType); in convertToSRGB()
435 ScriptC_raw_converter converterKernel = new ScriptC_raw_converter(rs); in convertToSRGB()
[all …]
DScriptYuvMeans1d.java17 package android.hardware.camera2.cts.rs;
23 import android.hardware.camera2.cts.rs.AllocationInfo.ElementInfo;
DScriptYuvToRgb.java16 package android.hardware.camera2.cts.rs;
22 import android.hardware.camera2.cts.rs.AllocationInfo.ElementInfo;
DAllocationInfo.java17 package android.hardware.camera2.cts.rs;
90 RenderScript rs = RenderScriptSingleton.getRS(); in newInstance() local
95 element = Element.YUV(rs); in newInstance()
98 element = Element.RGBA_8888(rs); in newInstance()
/cts/apps/CtsVerifier/jni/megaaudio/recorder/
DAppCallbackAudioSink.cpp25 jint rs = env->GetJavaVM(&mJVM); in AppCallbackAudioSink() local
37 int rs = mJVM->AttachCurrentThread(&env, NULL); in init() local
57 int rs = mJVM->AttachCurrentThread(&env, NULL); in stop() local
76 int rs = mJVM->AttachCurrentThread(&env, NULL); in push() local
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
DRefocusTest.java60 RenderScript rs = RenderScript.create(ctx); in refocus() local
67 RsTaskParams rsTaskParam = new RsTaskParams(rs, current_depth_options); in refocus()
69 RenderScriptTask renderScriptTask = new RenderScriptTask(rs, impl); in refocus()
84 rs.destroy(); in refocus()

12345678910>>...17