Home
last modified time | relevance | path

Searched refs:inArray (Results 1 – 10 of 10) sorted by relevance

/cts/tests/tests/renderscript/src/android/renderscript/cts/
DAllocationCopyPaddedTest.java30 byte[] inArray = new byte[arr_len]; in test_AllocationPadded_Byte3_1D()
32 random.nextBytes(inArray); in test_AllocationPadded_Byte3_1D()
38 alloc.copyFrom(inArray); in test_AllocationPadded_Byte3_1D()
43 if (inArray[i] != outArray[i]) { in test_AllocationPadded_Byte3_1D()
59 byte[] inArray = new byte[arr_len]; in test_AllocationPadded_Byte3_2D()
61 random.nextBytes(inArray); in test_AllocationPadded_Byte3_2D()
67 alloc.copyFrom(inArray); in test_AllocationPadded_Byte3_2D()
72 if (inArray[i] != outArray[i]) { in test_AllocationPadded_Byte3_2D()
89 byte[] inArray = new byte[arr_len]; in test_AllocationPadded_Byte3_3D()
91 random.nextBytes(inArray); in test_AllocationPadded_Byte3_3D()
[all …]
DAllocationCopyToTest.java40 byte[] inArray = new byte[arr_len]; in test_Allocationcopy1DRangeTo_Byte()
42 random.nextBytes(inArray); in test_Allocationcopy1DRangeTo_Byte()
49 alloc.copy1DRangeFrom(offset, count, inArray); in test_Allocationcopy1DRangeTo_Byte()
54 if (inArray[i] != outArray[i]) { in test_Allocationcopy1DRangeTo_Byte()
74 short[] inArray = new short[arr_len]; in test_Allocationcopy1DRangeTo_Short_Helper() local
78 inArray[i] = (short)random.nextInt(); in test_Allocationcopy1DRangeTo_Short_Helper()
87 alloc.copy1DRangeFrom(offset, count, inArray); in test_Allocationcopy1DRangeTo_Short_Helper()
90 alloc.copy1DRangeFrom(offset, count, (Object) inArray); in test_Allocationcopy1DRangeTo_Short_Helper()
96 if (inArray[i] != outArray[i]) { in test_Allocationcopy1DRangeTo_Short_Helper()
122 int[] inArray = new int[arr_len]; in test_Allocationcopy1DRangeTo_Int() local
[all …]
DRSBaseCompute.java117 double[] inArray = new double[INPUTSIZE * width]; in createRandomAllocation() local
121 RSUtils.genRandomDoubles(seed, min, max, inArray, includeExtremes); in createRandomAllocation()
122 alloc.copy1DRangeFrom(0, INPUTSIZE, inArray); in createRandomAllocation()
124 float[] inArray = new float[INPUTSIZE * width]; in createRandomAllocation() local
128 RSUtils.genRandomFloats(seed, min, max, inArray, includeExtremes); in createRandomAllocation()
129 alloc.copy1DRangeFrom(0, INPUTSIZE, inArray); in createRandomAllocation()
131 short[] inArray = new short[INPUTSIZE * width]; in createRandomAllocation() local
134 RSUtils.genRandomFloat16s(seed, min, max, inArray, includeExtremes); in createRandomAllocation()
135 alloc.copyFrom(inArray); in createRandomAllocation()
137 long[] inArray = new long[INPUTSIZE * width]; in createRandomAllocation() local
[all …]
DRsAllocationCopyTest.java34 byte[] inArray = new byte[arr_len]; in test_RsAllocationCopy1D_Byte()
36 random.nextBytes(inArray); in test_RsAllocationCopy1D_Byte()
42 aIn.copyFrom(inArray); in test_RsAllocationCopy1D_Byte()
57 if (inArray[i] != outArray[i]) { in test_RsAllocationCopy1D_Byte()
79 short[] inArray = new short[arr_len]; in test_RsAllocationCopy1D_Short() local
82 inArray[i] = (short)random.nextInt(); in test_RsAllocationCopy1D_Short()
89 aIn.copyFrom(inArray); in test_RsAllocationCopy1D_Short()
104 if (inArray[i] != outArray[i]) { in test_RsAllocationCopy1D_Short()
126 int[] inArray = new int[arr_len]; in test_RsAllocationCopy1D_Int() local
129 inArray[i] = random.nextInt(); in test_RsAllocationCopy1D_Int()
[all …]
DRsPackColorTo8888Test.java77 float[] inArray = new float[INPUTSIZE * 4]; in float3input() local
80 RSUtils.genRandomFloats(seed, 0.0f, 1.0f, inArray, false); in float3input()
81 mAllocationIn.copy1DRangeFrom(0, INPUTSIZE, inArray); in float3input()
89 Float3 inValues = new Float3(inArray[offset], inArray[offset + 1], inArray[offset + 2]); in float3input()
107 float[] inArray = new float[INPUTSIZE * 4]; in float4input() local
110 RSUtils.genRandomFloats(seed, 0.0f, 1.0f, inArray, false); in float4input()
111 mAllocationIn.copy1DRangeFrom(0, INPUTSIZE, inArray); in float4input()
119 …Float4 inValues = new Float4( inArray[offset],inArray[offset + 1],inArray[offset + 2],inArray[offs… in float4input()
DRsUnpackColor8888Test.java45 byte[] inArray = new byte[INPUTSIZE * 4]; in testRsUnpackColor8888RGB()
50 r.nextBytes(inArray); in testRsUnpackColor8888RGB()
52 mAllocationIn.copy1DRangeFrom(0, INPUTSIZE, inArray); in testRsUnpackColor8888RGB()
60 byte[] inValues = {inArray[i], inArray[i+1], inArray[i+2], inArray[i+3]}; in testRsUnpackColor8888RGB()
DSendToClient.java61 int[] inArray = new int[4]; in testSendToClient() local
63 inArray[i] = random.nextInt(1000); in testSendToClient()
66 mInAllocation.copyFrom(inArray); in testSendToClient()
77 for (int i=0; i<inArray.length; i++) { in testSendToClient()
78 assertEquals(createErrorMsgF(i, inArray[i], outArray[i]), in testSendToClient()
79 inArray[i], outArray[i]); in testSendToClient() local
DAllocationResize.java48 int[] inArray = new int[INPUTSIZE]; in testResize() local
50 inArray[i] = random.nextInt(); in testResize()
52 mIn.copy1DRangeFrom(0, INPUTSIZE, inArray); in testResize()
61 assertEquals("Incorrect value @ idx = " + i + " | ", inArray[i], outArray[i]); in testResize()
DDebugContext.java141 byte[] inArray = new byte[ArrLen]; in SetupAllocationCopyTests()
142 RN.nextBytes(inArray); in SetupAllocationCopyTests()
144 aIn.copyFrom(inArray); in SetupAllocationCopyTests()
149 short[] inArray = new short[ArrLen]; in SetupAllocationCopyTests() local
151 inArray[i] = (short)RN.nextInt(); in SetupAllocationCopyTests()
153 aIn.copyFrom(inArray); in SetupAllocationCopyTests()
199 byte[] inArray = new byte[AC.ArrLen]; in testDebugContextRsAllocationCopy1D_Byte_Normal()
201 AC.aIn.copyTo(inArray); in testDebugContextRsAllocationCopy1D_Byte_Normal()
205 if (inArray[i] != outArray[i]) { in testDebugContextRsAllocationCopy1D_Byte_Normal()
248 short[] inArray = new short[AC.ArrLen]; in testDebugContextRsAllocationCopy2D_Short_Normal() local
[all …]
DAllocationCopy2DRangeTest.java35 int[] inArray = new int[width * height]; in testAllocationCopy2DRange() local
39 inArray[i] = random.nextInt(); in testAllocationCopy2DRange()
47 mInAllocation.copy2DRangeFrom(0, 0, width, height, inArray); in testAllocationCopy2DRange()
57 compareTwoArrays(inArray, outArray, width*height)); in testAllocationCopy2DRange()