Searched refs:CAPACITY (Results 1 - 5 of 5) sorted by relevance

/libcore/luni/src/test/java/tests/api/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/luni/src/main/java/java/util/concurrent/
H A DExchanger.java196 private static final int CAPACITY = 32; field in class:Exchanger
200 * contention. When this value is less than CAPACITY, some
204 Math.max(0, Math.min(CAPACITY, NCPU / 2) - 1);
287 private volatile Slot[] arena = new Slot[CAPACITY];
H A DThreadPoolExecutor.java345 private static final int CAPACITY = (1 << COUNT_BITS) - 1; field in class:ThreadPoolExecutor
355 private static int runStateOf(int c) { return c & ~CAPACITY; }
356 private static int workerCountOf(int c) { return c & CAPACITY; }
500 * bounded by CAPACITY.
871 if (wc >= CAPACITY ||
/libcore/luni/src/main/java/org/apache/harmony/security/x501/
H A DAttributeTypeAndValue.java134 private static final int CAPACITY = 10; field in class:AttributeTypeAndValue
140 private static final ObjectIdentifier[][] KNOWN_OIDS = new ObjectIdentifier[SIZE][CAPACITY];
411 int index = hashIntArray(oid) % CAPACITY;
429 int index = hashIntArray(newOid) % CAPACITY;
443 if (i == (CAPACITY - 1)) {

Completed in 97 milliseconds