/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | TypeTest.java | 20 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 …]
|
D | VoidPtr.java | 22 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 …]
|
D | ForEachTest.java | 49 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 …]
|
D | KernelTest.java | 49 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 …]
|
D | AllocationCopyPaddedTest.java | 21 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 …]
|
D | VLoadTest.java | 99 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 …]
|
D | AllocationCopyToTest.java | 21 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 …]
|
D | DebugContext.java | 24 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 …]
|
D | BaseObjTest.java | 22 import android.renderscript.Type; 28 Type.Builder TB = new Type.Builder(mRS, E); in testBaseObj() 29 Type T = TB.setX(1).create(); in testBaseObj()
|
D | AllocationCreateAllocationsTest.java | 26 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()
|
D | AllocationTest.java | 25 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 …]
|
D | RsAllocationCopyTest.java | 21 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 …]
|
D | ScriptGroupTest.java | 26 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 …]
|
D | SampleTest.java | 25 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()
|
D | AllocationByteBufferTest.java | 27 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()
|
D | YuvTest.java | 76 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/ |
D | rs_jni_foreach.cpp | 49 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/ |
D | IntrinsicBLAS.java | 80 … 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 …]
|
D | BNNMTest.java | 132 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/hostsidetests/securitybulletin/securityPatch/Bug-115739809/ |
D | poc.cpp | 50 case InputMessage::Type::KEY: { in sanitizeMessage() 79 case InputMessage::Type::MOTION: { in sanitizeMessage() 151 case InputMessage::Type::FINISHED: { in sanitizeMessage() 156 case InputMessage::Type::FOCUS: { in sanitizeMessage() 162 case InputMessage::Type::CAPTURE: { in sanitizeMessage() 167 case InputMessage::Type::DRAG: { in sanitizeMessage() 174 case InputMessage::Type::TIMELINE: { in sanitizeMessage() 183 InputMessage::Type type = msg.header.type; in makeMessageValid() 184 if (type == InputMessage::Type::MOTION) { in makeMessageValid() 188 if (type == InputMessage::Type::TIMELINE) { in makeMessageValid() [all …]
|
/cts/tests/tests/rscpp/src/android/cts/rscpp/ |
D | RSColorMatrixTest.java | 54 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()
|
D | RSYuvTest.java | 66 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/ |
D | AllocationInfo.java | 27 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/ |
D | LeakTest.java | 22 import android.renderscript.Type; 62 Type t = new Type.Builder(mRS, Element.I32(mRS)).setX(x).create(); in testForLeaks()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/proxy/ |
D | PacProxyTest.java | 22 import java.net.Proxy.Type; 225 new Proxy(Type.HTTP, InetSocketAddress.createUnresolved("localhost", 8080)), in testLocalPlusDirect() 226 new Proxy(Type.HTTP, InetSocketAddress.createUnresolved("localhost", 8081)), in testLocalPlusDirect() 245 new Proxy(Type.HTTP, InetSocketAddress.createUnresolved("localhost", 8080))), in testHostPassthrough() 264 new Proxy(Type.HTTP, InetSocketAddress.createUnresolved("localhost", 8080))), in testUrlPassthrough() 287 newArrayList(new Proxy(Type.HTTP, InetSocketAddress.createUnresolved("passed", 8080))), in testStringCase()
|