Home
last modified time | relevance | path

Searched refs:capacity (Results 1 – 19 of 19) sorted by relevance

/tools/trebuchet/core/common/src/main/kotlin/trebuchet/util/
DByteArrayList.kt27 var capacity: Int variable
30 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()
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DAbstractDirectory.java48 private int capacity; field in AbstractDirectory
60 int capacity, boolean readOnly, boolean isRoot) { in AbstractDirectory() argument
63 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()
DSector.java58 buffer.limit(buffer.capacity()); in read()
84 buffer.limit(buffer.capacity()); in write()
DFat32BootSector.java195 buffer.limit(buffer.capacity()); in writeCopy()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/io/
DPipe.kt30 class Pipe<T>(capacity: Int = 4) : Producer<T>, Consumer<T> {
33 private val queue = ArrayBlockingQueue<Packet<T>>(capacity)
/tools/apksig/src/test/java/com/android/apksig/util/
DDataSourceTestBase.java102 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()
DDataSourceFromByteBufferTest.java39 buf.limit(buf.capacity()); in testChangesToBufferPosAndLimitNotVisible()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DAndroidBinXmlParser.java658 if (offsetInStringsSection >= mStringsSection.capacity()) { in getString()
661 + ", max: " + (mStringsSection.capacity() - 1)); in getString()
799 int capacity = source.capacity(); in sliceFromTo() local
800 if (end > source.capacity()) { in sliceFromTo()
801 throw new IllegalArgumentException("end > capacity: " + end + " > " + capacity); in sliceFromTo()
819 int capacity = source.capacity(); in sliceFromTo() local
820 if (end > source.capacity()) { in sliceFromTo()
821 throw new IllegalArgumentException("end > capacity: " + end + " > " + capacity); in sliceFromTo()
DApkSigningBlockUtils.java289 ByteBuffer pairs = sliceFromTo(apkSigningBlock, 8, apkSigningBlock.capacity() - 24); in findApkSignatureSchemeBlock()
341 int capacity = source.capacity(); in sliceFromTo() local
342 if (end > source.capacity()) { in sliceFromTo()
343 throw new IllegalArgumentException("end > capacity: " + end + " > " + capacity); in sliceFromTo()
/tools/loganalysis/src/com/android/loganalysis/item/
DBatteryUsageItem.java97 public void setBatteryCapacity(int capacity) { in setBatteryCapacity() argument
98 mBatteryCapacity = capacity; in setBatteryCapacity()
/tools/apksig/src/test/java/com/android/apksig/internal/util/
DByteBufferSinkTestBase.java35 buf.limit(buf.capacity() - 300); in createDataSink()
/tools/test/connectivity/acts/framework/acts/test_utils/bt/
Dbluetooth.proto43 // Number of BluetoothSession including discarded ones beyond capacity
46 // Number of PairEvent including discarded ones beyond capacity
49 // Number of WakeEvent including discarded ones beyond capacity
52 // Number of ScanEvent including discarded ones beyond capacity
/tools/dexter/slicer/export/slicer/
Dhash_table.h129 if (buckets_.size() + 1 > buckets_.capacity()) { in Insert()
228 printf(" size/capacity : %zu / %zu\n", buckets_.size(), buckets_.capacity()); in PrintStats()
/tools/apksig/src/main/java/com/android/apksig/internal/util/
DFileChannelDataSource.java105 int chunkSize = (int) Math.min(remaining, buf.capacity()); in feed()
DVerityTreeBuilder.java252 for (int offset = 0, finish = buffer.capacity(), chunkIndex = readChunkIndex; in digestDataByChunks()
/tools/apksig/src/main/java/com/android/apksig/internal/zip/
DZipUtils.java214 int archiveSize = zipContents.capacity(); in findZipEndOfCentralDirectoryRecord()
DLocalFileRecord.java89 return (mExtra.capacity() > 0) ? mExtra.slice() : mExtra; in getExtra()
/tools/apksig/src/main/java/com/android/apksig/apk/
DApkUtils.java222 if ((apkSigBlockSizeInFooter < footer.capacity()) in findApkSigningBlock()
/tools/tradefederation/core/tests/res/testdata/
Dtradefed-prebuilt-cts-8.0_r21.jarMETA-INF/ META-INF/MANIFEST.MF jline/ jline/CompletionHandler.class CompletionHandler ...