Home
last modified time | relevance | path

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

12

/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtilsLite.java288 int originalLimit = source.limit(); in sliceFromTo()
292 source.limit(end); in sliceFromTo()
299 source.limit(originalLimit); in sliceFromTo()
317 int originalLimit = source.limit(); in getByteBuffer()
319 int limit = position + size; in getByteBuffer() local
320 if ((limit < position) || (limit > originalLimit)) { in getByteBuffer()
323 source.limit(limit); in getByteBuffer()
327 source.position(limit); in getByteBuffer()
330 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/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/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()
DFileChannelDataSourceTest.java95 byte[] resultBytes = new byte[result.limit()]; in getDataSinkBytes()
/tools/apksig/src/main/java/com/android/apksig/internal/util/
DFileChannelDataSource.java107 buf.limit(chunkSize); in feed()
139 int prevLimit = dest.limit(); in copyTo()
143 dest.limit(dest.position() + size); in copyTo()
154 dest.limit(prevLimit); in copyTo()
DOutputStreamDataSink.java67 buf.position(buf.limit()); in consume()
DByteBufferDataSource.java71 mBuffer.limit(chunkLimit); in getByteBuffer()
DByteArrayDataSink.java78 buf.position(buf.limit()); in consume()
DVerityTreeBuilder.java298 b.limit(end); in slice()
/tools/apksig/src/test/java/com/android/apksig/util/
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()
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()
/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()
/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/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/treble/build/sandbox/
Dnsjail.cfg11 # No time limit
78 # limit access to the external environment.
/tools/apksig/src/main/java/com/android/apksig/
DApkSigner.java824 int originalLimit = original.limit(); in createExtraFieldToAlignData()
825 original.limit(original.position() + 4 + dataSize); in createExtraFieldToAlignData()
827 original.limit(originalLimit); in createExtraFieldToAlignData()
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/tel/
Dtel_data_utils.py2732 def set_mobile_data_usage_limit(ad, limit, subscriber_id=None): argument
2735 ad.log.debug("Set subscriber mobile data usage limit to %s", limit)
2736 ad.droid.logV("Setting subscriber mobile data usage limit to %s" % limit)
2738 ad.droid.connectivitySetDataUsageLimit(subscriber_id, str(limit))
2740 ad.droid.connectivitySetDataUsageLimit(subscriber_id, limit)
/tools/trebuchet/trebuchet/startup-common/src/
DStartupCommon.kt141 val newProcName = systemServerSlice.name.split(':', limit = 2)[1].trim() in Model()

12