Searched defs:rs (Results 1 - 25 of 30) sorted by relevance

12

/cts/tests/camera/src/android/hardware/camera2/cts/rs/
H A DBitmapUtils.java16 package android.hardware.camera2.cts.rs;
41 * @param rs a {@link RenderScript} context to use.
46 public static int[] calcHistograms(RenderScript rs, Bitmap bmap) { argument
47 ScriptIntrinsicHistogram hist = ScriptIntrinsicHistogram.create(rs, Element.U8_4(rs));
48 Allocation sums = Allocation.createSized(rs, Element.I32_4(rs), COLOR_BIT_DEPTH);
51 Allocation input = Allocation.createFromBitmap(rs, bmap);
H A DRenderScriptSingleton.java17 package android.hardware.camera2.cts.rs;
H A DScriptYuvCrop.java17 package android.hardware.camera2.cts.rs;
25 import android.hardware.camera2.cts.rs.AllocationInfo.ElementInfo;
H A DScriptYuvMeans1d.java17 package android.hardware.camera2.cts.rs;
23 import android.hardware.camera2.cts.rs.AllocationInfo.ElementInfo;
H A DScriptYuvMeans2dTo1d.java17 package android.hardware.camera2.cts.rs;
25 import android.hardware.camera2.cts.rs.AllocationInfo.ElementInfo;
H A DScriptYuvToRgb.java16 package android.hardware.camera2.cts.rs;
22 import android.hardware.camera2.cts.rs.AllocationInfo.ElementInfo;
H A DAllocationCache.java17 package android.hardware.camera2.cts.rs;
53 * @param rs A non-{@code null} RenderScript context.
55 * @throws NullPointerException if rs was null
57 public AllocationCache(RenderScript rs) { argument
58 mRS = checkNotNull("rs", rs);
H A DBlockingInputAllocation.java17 package android.hardware.camera2.cts.rs;
H A DAllocationInfo.java17 package android.hardware.camera2.cts.rs;
90 RenderScript rs = RenderScriptSingleton.getRS();
95 element = Element.YUV(rs);
98 element = Element.RGBA_8888(rs);
H A DRawConverter.java17 package android.hardware.camera2.cts.rs;
163 * @param rs a {@link RenderScript} context to use.
179 public static void convertToSRGB(RenderScript rs, int inputWidth, int inputHeight, argument
213 convertToSRGB(rs, inputWidth, inputHeight, inputStride, cfa, blackLevelPattern, whiteLevel,
223 private static void convertToSRGB(RenderScript rs, int inputWidth, int inputHeight, argument
232 if (argbOutput == null || rs == null || rawImageInput == null) {
281 gainMap = createFloat4Allocation(rs, lsm, lensShadingMap.getColumnCount(),
317 Allocation output = Allocation.createFromBitmap(rs, argbOutput);
323 Type.Builder typeBuilder = new Type.Builder(rs, Element.U16(rs));
369 createFloat4Allocation(RenderScript rs, float[] fArray, int width, int height) argument
[all...]
/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/
H A DScriptC_leak.java19 * The source Renderscript file: leak.rs
32 public ScriptC_leak(RenderScript rs) { argument
33 this(rs,
34 rs.getApplicationContext().getResources(),
35 rs.getApplicationContext().getResources().getIdentifier(
37 rs.getApplicationContext().getPackageName()));
40 public ScriptC_leak(RenderScript rs, Resources resources, int id) { argument
41 super(rs, resources, id);
H A DScriptC_set_target_api_11.java19 * The source Renderscript file: set_target_api_11.rs
32 public ScriptC_set_target_api_11(RenderScript rs) { argument
33 this(rs,
34 rs.getApplicationContext().getResources(),
35 rs.getApplicationContext().getResources().getIdentifier(
37 rs.getApplicationContext().getPackageName()));
40 public ScriptC_set_target_api_11(RenderScript rs, Resources resources, int id) { argument
41 super(rs, resources, id);
H A DScriptC_set_target_api_12.java19 * The source Renderscript file: set_target_api_12.rs
32 public ScriptC_set_target_api_12(RenderScript rs) { argument
33 this(rs,
34 rs.getApplicationContext().getResources(),
35 rs.getApplicationContext().getResources().getIdentifier(
37 rs.getApplicationContext().getPackageName()));
40 public ScriptC_set_target_api_12(RenderScript rs, Resources resources, int id) { argument
41 super(rs, resources, id);
H A DScriptC_set_target_api_13.java19 * The source Renderscript file: set_target_api_13.rs
32 public ScriptC_set_target_api_13(RenderScript rs) { argument
33 this(rs,
34 rs.getApplicationContext().getResources(),
35 rs.getApplicationContext().getResources().getIdentifier(
37 rs.getApplicationContext().getPackageName()));
40 public ScriptC_set_target_api_13(RenderScript rs, Resources resources, int id) { argument
41 super(rs, resources, id);
H A DScriptC_set_target_api_14.java19 * The source Renderscript file: set_target_api_14.rs
32 public ScriptC_set_target_api_14(RenderScript rs) { argument
33 this(rs,
34 rs.getApplicationContext().getResources(),
35 rs.getApplicationContext().getResources().getIdentifier(
37 rs.getApplicationContext().getPackageName()));
40 public ScriptC_set_target_api_14(RenderScript rs, Resources resources, int id) { argument
41 super(rs, resources, id);
H A DScriptC_set_target_api_15.java19 * The source Renderscript file: set_target_api_15.rs
32 public ScriptC_set_target_api_15(RenderScript rs) { argument
33 this(rs,
34 rs.getApplicationContext().getResources(),
35 rs.getApplicationContext().getResources().getIdentifier(
37 rs.getApplicationContext().getPackageName()));
40 public ScriptC_set_target_api_15(RenderScript rs, Resources resources, int id) { argument
41 super(rs, resources, id);
H A DScriptC_set_target_api_16.java19 * The source Renderscript file: set_target_api_16.rs
32 public ScriptC_set_target_api_16(RenderScript rs) { argument
33 this(rs,
34 rs.getApplicationContext().getResources(),
35 rs.getApplicationContext().getResources().getIdentifier(
37 rs.getApplicationContext().getPackageName()));
40 public ScriptC_set_target_api_16(RenderScript rs, Resources resources, int id) { argument
41 super(rs, resources, id);
H A DScriptC_set_target_api_17.java19 * The source Renderscript file: set_target_api_17.rs
32 public ScriptC_set_target_api_17(RenderScript rs) { argument
33 this(rs,
34 rs.getApplicationContext().getResources(),
35 rs.getApplicationContext().getResources().getIdentifier(
37 rs.getApplicationContext().getPackageName()));
40 public ScriptC_set_target_api_17(RenderScript rs, Resources resources, int id) { argument
41 super(rs, resources, id);
H A DScriptC_set_target_api_18.java19 * The source Renderscript file: set_target_api_18.rs
32 public ScriptC_set_target_api_18(RenderScript rs) { argument
33 this(rs,
34 rs.getApplicationContext().getResources(),
35 rs.getApplicationContext().getResources().getIdentifier(
37 rs.getApplicationContext().getPackageName()));
40 public ScriptC_set_target_api_18(RenderScript rs, Resources resources, int id) { argument
41 super(rs, resources, id);
H A DScriptC_set_target_api_19.java19 * The source Renderscript file: set_target_api_19.rs
32 public ScriptC_set_target_api_19(RenderScript rs) { argument
33 this(rs,
34 rs.getApplicationContext().getResources(),
35 rs.getApplicationContext().getResources().getIdentifier(
37 rs.getApplicationContext().getPackageName()));
40 public ScriptC_set_target_api_19(RenderScript rs, Resources resources, int id) { argument
41 super(rs, resources, id);
H A DScriptC_set_target_api_too_high.java19 * The source Renderscript file: set_target_api_16.rs
32 public ScriptC_set_target_api_too_high(RenderScript rs) { argument
33 this(rs,
34 rs.getApplicationContext().getResources(),
35 rs.getApplicationContext().getResources().getIdentifier(
37 rs.getApplicationContext().getPackageName()));
40 public ScriptC_set_target_api_too_high(RenderScript rs, Resources resources, int id) { argument
41 super(rs, resources, id);
/cts/tests/tests/renderscript/src/android/renderscript/cts/
H A DRSBaseCompute.java76 protected Element getElement(RenderScript rs, Element.DataType dataType, int size) { argument
80 element = Element.F64(rs);
82 element = Element.F32(rs);
84 element = Element.F16(rs);
86 element = Element.I64(rs);
88 element = Element.U64(rs);
90 element = Element.I32(rs);
92 element = Element.U32(rs);
94 element = Element.I16(rs);
96 element = Element.U16(rs);
111 createRandomAllocation(RenderScript rs, Element.DataType dataType, int size, long seed, boolean includeExtremes) argument
175 createRandomFloatAllocation(RenderScript rs, Element.DataType dataType, int size, long seed, double minValue, double maxValue) argument
200 createRandomIntegerAllocation(RenderScript rs, Element.DataType dataType, int size, long seed, boolean signed, int numberOfBits) argument
[all...]
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
H A DRefocusFilter.java38 // Script functions in .rs file.
44 * @param rs the Render Script context.
46 public RefocusFilter(RenderScript rs) { argument
47 renderScript = rs;
88 // Extracts the result from .rs file to Java.
123 // filtering result in a buffer {@code g_fuzzy_image} in .rs file.
166 // filtering result to an buffer {@code g_fuzzy_image} in .rs file.
192 // in a subclass) that interface between Java and .rs file.
199 // Sets target layer info in .rs file.
202 // Sets dilation radius in .rs fil
[all...]
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/d1new/
H A DRefocusFilterd1new.java52 public RefocusFilterd1new(RenderScript rs) { argument
53 super(rs);
73 // Extracts the result from .rs file to {@code buffers.outputImage} in Java.
163 // .rs file.
234 // g_accum_map} in .rs file.
264 // Blends {@code g_accum_map} and {@code g_focus_map} in .rs file.
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/f32/
H A DRefocusFilterF32.java55 public RefocusFilterF32(RenderScript rs) { argument
56 super(rs);
76 // Extracts the result from .rs file to {@code buffers.outputImage} in Java.
161 // .rs file.
221 // g_accum_map} in .rs file.
249 // Blends {@code g_accum_map} and {@code g_focus_map} in .rs file.

Completed in 217 milliseconds

12