Home
last modified time | relevance | path

Searched refs:intArray (Results 1 – 9 of 9) sorted by relevance

/libcore/luni/src/test/java/libcore/java/lang/reflect/
DOldAndroidArrayTest.java28 Object intArray = Array.newInstance(Integer.TYPE, 2); in testSingleInt() local
30 int[] array = (int[]) intArray; in testSingleInt()
32 Array.setInt(intArray, 1, 6); in testSingleInt()
34 assertEquals(5, Array.getInt(intArray, 0)); in testSingleInt()
45 assertEquals(Array.getLength(intArray), array.length); in testSingleInt()
48 int[][] wrongArray = (int[][]) intArray; in testSingleInt()
54 intArray = Array.newInstance(Integer.TYPE, 0); in testSingleInt()
55 assertEquals(0, Array.getLength(intArray)); in testSingleInt()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DDirectByteBufferTest.java91 int[] intArray = new int[]{967, 1983}; in testUnalignedReadsAndWrites() local
93 intBuf.put(intArray); in testUnalignedReadsAndWrites()
96 intBuf.get(intArray); in testUnalignedReadsAndWrites()
98 assertEquals(967, intArray[0]); in testUnalignedReadsAndWrites()
99 assertEquals(1983, intArray[1]); in testUnalignedReadsAndWrites()
/libcore/benchmarks/src/benchmarks/regression/
DSerializationBenchmark.java37 int[] intArray = new int[256]; in timeReadIntArray() local
38 readSingleObject(reps, intArray); in timeReadIntArray()
42 int[] intArray = new int[256]; in timeWriteIntArray() local
43 writeSingleObject(reps, intArray); in timeWriteIntArray()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DArraysTest.java71 int[] intArray; field in ArraysTest
124 -1, Arrays.binarySearch(intArray, (byte) -1)); in test_binarySearch$BB()
127 Arrays.binarySearch(intArray, (byte) arraySize) == -(arraySize + 1)); in test_binarySearch$BB()
226 Arrays.binarySearch(intArray, counter) == counter); in test_binarySearch$II()
228 -1, Arrays.binarySearch(intArray, -1)); in test_binarySearch$II()
230 Arrays.binarySearch(intArray, arraySize) == -(arraySize + 1)); in test_binarySearch$II()
232 intArray[counter] -= 50; in test_binarySearch$II()
236 Arrays.binarySearch(intArray, counter - 50) == counter); in test_binarySearch$II()
327 -1, Arrays.binarySearch(intArray, (short) -1)); in test_binarySearch$SS()
330 Arrays.binarySearch(intArray, (short) arraySize) == -(arraySize + 1)); in test_binarySearch$SS()
[all …]
/libcore/ojluni/src/test/java/lang/invoke/
DInvokeWithArgumentsTest.java98 static void intArray(int... a) { in intArray() method in InvokeWithArgumentsTest
/libcore/ojluni/src/test/java/util/Arrays/
DArrayObjectMethods.java65 int[] a = Rnd.intArray(size); in test()
311 public static int[] intArray(int length) { in intArray() method in Rnd
377 case 2: result[i] = intArray(length/2); in nestedObjectArray()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DInet6AddressTest.java794 int intArray[] = new int[times]; in byteArrayToHexString() local
796 intArray[i] = bytesToInt(bytes, i * 4); in byteArrayToHexString()
799 return intArrayToHexString(intArray, leadingZeros); in byteArrayToHexString()
/libcore/luni/src/test/java/libcore/java/nio/
DOldAndroidNIOTest.java59 int[] intArray = new int[8]; in testNIO_int_array() local
60 IntBuffer ib = IntBuffer.wrap(intArray); in testNIO_int_array()
/libcore/ojluni/src/main/java/java/lang/invoke/
DTransformers.java823 private static Object intArray( in intArray() method in Transformers.VarargsCollector
1023 return intArray( in makeArityArray()
1069 return intArray(reader, types, startIdx, length); in collectArguments()