/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
AllocationResize.java | 41 mIn = Allocation.createSized(mRS, Element.I32(mRS), INPUTSIZE/2); 42 mOut = Allocation.createSized(mRS, Element.I32(mRS), INPUTSIZE*2); 43 mIn.resize(INPUTSIZE); 44 mOut.resize(INPUTSIZE); 47 int[] outArray = new int[INPUTSIZE]; 48 int[] inArray = new int[INPUTSIZE]; 49 for (int i = 0; i < INPUTSIZE; i++) { 52 mIn.copy1DRangeFrom(0, INPUTSIZE, inArray); 60 for (int i = 0; i < INPUTSIZE; i++) {
|
InitTest.java | 35 float[] ref = new float[INPUTSIZE]; 36 float[] in = new float[INPUTSIZE]; 37 float[] out = new float[INPUTSIZE]; 38 mIn = Allocation.createSized(mRS, Element.F32(mRS), INPUTSIZE); 39 mOut= Allocation.createSized(mRS, Element.F32(mRS), INPUTSIZE); 40 for (int i = 0 ;i < INPUTSIZE; i++) { 45 mIn.copy1DRangeFrom(0, INPUTSIZE, in); 52 checkArray(ref, out, INPUTSIZE, 1, 1, 0);
|
GetElementAt.java | 57 setupArrays(INPUTSIZE); 59 gIn = Allocation.createSized(mRS, Element.U32(mRS), INPUTSIZE); 68 for (int k = 0; k < INPUTSIZE; ++k) { 74 setupArrays(INPUTSIZE*INPUTSIZE); 77 builder.setX(INPUTSIZE); 78 builder.setY(INPUTSIZE); 89 for (int k = 0; k < INPUTSIZE*INPUTSIZE; ++k) {
|
RsPackColorTo8888Test.java | 69 Allocation mAllocationIn = Allocation.createSized(mRS, Element.F32_3(mRS), INPUTSIZE); 70 Allocation mAllocationOut = Allocation.createSized(mRS, Element.U8_4(mRS), INPUTSIZE); 71 float[] inArray = new float[INPUTSIZE * 4]; 72 byte[] outArray = new byte[INPUTSIZE * 4]; 73 byte[] refArray = new byte[INPUTSIZE * 4]; 75 mAllocationIn.copy1DRangeFrom(0, INPUTSIZE, inArray); 96 Allocation mAllocationIn = Allocation.createSized(mRS, Element.F32_4(mRS), INPUTSIZE); 97 Allocation mAllocationOut = Allocation.createSized(mRS, Element.U8_4(mRS), INPUTSIZE); 98 float[] inArray = new float[INPUTSIZE * 4]; 99 byte[] outArray = new byte[INPUTSIZE * 4] [all...] |
RsUnpackColor8888Test.java | 35 Allocation mAllocationIn = Allocation.createSized(mRS, Element.U8_4(mRS), INPUTSIZE); 36 Allocation mAllocationOut = Allocation.createSized(mRS, Element.F32_4(mRS), INPUTSIZE); 37 byte[] inArray = new byte[INPUTSIZE * 4]; 38 float[] outArray = new float[INPUTSIZE * 4]; 39 float[] refArray = new float[INPUTSIZE * 4]; 44 mAllocationIn.copy1DRangeFrom(0, INPUTSIZE, inArray);
|
TestClz.java | 45 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 1), INPUTSIZE); 52 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 1), INPUTSIZE); 61 byte[] arrayInValue = new byte[INPUTSIZE * 1]; 63 byte[] arrayOut = new byte[INPUTSIZE * 1]; 65 for (int i = 0; i < INPUTSIZE; i++) { 101 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 2), INPUTSIZE); 108 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_8, 2), INPUTSIZE); 117 byte[] arrayInValue = new byte[INPUTSIZE * 2]; 119 byte[] arrayOut = new byte[INPUTSIZE * 2]; 121 for (int i = 0; i < INPUTSIZE; i++) [all...] |
GetAllocationTest.java | 28 int[] tempArray = new int[INPUTSIZE]; 29 for (int i = 0; i < INPUTSIZE; ++i) { 35 Allocation mTemp = Allocation.createSized(mRS, Element.I32(mRS), INPUTSIZE); 44 int [] out = new int[INPUTSIZE];
|
TestConvert.java | 45 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE); 52 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE); 61 float[] arrayInV = new float[INPUTSIZE * 2]; 63 float[] arrayOut = new float[INPUTSIZE * 2]; 65 for (int i = 0; i < INPUTSIZE; i++) { 104 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE); 111 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 3), INPUTSIZE); 120 float[] arrayInV = new float[INPUTSIZE * 4]; 122 float[] arrayOut = new float[INPUTSIZE * 4]; 124 for (int i = 0; i < INPUTSIZE; i++) [all...] |
TestClamp.java | 50 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 59 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 70 float[] arrayInValue = new float[INPUTSIZE * 1]; 72 float[] arrayInMinValue = new float[INPUTSIZE * 1]; 74 float[] arrayInMaxValue = new float[INPUTSIZE * 1]; 76 float[] arrayOut = new float[INPUTSIZE * 1]; 78 for (int i = 0; i < INPUTSIZE; i++) { 130 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE); 139 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE); 150 float[] arrayInValue = new float[INPUTSIZE * 2] [all...] |
TestIlogb.java | 45 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 1), INPUTSIZE); 52 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 1), INPUTSIZE); 61 float[] arrayIn = new float[INPUTSIZE * 1]; 63 int[] arrayOut = new int[INPUTSIZE * 1]; 65 for (int i = 0; i < INPUTSIZE; i++) { 95 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 2), INPUTSIZE); 102 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 2), INPUTSIZE); 111 float[] arrayIn = new float[INPUTSIZE * 2]; 113 int[] arrayOut = new int[INPUTSIZE * 2]; 115 for (int i = 0; i < INPUTSIZE; i++) [all...] |
TestAbs.java | 45 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 1), INPUTSIZE); 52 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 1), INPUTSIZE); 61 byte[] arrayInValue = new byte[INPUTSIZE * 1]; 63 byte[] arrayOut = new byte[INPUTSIZE * 1]; 65 for (int i = 0; i < INPUTSIZE; i++) { 101 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 2), INPUTSIZE); 108 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.UNSIGNED_8, 2), INPUTSIZE); 117 byte[] arrayInValue = new byte[INPUTSIZE * 2]; 119 byte[] arrayOut = new byte[INPUTSIZE * 2]; 121 for (int i = 0; i < INPUTSIZE; i++) [all...] |
RSBaseCompute.java | 31 protected int INPUTSIZE = 512; 116 Allocation alloc = Allocation.createSized(rs, element, INPUTSIZE); 119 double[] inArray = new double[INPUTSIZE * width]; 124 alloc.copy1DRangeFrom(0, INPUTSIZE, inArray); 126 float[] inArray = new float[INPUTSIZE * width]; 131 alloc.copy1DRangeFrom(0, INPUTSIZE, inArray); 133 long[] inArray = new long[INPUTSIZE * width]; 135 alloc.copy1DRangeFrom(0, INPUTSIZE, inArray); 137 long[] inArray = new long[INPUTSIZE * width]; 139 alloc.copy1DRangeFrom(0, INPUTSIZE, inArray) [all...] |
TestRemquo.java | 48 Allocation outD = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 1), INPUTSIZE); 49 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 58 Allocation outD = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 1), INPUTSIZE); 59 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 70 float[] arrayInB = new float[INPUTSIZE * 1]; 72 float[] arrayInC = new float[INPUTSIZE * 1]; 74 int[] arrayOutD = new int[INPUTSIZE * 1]; 76 float[] arrayOut = new float[INPUTSIZE * 1]; 78 for (int i = 0; i < INPUTSIZE; i++) { 119 Allocation outD = Allocation.createSized(mRS, getElement(mRS, Element.DataType.SIGNED_32, 2), INPUTSIZE); [all...] |
TestAtan2.java | 47 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 55 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 65 float[] arrayInY = new float[INPUTSIZE * 1]; 67 float[] arrayInX = new float[INPUTSIZE * 1]; 69 float[] arrayOut = new float[INPUTSIZE * 1]; 71 for (int i = 0; i < INPUTSIZE; i++) { 116 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE); 124 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE); 134 float[] arrayInY = new float[INPUTSIZE * 2]; 136 float[] arrayInX = new float[INPUTSIZE * 2] [all...] |
TestAtan2pi.java | 47 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 55 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 65 float[] arrayInY = new float[INPUTSIZE * 1]; 67 float[] arrayInX = new float[INPUTSIZE * 1]; 69 float[] arrayOut = new float[INPUTSIZE * 1]; 71 for (int i = 0; i < INPUTSIZE; i++) { 116 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE); 124 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE); 134 float[] arrayInY = new float[INPUTSIZE * 2]; 136 float[] arrayInX = new float[INPUTSIZE * 2] [all...] |
TestCopysign.java | 47 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 55 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 65 float[] arrayInX = new float[INPUTSIZE * 1]; 67 float[] arrayInY = new float[INPUTSIZE * 1]; 69 float[] arrayOut = new float[INPUTSIZE * 1]; 71 for (int i = 0; i < INPUTSIZE; i++) { 116 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE); 124 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE); 134 float[] arrayInX = new float[INPUTSIZE * 2]; 136 float[] arrayInY = new float[INPUTSIZE * 2] [all...] |
TestFdim.java | 47 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 55 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 65 float[] arrayInA = new float[INPUTSIZE * 1]; 67 float[] arrayInB = new float[INPUTSIZE * 1]; 69 float[] arrayOut = new float[INPUTSIZE * 1]; 71 for (int i = 0; i < INPUTSIZE; i++) { 116 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE); 124 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE); 134 float[] arrayInA = new float[INPUTSIZE * 2]; 136 float[] arrayInB = new float[INPUTSIZE * 2] [all...] |
TestFmod.java | 47 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 55 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 65 float[] arrayInX = new float[INPUTSIZE * 1]; 67 float[] arrayInY = new float[INPUTSIZE * 1]; 69 float[] arrayOut = new float[INPUTSIZE * 1]; 71 for (int i = 0; i < INPUTSIZE; i++) { 116 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE); 124 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE); 134 float[] arrayInX = new float[INPUTSIZE * 2]; 136 float[] arrayInY = new float[INPUTSIZE * 2] [all...] |
TestHypot.java | 47 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 55 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 65 float[] arrayInX = new float[INPUTSIZE * 1]; 67 float[] arrayInY = new float[INPUTSIZE * 1]; 69 float[] arrayOut = new float[INPUTSIZE * 1]; 71 for (int i = 0; i < INPUTSIZE; i++) { 116 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE); 124 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE); 134 float[] arrayInX = new float[INPUTSIZE * 2]; 136 float[] arrayInY = new float[INPUTSIZE * 2] [all...] |
TestNativeAtan2.java | 47 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 55 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 65 float[] arrayInY = new float[INPUTSIZE * 1]; 67 float[] arrayInX = new float[INPUTSIZE * 1]; 69 float[] arrayOut = new float[INPUTSIZE * 1]; 71 for (int i = 0; i < INPUTSIZE; i++) { 116 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE); 124 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE); 134 float[] arrayInY = new float[INPUTSIZE * 2]; 136 float[] arrayInX = new float[INPUTSIZE * 2] [all...] |
TestNativeAtan2pi.java | 47 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 55 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 65 float[] arrayInY = new float[INPUTSIZE * 1]; 67 float[] arrayInX = new float[INPUTSIZE * 1]; 69 float[] arrayOut = new float[INPUTSIZE * 1]; 71 for (int i = 0; i < INPUTSIZE; i++) { 116 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE); 124 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE); 134 float[] arrayInY = new float[INPUTSIZE * 2]; 136 float[] arrayInX = new float[INPUTSIZE * 2] [all...] |
TestNativeDivide.java | 47 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 55 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 65 float[] arrayInLhs = new float[INPUTSIZE * 1]; 67 float[] arrayInRhs = new float[INPUTSIZE * 1]; 69 float[] arrayOut = new float[INPUTSIZE * 1]; 71 for (int i = 0; i < INPUTSIZE; i++) { 116 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE); 124 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE); 134 float[] arrayInLhs = new float[INPUTSIZE * 2]; 136 float[] arrayInRhs = new float[INPUTSIZE * 2] [all...] |
TestNativeHypot.java | 47 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 55 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 65 float[] arrayInX = new float[INPUTSIZE * 1]; 67 float[] arrayInY = new float[INPUTSIZE * 1]; 69 float[] arrayOut = new float[INPUTSIZE * 1]; 71 for (int i = 0; i < INPUTSIZE; i++) { 116 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE); 124 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE); 134 float[] arrayInX = new float[INPUTSIZE * 2]; 136 float[] arrayInY = new float[INPUTSIZE * 2] [all...] |
TestNativePowr.java | 47 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 55 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 65 float[] arrayInV = new float[INPUTSIZE * 1]; 67 float[] arrayInY = new float[INPUTSIZE * 1]; 69 float[] arrayOut = new float[INPUTSIZE * 1]; 71 for (int i = 0; i < INPUTSIZE; i++) { 116 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE); 124 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE); 134 float[] arrayInV = new float[INPUTSIZE * 2]; 136 float[] arrayInY = new float[INPUTSIZE * 2] [all...] |
TestNativeRootn.java | 47 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 55 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 1), INPUTSIZE); 65 float[] arrayInV = new float[INPUTSIZE * 1]; 67 int[] arrayInN = new int[INPUTSIZE * 1]; 69 float[] arrayOut = new float[INPUTSIZE * 1]; 71 for (int i = 0; i < INPUTSIZE; i++) { 115 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE); 123 Allocation out = Allocation.createSized(mRS, getElement(mRS, Element.DataType.FLOAT_32, 2), INPUTSIZE); 133 float[] arrayInV = new float[INPUTSIZE * 2]; 135 int[] arrayInN = new int[INPUTSIZE * 2] [all...] |