/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 | ApkSigningBlockUtils.java | 175 ByteBuffer modifiedEocd = ByteBuffer.allocate(eocd.remaining()); in verifyIntegrity() 275 if (pairs.remaining() < 8) { in findApkSignatureSchemeBlock() 287 if (len > pairs.remaining()) { in findApkSignatureSchemeBlock() 290 + ", available: " + pairs.remaining()); in findApkSignatureSchemeBlock() 373 if (source.remaining() < 4) { in getLengthPrefixedSlice() 376 + ". Remaining: " + source.remaining()); in getLengthPrefixedSlice() 381 } else if (len > source.remaining()) { in getLengthPrefixedSlice() 384 + ". Field length: " + len + ", remaining: " + source.remaining()); in getLengthPrefixedSlice() 393 } else if (len > buf.remaining()) { in readLengthPrefixedByteArray() 396 + ", available: " + buf.remaining()); in readLengthPrefixedByteArray()
|
/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()
|
D | VerityTreeBuilder.java | 181 int remaining = (int) (size % CHUNK_SIZE); in digestDataByChunks() local 182 if (remaining > 0) { in digestDataByChunks() 185 dataSource.copyTo(offset, remaining, buffer); in digestDataByChunks()
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | ApkSigner.java | 632 aligningExtra.remaining() - in outputInputJarEntryLfhRecordPreservingDataAlignment() 633 inputRecord.getExtra().remaining(); in outputInputJarEntryLfhRecordPreservingDataAlignment() 652 while (extra.remaining() >= 4) { in getInputJarEntryDataAlignmentMultiple() 655 if (dataSize > extra.remaining()) { in getInputJarEntryDataAlignmentMultiple() 690 ByteBuffer result = ByteBuffer.allocate(original.remaining() + 5 + dataAlignmentMultiple); in createExtraFieldToAlignData() 698 while (original.remaining() >= 4) { in createExtraFieldToAlignData() 701 if (dataSize > original.remaining()) { in createExtraFieldToAlignData() 783 "Unused space at the end of ZIP Central Directory: " + cd.remaining() in parseZipCentralDirectory()
|
/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/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/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/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/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()
|
/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/tradefederation/core/src/com/android/tradefed/util/ |
D | FileIdleMonitor.java | 103 Duration remaining = mTimeout.minus(elapsed); in checkIfIdle() local 104 if (remaining.isNegative()) { in checkIfIdle() 110 scheduleCheck(remaining); in checkIfIdle()
|
/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/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()
|
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ |
D | Asn1BerParser.java | 600 byte[] result = new byte[resultBuf.remaining()]; in convert() 632 if (encodedContents.remaining() != 1) { in convert() 635 + encodedContents.remaining()); in convert()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/multi/ |
D | MixImageZipPreparer.java | 582 Map<String, T> remaining = new HashMap<String, T>(); in replaceExistingEntries() local 588 remaining.put(key, entry.getValue()); in replaceExistingEntries() 591 return remaining; in replaceExistingEntries()
|