Home
last modified time | relevance | path

Searched refs:sourceSize (Results 1 – 3 of 3) sorted by relevance

/tools/apksig/src/main/java/com/android/apksig/internal/util/
DFileChannelDataSource.java83 long sourceSize = size(); in slice() local
84 checkChunkValid(offset, size, sourceSize); in slice()
85 if ((offset == 0) && (size == sourceSize)) { in slice()
94 long sourceSize = size(); in feed() local
95 checkChunkValid(offset, size, sourceSize); in feed()
128 long sourceSize = size(); in copyTo() local
129 checkChunkValid(offset, size, sourceSize); in copyTo()
169 private static void checkChunkValid(long offset, long size, long sourceSize) { in checkChunkValid() argument
176 if (offset > sourceSize) { in checkChunkValid()
178 "offset (" + offset + ") > source size (" + sourceSize + ")"); in checkChunkValid()
[all …]
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/
DZFileDataSource.java91 long sourceSize = size(); in slice() local
92 checkChunkValid(offset, size, sourceSize); in slice()
93 if ((offset == 0) && (size == sourceSize)) { in slice()
102 long sourceSize = size(); in feed() local
103 checkChunkValid(offset, size, sourceSize); in feed()
127 long sourceSize = size(); in copyTo() local
128 checkChunkValid(offset, size, sourceSize); in copyTo()
149 private static void checkChunkValid(long offset, long size, long sourceSize) { in checkChunkValid() argument
152 Preconditions.checkArgument(offset <= sourceSize, "offset > sourceSize"); in checkChunkValid()
155 Preconditions.checkArgument(endOffset <= sourceSize, "endOffset > sourceSize"); in checkChunkValid()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DZFile.java2021 long sourceSize = fromSource.getRawByteSource().size(); in mergeFrom() local
2022 if (sourceSize > Integer.MAX_VALUE) { in mergeFrom()
2023 throw new IOException("Cannot read source with " + sourceSize + " bytes."); in mergeFrom()
2026 byte[] data = new byte[Ints.checkedCast(sourceSize)]; in mergeFrom()