/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ThreadLocalRandomTest.java | 130 for (int bound : new int[] { 0, -17, Integer.MIN_VALUE }) { 132 rnd.nextInt(bound); 162 for (int bound = 2; bound < MAX_INT_BOUND; bound += 524959) { 163 int f = ThreadLocalRandom.current().nextInt(bound); 164 assertTrue(0 <= f && f < bound); 168 (j = ThreadLocalRandom.current().nextInt(bound)) == f) { 169 assertTrue(0 <= j && j < bound); 182 for (int bound = least + 2; bound > least && bound < MAX_INT_BOUND; bound += 49979687) { 183 int f = ThreadLocalRandom.current().nextInt(least, bound); 184 assertTrue(least <= f && f < bound); [all …]
|
D | ThreadLocalRandom8Test.java | 125 for (int bound = least + 2; bound > least && bound < MAX_INT_BOUND; bound += 67867967) { in testBoundedInts() 126 final int lo = least, hi = bound; in testBoundedInts() 144 …for (long bound = least + 2; bound > least && bound < MAX_LONG_BOUND; bound += Math.abs(bound * 79… in testBoundedLongs() 145 final long lo = least, hi = bound; in testBoundedLongs() 163 for (double bound = least * 1.0011; bound < 1.0e20; bound *= 17) { in testBoundedDoubles() 164 final double lo = least, hi = bound; in testBoundedDoubles()
|
/libcore/ojluni/src/main/java/java/util/ |
D | SplittableRandom.java | 265 final long internalNextLong(long origin, long bound) { in internalNextLong() argument 293 if (origin < bound) { in internalNextLong() 294 long n = bound - origin, m = n - 1; in internalNextLong() 305 while (r < origin || r >= bound) in internalNextLong() 320 final int internalNextInt(int origin, int bound) { in internalNextInt() argument 322 if (origin < bound) { in internalNextInt() 323 int n = bound - origin, m = n - 1; in internalNextInt() 334 while (r < origin || r >= bound) in internalNextInt() 348 final double internalNextDouble(double origin, double bound) { in internalNextDouble() argument 350 if (origin < bound) { in internalNextDouble() [all …]
|
D | Random.java | 244 final long internalNextLong(long origin, long bound) { in internalNextLong() argument 246 if (origin < bound) { in internalNextLong() 247 long n = bound - origin, m = n - 1; in internalNextLong() 258 while (r < origin || r >= bound) in internalNextLong() 275 final int internalNextInt(int origin, int bound) { in internalNextInt() argument 276 if (origin < bound) { in internalNextInt() 277 int n = bound - origin; in internalNextInt() 285 } while (r < origin || r >= bound); in internalNextInt() 301 final double internalNextDouble(double origin, double bound) { in internalNextDouble() argument 303 if (origin < bound) { in internalNextDouble() [all …]
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ThreadLocalRandom.java | 210 final long internalNextLong(long origin, long bound) { in internalNextLong() argument 212 if (origin < bound) { in internalNextLong() 213 long n = bound - origin, m = n - 1; in internalNextLong() 224 while (r < origin || r >= bound) in internalNextLong() 239 final int internalNextInt(int origin, int bound) { in internalNextInt() argument 241 if (origin < bound) { in internalNextInt() 242 int n = bound - origin, m = n - 1; in internalNextInt() 253 while (r < origin || r >= bound) in internalNextInt() 267 final double internalNextDouble(double origin, double bound) { in internalNextDouble() argument 269 if (origin < bound) { in internalNextDouble() [all …]
|
D | Exchanger.java | 313 int bound; // Last recorded value of Exchanger.bound field in Exchanger.Node 348 private volatile int bound; field in Exchanger 373 else if (i <= (m = (b = bound) & MMASK) && q == null) { in arenaExchange() 425 if (p.bound != b) { // stale; reset in arenaExchange() 426 p.bound = b; in arenaExchange() 469 if (NCPU > 1 && bound == 0 && in slotExchange()
|
D | ForkJoinPool.java | 1932 int bound = (w.config & SPARE_WORKER) != 0 ? 0 : POLL_LIMIT; in runWorker() local 1936 if (bound == 0 && tryDropSpare(w)) in runWorker() 1941 if (scan(w, bound, step, (int)r) < 0 && awaitWork(w) < 0) in runWorker() 1964 private int scan(WorkQueue w, int bound, int step, int r) { in scan() argument 1994 if (++npolls > bound) in scan()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | RandomTest.java | 79 final int origin = 128, bound = 256; in test_ints$II() local 84 rands[i] = rand.nextInt(bound - origin) + origin; in test_ints$II() 87 int[] streamRands = new Random(0).ints(origin, bound).limit(limit).toArray(); in test_ints$II() 98 final int origin = 128, bound = 256; in test_ints$LII() local 103 rands[i] = rand.nextInt(bound - origin) + origin; in test_ints$LII() 106 int[] streamRands = new Random(0).ints(size, origin, bound).toArray(); in test_ints$LII() 108 assertEquals(size, new Random(0).ints(size, origin, bound).count()); in test_ints$LII() 154 final int origin = 128, bound = 256; in test_longs$II() local 162 long[] streamRands = new Random(0).longs(origin, bound).limit(limit).toArray(); in test_longs$II() 173 final int origin = 128, bound = 256; in test_longs$LII() local [all …]
|
D | TreeMapTest.java | 596 private static<V> NavigableMap<Integer, V> applyBound(char bound, NavigableMap<Integer, V> m) { in applyBound() argument 598 if (isLowerBound(bound)) { in applyBound() 599 return m.tailMap(boundValue, isBoundInclusive(bound)); in applyBound() 601 return m.headMap(boundValue, isBoundInclusive(bound)); in applyBound() 605 private static boolean isBoundInclusive(char bound) { in isBoundInclusive() argument 606 return bound == '[' || bound == ']'; in isBoundInclusive() 613 private static boolean isLowerBound(char bound) { in isLowerBound() argument 614 return bound == '[' || bound == '('; in isLowerBound()
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Random.java | 62 final long internalNextLong(long origin, long bound) { in internalNextLong() argument 66 final int internalNextInt(int origin, int bound) { in internalNextInt() argument 70 final double internalNextDouble(double origin, double bound) { in internalNextDouble() argument 78 public int nextInt(int bound) { in nextInt() argument 221 java.util.Random rng, long index, long fence, double origin, double bound) { in RandomDoublesSpliterator() argument 245 final double bound; field in Random.RandomDoublesSpliterator 248 bound = 0; 275 RandomIntsSpliterator(java.util.Random rng, long index, long fence, int origin, int bound) { in RandomIntsSpliterator() argument 299 final int bound; field in Random.RandomIntsSpliterator 302 bound = 0; [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/ |
D | HttpURLConnectionTest.java | 44 private final static Object bound = new Object(); field in HttpURLConnectionTest 64 synchronized (bound) { in run() 66 bound.notify(); in run() 166 synchronized(bound) { in testGetOutputStream() 168 bound.wait(5000); in testGetOutputStream() 201 synchronized(bound) { in testUsingProxy() 202 if (!server.started) bound.wait(5000); in testUsingProxy() 205 synchronized(bound) { in testUsingProxy() 206 if (!proxy.started) bound.wait(5000); in testUsingProxy() 246 synchronized(bound) { in testUsingProxySelector() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | BoundedGenericMethodsTests.java | 57 Type bound = bounds[0]; in checkBoundedTypeParameter() local 58 assertEquals(BoundedGenericMethods.class, bound); in checkBoundedTypeParameter() 94 Type bound = bounds[0]; in checkReturnType() local 96 assertEquals(BoundedGenericMethods.class, bound); in checkReturnType()
|
D | WildcardTypeTest.java | 64 Type bound = bounds[0]; in checkBoundedTypeParameter() local 65 assertEquals(BoundedWildcardsGenericMethods.class, bound); in checkBoundedTypeParameter() 123 Type bound = bounds[0]; in checkReturnType() local 125 assertEquals(BoundedWildcardsGenericMethods.class, bound); in checkReturnType()
|
/libcore/ojluni/src/main/java/java/net/ |
D | ServerSocket.java | 57 private boolean bound = false; field in ServerSocket 379 bound = true; in bind() 381 bound = false; in bind() 384 bound = false; in bind() 620 return bound || oldImpl; in isBound() 761 bound = true; in setBound()
|
D | Socket.java | 61 private boolean bound = false; field in Socket 471 bound = false; in Socket() 634 bound = true; in connect() 677 bound = true; in bind() 695 bound = true; in postAccept() 703 bound = true; in setBound() 1651 return bound || oldImpl; in isBound()
|
D | DatagramSocket.java | 79 private boolean bound = false; field in DatagramSocket 417 bound = true; in bind() 551 return bound; in isBound()
|
/libcore/ojluni/annotations/hiddenapi/java/net/ |
D | ServerSocket.java | 163 private boolean bound = false; field in ServerSocket
|
D | DatagramSocket.java | 211 private boolean bound = false; field in DatagramSocket
|
D | Socket.java | 299 private boolean bound = false; field in Socket
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | ServerSocketChannelImpl.java | 95 boolean bound) in ServerSocketChannelImpl() argument 102 if (bound) in ServerSocketChannelImpl()
|
D | SocketChannelImpl.java | 143 boolean bound) in SocketChannelImpl() argument 156 if (bound) in SocketChannelImpl()
|
/libcore/luni/src/test/java/libcore/android/system/ |
D | OsTest.java | 559 PacketSocketAddress bound = (PacketSocketAddress) Os.getsockname(fd); in test_PacketSocketAddress() local 560 assertEquals((short) ETH_P_IPV6, bound.sll_protocol); // ETH_P_IPV6 is an int. in test_PacketSocketAddress() 561 assertEquals(lo.getIndex(), bound.sll_ifindex); in test_PacketSocketAddress() 562 assertEquals(ARPHRD_LOOPBACK, bound.sll_hatype); in test_PacketSocketAddress() 563 assertEquals(0, bound.sll_pkttype); in test_PacketSocketAddress() 567 assertEquals(6, bound.sll_addr.length); in test_PacketSocketAddress() 569 assertEquals(0, bound.sll_addr[i]); in test_PacketSocketAddress()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | BigIntegerTest.java | 944 BigInteger bound = i.multiply(two); in testDivRanges() local 945 for (BigInteger j = bound.negate(); j.compareTo(bound) <= 0; j = j in testDivRanges()
|
/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
D | MethodHandleCombinersTest.java | 632 MethodHandle bound = stringCharAt.bindTo("foo"); in testBindTo() local 633 value = (char) bound.invoke(0); in testBindTo() 644 bound = stringCharAt.bindTo(null); in testBindTo() 646 bound.invoke(0); in testBindTo() 654 bound = integerParseInt.bindTo("78452"); in testBindTo() 655 int intValue = (int) bound.invoke(); in testBindTo()
|