Home
last modified time | relevance | path

Searched refs:CAPACITY (Results 1 – 4 of 4) sorted by relevance

/libcore/luni/src/test/java/libcore/java/nio/channels/
DOldFileChannelTest.java41 private static final int CAPACITY = 100; field in OldFileChannelTest
260 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY); in test_readLByteBufferJ_IllegalArgument()
545 readBuffers[0] = ByteBuffer.allocate(CAPACITY); in test_read$LByteBufferII_IndexOutOfBound()
546 readBuffers[1] = ByteBuffer.allocate(CAPACITY); in test_read$LByteBufferII_IndexOutOfBound()
610 readBuffers[0] = ByteBuffer.allocate(CAPACITY); in test_read$LByteBufferII_EmptyFile()
611 readBuffers[1] = ByteBuffer.allocate(CAPACITY); in test_read$LByteBufferII_EmptyFile()
620 readBuffers[0] = ByteBuffer.allocate(CAPACITY); in test_read$LByteBufferII_EmptyBuffers()
629 readBuffers[0] = ByteBuffer.allocate(CAPACITY); in test_read$LByteBufferII_EmptyBuffers()
653 ByteBuffer writeBuffer = ByteBuffer.allocate(CAPACITY); in test_writeLByteBuffer_Closed()
713 ByteBuffer writeBuffer = ByteBuffer.allocate(CAPACITY); in test_writeLByteBufferJ_IllegalArgument()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DAbstractQueueTest.java35 static final int CAPACITY = 10; field in AbstractQueueTest.MockAbstractQueue
39 private Object[] elements = new Object[CAPACITY];
79 if (size >= CAPACITY) { in offer()
126 for(int i = 0; i < MockAbstractQueue.CAPACITY; i++ ) { in test_addLE_Full()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DFileChannelTest.java53 private static final int CAPACITY = 100; field in FileChannelTest
1195 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY); in test_readLByteBuffer_Closed()
1232 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY); in test_readLByteBuffer_WriteOnly()
1250 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY); in test_readLByteBuffer_EmptyFile()
1300 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY); in test_readLByteBufferJ_Closed()
1318 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY); in test_readLByteBufferJ_IllegalArgument()
1340 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY); in test_readLByteBufferJ_WriteOnly()
1350 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY); in test_readLByteBufferJ_Emptyfile()
1359 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY); in test_readLByteBufferJ_Position_BeyondFileLimit()
1367 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY); in test_readLByteBufferJ_Position_As_Long()
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/
DThreadPoolExecutor.java398 private static final int CAPACITY = (1 << COUNT_BITS) - 1; field in ThreadPoolExecutor
408 private static int runStateOf(int c) { return c & ~CAPACITY; } in runStateOf()
409 private static int workerCountOf(int c) { return c & CAPACITY; } in workerCountOf()
929 if (wc >= CAPACITY || in addWorker()