Home
last modified time | relevance | path

Searched defs:capacity (Results 1 – 25 of 76) sorted by relevance

1234

/libcore/ojluni/src/test/java/util/Vector/
DArrayManagement.java51 public PublicVector(int capacity) { super(capacity); } in PublicVector()
52 public PublicVector(int capacity, int capacityIncrement) { in PublicVector()
58 public int capacity() { return elementData.length; } in capacity() method in ArrayManagement.PublicVector
122 int capacity = list.capacity(); in defaultCapacityEnsureCapacity() local
127 int capacity = list.capacity(); in defaultCapacityEnsureCapacity() local
129 assertEquals(list.capacity(), 3 * capacity); in defaultCapacityEnsureCapacity() local
/libcore/ojluni/src/test/java/util/ArrayList/
DArrayManagement.java77 static int capacity(ArrayList<?> list) { in capacity() method in ArrayManagement
85 static void ensureCapacity(ArrayList<Object> list, int capacity) { in ensureCapacity()
139 int capacity = capacity(list); in defaultCapacityEnsureCapacity() local
144 int capacity = capacity(list); in defaultCapacityEnsureCapacity() local
146 assertEquals(capacity(list), 3 * capacity); in defaultCapacityEnsureCapacity() local
/libcore/ojluni/src/main/java/java/nio/
DBuffer.java208 private int capacity; field in Buffer
289 static IllegalArgumentException createCapacityException(int capacity) { in createCapacityException()
DMappedByteBuffer.java336 int capacity = capacity(); in force() local
394 int capacity = capacity(); in force() local
/libcore/luni/src/test/java/libcore/java/util/concurrent/
DLinkedBlockingQueueTest.java32 int capacity = 10; in testForEach() local
DPriorityBlockingQueueTest.java32 int capacity = 10; in testForEach() local
DLinkedBlockingDequeTest.java32 int capacity = 10; in testForEach() local
DLinkedTransferQueueTest.java32 int capacity = 10; in testForEach() local
DConcurrentLinkedDequeTest.java32 int capacity = 10; in testForEach() local
DArrayBlockingQueueTest.java32 int capacity = 10; in testForEach() local
DConcurrentLinkedQueueTest.java32 int capacity = 10; in testForEach() local
DConcurrentHashMapTest.java222 final int capacity = 10; in testNewKeySetWithCapacity() local
234 final int capacity = 0; in testNewKeySetWithZeroCapacity() local
248 final int capacity = -10; in testNewKeySetWithInvalidCapacity() local
/libcore/ojluni/annotations/hiddenapi/java/nio/
DBuffer.java38 public final int capacity() { in capacity() method in Buffer
153 private int capacity; field in Buffer
/libcore/luni/src/main/java/libcore/reflect/
DListOfTypes.java30 ListOfTypes(int capacity) { in ListOfTypes()
/libcore/luni/src/main/java/libcore/io/
DIoUtils.java383 int capacity; in FileReader() local
403 int capacity = bytes.length; in readFully() local
/libcore/ojluni/src/test/java/util/concurrent/tck/
DArrayBlockingQueueTest.java107 int capacity = rnd.nextInt(minCapacity, maxCapacity + 1); in populatedQueue() local
235 int capacity = spare + size; in testRemainingCapacity() local
382 final int capacity = 2; in testPutWithTake() local
612 int capacity = size + q.remainingCapacity(); in testClear() local
710 final int capacity = Math.max(1, size + rnd.nextInt(size + 1)); in testToArray() local
/libcore/ojluni/src/test/java/util/HashSet/
DSerialization.java50 int capacity = rnd.nextInt(MAX_CAPACITY); in createHashSet() local
/libcore/ojluni/src/test/java/util/HashMap/
DWhiteBoxResizeTest.java82 int capacity(HashMap map) { in capacity() method in WhiteBoxResizeTest
/libcore/ojluni/src/main/java/java/util/concurrent/
DArrayBlockingQueue.java256 public ArrayBlockingQueue(int capacity) { in ArrayBlockingQueue()
270 public ArrayBlockingQueue(int capacity, boolean fair) { in ArrayBlockingQueue()
295 public ArrayBlockingQueue(int capacity, boolean fair, in ArrayBlockingQueue()
1552 final int capacity = items.length; in bulkRemoveModified() local
1607 int capacity = items.length; in invariantsSatisfied() local
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DLinkedBlockingQueue.java48 public LinkedBlockingQueue(int capacity) { in LinkedBlockingQueue()
174 private final int capacity; field in LinkedBlockingQueue
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DWriterTest.java106 MockWriter(int capacity) { in MockWriter()
/libcore/ojluni/src/main/java/java/util/
DHashSet.java312 int capacity = s.readInt(); in readObject() local
/libcore/ojluni/annotations/mmodule/java/nio/
DByteBuffer.annotated.java38 public static java.nio.ByteBuffer allocateDirect(int capacity) { throw new RuntimeException("Stub!"… in allocateDirect()
40 public static java.nio.ByteBuffer allocate(int capacity) { throw new RuntimeException("Stub!"); } in allocate()
/libcore/luni/src/test/java/libcore/java/io/
DOldFileWriterTest.java115 int capacity = 65536; in test_handleEarlyEOFChar_2() local
/libcore/ojluni/src/main/java/java/util/stream/
DSpinedBuffer.java117 protected long capacity() { in capacity() method in SpinedBuffer
137 long capacity = capacity(); in ensureCapacity() local
487 protected long capacity() { in capacity() method in SpinedBuffer.OfPrimitive
502 long capacity = capacity(); in ensureCapacity() local

1234