Searched defs:CAPACITY (Results 1 - 4 of 4) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DAbstractQueueTest.java35 static final int CAPACITY = 10; field in class:AbstractQueueTest.MockAbstractQueue
39 private Object[] elements = new Object[CAPACITY];
79 if (size >= CAPACITY) {
126 for(int i = 0; i < MockAbstractQueue.CAPACITY; i++ ) {
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DOldFileChannelTest.java41 private static final int CAPACITY = 100; field in class:OldFileChannelTest
260 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY);
545 readBuffers[0] = ByteBuffer.allocate(CAPACITY);
546 readBuffers[1] = ByteBuffer.allocate(CAPACITY);
610 readBuffers[0] = ByteBuffer.allocate(CAPACITY);
611 readBuffers[1] = ByteBuffer.allocate(CAPACITY);
620 readBuffers[0] = ByteBuffer.allocate(CAPACITY);
629 readBuffers[0] = ByteBuffer.allocate(CAPACITY);
653 ByteBuffer writeBuffer = ByteBuffer.allocate(CAPACITY);
713 ByteBuffer writeBuffer = ByteBuffer.allocate(CAPACITY);
[all...]
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DThreadPoolExecutor.java401 private static final int CAPACITY = (1 << COUNT_BITS) - 1; field in class:ThreadPoolExecutor
411 private static int runStateOf(int c) { return c & ~CAPACITY; }
412 private static int workerCountOf(int c) { return c & CAPACITY; }
563 * bounded by CAPACITY.
934 if (wc >= CAPACITY ||
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DFileChannelTest.java53 private static final int CAPACITY = 100; field in class:FileChannelTest
1195 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY);
1232 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY);
1250 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY);
1300 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY);
1318 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY);
1340 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY);
1350 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY);
1359 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY);
1367 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY);
[all...]

Completed in 1649 milliseconds