Home
last modified time | relevance | path

Searched refs:limit (Results 1 – 24 of 24) sorted by relevance

/tools/apksig/src/test/java/com/android/apksig/internal/util/
DByteBufferSinkTestBase.java35 buf.limit(buf.capacity() - 300); in createDataSink()
43 int oldLimit = buf.limit(); in getContents()
46 buf.limit(oldPos); in getContents()
49 buf.limit(oldLimit); in getContents()
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ber/
DByteBufferBerDataValueReader.java73 int bufOriginalLimit = mBuf.limit(); in readDataValue()
74 mBuf.limit(endPosition); in readDataValue()
76 mBuf.position(mBuf.limit()); in readDataValue()
77 mBuf.limit(bufOriginalLimit); in readDataValue()
81 encoded.limit(contentsOffsetInTag + contentsLength); in readDataValue()
/tools/apksig/src/test/java/com/android/apksig/util/
DDataSinkTestBase.java80 input.limit(5); in testConsumeFromByteBuffer()
83 assertEquals(5, input.limit()); in testConsumeFromByteBuffer()
86 input.limit(1); in testConsumeFromByteBuffer()
103 assertEquals(2, input.limit()); in testConsumeFromByteBuffer()
DDataSourceFromByteBufferTest.java36 buf.limit(4); in testChangesToBufferPosAndLimitNotVisible()
39 buf.limit(buf.capacity()); in testChangesToBufferPosAndLimitNotVisible()
DDataSourceTestBase.java206 buf.limit(3); in testCopyTo()
209 buf.limit(3); in testCopyTo()
240 assertEquals(size, buf.limit()); in assertGetByteBufferEquals()
286 int oldLimit = buf.limit(); in assertCopyToEquals()
290 assertEquals(oldLimit, buf.limit()); in assertCopyToEquals()
292 buf.limit(buf.position()); in assertCopyToEquals()
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/util/
DRamDisk.java77 this.size = buffer.limit(); in RamDisk()
127 data.limit((int) (devOffset + dest.remaining())); in read()
143 data.limit((int) (devOffset + src.remaining())); in write()
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DClusterChain.java212 dest.limit(dest.position() + size); in readData()
223 dest.limit(dest.position() + size); in readData()
261 srcBuf.limit(srcBuf.position() + size); in writeData()
272 srcBuf.limit(srcBuf.position() + size); in writeData()
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/main/java/com/android/apksig/internal/zip/
DCentralDirectoryRecord.java168 int originalLimit = buf.limit(); in getRecord()
172 buf.limit(recordEndInBuf); in getRecord()
175 buf.limit(originalLimit); in getRecord()
252 throw new RuntimeException("pos: " + result.position() + ", limit: " + result.limit()); in createWithDeflateCompressedData()
DLocalFileRecord.java361 throw new RuntimeException("pos: " + result.position() + ", limit: " + result.limit()); in outputRecordWithDeflateCompressedData()
503 buf.position(buf.limit()); in consume()
DZipUtils.java293 input.position(input.limit()); in deflate()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtils.java292 int originalLimit = source.limit(); in sliceFromTo()
296 source.limit(end); in sliceFromTo()
303 source.limit(originalLimit); in sliceFromTo()
321 int originalLimit = source.limit(); in getByteBuffer()
323 int limit = position + size; in getByteBuffer() local
324 if ((limit < position) || (limit > originalLimit)) { in getByteBuffer()
327 source.limit(limit); in getByteBuffer()
331 source.position(limit); in getByteBuffer()
334 source.limit(originalLimit); in getByteBuffer()
DAndroidBinXmlParser.java536 input.position(input.limit()); in get()
547 input.position(input.limit()); in get()
823 int originalLimit = source.limit(); in sliceFromTo()
827 source.limit(end); in sliceFromTo()
834 source.limit(originalLimit); in sliceFromTo()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/
DZFileDataSource.java133 int prevLimit = dest.limit(); in copyTo()
137 dest.limit(prevLimit); in copyTo()
/tools/apksig/src/test/java/com/android/apksig/internal/asn1/ber/
DBerDataValueTest.java81 encoded.position(encoded.limit()); in testGetEncodedReturnsSlice()
97 encoded.position(encoded.limit()); in testGetEncodedContentsReturnsSlice()
/tools/apksig/src/main/java/com/android/apksig/internal/util/
DOutputStreamDataSink.java67 buf.position(buf.limit()); in consume()
DByteBufferDataSource.java71 mBuffer.limit(chunkLimit); in getByteBuffer()
DByteArrayDataSink.java78 buf.position(buf.limit()); in consume()
/tools/apksig/src/main/java/com/android/apksig/
DApkSigner.java634 int originalLimit = original.limit(); in createExtraFieldToAlignData()
635 original.limit(original.position() + 4 + dataSize); in createExtraFieldToAlignData()
637 original.limit(originalLimit); in createExtraFieldToAlignData()
/tools/repohooks/tools/
Dpylintrc212 # Regexp for a line that is allowed to be longer than the limit.
/tools/test/connectivity/acts/framework/acts/test_utils/tel/
Dtel_test_utils.py2395 def set_mobile_data_usage_limit(ad, limit, subscriber_id=None): argument
2398 ad.log.info("Set subscriber mobile data usage limit to %s", limit)
2399 ad.droid.connectivitySetDataUsageLimit(subscriber_id, str(limit))
/tools/tradefederation/core/res/jacoco/
Djacocoant.jar ... Rule rule org.jacoco.report.check.Limit limit String message void finish () } org/ ...
/tools/apkzlib/src/test/resources/testData/packaging/text-files/
Drfc2460.txt93 to limit the bandwidth cost of the IPv6 header.
1550 implementations conform to the requirement that they limit packet
1553 limit packet lifetime ought to be upgraded to provide its own