Home
last modified time | relevance | path

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

/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/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.java236 ByteBuffer pairs = sliceFromTo(apkSigningBlock, 8, apkSigningBlock.capacity() - 24); in findApkSignatureSchemeBlock()
288 int capacity = source.capacity(); in sliceFromTo() local
289 if (end > source.capacity()) { in sliceFromTo()
290 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/test/connectivity/acts/framework/acts/test_utils/bt/
Dbluetooth.proto30 // Number of BluetoothSession including discarded ones beyond capacity
33 // Number of PairEvent including discarded ones beyond capacity
36 // Number of WakeEvent including discarded ones beyond capacity
39 // Number of ScanEvent including discarded ones beyond capacity
/tools/apksig/src/test/java/com/android/apksig/internal/util/
DByteBufferSinkTestBase.java35 buf.limit(buf.capacity() - 300); in createDataSink()
/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.java217 if ((apkSigBlockSizeInFooter < footer.capacity()) in findApkSigningBlock()