Searched defs:bound (Results 1 - 12 of 12) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/
H A DHttpURLConnectionTest.java44 private final static Object bound = new Object(); field in class:HttpURLConnectionTest
64 synchronized (bound) {
66 bound.notify();
166 synchronized(bound) {
168 bound.wait(5000);
201 synchronized(bound) {
202 if (!server.started) bound.wait(5000);
205 synchronized(bound) {
206 if (!proxy.started) bound.wait(5000);
246 synchronized(bound) {
[all...]
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DExchanger.java158 * @Contended) to Nodes, embedding "bound" as an Exchanger field,
171 * collided at each slot within the current arena bound, it tries
173 * bounds by using a version (sequence) number on the "bound"
175 * participant notices that bound has been updated (in either
269 * Unit for sequence/version bits of bound field. Each successful
270 * change to the bound also adds SEQ.
285 * The bound for spins while waiting for a match. The actual
312 int bound; // Last recorded value of Exchanger.bound field in class:Exchanger.Node
313 int collides; // Number of CAS failures at current bound
347 private volatile int bound; field in class:Exchanger
[all...]
H A DThreadLocalRandom.java203 * origin is greater than bound, acts as unbounded form of
206 * @param origin the least value, unless greater than bound
207 * @param bound the upper bound (exclusive), must not equal origin
210 final long internalNextLong(long origin, long bound) { argument
212 if (origin < bound) {
213 long n = bound - origin, m = n - 1;
224 while (r < origin || r >= bound)
235 * @param origin the least value, unless greater than bound
236 * @param bound th
239 internalNextInt(int origin, int bound) argument
267 internalNextDouble(double origin, double bound) argument
295 nextInt(int bound) argument
322 nextInt(int origin, int bound) argument
346 nextLong(long bound) argument
373 nextLong(long origin, long bound) argument
399 nextDouble(double bound) argument
418 nextDouble(double origin, double bound) argument
744 final int bound; field in class:ThreadLocalRandom.RandomIntsSpliterator
745 RandomIntsSpliterator(long index, long fence, int origin, int bound) argument
799 final long bound; field in class:ThreadLocalRandom.RandomLongsSpliterator
800 RandomLongsSpliterator(long index, long fence, long origin, long bound) argument
855 final double bound; field in class:ThreadLocalRandom.RandomDoublesSpliterator
856 RandomDoublesSpliterator(long index, long fence, double origin, double bound) argument
[all...]
H A DForkJoinPool.java562 * is usually a good idea). (4) We bound the number of attempts
591 * each probe via the "bound" parameter.)
1929 int bound = (w.config & SPARE_WORKER) != 0 ? 0 : POLL_LIMIT;
1933 if (bound == 0 && tryDropSpare(w))
1938 if (scan(w, bound, step, (int)r) < 0 && awaitWork(w) < 0)
1950 * at most the given bound attempts to re-poll (fewer if
1956 * @param bound repoll bound as bitmask (0 if spare)
1961 private int scan(WorkQueue w, int bound, int step, int r) { argument
1991 if (++npolls > bound)
[all...]
/libcore/luni/src/test/java/libcore/java/util/
H A DTreeMapTest.java474 * Taking a headMap or tailMap (exclusive or inclusive of the bound) of
516 * vs. tailMap) because the inclusive bound of the submap is not
529 * vs. tailMap) because the inclusive bound of the submap is
542 * vs. tailMap) because the exclusive bound of the submap is
574 * exclusive) bound 0 is allowed on a (head or tail) map with (inclusive or
575 * exclusive) bound 0. For example,
594 * Constructs a submap of the specified map, constrained by the given bound.
596 private static<V> NavigableMap<Integer, V> applyBound(char bound, NavigableMap<Integer, V> m) { argument
598 if (isLowerBound(bound)) {
599 return m.tailMap(boundValue, isBoundInclusive(bound));
605 isBoundInclusive(char bound) argument
613 isLowerBound(char bound) argument
[all...]
/libcore/ojluni/src/main/java/java/net/
H A DServerSocket.java57 private boolean bound = false; field in class:ServerSocket
91 * Creates a server socket, bound to the specified port. A port number
323 * is already bound.
352 * is already bound.
363 throw new SocketException("Already bound");
379 bound = true;
381 bound = false;
384 bound = false;
392 * If the socket was bound prior to being {@link #close closed},
401 * @return the address to which this socket is bound,
[all...]
H A DDatagramSocket.java52 * broadcast packets a DatagramSocket should be bound to the wildcard address.
54 * a DatagramSocket is bound to a more specific address.
79 private boolean bound = false; field in class:DatagramSocket
127 * Binds socket if not already bound.
199 * on the local host machine. The socket will be bound to the
235 * Creates a datagram socket, bound to the specified local
272 * on the local host machine. The socket will be bound to the
295 * Creates a datagram socket, bound to the specified local
297 * If the IP address is 0.0.0.0, the socket will be bound to the
385 * socket is already bound
[all...]
H A DSocket.java61 private boolean bound = false; field in class:Socket
274 * @param localAddr the local address the socket is bound to, or
276 * @param localPort the local port the socket is bound to, or
315 * @param localAddr the local address the socket is bound to, or
317 * @param localPort the local port the socket is bound to or
471 bound = false;
631 * If the socket was not bound before the connect, it is now because
634 bound = true;
645 * is already bound.
659 throw new SocketException("Already bound");
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DRandom.java95 static final String BadBound = "bound must be positive";
96 static final String BadRange = "bound must be greater than origin";
237 * origin is greater than bound, acts as unbounded form of
240 * @param origin the least value, unless greater than bound
241 * @param bound the upper bound (exclusive), must not equal origin
244 final long internalNextLong(long origin, long bound) { argument
246 if (origin < bound) {
247 long n = bound - origin, m = n - 1;
258 while (r < origin || r >= bound)
275 internalNextInt(int origin, int bound) argument
301 internalNextDouble(double origin, double bound) argument
386 nextInt(int bound) argument
1003 final int bound; field in class:Random.RandomIntsSpliterator
1004 RandomIntsSpliterator(Random rng, long index, long fence, int origin, int bound) argument
1058 final long bound; field in class:Random.RandomLongsSpliterator
1059 RandomLongsSpliterator(Random rng, long index, long fence, long origin, long bound) argument
1114 final double bound; field in class:Random.RandomDoublesSpliterator
1115 RandomDoublesSpliterator(Random rng, long index, long fence, double origin, double bound) argument
[all...]
H A DSplittableRandom.java223 static final String BAD_BOUND = "bound must be positive";
224 static final String BAD_RANGE = "bound must be greater than origin";
251 * the public nextX(origin, bound) methods. These exist mainly to
258 * origin is greater than bound, acts as unbounded form of
261 * @param origin the least value, unless greater than bound
262 * @param bound the upper bound (exclusive), must not equal origin
265 final long internalNextLong(long origin, long bound) { argument
276 * when the implicit nextLong() bound (2<sup>64</sup>) is not
280 * varies from 1 to 2, depending on the bound
320 internalNextInt(int origin, int bound) argument
348 internalNextDouble(double origin, double bound) argument
419 nextInt(int bound) argument
447 nextInt(int origin, int bound) argument
471 nextLong(long bound) argument
499 nextLong(long origin, long bound) argument
525 nextDouble(double bound) argument
544 nextDouble(double origin, double bound) argument
836 final int bound; field in class:SplittableRandom.RandomIntsSpliterator
837 RandomIntsSpliterator(SplittableRandom rng, long index, long fence, int origin, int bound) argument
892 final long bound; field in class:SplittableRandom.RandomLongsSpliterator
893 RandomLongsSpliterator(SplittableRandom rng, long index, long fence, long origin, long bound) argument
949 final double bound; field in class:SplittableRandom.RandomDoublesSpliterator
950 RandomDoublesSpliterator(SplittableRandom rng, long index, long fence, double origin, double bound) argument
[all...]
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DServerSocketChannelImpl.java95 boolean bound)
102 if (bound)
93 ServerSocketChannelImpl(SelectorProvider sp, FileDescriptor fd, boolean bound) argument
H A DSocketChannelImpl.java143 boolean bound)
156 if (bound)
141 SocketChannelImpl(SelectorProvider sp, FileDescriptor fd, boolean bound) argument

Completed in 211 milliseconds