/libcore/luni/src/main/java/libcore/io/ |
BufferIterator.java | 33 * Skips forwards or backwards {@code byteCount} bytes from the current position. 35 public abstract void skip(int byteCount); 43 * Copies {@code byteCount} bytes from the current position into {@code dst}, starting at 44 * {@code dstOffset}, and advances the current position {@code byteCount} bytes. 48 public abstract void readByteArray(byte[] dst, int dstOffset, int byteCount);
|
IoTracker.java | 31 public void trackIo(int byteCount) { 33 totalByteCount += byteCount; 40 public void trackIo(int byteCount, Mode mode) { 45 trackIo(byteCount);
|
NioBufferIterator.java | 57 public void skip(int byteCount) { 58 position += byteCount; 66 public void readByteArray(byte[] dst, int dstOffset, int byteCount) { 67 checkDstBounds(dstOffset, dst.length, byteCount); 69 checkReadBounds(position, length, byteCount); 70 Memory.peekByteArray(address + position, dst, dstOffset, byteCount); 71 position += byteCount; 93 final int byteCount = SizeOf.INT * intCount; 94 checkReadBounds(position, length, byteCount); 96 position += byteCount; [all...] |
/external/okhttp/okio/okio/src/main/java/okio/ |
SegmentPool.java | 31 static long byteCount; 42 byteCount -= Segment.SIZE; 53 if (byteCount + Segment.SIZE > MAX_SIZE) return; // Pool is full. 54 byteCount += Segment.SIZE;
|
Segment.java | 103 * segment contains the data in {@code [pos..pos+byteCount)}. The second 104 * segment contains the data in {@code [pos+byteCount..limit)}. This can be 109 public Segment split(int byteCount) { 110 if (byteCount <= 0 || byteCount > limit - pos) throw new IllegalArgumentException(); 112 prefix.limit = prefix.pos + byteCount; 113 pos += byteCount; 125 int byteCount = limit - pos; 127 if (byteCount > availableByteCount) return; // Cannot compact: not enough writable space. 128 writeTo(prev, byteCount); [all...] |
BufferedSource.java | 38 * Returns when the buffer contains at least {@code byteCount} bytes. Throws 42 void require(long byteCount) throws IOException; 45 * Returns true when the buffer contains at least {@code byteCount} bytes, 49 boolean request(long byteCount) throws IOException; 91 * Reads and discards {@code byteCount} bytes from this source. Throws an 95 void skip(long byteCount) throws IOException; 100 /** Removes {@code byteCount} bytes from this and returns them as a byte string. */ 101 ByteString readByteString(long byteCount) throws IOException; 106 /** Removes {@code byteCount} bytes from this and returns them as a byte array. */ 107 byte[] readByteArray(long byteCount) throws IOException [all...] |
Source.java | 64 * Removes at least 1, and up to {@code byteCount} bytes from this and appends 68 long read(Buffer sink, long byteCount) throws IOException;
|
Util.java | 27 public static void checkOffsetAndCount(long size, long offset, long byteCount) { 28 if ((offset | byteCount) < 0 || offset > size || size - offset < byteCount) { 30 String.format("size=%s offset=%s byteCount=%s", size, offset, byteCount)); 74 byte[] a, int aOffset, byte[] b, int bOffset, int byteCount) { 75 for (int i = 0; i < byteCount; i++) {
|
GzipSink.java | 65 @Override public void write(Buffer source, long byteCount) throws IOException { 66 if (byteCount < 0) throw new IllegalArgumentException("byteCount < 0: " + byteCount); 67 if (byteCount == 0) return; 69 updateCrc(source, byteCount); 70 deflaterSink.write(source, byteCount); 130 private void updateCrc(Buffer buffer, long byteCount) { 131 for (Segment head = buffer.head; byteCount > 0; head = head.next) { 132 int segmentLength = (int) Math.min(byteCount, head.limit - head.pos) [all...] |
Buffer.java | 73 @Override public void write(byte[] data, int offset, int byteCount) { 74 Buffer.this.write(data, offset, byteCount); 101 @Override public void require(long byteCount) throws EOFException { 102 if (size < byteCount) throw new EOFException(); 105 @Override public boolean request(long byteCount) { 106 return size >= byteCount; 116 @Override public int read(byte[] sink, int offset, int byteCount) { 117 return Buffer.this.read(sink, offset, byteCount); 139 * Copy {@code byteCount} bytes from this, starting at {@code offset}, to 142 public Buffer copyTo(OutputStream out, long offset, long byteCount) throws IOException [all...] |
RealBufferedSource.java | 44 @Override public long read(Buffer sink, long byteCount) throws IOException { 46 if (byteCount < 0) throw new IllegalArgumentException("byteCount < 0: " + byteCount); 54 long toRead = Math.min(byteCount, buffer.size); 63 @Override public void require(long byteCount) throws IOException { 64 if (!request(byteCount)) throw new EOFException(); 67 @Override public boolean request(long byteCount) throws IOException { 68 if (byteCount < 0) throw new IllegalArgumentException("byteCount < 0: " + byteCount) [all...] |
/external/webrtc/webrtc/examples/objc/AppRTCDemo/ |
ARDBitrateTracker.m | 36 - (void)updateBitrateWithCurrentByteCount:(NSInteger)byteCount { 38 if (_prevTime && (byteCount > _prevByteCount)) { 39 _bitrate = (byteCount - _prevByteCount) * 8 / (currentTime - _prevTime); 41 _prevByteCount = byteCount;
|
/frameworks/base/core/java/android/content/pm/ |
LimitedLengthInputStream.java | 68 public int read(byte[] buffer, int offset, int byteCount) throws IOException { 74 Arrays.checkOffsetAndCount(arrayLength, offset, byteCount); 76 if (mOffset > Long.MAX_VALUE - byteCount) { 77 throw new IOException("offset out of bounds: " + mOffset + " + " + byteCount); 80 if (mOffset + byteCount > mEnd) { 81 byteCount = (int) (mEnd - mOffset); 84 final int numRead = super.read(buffer, offset, byteCount);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/digests/ |
GeneralDigest.java | 19 private long byteCount; 43 byteCount = Pack.bigEndianToLong(encodedState, 8); 51 byteCount = t.byteCount; 65 byteCount++; 110 byteCount += len; 115 long bitLength = (byteCount << 3); 134 byteCount = 0; 147 Pack.longToBigEndian(byteCount, state, 8);
|
/frameworks/base/core/java/com/android/internal/util/ |
SizedInputStream.java | 49 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { 52 } else if (byteCount > mLength) { 53 byteCount = (int) mLength; 56 final int n = mWrapped.read(buffer, byteOffset, byteCount);
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
bitstream_io.cpp | 22 /* Note byteCount doesn't have to be multiple of 2 or 4 */ 75 stream->byteCount = 0; 213 if (stream->byteCount + WORD_SIZE > stream->bufferSize) 217 stream->byteCount += WORD_SIZE; 222 ptr = stream->bitstreamBuffer + stream->byteCount; 226 /* NOTE: byteCount does not have to be multiple of 2 or 4 */ 236 stream->byteCount += 4; 239 stream->byteCount += 2; 267 if (stream->byteCount + numbyte > stream->bufferSize) 271 stream->byteCount += numbyte [all...] |
/external/skia/src/core/ |
SkMD5.h | 22 size_t bytesWritten() const final { return SkToSizeT(this->byteCount); } 36 uint64_t byteCount; // number of bytes, modulo 2^64
|
/external/skqp/src/core/ |
SkMD5.h | 22 size_t bytesWritten() const final { return SkToSizeT(this->byteCount); } 36 uint64_t byteCount; // number of bytes, modulo 2^64
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
RecyclableBufferedInputStream.java | 249 * Reads at most {@code byteCount} bytes from this stream and stores them in 261 * if {@code offset < 0} or {@code byteCount < 0}, or if 262 * {@code offset + byteCount} is greater than the size of 269 public synchronized int read(byte[] buffer, int offset, int byteCount) throws IOException { 275 //Arrays.checkOffsetAndCount(buffer.length, offset, byteCount); 276 if (byteCount == 0) { 287 int copylength = count - pos >= byteCount ? byteCount : count - pos; 290 if (copylength == byteCount || localIn.available() == 0) { 294 required = byteCount - copylength [all...] |
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/libcore/io/ |
BridgeBufferIterator.java | 48 public void skip(int byteCount) { 49 int newPosition = mByteBuffer.position() + byteCount; 55 public void readByteArray(byte[] dst, int dstOffset, int byteCount) { 56 assert dst.length >= dstOffset + byteCount; 57 mByteBuffer.get(dst, dstOffset, byteCount);
|
/libcore/libart/src/main/java/java/lang/ |
StringFactory.java | 53 public static String newStringFromBytes(byte[] data, int offset, int byteCount) { 54 return newStringFromBytes(data, offset, byteCount, Charset.defaultCharset()); 58 public static native String newStringFromBytes(byte[] data, int high, int offset, int byteCount); 60 public static String newStringFromBytes(byte[] data, int offset, int byteCount, String charsetName) throws UnsupportedEncodingException { 61 return newStringFromBytes(data, offset, byteCount, Charset.forNameUEE(charsetName)); 77 public static String newStringFromBytes(byte[] data, int offset, int byteCount, Charset charset) { 78 if ((offset | byteCount) < 0 || byteCount > data.length - offset) { 79 throw new StringIndexOutOfBoundsException(data.length, offset, byteCount); 125 char[] v = new char[byteCount]; [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/ |
CFBBlockCipher.java | 24 private int byteCount; 124 if (byteCount == 0) 129 byte rv = (byte)(cfbOutV[byteCount] ^ in); 130 inBuf[byteCount++] = rv; 132 if (byteCount == blockSize) 134 byteCount = 0; 145 if (byteCount == 0) 150 inBuf[byteCount] = in; 151 byte rv = (byte)(cfbOutV[byteCount++] ^ in); 153 if (byteCount == blockSize [all...] |
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/ |
FaultHidingSink.java | 16 @Override public void write(Buffer source, long byteCount) throws IOException { 18 source.skip(byteCount); 22 super.write(source, byteCount);
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/ |
PushObserver.java | 67 * @param byteCount number of bytes to read or skip from the source. 70 boolean onData(int streamId, BufferedSource source, int byteCount, boolean last) 86 @Override public boolean onData(int streamId, BufferedSource source, int byteCount, 88 source.skip(byteCount);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
MD5Calculator.java | 35 int byteCount; 36 while ((byteCount = in.read(bytes)) > 0) { 37 digester.update(bytes, 0, byteCount);
|