/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | ArrayTest.java | 28 private static int[] ints; field in ArrayTest 39 ints = new int[] { 0xffffffff }; in setUp() 50 try { Array.getBoolean(ints, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetBoolean() 62 try { Array.getByte(ints, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetByte() 74 try { Array.getChar(ints, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetChar() 86 assertEquals((double) ints[0], Array.getDouble(ints, 0)); in testGetDouble() 98 assertEquals((float) ints[0], Array.getFloat(ints, 0)); in testGetFloat() 110 assertEquals(ints[0], Array.getInt(ints, 0)); in testGetInt() 122 assertEquals((long) ints[0], Array.getLong(ints, 0)); in testGetLong() 134 try { Array.getShort(ints, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetShort() [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | PriorityQueueTest.java | 76 Integer[] ints = new Integer[SIZE]; in testConstructor4() local 77 PriorityQueue q = new PriorityQueue(Arrays.asList(ints)); in testConstructor4() 87 Integer[] ints = new Integer[SIZE]; in testConstructor5() local 89 ints[i] = new Integer(i); in testConstructor5() 90 PriorityQueue q = new PriorityQueue(Arrays.asList(ints)); in testConstructor5() 99 Integer[] ints = new Integer[SIZE]; in testConstructor6() local 101 ints[i] = new Integer(i); in testConstructor6() 102 PriorityQueue q = new PriorityQueue(Arrays.asList(ints)); in testConstructor6() 104 assertEquals(ints[i], q.poll()); in testConstructor6() 114 Integer[] ints = new Integer[SIZE]; in testConstructor7() local [all …]
|
D | AbstractQueueTest.java | 137 Integer[] ints = new Integer[SIZE]; in testAddAll2() local 138 q.addAll(Arrays.asList(ints)); in testAddAll2() 150 Integer[] ints = new Integer[SIZE]; in testAddAll3() local 152 ints[i] = new Integer(i); in testAddAll3() 153 q.addAll(Arrays.asList(ints)); in testAddAll3() 164 Integer[] ints = new Integer[SIZE]; in testAddAll4() local 166 ints[i] = new Integer(i); in testAddAll4() 167 q.addAll(Arrays.asList(ints)); in testAddAll4()
|
D | ConcurrentLinkedQueueTest.java | 57 Integer[] ints = new Integer[SIZE]; in testConstructor4() local 58 ConcurrentLinkedQueue q = new ConcurrentLinkedQueue(Arrays.asList(ints)); in testConstructor4() 68 Integer[] ints = new Integer[SIZE]; in testConstructor5() local 70 ints[i] = new Integer(i); in testConstructor5() 71 ConcurrentLinkedQueue q = new ConcurrentLinkedQueue(Arrays.asList(ints)); in testConstructor5() 80 Integer[] ints = new Integer[SIZE]; in testConstructor6() local 82 ints[i] = new Integer(i); in testConstructor6() 83 ConcurrentLinkedQueue q = new ConcurrentLinkedQueue(Arrays.asList(ints)); in testConstructor6() 85 assertEquals(ints[i], q.poll()); in testConstructor6() 187 Integer[] ints = new Integer[SIZE]; in testAddAll2() local [all …]
|
D | PriorityBlockingQueueTest.java | 97 Integer[] ints = new Integer[SIZE]; in testConstructor5() local 99 ints[i] = i; in testConstructor5() 100 Collection<Integer> elements = Arrays.asList(ints); in testConstructor5() 111 Integer[] ints = new Integer[SIZE]; in testConstructor6() local 113 ints[i] = i; in testConstructor6() 114 PriorityBlockingQueue q = new PriorityBlockingQueue(Arrays.asList(ints)); in testConstructor6() 116 assertEquals(ints[i], q.poll()); in testConstructor6() 126 Integer[] ints = new Integer[SIZE]; in testConstructor7() local 128 ints[i] = new Integer(i); in testConstructor7() 129 q.addAll(Arrays.asList(ints)); in testConstructor7() [all …]
|
D | DelayQueueTest.java | 150 PDelay[] ints = new PDelay[SIZE]; in testConstructor4() local 151 DelayQueue q = new DelayQueue(Arrays.asList(ints)); in testConstructor4() 161 PDelay[] ints = new PDelay[SIZE]; in testConstructor5() local 163 ints[i] = new PDelay(i); in testConstructor5() 164 DelayQueue q = new DelayQueue(Arrays.asList(ints)); in testConstructor5() 173 PDelay[] ints = new PDelay[SIZE]; in testConstructor6() local 175 ints[i] = new PDelay(i); in testConstructor6() 176 DelayQueue q = new DelayQueue(Arrays.asList(ints)); in testConstructor6() 178 assertEquals(ints[i], q.poll()); in testConstructor6() 252 PDelay[] ints = new PDelay[SIZE]; in testAddAll3() local [all …]
|
D | ConcurrentLinkedDequeTest.java | 59 Integer[] ints = new Integer[SIZE]; in testConstructor4() local 60 ConcurrentLinkedDeque q = new ConcurrentLinkedDeque(Arrays.asList(ints)); in testConstructor4() 70 Integer[] ints = new Integer[SIZE]; in testConstructor5() local 72 ints[i] = new Integer(i); in testConstructor5() 73 ConcurrentLinkedDeque q = new ConcurrentLinkedDeque(Arrays.asList(ints)); in testConstructor5() 82 Integer[] ints = new Integer[SIZE]; in testConstructor6() local 84 ints[i] = new Integer(i); in testConstructor6() 85 ConcurrentLinkedDeque q = new ConcurrentLinkedDeque(Arrays.asList(ints)); in testConstructor6() 87 assertEquals(ints[i], q.poll()); in testConstructor6() 314 Integer[] ints = new Integer[SIZE]; in testAddAll2() local [all …]
|
D | LinkedBlockingQueueTest.java | 88 Integer[] ints = new Integer[SIZE]; in testConstructor5() local 90 ints[i] = new Integer(i); in testConstructor5() 91 Collection<Integer> elements = Arrays.asList(ints); in testConstructor5() 102 Integer[] ints = new Integer[SIZE]; in testConstructor6() local 104 ints[i] = new Integer(i); in testConstructor6() 105 LinkedBlockingQueue q = new LinkedBlockingQueue(Arrays.asList(ints)); in testConstructor6() 107 assertEquals(ints[i], q.poll()); in testConstructor6() 182 Integer[] ints = new Integer[SIZE]; in testAddAll3() local 184 ints[i] = new Integer(i); in testAddAll3() 185 Collection<Integer> elements = Arrays.asList(ints); in testAddAll3() [all …]
|
D | TreeSetTest.java | 88 Integer[] ints = new Integer[SIZE]; in testConstructor4() local 89 TreeSet q = new TreeSet(Arrays.asList(ints)); in testConstructor4() 99 Integer[] ints = new Integer[SIZE]; in testConstructor5() local 101 ints[i] = new Integer(i); in testConstructor5() 102 TreeSet q = new TreeSet(Arrays.asList(ints)); in testConstructor5() 111 Integer[] ints = new Integer[SIZE]; in testConstructor6() local 113 ints[i] = new Integer(i); in testConstructor6() 114 TreeSet q = new TreeSet(Arrays.asList(ints)); in testConstructor6() 116 assertEquals(ints[i], q.pollFirst()); in testConstructor6() 126 Integer[] ints = new Integer[SIZE]; in testConstructor7() local [all …]
|
D | ConcurrentSkipListSetTest.java | 84 Integer[] ints = new Integer[SIZE]; in testConstructor4() local 85 ConcurrentSkipListSet q = new ConcurrentSkipListSet(Arrays.asList(ints)); in testConstructor4() 95 Integer[] ints = new Integer[SIZE]; in testConstructor5() local 97 ints[i] = new Integer(i); in testConstructor5() 98 ConcurrentSkipListSet q = new ConcurrentSkipListSet(Arrays.asList(ints)); in testConstructor5() 107 Integer[] ints = new Integer[SIZE]; in testConstructor6() local 109 ints[i] = new Integer(i); in testConstructor6() 110 ConcurrentSkipListSet q = new ConcurrentSkipListSet(Arrays.asList(ints)); in testConstructor6() 112 assertEquals(ints[i], q.pollFirst()); in testConstructor6() 122 Integer[] ints = new Integer[SIZE]; in testConstructor7() local [all …]
|
D | ArrayBlockingQueueTest.java | 84 Integer[] ints = new Integer[SIZE]; in testConstructor5() local 86 ints[i] = i; in testConstructor5() 87 Collection<Integer> elements = Arrays.asList(ints); in testConstructor5() 89 new ArrayBlockingQueue(SIZE, false, Arrays.asList(ints)); in testConstructor5() 98 Integer[] ints = new Integer[SIZE]; in testConstructor6() local 100 ints[i] = i; in testConstructor6() 101 Collection<Integer> elements = Arrays.asList(ints); in testConstructor6() 112 Integer[] ints = new Integer[SIZE]; in testConstructor7() local 114 ints[i] = i; in testConstructor7() 115 Collection<Integer> elements = Arrays.asList(ints); in testConstructor7() [all …]
|
D | ConcurrentSkipListSubSetTest.java | 191 Integer[] ints = new Integer[SIZE]; in testAddAll2() local 192 q.addAll(Arrays.asList(ints)); in testAddAll2() 204 Integer[] ints = new Integer[SIZE]; in testAddAll3() local 206 ints[i] = new Integer(i+SIZE); in testAddAll3() 207 q.addAll(Arrays.asList(ints)); in testAddAll3() 217 Integer[] ints = new Integer[SIZE]; in testAddAll5() local 219 ints[i] = new Integer(SIZE-1- i); in testAddAll5() 222 assertTrue(q.addAll(Arrays.asList(ints))); in testAddAll5() 421 Integer[] ints = new Integer[SIZE]; in testToArray2() local 422 Integer[] array = q.toArray(ints); in testToArray2() [all …]
|
D | TreeSubSetTest.java | 183 Integer[] ints = new Integer[SIZE]; in testAddAll2() local 184 q.addAll(Arrays.asList(ints)); in testAddAll2() 196 Integer[] ints = new Integer[SIZE]; in testAddAll3() local 198 ints[i] = new Integer(i+SIZE); in testAddAll3() 199 q.addAll(Arrays.asList(ints)); in testAddAll3() 209 Integer[] ints = new Integer[SIZE]; in testAddAll5() local 211 ints[i] = new Integer(SIZE-1- i); in testAddAll5() 214 assertTrue(q.addAll(Arrays.asList(ints))); in testAddAll5() 413 Integer[] ints = new Integer[SIZE]; in testToArray2() local 414 Integer[] array = q.toArray(ints); in testToArray2() [all …]
|
D | SynchronousQueueTest.java | 84 Integer[] ints = new Integer[1]; in testAddAll_ISE() local 85 for (int i = 0; i < ints.length; i++) in testAddAll_ISE() 86 ints[i] = i; in testAddAll_ISE() 87 Collection<Integer> coll = Arrays.asList(ints); in testAddAll_ISE() 334 Integer[] ints = new Integer[1]; ints[0] = zero; 335 assertFalse(q.containsAll(Arrays.asList(ints))); 347 Integer[] ints = new Integer[1]; ints[0] = zero; 348 assertFalse(q.retainAll(Arrays.asList(ints))); 360 Integer[] ints = new Integer[1]; ints[0] = zero; 361 assertFalse(q.containsAll(Arrays.asList(ints)));
|
D | LinkedListTest.java | 55 Integer[] ints = new Integer[SIZE]; in testConstructor6() local 57 ints[i] = i; in testConstructor6() 58 LinkedList q = new LinkedList(Arrays.asList(ints)); in testConstructor6() 60 assertEquals(ints[i], q.poll()); in testConstructor6() 136 Integer[] ints = new Integer[SIZE]; in testAddAll5() local 138 ints[i] = i; in testAddAll5() 141 assertTrue(q.addAll(Arrays.asList(ints))); in testAddAll5() 143 assertEquals(ints[i], q.poll()); in testAddAll5() 339 Integer[] ints = new Integer[SIZE]; in testToArray2() local 340 Integer[] array = q.toArray(ints); in testToArray2() [all …]
|
D | ArrayDequeTest.java | 57 Integer[] ints = new Integer[SIZE]; in testConstructor4() local 58 ArrayDeque q = new ArrayDeque(Arrays.asList(ints)); in testConstructor4() 68 Integer[] ints = new Integer[SIZE]; in testConstructor5() local 70 ints[i] = new Integer(i); in testConstructor5() 71 ArrayDeque q = new ArrayDeque(Arrays.asList(ints)); in testConstructor5() 80 Integer[] ints = new Integer[SIZE]; in testConstructor6() local 82 ints[i] = new Integer(i); in testConstructor6() 83 ArrayDeque q = new ArrayDeque(Arrays.asList(ints)); in testConstructor6() 85 assertEquals(ints[i], q.pollFirst()); in testConstructor6() 301 Integer[] ints = new Integer[SIZE]; in testAddAll2() local [all …]
|
D | LinkedTransferQueueTest.java | 70 Integer[] ints = new Integer[SIZE]; in testConstructor4() local 72 ints[i] = i; in testConstructor4() 73 Collection<Integer> elements = Arrays.asList(ints); in testConstructor4() 84 Integer[] ints = new Integer[SIZE]; in testConstructor5() local 86 ints[i] = i; in testConstructor5() 88 List intList = Arrays.asList(ints); in testConstructor5() 100 assertEquals(ints[i], q.poll()); in testConstructor5() 139 Integer[] ints = new Integer[SIZE]; in testAddAll3() local 141 ints[i] = i; in testAddAll3() 143 q.addAll(Arrays.asList(ints)); in testAddAll3() [all …]
|
D | LinkedBlockingDequeTest.java | 346 Integer[] ints = new Integer[SIZE]; in testConstructor5() local 348 ints[i] = i; in testConstructor5() 349 Collection<Integer> elements = Arrays.asList(ints); in testConstructor5() 360 Integer[] ints = new Integer[SIZE]; in testConstructor6() local 362 ints[i] = i; in testConstructor6() 363 LinkedBlockingDeque q = new LinkedBlockingDeque(Arrays.asList(ints)); in testConstructor6() 365 assertEquals(ints[i], q.poll()); in testConstructor6() 492 Integer[] ints = new Integer[SIZE]; in testAddAll3() local 494 ints[i] = new Integer(i); in testAddAll3() 495 Collection<Integer> elements = Arrays.asList(ints); in testAddAll3() [all …]
|
D | CopyOnWriteArrayListTest.java | 58 Integer[] ints = new Integer[SIZE]; in testConstructor2() local 60 ints[i] = new Integer(i); in testConstructor2() 61 CopyOnWriteArrayList a = new CopyOnWriteArrayList(ints); in testConstructor2() 63 assertEquals(ints[i], a.get(i)); in testConstructor2() 70 Integer[] ints = new Integer[SIZE]; in testConstructor3() local 72 ints[i] = new Integer(i); in testConstructor3() 73 CopyOnWriteArrayList a = new CopyOnWriteArrayList(Arrays.asList(ints)); in testConstructor3() 75 assertEquals(ints[i], a.get(i)); in testConstructor3()
|
D | CopyOnWriteArraySetTest.java | 56 Integer[] ints = new Integer[SIZE]; in testConstructor3() local 58 ints[i] = new Integer(i); in testConstructor3() 59 CopyOnWriteArraySet a = new CopyOnWriteArraySet(Arrays.asList(ints)); in testConstructor3() 61 assertTrue(a.contains(ints[i])); in testConstructor3()
|
/libcore/luni/src/test/java/libcore/java/nio/ |
D | BufferTest.java | 156 int[] ints = new int[4]; in testByteSwappedBulkGet() local 157 b.order(ByteOrder.BIG_ENDIAN).asIntBuffer().get(ints, 1, 2); in testByteSwappedBulkGet() 158 assertEquals(0, ints[0]); in testByteSwappedBulkGet() 159 assertEquals(0x01020304, ints[1]); in testByteSwappedBulkGet() 160 assertEquals(0x05060708, ints[2]); in testByteSwappedBulkGet() 161 assertEquals(0, ints[3]); in testByteSwappedBulkGet() 162 b.order(ByteOrder.LITTLE_ENDIAN).asIntBuffer().get(ints, 1, 2); in testByteSwappedBulkGet() 163 assertEquals(0, ints[0]); in testByteSwappedBulkGet() 164 assertEquals(0x04030201, ints[1]); in testByteSwappedBulkGet() 165 assertEquals(0x08070605, ints[2]); in testByteSwappedBulkGet() [all …]
|
/libcore/luni/src/main/java/java/math/ |
D | NativeBN.java | 47 public static native void litEndInts2bn(int[] ints, int len, boolean neg, long ret); in litEndInts2bn() argument
|
/libcore/luni/src/main/native/ |
D | libcore_icu_NativeDecimalFormat.cpp | 242 ScopedIntArrayRW ints(env, javaData); in formatResult() local 243 if (ints.get() == NULL) { in formatResult() 246 memcpy(ints.get(), &data[0], data.size() * sizeof(int32_t)); in formatResult()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | Inet6AddressTest.java | 853 String intArrayToHexString(int ints[], boolean leadingZeros) { in intArrayToHexString() argument 857 int intsLength = ints.length; in intArrayToHexString() 859 tempString = Integer.toHexString(ints[i]); in intArrayToHexString()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
D | CharsetTest.java | 271 private byte[] toByteArray(int[] ints) { in toByteArray() argument 272 byte[] result = new byte[ints.length]; in toByteArray() 273 for (int i = 0; i < ints.length; ++i) { in toByteArray() 274 result[i] = (byte) ints[i]; in toByteArray()
|