Home
last modified time | relevance | path

Searched refs:remaining (Results 1 – 25 of 58) sorted by relevance

123

/tools/apksig/src/main/java/com/android/apksig/internal/util/
DFileChannelDataSource.java101 long remaining = size; in feed() local
102 ByteBuffer buf = ByteBuffer.allocateDirect((int) Math.min(remaining, MAX_READ_CHUNK_SIZE)); in feed()
104 while (remaining > 0) { in feed()
105 int chunkSize = (int) Math.min(remaining, buf.capacity()); in feed()
122 remaining -= chunkSize; in feed()
133 if (size > dest.remaining()) { in copyTo()
138 int remaining = size; in copyTo() local
144 while (remaining > 0) { in copyTo()
151 remaining -= chunkSize; in copyTo()
DChainedDataSource.java56 long remaining = src.size() - offset; in feed() local
57 if (remaining >= size) { in feed()
63 src.feed(offset, remaining, sink); in feed()
64 size -= remaining; in feed()
88 long sizeToCopy = Math.min(mSources[i].size() - offset, buffer.remaining()); in getByteBuffer()
DByteArrayDataSink.java77 consume(buf.array(), buf.arrayOffset() + buf.position(), buf.remaining()); in consume()
82 ensureAvailable(buf.remaining()); in consume()
83 byte[] tmp = new byte[Math.min(buf.remaining(), MAX_READ_CHUNK_SIZE)]; in consume()
85 int chunkSize = Math.min(buf.remaining(), tmp.length); in consume()
DOutputStreamDataSink.java66 buf.remaining()); in consume()
69 byte[] tmp = new byte[Math.min(buf.remaining(), MAX_READ_CHUNK_SIZE)]; in consume()
71 int chunkSize = Math.min(buf.remaining(), tmp.length); in consume()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DAndroidBinXmlParser.java299 if (contents.remaining() < 20) { in next()
302 + contents.remaining() + " bytes"); in next()
311 if (attrStartOffset > contents.remaining()) { in next()
314 + ", max: " + contents.remaining()); in next()
316 if (attrEndOffset > contents.remaining()) { in next()
319 + ", max: " + contents.remaining()); in next()
343 if (contents.remaining() < 8) { in next()
346 + contents.remaining() + " bytes"); in next()
534 if (input.remaining() < HEADER_MIN_SIZE_BYTES) { in get()
545 if (chunkRemaining > input.remaining()) { in get()
[all …]
DApkSigningBlockUtilsLite.java99 if (pairs.remaining() < 8) { in findApkSignatureSchemeBlock()
111 if (len > pairs.remaining()) { in findApkSignatureSchemeBlock()
114 + ", available: " + pairs.remaining()); in findApkSignatureSchemeBlock()
346 if (source.remaining() < 4) { in getLengthPrefixedSlice()
349 + ". Remaining: " + source.remaining()); in getLengthPrefixedSlice()
354 } else if (len > source.remaining()) { in getLengthPrefixedSlice()
357 + ". Field length: " + len + ", remaining: " + source.remaining()); in getLengthPrefixedSlice()
366 } else if (len > buf.remaining()) { in readLengthPrefixedByteArray()
369 + ", available: " + buf.remaining()); in readLengthPrefixedByteArray()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/extractors/
DZlibExtractor.kt58 val remaining = inflater.remaining in <lambda>() constant
59 val estSize = (remaining * avgCompressFactor * 1.2).toInt() in <lambda>()
67 val compressFactor = len.toDouble() / (remaining - inflater.remaining) in <lambda>()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/
DZFileDataSource.java109 long remaining = size; in feed() local
110 byte[] buf = new byte[(int) Math.min(remaining, MAX_READ_CHUNK_SIZE)]; in feed()
111 while (remaining > 0) { in feed()
112 int chunkSize = (int) Math.min(remaining, buf.length); in feed()
120 remaining -= readSize; in feed()
/tools/apksig/src/main/java/com/android/apksig/internal/jar/
DManifestWriter.java87 int remaining = lineBytes.length; in writeLine() local
89 while (remaining > 0) { in writeLine()
93 chunkLength = Math.min(remaining, MAX_LINE_LENGTH); in writeLine()
98 chunkLength = Math.min(remaining, MAX_LINE_LENGTH - 1); in writeLine()
102 remaining -= chunkLength; in writeLine()
/tools/apksig/src/main/java/com/android/apksig/internal/zip/
DCentralDirectoryRecord.java83 return mData.remaining(); in getSize()
132 if (buf.remaining() < HEADER_SIZE_BYTES) { in getRecord()
135 + " bytes, available: " + buf.remaining() + " bytes", in getRecord()
160 if (recordSize > buf.remaining()) { in getRecord()
163 + buf.remaining() + " bytes", in getRecord()
199 ByteBuffer result = ByteBuffer.allocate(mData.remaining()); in createWithModifiedLocalFileHeaderOffset()
DLocalFileRecord.java315 int extraSizeBytes = extra.remaining(); in outputRecordWithModifiedExtra()
324 long outputByteCount = header.remaining(); in outputRecordWithModifiedExtra()
365 long outputByteCount = result.remaining(); in outputRecordWithDeflateCompressedData()
502 consume(buf.array(), buf.arrayOffset() + buf.position(), buf.remaining()); in consume()
509 int chunkSize = Math.min(buf.remaining(), mInputBuffer.length); in consume()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/utils/
DLittleEndianUtils.java49 if (bytes.remaining() < 4) { in readUnsigned4Le()
50 throw new EOFException("Not enough data: 4 bytes expected, " + bytes.remaining() in readUnsigned4Le()
75 if (bytes.remaining() < 2) { in readUnsigned2Le()
78 + bytes.remaining() in readUnsigned2Le()
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/util/
DRamDisk.java127 data.limit((int) (devOffset + dest.remaining())); in read()
137 if (devOffset + src.remaining() > getSize()) throw new in write()
140 ", length=" + src.remaining() + in write()
143 data.limit((int) (devOffset + src.remaining())); in write()
DFileDisk.java113 int toRead = dest.remaining(); in read()
131 int toWrite = src.remaining(); in write()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/util/
DBatchProcessor.kt71 var remaining: Runnable? in <lambda>() variable
74 remaining = workArray.poll() in <lambda>()
76 remaining?.run() in <lambda>()
77 } while (remaining != null) in <lambda>()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DZipField.java147 if (bytes.remaining() < size) { in skip()
149 + bytes.remaining() + " remain in the buffer."); in skip()
164 if (bytes.remaining() < size) { in read()
166 + bytes.remaining() + " remain in the buffer."); in read()
DEncodeUtils.java52 if (bytes.remaining() < length) { in decode()
53 throw new IOException("Only " + bytes.remaining() + " bytes exist in the buffer, but " in decode()
110 byte[] result = new byte[bytes.remaining()]; in encode()
DExtraField.java149 while (buffer.remaining() > 0) { in parseSegments()
161 if (buffer.remaining() < dataSize) { in parseSegments()
168 + buffer.remaining() in parseSegments()
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ber/
DByteBufferBerDataValueReader.java152 if (mBuf.remaining() < contentsLength) { in skipDefiniteLengthContents()
155 + mBuf.remaining()); in skipDefiniteLengthContents()
195 if ((mBuf.remaining() > 1) && (mBuf.getShort(mBuf.position()) == 0)) { in skipConstructedIndefiniteLengthContents()
/tools/apksig/src/main/java/com/android/apksig/
DApkSigner.java742 + aligningExtra.remaining() in outputInputJarEntryLfhRecordPreservingDataAlignment()
743 - inputRecord.getExtra().remaining(); in outputInputJarEntryLfhRecordPreservingDataAlignment()
764 while (extra.remaining() >= 4) { in getInputJarEntryDataAlignmentMultiple()
767 if (dataSize > extra.remaining()) { in getInputJarEntryDataAlignmentMultiple()
800 ByteBuffer result = ByteBuffer.allocate(original.remaining() + 5 + dataAlignmentMultiple); in createExtraFieldToAlignData()
808 while (original.remaining() >= 4) { in createExtraFieldToAlignData()
811 if (dataSize > original.remaining()) { in createExtraFieldToAlignData()
896 + cd.remaining() in parseZipCentralDirectory()
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiTypePrinter.kt301 var remaining = annotations in <lambda>() variable
321 remaining, in <lambda>()
326 remaining = null in <lambda>()
339 … val list = if (remaining != null) listOf(*remaining) else getAnnotations(reference) in <lambda>()
/tools/apksig/src/test/java/com/android/apksig/internal/test/
DMoreAsserts.java41 && (actual.arrayOffset() == 0) && (actual.array().length == actual.remaining())) { in assertByteBufferEquals()
44 actualArr = new byte[actual.remaining()]; in assertByteBufferEquals()
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DFatFile.java114 final int len = dest.remaining(); in read()
151 final long lastByte = offset + srcBuf.remaining(); in write()
DClusterChain.java200 int len = dest.remaining(); in readData()
245 int len = srcBuf.remaining(); in writeData()
/tools/apksig/src/test/java/com/android/apksig/util/
DDataSourceTestBase.java278 assertEquals(size + 4, buf.remaining()); in assertCopyToEquals()
321 int size = buf.remaining(); in toString()
326 arr = new byte[buf.remaining()]; in toString()

123