Home
last modified time | relevance | path

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

123

/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;
32 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32(mRS)); in setupVoidPtr()
33 Type t = typeBuilder.setX(1).create(); in setupVoidPtr()
53 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32(mRS)); in testVoidOutInt()
54 Type t = typeBuilder.setX(10).setY(15).create(); in testVoidOutInt()
81 Type.Builder typeBuilder = new Type.Builder(mRS, Element.U8(mRS)); in testVoidOutChar()
82 Type t = typeBuilder.setX(10).setY(15).create(); in testVoidOutChar()
110 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32(mRS)); in testVoidInInt()
111 Type t = typeBuilder.setX(10).setY(15).create(); in testVoidInInt()
141 Type.Builder typeBuilder = new Type.Builder(mRS, Element.U8(mRS)); in testVoidInChar()
[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()
78 t = new Type.Builder(mRS, Element.I8_2(mRS)).setX(x).create(); in testForEach()
80 t = new Type.Builder(mRS, Element.U8_2(mRS)).setX(x).create(); in testForEach()
92 t = new Type.Builder(mRS, Element.I8_3(mRS)).setX(x).create(); in testForEach()
94 t = new Type.Builder(mRS, Element.U8_3(mRS)).setX(x).create(); in testForEach()
106 t = new Type.Builder(mRS, Element.I8_4(mRS)).setX(x).create(); in testForEach()
108 t = new Type.Builder(mRS, Element.U8_4(mRS)).setX(x).create(); in testForEach()
120 t = new Type.Builder(mRS, Element.I16(mRS)).setX(x).create(); in testForEach()
[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()
78 t = new Type.Builder(mRS, Element.I8_2(mRS)).setX(x).create(); in testForEach()
80 t = new Type.Builder(mRS, Element.U8_2(mRS)).setX(x).create(); in testForEach()
92 t = new Type.Builder(mRS, Element.I8_3(mRS)).setX(x).create(); in testForEach()
94 t = new Type.Builder(mRS, Element.U8_3(mRS)).setX(x).create(); in testForEach()
106 t = new Type.Builder(mRS, Element.I8_4(mRS)).setX(x).create(); in testForEach()
108 t = new Type.Builder(mRS, Element.U8_4(mRS)).setX(x).create(); in testForEach()
120 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()
62 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I8_3(mRS)); in test_AllocationPadded_Byte3_2D()
91 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I8_3(mRS)); in test_AllocationPadded_Byte3_3D()
121 Type.Builder typeBuilder = new Type.Builder(mRS, element); in test_AllocationPadded_Short3_1D_Helper()
157 Type.Builder typeBuilder = new Type.Builder(mRS, element); in test_AllocationPadded_Short3_2D_Helper()
194 Type.Builder typeBuilder = new Type.Builder(mRS, element); in test_AllocationPadded_Short3_3D_Helper()
229 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32_3(mRS)); in test_AllocationPadded_Int3_1D()
260 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32_3(mRS)); in test_AllocationPadded_Int3_2D()
292 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32_3(mRS)); in test_AllocationPadded_Int3_3D()
[all …]
DVLoadTest.java85 private void testSetup(Type t) { in testSetup()
197 testSetup(Type.createX(mRS, Element.I8(mRS), w)); in testVload_char()
205 testSetup(Type.createX(mRS, Element.I8(mRS), w)); in testVload_uchar()
213 testSetup(Type.createX(mRS, Element.I8(mRS), w)); in testVload_char_relaxed()
221 testSetup(Type.createX(mRS, Element.I8(mRS), w)); in testVload_uchar_relaxed()
229 testSetup(Type.createX(mRS, Element.I16(mRS), w)); in testVload_short()
237 testSetup(Type.createX(mRS, Element.I16(mRS), w)); in testVload_ushort()
245 testSetup(Type.createX(mRS, Element.I16(mRS), w)); in testVload_short_relaxed()
253 testSetup(Type.createX(mRS, Element.I16(mRS), w)); in testVload_ushort_relaxed()
261 testSetup(Type.createX(mRS, Element.I32(mRS), w)); in testVload_int()
[all …]
DAllocationCopyToTest.java21 import android.renderscript.Type;
36 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I8(mRS)); in test_Allocationcopy1DRangeTo_Byte()
73 Type.Builder typeBuilder = new Type.Builder(mRS, element); in test_Allocationcopy1DRangeTo_Short_Helper()
121 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32(mRS)); in test_Allocationcopy1DRangeTo_Int()
158 Type.Builder typeBuilder = new Type.Builder(mRS, Element.F32(mRS)); in test_Allocationcopy1DRangeTo_Float()
195 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I64(mRS)); in test_Allocationcopy1DRangeTo_Long()
234 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I8(mRS)); in test_Allocationcopy2DRangeTo_Byte()
268 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I16(mRS)); in test_Allocationcopy2DRangeTo_Short_Helper()
313 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32(mRS)); in test_Allocationcopy2DRangeTo_Int()
347 Type.Builder typeBuilder = new Type.Builder(mRS, Element.F32(mRS)); in test_Allocationcopy2DRangeTo_Float()
[all …]
DAllocationCreateAllocationsTest.java26 import android.renderscript.Type;
38 Type t = Type.createXY(mRS, e, dimX, dimY); in createAllocationsHelper()
72 Type tRef = allocArray[0].getType(); in testGetProperties()
79 Type t = allocArray[i].getType(); in testGetProperties()
94 Type t = Type.createXY(mRS, Element.U8_4(mRS), dX, dY); in testMultipleIoReceive_USAGE_IO_INPUT()
DBaseObjTest.java23 import android.renderscript.Type;
29 Type.Builder TB = new Type.Builder(mRS, E); in testBaseObj()
30 Type T = TB.setX(1).create(); in testBaseObj()
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()
273 Type.Builder b = new Type.Builder(mRS, Element.U8(mRS)); in testAllocationMipmapControl()
281 Type.Builder b = new Type.Builder(mRS, Element.U8(mRS)); in testCubemapFaces()
287 for (Type.CubemapFace cf : Type.CubemapFace.values()) { in testCubemapFaces()
415 Type.Builder typeBuilder = in helperBitmapCopy()
416 new Type.Builder(mRS, Element.RGBA_8888(mRS)); in helperBitmapCopy()
[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()
74 Type connect = new Type.Builder(mRS, Element.U8_4(mRS)).setX(bDimX).setY(bDimY).create(); in testScriptGroupDisconnectedKernel()
108 Type connect = new Type.Builder(mRS, Element.U8_4(mRS)).setX(bDimX).setY(bDimY).create(); in testScriptGroupFieldConnection()
149 Type connect = new Type.Builder(mRS, Element.U8_4(mRS)).setX(bDimX).setY(bDimY).create(); in testScriptGroupDisconnectedDAG()
201 Type connect = new Type.Builder(mRS, Element.I32(mRS)).setX(bDimX).create(); in testScriptGroupTorture()
202 Type compareType = new Type.Builder(mRS, Element.I32(mRS)).create(); in testScriptGroupTorture()
276 Type i32 = new Type.Builder(mRS, Element.I32(mRS)).setX(1).create(); in testScriptGroupSharedGlobal()
277 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()
DDebugContext.java24 import android.renderscript.Type;
48 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32(mRS)); in setupDebugContext()
49 Type t = typeBuilder.setX(1).create(); in setupDebugContext()
DYuvTest.java61 ay = Allocation.createTyped(mRS, Type.createXY(mRS, Element.U8(mRS), w, h)); in makeYuvBuffer()
62 final Type tuv = Type.createXY(mRS, Element.U8(mRS), w >> 1, h >> 1); in makeYuvBuffer()
72 … return Allocation.createTyped(mRS, Type.createXY(mRS, Element.RGBA_8888(mRS), width, height)); in makeOutput()
76 return Allocation.createTyped(mRS, Type.createXY(mRS, Element.F32_4(mRS), width, height)); in makeOutput_f4()
127 Type.Builder tb = new Type.Builder(mRS, Element.YUV(mRS)); in test_NV21()
171 Type.Builder tb = new Type.Builder(mRS, Element.YUV(mRS)); in test_YV12()
216 Type.Builder tb = new Type.Builder(mRS, Element.YUV(mRS)); in test_YV12_Float4()
257 Type.Builder tb = new Type.Builder(mRS, Element.YUV(mRS)); in test_NV21_Float4()
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 …]
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()
89 Type t = Type.createX(mRS, Element.U8_4(mRS), dimX); in test1DWrite()
109 Type t = Type.createXY(mRS, Element.U8_4(mRS), dimX, dimY); in test2DWrite()
DGlobalSync.java22 import android.renderscript.Type;
30 Type.Builder typeBuilder = new Type.Builder(mRS, Element.I32(mRS)); in setupGlobalSync()
31 Type t = typeBuilder.setX(1).create(); in setupGlobalSync()
DScriptTest.java27 import android.renderscript.Type;
50 Type.Builder tb = new Type.Builder(mRS, Element.I32(mRS)); in testScript()
/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()
/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/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()

123