Home
last modified time | relevance | path

Searched refs:Type (Results 1 – 25 of 76) sorted by relevance

1234

/cts/tests/tests/renderscript/src/android/renderscript/cts/
DTypeTest.java20 import android.renderscript.Type;
24 void testBuilderSizes(Type.Builder b, int min, int max) { in testBuilderSizes()
34 Type.Builder b = new Type.Builder(mRS, e); in testTypeBuilderHelper()
85 Type.Builder b = new Type.Builder(mRS, Element.F32(mRS)); in testGetCount()
93 Type t = b.create(); in testGetCount()
102 Type t = b.setX(8).setY(1).create(); in testGetCount()
127 Type.Builder b = new Type.Builder(mRS, Element.F32(mRS)); in testGetElement()
133 Type.Builder b = new Type.Builder(mRS, Element.F32(mRS)); in testGetX()
139 Type.Builder b = new Type.Builder(mRS, Element.F32(mRS)); in testGetY()
141 Type t = b.create(); in testGetY()
[all …]
DVoidPtr.java22 import android.renderscript.Type;
31 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32(mRS)); in setupVoidPtr()
32 Type t = typeBuilder.setX(1).create(); in setupVoidPtr()
66 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32(mRS)); in testVoidOutInt()
67 Type t = typeBuilder.setX(10).setY(15).create(); in testVoidOutInt()
94 Type.Builder typeBuilder = new Type.Builder(mRS, Element.U8(mRS)); in testVoidOutChar()
95 Type t = typeBuilder.setX(10).setY(15).create(); in testVoidOutChar()
123 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32(mRS)); in testVoidInInt()
124 Type t = typeBuilder.setX(10).setY(15).create(); in testVoidInInt()
154 Type.Builder typeBuilder = new Type.Builder(mRS, Element.U8(mRS)); in testVoidInChar()
[all …]
DKernelTest.java49 import android.renderscript.Type;
59 Type t = new Type.Builder(mRS, Element.I8(mRS)).setX(x).create(); in testForEach()
66 t = new Type.Builder(mRS, Element.U8(mRS)).setX(x).create(); in testForEach()
80 t = new Type.Builder(mRS, Element.I8_2(mRS)).setX(x).create(); in testForEach()
82 t = new Type.Builder(mRS, Element.U8_2(mRS)).setX(x).create(); in testForEach()
96 t = new Type.Builder(mRS, Element.I8_3(mRS)).setX(x).create(); in testForEach()
98 t = new Type.Builder(mRS, Element.U8_3(mRS)).setX(x).create(); in testForEach()
112 t = new Type.Builder(mRS, Element.I8_4(mRS)).setX(x).create(); in testForEach()
114 t = new Type.Builder(mRS, Element.U8_4(mRS)).setX(x).create(); in testForEach()
128 t = new Type.Builder(mRS, Element.I16(mRS)).setX(x).create(); in testForEach()
[all …]
DForEachTest.java49 import android.renderscript.Type;
59 Type t = new Type.Builder(mRS, Element.I8(mRS)).setX(x).create(); in testForEach()
66 t = new Type.Builder(mRS, Element.U8(mRS)).setX(x).create(); in testForEach()
80 t = new Type.Builder(mRS, Element.I8_2(mRS)).setX(x).create(); in testForEach()
82 t = new Type.Builder(mRS, Element.U8_2(mRS)).setX(x).create(); in testForEach()
96 t = new Type.Builder(mRS, Element.I8_3(mRS)).setX(x).create(); in testForEach()
98 t = new Type.Builder(mRS, Element.U8_3(mRS)).setX(x).create(); in testForEach()
112 t = new Type.Builder(mRS, Element.I8_4(mRS)).setX(x).create(); in testForEach()
114 t = new Type.Builder(mRS, Element.U8_4(mRS)).setX(x).create(); in testForEach()
128 t = new Type.Builder(mRS, Element.I16(mRS)).setX(x).create(); in testForEach()
[all …]
DAllocationCopyPaddedTest.java21 import android.renderscript.Type;
34 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I8_3(mRS)); in test_AllocationPadded_Byte3_1D()
63 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I8_3(mRS)); in test_AllocationPadded_Byte3_2D()
93 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I8_3(mRS)); in test_AllocationPadded_Byte3_3D()
124 Type.Builder typeBuilder = new Type.Builder(mRS, element); in test_AllocationPadded_Short3_1D_Helper()
161 Type.Builder typeBuilder = new Type.Builder(mRS, element); in test_AllocationPadded_Short3_2D_Helper()
199 Type.Builder typeBuilder = new Type.Builder(mRS, element); in test_AllocationPadded_Short3_3D_Helper()
235 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32_3(mRS)); in test_AllocationPadded_Int3_1D()
267 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32_3(mRS)); in test_AllocationPadded_Int3_2D()
300 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32_3(mRS)); in test_AllocationPadded_Int3_3D()
[all …]
DVLoadTest.java99 private void testSetup(Type t) { in testSetup()
211 testSetup(Type.createX(mRS, Element.I8(mRS), w)); in testVload_char()
219 testSetup(Type.createX(mRS, Element.U8(mRS), w)); in testVload_uchar()
227 testSetup(Type.createX(mRS, Element.I8(mRS), w)); in testVload_char_relaxed()
235 testSetup(Type.createX(mRS, Element.U8(mRS), w)); in testVload_uchar_relaxed()
243 testSetup(Type.createX(mRS, Element.I16(mRS), w)); in testVload_short()
251 testSetup(Type.createX(mRS, Element.U16(mRS), w)); in testVload_ushort()
259 testSetup(Type.createX(mRS, Element.I16(mRS), w)); in testVload_short_relaxed()
267 testSetup(Type.createX(mRS, Element.U16(mRS), w)); in testVload_ushort_relaxed()
275 testSetup(Type.createX(mRS, Element.I32(mRS), w)); in testVload_int()
[all …]
DAllocationCopyToTest.java21 import android.renderscript.Type;
44 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I8(mRS)); in test_Allocationcopy1DRangeTo_Byte()
81 Type.Builder typeBuilder = new Type.Builder(mRS, element); in test_Allocationcopy1DRangeTo_Short_Helper()
129 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32(mRS)); in test_Allocationcopy1DRangeTo_Int()
166 Type.Builder typeBuilder = new Type.Builder(mRS, Element.F32(mRS)); in test_Allocationcopy1DRangeTo_Float()
203 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I64(mRS)); in test_Allocationcopy1DRangeTo_Long()
242 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I8(mRS)); in test_Allocationcopy2DRangeTo_Byte()
276 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I16(mRS)); in test_Allocationcopy2DRangeTo_Short_Helper()
321 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32(mRS)); in test_Allocationcopy2DRangeTo_Int()
355 Type.Builder typeBuilder = new Type.Builder(mRS, Element.F32(mRS)); in test_Allocationcopy2DRangeTo_Float()
[all …]
DDebugContext.java24 import android.renderscript.Type;
50 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32(mRS)); in setupDebugContext()
51 Type t = typeBuilder.setX(1).create(); in setupDebugContext()
110 int size, Function<RenderScript, Type.Builder> TB, long seed) { in SetupAllocationCopyTests()
129 Type.Builder typeBuilder = TB.apply(mRS); in SetupAllocationCopyTests()
184 (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()
[all …]
DBaseObjTest.java22 import android.renderscript.Type;
28 Type.Builder TB = new Type.Builder(mRS, E); in testBaseObj()
29 Type T = TB.setX(1).create(); in testBaseObj()
DAllocationCreateAllocationsTest.java26 import android.renderscript.Type;
38 Type t = Type.createXY(mRS, e, dimX, dimY); in createAllocationsHelper()
78 Type tRef = allocArray[0].getType(); in testGetProperties()
85 Type t = allocArray[i].getType(); in testGetProperties()
103 Type t = Type.createXY(mRS, Element.U8_4(mRS), dX, dY); in testMultipleIoReceive_USAGE_IO_INPUT()
DAllocationTest.java25 import android.renderscript.Type;
26 import android.renderscript.Type.Builder;
27 import android.renderscript.Type.CubemapFace;
36 Type.Builder typeBuilder = new Type.Builder(mRS, e); in createTypedHelper()
58 Type.Builder typeBuilder = new Type.Builder(mRS, e); in createTypedTextureHelper()
272 Type.Builder b = new Type.Builder(mRS, Element.U8(mRS)); in testAllocationMipmapControl()
280 Type.Builder b = new Type.Builder(mRS, Element.U8(mRS)); in testCubemapFaces()
286 for (Type.CubemapFace cf : Type.CubemapFace.values()) { in testCubemapFaces()
426 Type.Builder typeBuilder = in helperBitmapCopy()
427 new Type.Builder(mRS, Element.RGBA_8888(mRS)); in helperBitmapCopy()
[all …]
DRsAllocationCopyTest.java21 import android.renderscript.Type;
38 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I8(mRS)); in test_RsAllocationCopy1D_Byte()
85 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I16(mRS)); in test_RsAllocationCopy1D_Short()
132 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32(mRS)); in test_RsAllocationCopy1D_Int()
179 Type.Builder typeBuilder = new Type.Builder(mRS, Element.F32(mRS)); in test_RsAllocationCopy1D_Float()
227 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I64(mRS)); in test_RsAllocationCopy1D_Long()
276 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I8(mRS)); in test_RsAllocationCopy2D_Byte()
332 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I16(mRS)); in test_RsAllocationCopy2D_Short()
388 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32(mRS)); in test_RsAllocationCopy2D_Int()
444 Type.Builder typeBuilder = new Type.Builder(mRS, Element.F32(mRS)); in test_RsAllocationCopy2D_Float()
[all …]
DScriptGroupTest.java26 import android.renderscript.Type;
27 import android.renderscript.Type.Builder;
45 Type connect = new Type.Builder(mRS, Element.U8_4(mRS)).setX(bDimX).setY(bDimY).create(); in testScriptGroupSingleKernel()
79 Type connect = new Type.Builder(mRS, Element.U8_4(mRS)).setX(bDimX).setY(bDimY).create(); in testScriptGroupDisconnectedKernel()
121 Type connect = new Type.Builder(mRS, Element.U8_4(mRS)).setX(bDimX).setY(bDimY).create(); in testScriptGroupFieldConnection()
167 Type connect = new Type.Builder(mRS, Element.U8_4(mRS)).setX(bDimX).setY(bDimY).create(); in testScriptGroupDisconnectedDAG()
228 Type connect = new Type.Builder(mRS, Element.I32(mRS)).setX(bDimX).create(); in testScriptGroupTorture()
229 Type compareType = new Type.Builder(mRS, Element.I32(mRS)).create(); in testScriptGroupTorture()
314 Type i32 = new Type.Builder(mRS, Element.I32(mRS)).setX(1).create(); in testScriptGroupSharedGlobal()
315 Type u32 = new Type.Builder(mRS, Element.U32(mRS)).setX(2).create(); in testScriptGroupSharedGlobal()
[all …]
DSampleTest.java25 import android.renderscript.Type;
26 import android.renderscript.Type.CubemapFace;
35 Allocation createAlloc(Type t) { in createAlloc()
70 Type.Builder b = new Type.Builder(mRS, format); in setUp()
DAllocationByteBufferTest.java27 import android.renderscript.Type;
38 Type t; in createTypedAllocation()
40 t = Type.createX(mRS, e, dimX); in createTypedAllocation()
42 t = Type.createXY(mRS, e, dimX, dimY); in createTypedAllocation()
90 Type t = Type.createX(mRS, Element.U8_4(mRS), dimX); in test1DWrite()
110 Type t = Type.createXY(mRS, Element.U8_4(mRS), dimX, dimY); in test2DWrite()
DYuvTest.java76 ay = Allocation.createTyped(mRS, Type.createXY(mRS, Element.U8(mRS), w, h)); in makeYuvBuffer()
77 final Type tuv = Type.createXY(mRS, Element.U8(mRS), w >> 1, h >> 1); in makeYuvBuffer()
87 … return Allocation.createTyped(mRS, Type.createXY(mRS, Element.RGBA_8888(mRS), width, height)); in makeOutput()
91 return Allocation.createTyped(mRS, Type.createXY(mRS, Element.F32_4(mRS), width, height)); in makeOutput_f4()
147 Type.Builder tb = new Type.Builder(mRS, Element.YUV(mRS)); in test_NV21()
198 Type.Builder tb = new Type.Builder(mRS, Element.YUV(mRS)); in test_YV12()
250 Type.Builder tb = new Type.Builder(mRS, Element.YUV(mRS)); in test_YV12_Float4()
297 Type.Builder tb = new Type.Builder(mRS, Element.YUV(mRS)); in test_NV21_Float4()
/cts/tests/tests/rscpp/librscpptest/
Drs_jni_foreach.cpp49 sp<const Type> t = Type::create(mRS, Element::I8(mRS), x, 0, 0); in Java_android_cts_rscpp_RSForEachTest_testForEach()
53 t = Type::create(mRS, Element::U8(mRS), x, 0, 0); in Java_android_cts_rscpp_RSForEachTest_testForEach()
59 t = Type::create(mRS, Element::I8_2(mRS), x, 0, 0); in Java_android_cts_rscpp_RSForEachTest_testForEach()
61 t = Type::create(mRS, Element::U8_2(mRS), x, 0, 0); in Java_android_cts_rscpp_RSForEachTest_testForEach()
67 t = Type::create(mRS, Element::I8_3(mRS), x, 0, 0); in Java_android_cts_rscpp_RSForEachTest_testForEach()
69 t = Type::create(mRS, Element::U8_3(mRS), x, 0, 0); in Java_android_cts_rscpp_RSForEachTest_testForEach()
75 t = Type::create(mRS, Element::I8_4(mRS), x, 0, 0); in Java_android_cts_rscpp_RSForEachTest_testForEach()
77 t = Type::create(mRS, Element::U8_4(mRS), x, 0, 0); in Java_android_cts_rscpp_RSForEachTest_testForEach()
83 t = Type::create(mRS, Element::I16(mRS), x, 0, 0); in Java_android_cts_rscpp_RSForEachTest_testForEach()
85 t = Type::create(mRS, Element::U16(mRS), x, 0, 0); in Java_android_cts_rscpp_RSForEachTest_testForEach()
[all …]
/cts/tests/tests/rsblas/src/android/renderscript/cts/
DIntrinsicBLAS.java80 … mMatrixS.add(Allocation.createTyped(mRS, Type.createXY(mRS, Element.F32(mRS), x, y))); in setUp()
81 … mMatrixD.add(Allocation.createTyped(mRS, Type.createXY(mRS, Element.F64(mRS), x, y))); in setUp()
82 … mMatrixC.add(Allocation.createTyped(mRS, Type.createXY(mRS, Element.F32_2(mRS), x, y))); in setUp()
83 … mMatrixZ.add(Allocation.createTyped(mRS, Type.createXY(mRS, Element.F64_2(mRS), x, y))); in setUp()
87 … Allocation misAlloc = Allocation.createTyped(mRS, Type.createXY(mRS, Element.U8(mRS), 1, 1)); in setUp()
320 …Allocation matrixAS = Allocation.createTyped(mRS, Type.createXY(mRS, Element.F32(mRS), mBLASData.d… in test_L2_SGEMV_Correctness()
321 …Allocation vectorXS = Allocation.createTyped(mRS, Type.createXY(mRS, Element.F32(mRS), mBLASData.d… in test_L2_SGEMV_Correctness()
322 …Allocation vectorYS = Allocation.createTyped(mRS, Type.createXY(mRS, Element.F32(mRS), mBLASData.d… in test_L2_SGEMV_Correctness()
329 …Allocation vectorYRef = Allocation.createTyped(mRS, Type.createXY(mRS, Element.F32(mRS), mBLASData… in test_L2_SGEMV_Correctness()
339 … vectorYRef = Allocation.createTyped(mRS, Type.createXY(mRS, Element.F32(mRS), mBLASData.dN, 1)); in test_L2_SGEMV_Correctness()
[all …]
DBNNMTest.java132 Type.Builder builder = new Type.Builder(mRS, Element.U8(mRS)); in runBNNM()
133 Type a_type = builder.setX(k).setY(m).create(); in runBNNM()
134 Type b_type = builder.setX(k).setY(n).create(); in runBNNM()
135 Type c_type = builder.setX(n).setY(m).create(); in runBNNM()
450 Type.Builder builder = new Type.Builder(mRS, Element.U8(mRS)); in testExceptionHandling()
451 Type a_type = builder.setX(k).setY(m).create(); in testExceptionHandling()
452 Type b_type = builder.setX(k).setY(n).create(); in testExceptionHandling()
453 Type c_type = builder.setX(n).setY(m).create(); in testExceptionHandling()
/cts/tools/dasm/src/dasm/
DDAsm.java56 import com.android.dx.rop.type.Type;
327 classDef = new ClassDefItem(CstType.intern(Type in endHeader()
329 superclass_name != null ? CstType.intern(Type in endHeader()
559 RegisterSpec reg_spec = RegisterSpec.make(reg_num, Type.INT); in addOpcode()
643 RegisterSpec reg1_spec = RegisterSpec.make(reg1_num, Type.INT); in addOpcode()
644 RegisterSpec reg2_spec = RegisterSpec.make(reg2_num, Type.INT); in addOpcode()
668 RegisterSpec reg1_spec = RegisterSpec.make(reg1_num, Type.INT); in addOpcode()
682 RegisterSpec reg1_spec = RegisterSpec.make(reg1_num, Type.STRING); in addOpcode()
697 Type type; in addOpcode()
700 type = Type.intern(v2); in addOpcode()
[all …]
/cts/tests/tests/rscpp/src/android/cts/rscpp/
DRSColorMatrixTest.java54 Type.Builder build = new Type.Builder(mRS, Element.RGBA_8888(mRS)); in testRSColorMatrix0()
85 Type.Builder build = new Type.Builder(mRS, Element.RGBA_8888(mRS)); in testRSColorMatrix1()
119 Type.Builder build = new Type.Builder(mRS, Element.RGBA_8888(mRS)); in testRSColorMatrix2()
151 Type.Builder build = new Type.Builder(mRS, Element.RGBA_8888(mRS)); in testRSColorMatrix3()
182 Type.Builder build = new Type.Builder(mRS, Element.RGBA_8888(mRS)); in testRSColorMatrix4()
DRSYuvTest.java66 ay = Allocation.createTyped(mRS, Type.createXY(mRS, Element.U8(mRS), w, h)); in makeYuvBuffer()
67 final Type tuv = Type.createXY(mRS, Element.U8(mRS), w >> 1, h >> 1); in makeYuvBuffer()
77 … return Allocation.createTyped(mRS, Type.createXY(mRS, Element.RGBA_8888(mRS), width, height)); in makeOutput()
121 Type.Builder tb = new Type.Builder(mRS, Element.YUV(mRS)); in test_YV12()
160 Type.Builder tb = new Type.Builder(mRS, Element.YUV(mRS)); in test_NV21()
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DAllocationInfo.java27 import android.renderscript.Type;
46 private final Type mType;
234 Type.Builder typeBuilder = typeBuilder(element, size); in AllocationInfo()
251 public Type getType() { in getType()
434 private static Type.Builder typeBuilder(Element element, Size size) { in typeBuilder()
435 Type.Builder builder = (new Type.Builder(RenderScriptSingleton.getRS(), element)) in typeBuilder()
/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/
DLeakTest.java22 import android.renderscript.Type;
62 Type t = new Type.Builder(mRS, Element.I32(mRS)).setX(x).create(); in testForLeaks()
/cts/suite/audio_quality/lib/include/task/
DTaskCase.h56 enum Type { enum
61 inline explicit Value(Type type): mType(type) {}; in Value()
68 inline Type getType() { in getType()
71 inline void setType(Type type) { in setType()
103 Type mType;

1234