/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | AllocationByteBufferTest.java | 36 Allocation createTypedAllocation(DataType dt, int size, int dimX, int dimY) { in createTypedAllocation() argument 40 t = Type.createX(mRS, e, dimX); in createTypedAllocation() 42 t = Type.createXY(mRS, e, dimX, dimY); in createTypedAllocation() 48 void testByteBufferHelper(DataType dt, int byteSize, int dimX, int dimY) { in testByteBufferHelper() argument 53 byte[] data = new byte[dimX * dimY * vecWidth * byteSize]; in testByteBufferHelper() 56 Allocation alloc = createTypedAllocation(dt, size, dimX, dimY); in testByteBufferHelper() 62 int posX = r.nextInt(dimX); in testByteBufferHelper() 64 byte byteInData = data[(posY * dimX + posX) * vecWidth * byteSize]; in testByteBufferHelper() 74 int dimX = r.nextInt(MAX_DIM) + 1; in testByteBufferHelper1D() local 75 testByteBufferHelper(dt, byteSize, dimX, 1); in testByteBufferHelper1D() [all …]
|
D | foreach.rs | 4 int dimX; 9 *out = x + y * dimX; 13 _RS_ASSERT(*in == (x + y * dimX)); 14 *out = 99 + x + y * dimX; 15 _RS_ASSERT(*out == (99 + x + y * dimX)); 23 for (i = 0; i < dimX; i++) { 25 _RS_ASSERT(v == (i + j * dimX)); 44 for (i = 0; i < dimX; i++) { 46 _RS_ASSERT(v == (99 + i + j * dimX));
|
D | single_source_script.rs | 43 void testLaunchOptions(rs_allocation in, rs_allocation out, int dimX, int dimY) { 46 opts.xEnd = dimX; 52 void testAllocationlessLaunch(rs_allocation inAndOut, int dimX, int dimY) { 56 opts.xEnd = dimX; 64 const uint32_t dimX = rsAllocationGetDimX(in); 66 for (int i = 0; i < dimX; i++) {
|
D | AtomicTest.rs | 65 uint32_t dimX = rsAllocationGetDimX(a); 68 for (uint32_t x = 0; x < dimX; x++) { 77 uint32_t dimX = rsAllocationGetDimX(a); 80 for (uint32_t x = 0; x < dimX; x++) { 89 uint32_t dimX = rsAllocationGetDimX(a); 92 for (uint32_t x = 0; x < dimX; x++) { 101 uint32_t dimX = rsAllocationGetDimX(a); 104 for (uint32_t x = 0; x < dimX; x++) {
|
D | noroot.rs | 5 int dimX; 10 *out = 99 + x + y * dimX; 18 for (i = 0; i < dimX; i++) { 20 _RS_ASSERT(v == (99 + i + j * dimX));
|
D | setelementat.rs | 12 uint32_t dimX = 0; 36 for (uint32_t i = 0; i < dimX; i++) { 46 for (uint32_t xtemp = 0; xtemp < dimX; xtemp++) {
|
D | ReduceTest.java | 191 final int dimX = 450, dimY = 225; in testAddInt2D() local 193 final int[] inputArray = createInputArrayInt(dimX * dimY, 1, 1 << 13); in testAddInt2D() 195 typeBuilder.setX(dimX).setY(dimY); in testAddInt2D() 197 inputAllocation.copy2DRangeFrom(0, 0, dimX, dimY, inputArray); in testAddInt2D() 388 final int dimX = 225, dimY = 450; in testFz2() local 389 final int inputLen = dimX * dimY; in testFz2() 396 typeBuilder.setX(dimX).setY(dimY); in testFz2() 398 inputAllocation.copy2DRangeFrom(0, 0, dimX, dimY, inputArray); in testFz2() 402 final int cellVal = inputArray[rsRslt.x + dimX * rsRslt.y]; in testFz2() 411 final int dimX = 59, dimY = 48, dimZ = 37; in testFz3() local [all …]
|
D | TestCtxDim.rs | 26 uint32_t dimX = rsGetDimX(context); 27 _RS_ASSERT(gDimX == dimX);
|
D | SingleSourceAllocationTest.java | 31 private static final int dimX = 3; field in SingleSourceAllocationTest 41 s.set_gDimX(dimX); in setUp()
|
D | single_source_alloc.rs | 134 static void CreateAndTestAlloc(rs_data_type dt, int vecSize, int dimX, int dimY, int dimZ) { 142 if (dimX == 0) { 162 type = rsCreateType(element, dimX, dimY, dimZ); 180 for (int x = 0; x < dimX; x ++) { 181 int val = gStart + (x + y * dimX + z * dimY * dimX);
|
D | AllocationCreateAllocationsTest.java | 32 private int dimX = 1920; field in AllocationCreateAllocationsTest 38 Type t = Type.createXY(mRS, e, dimX, dimY); in createAllocationsHelper()
|
D | launchclip.rs | 21 int dimX;
|
D | ImageProcessingTest.java | 68 private final int dimX = 256; field in ImageProcessingTest 74 Type t = new Type.Builder(mRS, Element.U8_4(mRS)).setX(dimX).setY(dimX).create(); in setUp() 821 Type connect = new Type.Builder(mRS, Element.U8_4(mRS)).setX(dimX).setY(dimX).create(); in testScriptGroup()
|
/cts/tests/tests/rscpp/librscpptest/ |
D | foreach.rs | 4 int dimX; 9 *out = x + y * dimX; 13 _RS_ASSERT(*in == (x + y * dimX)); 14 *out = 99 + x + y * dimX; 15 _RS_ASSERT(*out == (99 + x + y * dimX)); 23 for (i = 0; i < dimX; i++) { 25 _RS_ASSERT(v == (i + j * dimX)); 44 for (i = 0; i < dimX; i++) { 46 _RS_ASSERT(v == (99 + i + j * dimX));
|
D | noroot.rs | 5 int dimX; 10 *out = 99 + x + y * dimX; 18 for (i = 0; i < dimX; i++) { 20 _RS_ASSERT(v == (99 + i + j * dimX));
|
D | setelementat.rs | 11 uint32_t dimX = 0; 35 for (uint32_t i = 0; i < dimX; i++) { 45 for (uint32_t xtemp = 0; xtemp < dimX; xtemp++) {
|
/cts/tests/tests/rsblas/src/android/renderscript/cts/ |
D | IntrinsicBLAS.java | 353 int dimX = 1 + (mBLASData.dN - 1) * incX; in test_L2_SGEMV_Correctness() local 355 vectorXS = Allocation.createTyped(mRS, Type.createXY(mRS, Element.F32(mRS), dimX, 1)); in test_L2_SGEMV_Correctness() 408 int dimX = 1 + (mBLASData.dN - 1) * incX; in test_L2_DGEMV_Correctness() local 410 vectorXD = Allocation.createTyped(mRS, Type.createXY(mRS, Element.F64(mRS), dimX, 1)); in test_L2_DGEMV_Correctness() 463 int dimX = 1 + (mBLASData.dN - 1) * incX; in test_L2_CGEMV_Correctness() local 465 vectorXC = Allocation.createTyped(mRS, Type.createXY(mRS, Element.F32_2(mRS), dimX, 1)); in test_L2_CGEMV_Correctness() 518 int dimX = 1 + (mBLASData.dN - 1) * incX; in test_L2_ZGEMV_Correctness() local 520 vectorXZ = Allocation.createTyped(mRS, Type.createXY(mRS, Element.F64_2(mRS), dimX, 1)); in test_L2_ZGEMV_Correctness() 653 int dimX = 1 + (mBLASData.dN - 1) * incX; in test_L2_SGBMV_Correctness() local 655 vectorXS = Allocation.createTyped(mRS, Type.createXY(mRS, Element.F32(mRS), dimX, 1)); in test_L2_SGBMV_Correctness() [all …]
|