Searched refs:capacity (Results 1 – 19 of 19) sorted by relevance
27 var capacity: Int variable30 if (value > capacity) {31 array = array.copyOf(maxOf(value, (capacity * 1.5).toInt()))42 capacity = size + 1 in put()48 capacity = size + length in put()
48 private int capacity; field in AbstractDirectory60 int capacity, boolean readOnly, boolean isRoot) { in AbstractDirectory() argument63 this.capacity = capacity; in AbstractDirectory()117 if (newEntries.size() > capacity) in setEntries()135 this.capacity = (int) newCount; in sizeChanged()150 return this.capacity; in getCapacity()
58 buffer.limit(buffer.capacity()); in read()84 buffer.limit(buffer.capacity()); in write()
195 buffer.limit(buffer.capacity()); in writeCopy()
30 class Pipe<T>(capacity: Int = 4) : Producer<T>, Consumer<T> {33 private val queue = ArrayBlockingQueue<Packet<T>>(capacity)
102 assertEquals(0, ds.getByteBuffer(0, 0).capacity()); in testGetByteBuffer()103 assertEquals(0, ds.getByteBuffer(ds.size(), 0).capacity()); in testGetByteBuffer()104 assertEquals(0, ds.getByteBuffer(ds.size() - 1, 0).capacity()); in testGetByteBuffer()105 assertEquals(0, ds.getByteBuffer(ds.size() - 2, 0).capacity()); in testGetByteBuffer()106 assertEquals(0, slice.getByteBuffer(0, 0).capacity()); in testGetByteBuffer()107 assertEquals(0, slice.getByteBuffer(slice.size(), 0).capacity()); in testGetByteBuffer()108 assertEquals(0, slice.getByteBuffer(slice.size() - 1, 0).capacity()); in testGetByteBuffer()109 assertEquals(0, slice.getByteBuffer(slice.size() - 2, 0).capacity()); in testGetByteBuffer()241 assertEquals(size, buf.capacity()); in assertGetByteBufferEquals()
39 buf.limit(buf.capacity()); in testChangesToBufferPosAndLimitNotVisible()
658 if (offsetInStringsSection >= mStringsSection.capacity()) { in getString()661 + ", max: " + (mStringsSection.capacity() - 1)); in getString()799 int capacity = source.capacity(); in sliceFromTo() local800 if (end > source.capacity()) { in sliceFromTo()801 throw new IllegalArgumentException("end > capacity: " + end + " > " + capacity); in sliceFromTo()819 int capacity = source.capacity(); in sliceFromTo() local820 if (end > source.capacity()) { in sliceFromTo()821 throw new IllegalArgumentException("end > capacity: " + end + " > " + capacity); in sliceFromTo()
289 ByteBuffer pairs = sliceFromTo(apkSigningBlock, 8, apkSigningBlock.capacity() - 24); in findApkSignatureSchemeBlock()341 int capacity = source.capacity(); in sliceFromTo() local342 if (end > source.capacity()) { in sliceFromTo()343 throw new IllegalArgumentException("end > capacity: " + end + " > " + capacity); in sliceFromTo()
97 public void setBatteryCapacity(int capacity) { in setBatteryCapacity() argument98 mBatteryCapacity = capacity; in setBatteryCapacity()
35 buf.limit(buf.capacity() - 300); in createDataSink()
43 // Number of BluetoothSession including discarded ones beyond capacity46 // Number of PairEvent including discarded ones beyond capacity49 // Number of WakeEvent including discarded ones beyond capacity52 // Number of ScanEvent including discarded ones beyond capacity
129 if (buckets_.size() + 1 > buckets_.capacity()) { in Insert()228 printf(" size/capacity : %zu / %zu\n", buckets_.size(), buckets_.capacity()); in PrintStats()
105 int chunkSize = (int) Math.min(remaining, buf.capacity()); in feed()
252 for (int offset = 0, finish = buffer.capacity(), chunkIndex = readChunkIndex; in digestDataByChunks()
214 int archiveSize = zipContents.capacity(); in findZipEndOfCentralDirectoryRecord()
89 return (mExtra.capacity() > 0) ? mExtra.slice() : mExtra; in getExtra()
222 if ((apkSigBlockSizeInFooter < footer.capacity()) in findApkSigningBlock()
META-INF/ META-INF/MANIFEST.MF jline/ jline/CompletionHandler.class CompletionHandler ...