/tools/apksig/src/main/java/com/android/apksig/internal/util/ |
D | FileChannelDataSource.java | 101 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()
|
D | ChainedDataSource.java | 56 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()
|
D | ByteArrayDataSink.java | 77 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()
|
D | OutputStreamDataSink.java | 66 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/ |
D | AndroidBinXmlParser.java | 299 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 …]
|
D | ApkSigningBlockUtilsLite.java | 99 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/ |
D | ZlibExtractor.kt | 58 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/ |
D | ZFileDataSource.java | 109 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/ |
D | ManifestWriter.java | 87 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/ |
D | CentralDirectoryRecord.java | 83 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()
|
D | LocalFileRecord.java | 315 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/ |
D | LittleEndianUtils.java | 49 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/ |
D | RamDisk.java | 127 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()
|
D | FileDisk.java | 113 int toRead = dest.remaining(); in read() 131 int toWrite = src.remaining(); in write()
|
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/util/ |
D | BatchProcessor.kt | 71 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/ |
D | ZipField.java | 147 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()
|
D | EncodeUtils.java | 52 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()
|
D | ExtraField.java | 149 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/ |
D | ByteBufferBerDataValueReader.java | 152 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/ |
D | ApkSigner.java | 742 + 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/ |
D | PsiTypePrinter.kt | 301 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/ |
D | MoreAsserts.java | 41 && (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/ |
D | FatFile.java | 114 final int len = dest.remaining(); in read() 151 final long lastByte = offset + srcBuf.remaining(); in write()
|
D | ClusterChain.java | 200 int len = dest.remaining(); in readData() 245 int len = srcBuf.remaining(); in writeData()
|
/tools/apksig/src/test/java/com/android/apksig/util/ |
D | DataSourceTestBase.java | 278 assertEquals(size + 4, buf.remaining()); in assertCopyToEquals() 321 int size = buf.remaining(); in toString() 326 arr = new byte[buf.remaining()]; in toString()
|