Home
last modified time | relevance | path

Searched refs:CAPACITY (Results 1 – 5 of 5) 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.java51 private static final int CAPACITY = 100; field in FileChannelTest
1098 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY); in test_readLByteBuffer_Closed()
1135 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY); in test_readLByteBuffer_WriteOnly()
1153 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY); in test_readLByteBuffer_EmptyFile()
1203 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY); in test_readLByteBufferJ_Closed()
1221 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY); in test_readLByteBufferJ_IllegalArgument()
1243 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY); in test_readLByteBufferJ_WriteOnly()
1253 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY); in test_readLByteBufferJ_Emptyfile()
1262 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY); in test_readLByteBufferJ_Position_BeyondFileLimit()
1270 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY); in test_readLByteBufferJ_Position_As_Long()
[all …]
/libcore/luni/src/main/java/org/apache/harmony/security/x501/
DAttributeTypeAndValue.java134 private static final int CAPACITY = 10; field in AttributeTypeAndValue
140 private static final ObjectIdentifier[][] KNOWN_OIDS = new ObjectIdentifier[SIZE][CAPACITY];
427 int index = hashIntArray(oid) % CAPACITY; in getOID()
445 int index = hashIntArray(newOid) % CAPACITY; in addOID()
459 if (i == (CAPACITY - 1)) { in addOID()
/libcore/luni/src/main/java/java/util/concurrent/
DThreadPoolExecutor.java350 private static final int CAPACITY = (1 << COUNT_BITS) - 1; field in ThreadPoolExecutor
360 private static int runStateOf(int c) { return c & ~CAPACITY; } in runStateOf()
361 private static int workerCountOf(int c) { return c & CAPACITY; } in workerCountOf()
880 if (wc >= CAPACITY || in addWorker()