Home
last modified time | relevance | path

Searched refs:r2 (Results 1 – 24 of 24) sorted by relevance

/libcore/ojluni/src/test/java/util/Random/
DRandomStreamTest.java97 final Random r2 = new Random(seed); // same seed in testIntStream() local
98 final int[] b = r2.ints().limit(SIZE).toArray(); in testIntStream()
111 final Random r2 = new Random(seed); // same seed in testLongStream() local
112 final long[] b = r2.longs().limit(SIZE).toArray(); in testLongStream()
125 final Random r2 = new Random(seed); // same seed in testDoubleStream() local
126 final double[] b = r2.doubles().limit(SIZE).toArray(); in testDoubleStream()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DRandomTest.java42 Random r2 = new Random(8409238L); in test_ConstructorJ() local
45 .nextInt() == r2.nextInt()); in test_ConstructorJ()
51 Random r2 = new Random(); in test_setSeed() local
52 r2.setSeed(1337); in test_setSeed()
55 .nextInt() == r2.nextInt()); in test_setSeed()
/libcore/ojluni/src/test/java/io/FileWriter/
DConstructorTest.java92 FileReader r2 = getFileReader(type, file2, charset); in test() argument
95 String result2 = readAll(r2, BUFFER_SIZE); in test()
/libcore/luni/src/test/java/libcore/java/util/
DRandomTest.java61 MyRandom r2 = new MyRandom(123L); in test_subclassing() local
62 r2.nextInt(); in test_subclassing()
63 assertNotNull(r2.state); in test_subclassing()
/libcore/luni/src/test/java/libcore/java/lang/
DLambdaImplementationTest.java303 Callable<String> r1, Callable<String> r2) throws Exception { in assertMultipleDefinitionCharacteristics() argument
306 assertEquals(r1.call(), r2.call()); in assertMultipleDefinitionCharacteristics()
325 Callable<String> r1, Callable<String> r2) throws Exception { in assertMultipleInstanceCharacteristics() argument
328 assertEquals(r1.call(), r2.call()); in assertMultipleInstanceCharacteristics()
/libcore/jsr166-tests/src/test/java/jsr166/
DCompletableFutureTest.java1666 final SubtractFunction r2 = new SubtractFunction(m); in testThenCombine_exceptionalCompletion() local
1680 final CompletableFuture<Integer> h2 = m.thenCombine(f, g, r2); in testThenCombine_exceptionalCompletion()
1690 r2.assertNotInvoked(); in testThenCombine_exceptionalCompletion()
1709 final SubtractFunction r2 = new SubtractFunction(m); in testThenCombine_sourceCancelled() local
1723 final CompletableFuture<Integer> h2 = m.thenCombine(f, g, r2); in testThenCombine_sourceCancelled()
1733 r2.assertNotInvoked(); in testThenCombine_sourceCancelled()
1751 final FailingBiFunction r2 = new FailingBiFunction(m); in testThenCombine_actionFailed() local
1761 final CompletableFuture<Integer> h2 = m.thenCombine(f, g, r2); in testThenCombine_actionFailed()
1769 r2.assertInvoked(); in testThenCombine_actionFailed()
1788 final SubtractAction r2 = new SubtractAction(m); in testThenAcceptBoth_normalCompletion() local
[all …]
DThreadPoolExecutorTest.java1193 LatchAwaiter r2 = awaiter(done); in testSaturatedExecute4() local
1202 assertEquals(LatchAwaiter.NEW, r2.state); in testSaturatedExecute4()
1205 p.execute(r2); in testSaturatedExecute4()
1206 assertTrue(p.getQueue().contains(r2)); in testSaturatedExecute4()
1208 assertFalse(p.getQueue().contains(r2)); in testSaturatedExecute4()
1212 assertEquals(LatchAwaiter.NEW, r2.state); in testSaturatedExecute4()
DThreadPoolExecutorSubclassTest.java1222 LatchAwaiter r2 = awaiter(done); in testSaturatedExecute4() local
1231 assertEquals(LatchAwaiter.NEW, r2.state); in testSaturatedExecute4()
1234 p.execute(r2); in testSaturatedExecute4()
1235 assertTrue(p.getQueue().contains(r2)); in testSaturatedExecute4()
1237 assertFalse(p.getQueue().contains(r2)); in testSaturatedExecute4()
1241 assertEquals(LatchAwaiter.NEW, r2.state); in testSaturatedExecute4()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DZipFileTest.java323 int r1, r2; in test_reset() local
326 r2 = is.read(rbuf2); in test_reset()
327 assertEquals(rbuf2.length, r2); in test_reset()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DCollectorExample.java82 R r2 = finisher.apply(combiner.apply(a2, a3)); in testSnippet1() local
DCollectorsTest.java307 R2 r2 = source.get().collect(c2); in assertValue() local
308 RR expected = finisher.apply(r1, r2); in assertValue()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DCompletableFutureTest.java1789 final SubtractFunction r2 = new SubtractFunction(m); in testThenCombine_exceptionalCompletion() local
1803 final CompletableFuture<Item> h2 = m.thenCombine(f, g, r2); in testThenCombine_exceptionalCompletion()
1813 r2.assertNotInvoked(); in testThenCombine_exceptionalCompletion()
1832 final SubtractFunction r2 = new SubtractFunction(m); in testThenCombine_sourceCancelled() local
1846 final CompletableFuture<Item> h2 = m.thenCombine(f, g, r2); in testThenCombine_sourceCancelled()
1856 r2.assertNotInvoked(); in testThenCombine_sourceCancelled()
1874 final FailingBiFunction r2 = new FailingBiFunction(m); in testThenCombine_actionFailed() local
1884 final CompletableFuture<Item> h2 = m.thenCombine(f, g, r2); in testThenCombine_actionFailed()
1889 checkCompletedWithWrappedException(h2, r2.ex); in testThenCombine_actionFailed()
1892 r2.assertInvoked(); in testThenCombine_actionFailed()
[all …]
DThreadPoolExecutorTest.java1215 LatchAwaiter r2 = awaiter(done); in testSaturatedExecute4() local
1224 assertEquals(LatchAwaiter.NEW, r2.state); in testSaturatedExecute4()
1227 p.execute(r2); in testSaturatedExecute4()
1228 assertTrue(p.getQueue().contains(r2)); in testSaturatedExecute4()
1230 assertFalse(p.getQueue().contains(r2)); in testSaturatedExecute4()
1234 assertEquals(LatchAwaiter.NEW, r2.state); in testSaturatedExecute4()
DThreadPoolExecutorSubclassTest.java1244 LatchAwaiter r2 = awaiter(done); in testSaturatedExecute4() local
1253 assertEquals(LatchAwaiter.NEW, r2.state); in testSaturatedExecute4()
1256 p.execute(r2); in testSaturatedExecute4()
1257 assertTrue(p.getQueue().contains(r2)); in testSaturatedExecute4()
1259 assertFalse(p.getQueue().contains(r2)); in testSaturatedExecute4()
1263 assertEquals(LatchAwaiter.NEW, r2.state); in testSaturatedExecute4()
DCollection8Test.java578 Object r1, r2;
588 r2 = iteratedForEachRemaining;
590 r2 = ConcurrentModificationException.class;
593 assertEquals(r1, r2);
/libcore/ojluni/src/test/java/util/Base64/
DTestBase64.java519 private static final void checkEqual(byte[] r1, byte[] r2, String msg) in checkEqual() argument
521 if (!Arrays.equals(r1, r2)) { in checkEqual()
523 System.out.printf(" r2[%d]=[%s]%n", r2.length, new String(r2)); in checkEqual()
/libcore/ojluni/src/test/java/io/Serializable/records/
DWriteReplaceTest.java65 record R3 (R1 r1, R2 r2) implements Serializable { }
/libcore/ojluni/src/main/java/java/util/stream/
DCollectors.java264 (r1, r2) -> { r1.addAll(r2); return r1; },
379 (r1, r2) -> { r1.append(r2); return r1; },
1991 R2 r2 = c2Finisher.apply(right);
1992 return merger.apply(r1, r2);
/libcore/ojluni/src/test/java/lang/reflect/records/
DRecordReflectionTest.java51 record R4(R1 r1, R2 r2, R3 r3) {} in R4() argument
/libcore/ojluni/src/main/java/sun/security/x509/
DX500Name.java410 RDN r2 = other.names[i]; in equals() local
411 if (r1.assertion.length != r2.assertion.length) { in equals()
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DOpTestCase.java117 Collection<U> r2 = withData(data).stream(m).exercise(); in exerciseOpsMulti() local
118 assertEquals(result, r2); in exerciseOpsMulti()
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DOpTestCase.java118 Collection<U> r2 = withData(data).stream(m).exercise(); in exerciseOpsMulti() local
119 assertEquals(result, r2); in exerciseOpsMulti()
/libcore/ojluni/src/main/java/java/math/
DMutableBigInteger.java1335 MutableBigInteger r2 = divide3n2n(b, quotient); in divide2n1n() local
1339 return r2; in divide2n1n()
DBigInteger.java4195 BigInteger r2 = r.toBigInteger(tmp.signum * d.signum);
4197 digitGroups[numGroups++] = r2.longValue();