Home
last modified time | relevance | path

Searched refs:dimX (Results 1 – 17 of 17) sorted by relevance

/cts/tests/tests/renderscript/src/android/renderscript/cts/
DAllocationByteBufferTest.java36 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()
73 int dimX = r.nextInt(MAX_DIM) + 1; in testByteBufferHelper1D() local
74 testByteBufferHelper(dt, byteSize, dimX, 1); in testByteBufferHelper1D()
[all …]
Dforeach.rs4 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));
Dnoroot.rs5 int dimX;
10 *out = 99 + x + y * dimX;
18 for (i = 0; i < dimX; i++) {
20 _RS_ASSERT(v == (99 + i + j * dimX));
DAtomicTest.rs65 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++) {
Dsingle_source_script.rs43 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;
Dsetelementat.rs12 uint32_t dimX = 0;
36 for (uint32_t i = 0; i < dimX; i++) {
46 for (uint32_t xtemp = 0; xtemp < dimX; xtemp++) {
DTestCtxDim.rs26 uint32_t dimX = rsGetDimX(context);
27 _RS_ASSERT(gDimX == dimX);
DSingleSourceAllocationTest.java31 private static final int dimX = 3; field in SingleSourceAllocationTest
41 s.set_gDimX(dimX); in setUp()
DReduceTest.java185 final int dimX = 450, dimY = 225; in testAddInt2D() local
187 final int[] inputArray = createInputArrayInt(dimX * dimY, 1, 1 << 13); in testAddInt2D()
189 typeBuilder.setX(dimX).setY(dimY); in testAddInt2D()
191 inputAllocation.copy2DRangeFrom(0, 0, dimX, dimY, inputArray); in testAddInt2D()
375 final int dimX = 225, dimY = 450; in testFz2() local
376 final int inputLen = dimX * dimY; in testFz2()
383 typeBuilder.setX(dimX).setY(dimY); in testFz2()
385 inputAllocation.copy2DRangeFrom(0, 0, dimX, dimY, inputArray); in testFz2()
389 final int cellVal = inputArray[rsRslt.x + dimX * rsRslt.y]; in testFz2()
397 final int dimX = 59, dimY = 48, dimZ = 37; in testFz3() local
[all …]
Dsingle_source_alloc.rs134 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);
DAllocationCreateAllocationsTest.java32 private int dimX = 1920; field in AllocationCreateAllocationsTest
38 Type t = Type.createXY(mRS, e, dimX, dimY); in createAllocationsHelper()
Dlaunchclip.rs21 int dimX;
DImageProcessingTest.java68 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()
804 Type connect = new Type.Builder(mRS, Element.U8_4(mRS)).setX(dimX).setY(dimX).create(); in testScriptGroup()
/cts/tests/tests/rscpp/librscpptest/
Dforeach.rs4 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));
Dnoroot.rs5 int dimX;
10 *out = 99 + x + y * dimX;
18 for (i = 0; i < dimX; i++) {
20 _RS_ASSERT(v == (99 + i + j * dimX));
Dsetelementat.rs11 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/
DIntrinsicBLAS.java353 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 …]