Home
last modified time | relevance | path

Searched refs:ar (Results 1 – 15 of 15) sorted by relevance

/libcore/ojluni/src/test/java/util/Arrays/
DSetAllTest.java170 String[] ar = new String[2]; in testStringSetNulls() local
184 Arrays.setAll(ar, null); in testStringSetNulls()
190 Arrays.parallelSetAll(ar, null); in testStringSetNulls()
199 int[] ar = new int[2]; in testIntSetNulls() local
213 Arrays.setAll(ar, null); in testIntSetNulls()
219 Arrays.parallelSetAll(ar, null); in testIntSetNulls()
228 long[] ar = new long[2]; in testLongSetNulls() local
242 Arrays.setAll(ar, null); in testLongSetNulls()
248 Arrays.parallelSetAll(ar, null); in testLongSetNulls()
257 double[] ar = new double[2]; in testDoubleSetNulls() local
[all …]
DCopyMethods.java83 int[] ar = Arrays.copyOfRange(a, 1, 3); in simpleTests() local
84 check(ar.length == 2); in simpleTests()
85 check(ar[0] == a[1]); in simpleTests()
86 check(ar[1] == a[2]); in simpleTests()
87 checkArray(ar, int.class, 2, 1, 2); in simpleTests()
88 ar = Arrays.copyOfRange(a, 2, 4); in simpleTests()
89 check(ar.length == 2); in simpleTests()
90 check(ar[0] == a[2]); in simpleTests()
91 check(ar[1] == 0); in simpleTests()
92 checkArray(ar, int.class, 2, 2, 1); in simpleTests()
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DConcurrentSkipListSubMapTest.java207 Object[] ar = s.toArray();
208 assertTrue(s.containsAll(Arrays.asList(ar)));
209 assertEquals(5, ar.length);
210 ar[0] = m10;
211 assertFalse(s.containsAll(Arrays.asList(ar)));
220 Object[] ar = s.toArray();
221 assertEquals(5, ar.length);
222 assertTrue(s.containsAll(Arrays.asList(ar)));
223 ar[0] = m10;
224 assertFalse(s.containsAll(Arrays.asList(ar)));
[all …]
DConcurrentHashMapTest.java344 Object[] ar = s.toArray(); in testKeySetToArray() local
345 assertTrue(s.containsAll(Arrays.asList(ar))); in testKeySetToArray()
346 assertEquals(5, ar.length); in testKeySetToArray()
347 ar[0] = m10; in testKeySetToArray()
348 assertFalse(s.containsAll(Arrays.asList(ar))); in testKeySetToArray()
357 Object[] ar = v.toArray(); in testValuesToArray() local
358 ArrayList s = new ArrayList(Arrays.asList(ar)); in testValuesToArray()
359 assertEquals(5, ar.length); in testValuesToArray()
373 Object[] ar = s.toArray(); in testEntrySetToArray() local
374 assertEquals(5, ar.length); in testEntrySetToArray()
[all …]
DConcurrentSkipListMapTest.java144 Object[] ar = s.toArray(); in testKeySetToArray() local
145 assertTrue(s.containsAll(Arrays.asList(ar))); in testKeySetToArray()
146 assertEquals(5, ar.length); in testKeySetToArray()
147 ar[0] = m10; in testKeySetToArray()
148 assertFalse(s.containsAll(Arrays.asList(ar))); in testKeySetToArray()
157 Object[] ar = s.toArray(); in testDescendingKeySetToArray() local
158 assertEquals(5, ar.length); in testDescendingKeySetToArray()
159 assertTrue(s.containsAll(Arrays.asList(ar))); in testDescendingKeySetToArray()
160 ar[0] = m10; in testDescendingKeySetToArray()
161 assertFalse(s.containsAll(Arrays.asList(ar))); in testDescendingKeySetToArray()
[all …]
DTreeMapTest.java143 Object[] ar = s.toArray(); in testKeySetToArray() local
144 assertTrue(s.containsAll(Arrays.asList(ar))); in testKeySetToArray()
145 assertEquals(5, ar.length); in testKeySetToArray()
146 ar[0] = m10; in testKeySetToArray()
147 assertFalse(s.containsAll(Arrays.asList(ar))); in testKeySetToArray()
156 Object[] ar = s.toArray(); in testDescendingKeySetToArray() local
157 assertEquals(5, ar.length); in testDescendingKeySetToArray()
158 assertTrue(s.containsAll(Arrays.asList(ar))); in testDescendingKeySetToArray()
159 ar[0] = m10; in testDescendingKeySetToArray()
160 assertFalse(s.containsAll(Arrays.asList(ar))); in testDescendingKeySetToArray()
[all …]
DTreeSubMapTest.java716 Object[] ar = s.toArray();
717 assertTrue(s.containsAll(Arrays.asList(ar)));
718 assertEquals(5, ar.length);
719 ar[0] = m10;
720 assertFalse(s.containsAll(Arrays.asList(ar)));
729 Object[] ar = s.toArray();
730 assertEquals(5, ar.length);
731 assertTrue(s.containsAll(Arrays.asList(ar)));
732 ar[0] = m10;
733 assertFalse(s.containsAll(Arrays.asList(ar)));
[all …]
/libcore/ojluni/src/test/java/util/concurrent/tck/
DConcurrentSkipListSubMapTest.java230 Object[] ar = s.toArray();
231 assertTrue(s.containsAll(Arrays.asList(ar)));
232 assertEquals(5, ar.length);
233 ar[0] = m10;
234 assertFalse(s.containsAll(Arrays.asList(ar)));
243 Object[] ar = s.toArray();
244 assertEquals(5, ar.length);
245 assertTrue(s.containsAll(Arrays.asList(ar)));
246 ar[0] = m10;
247 assertFalse(s.containsAll(Arrays.asList(ar)));
[all …]
DConcurrentHashMapTest.java384 Object[] ar = s.toArray(); in testKeySetToArray() local
385 assertTrue(s.containsAll(Arrays.asList(ar))); in testKeySetToArray()
386 assertEquals(5, ar.length); in testKeySetToArray()
387 ar[0] = m10; in testKeySetToArray()
388 assertFalse(s.containsAll(Arrays.asList(ar))); in testKeySetToArray()
397 Object[] ar = v.toArray(); in testValuesToArray() local
398 ArrayList s = new ArrayList(Arrays.asList(ar)); in testValuesToArray()
399 assertEquals(5, ar.length); in testValuesToArray()
413 Object[] ar = s.toArray(); in testEntrySetToArray() local
414 assertEquals(5, ar.length); in testEntrySetToArray()
[all …]
DConcurrentSkipListMapTest.java167 Object[] ar = s.toArray(); in testKeySetToArray() local
168 assertTrue(s.containsAll(Arrays.asList(ar))); in testKeySetToArray()
169 assertEquals(5, ar.length); in testKeySetToArray()
170 ar[0] = m10; in testKeySetToArray()
171 assertFalse(s.containsAll(Arrays.asList(ar))); in testKeySetToArray()
180 Object[] ar = s.toArray(); in testDescendingKeySetToArray() local
181 assertEquals(5, ar.length); in testDescendingKeySetToArray()
182 assertTrue(s.containsAll(Arrays.asList(ar))); in testDescendingKeySetToArray()
183 ar[0] = m10; in testDescendingKeySetToArray()
184 assertFalse(s.containsAll(Arrays.asList(ar))); in testDescendingKeySetToArray()
[all …]
DTreeMapTest.java166 Object[] ar = s.toArray(); in testKeySetToArray() local
167 assertTrue(s.containsAll(Arrays.asList(ar))); in testKeySetToArray()
168 assertEquals(5, ar.length); in testKeySetToArray()
169 ar[0] = m10; in testKeySetToArray()
170 assertFalse(s.containsAll(Arrays.asList(ar))); in testKeySetToArray()
179 Object[] ar = s.toArray(); in testDescendingKeySetToArray() local
180 assertEquals(5, ar.length); in testDescendingKeySetToArray()
181 assertTrue(s.containsAll(Arrays.asList(ar))); in testDescendingKeySetToArray()
182 ar[0] = m10; in testDescendingKeySetToArray()
183 assertFalse(s.containsAll(Arrays.asList(ar))); in testDescendingKeySetToArray()
[all …]
DTreeSubMapTest.java739 Object[] ar = s.toArray();
740 assertTrue(s.containsAll(Arrays.asList(ar)));
741 assertEquals(5, ar.length);
742 ar[0] = m10;
743 assertFalse(s.containsAll(Arrays.asList(ar)));
752 Object[] ar = s.toArray();
753 assertEquals(5, ar.length);
754 assertTrue(s.containsAll(Arrays.asList(ar)));
755 ar[0] = m10;
756 assertFalse(s.containsAll(Arrays.asList(ar)));
[all …]
/libcore/ojluni/src/main/java/java/util/
DArraysParallelSortHelpers.java221 T t, al, ar; in compute() local
222 if (c.compare((al = a[lb]), (ar = a[rb])) <= 0) { in compute()
226 rb++; t = ar; in compute()
/libcore/dom/src/test/resources/META-INF/
DMANIFEST.MF5 ar crimson-parser.jar avalon-run.jar
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DCipherTest.java804 byte[] ar = c.wrap(CIPHER_KEY_3DES); in test_unwrap$BLjava_lang_StringI()
814 assertFalse(CIPHER_KEY_DES.equals(c.unwrap(ar, "DES", Cipher.SECRET_KEY))); in test_unwrap$BLjava_lang_StringI()