/libcore/luni/src/main/java/libcore/io/ |
BufferIterator.java | 32 * Skips forwards or backwards {@code byteCount} bytes from the current position. 34 public abstract void skip(int byteCount); 37 * Copies {@code byteCount} bytes from the current position into {@code dst}, starting at 38 * {@code dstOffset}, and advances the current position {@code byteCount} bytes. 40 public abstract void readByteArray(byte[] dst, int dstOffset, int byteCount);
|
NioBufferIterator.java | 44 public void skip(int byteCount) { 45 position += byteCount; 48 public void readByteArray(byte[] dst, int dstOffset, int byteCount) { 49 Memory.peekByteArray(address + position, dst, dstOffset, byteCount); 50 position += byteCount;
|
/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...] |
ForwardingSink.java | 34 @Override public void write(Buffer source, long byteCount) throws IOException { 35 delegate.write(source, byteCount);
|
ForwardingSource.java | 34 @Override public long read(Buffer sink, long byteCount) throws IOException { 35 return delegate.read(sink, byteCount);
|
/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/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/libcore/io/ |
BridgeBufferIterator.java | 43 public void skip(int byteCount) { 44 int newPosition = mByteBuffer.position() + byteCount; 50 public void readByteArray(byte[] dst, int dstOffset, int byteCount) { 51 assert dst.length >= dstOffset + byteCount; 52 mByteBuffer.get(dst, dstOffset, 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/av/media/libstagefright/codecs/on2/h264dec/source/ |
h264bsd_byte_stream.c | 87 u32 byteCount,initByteCount; 107 zeroCount = byteCount = 2; 113 byteCount++; 115 if (byteCount == len) 130 initByteCount = byteCount; 139 byteCount++; 151 byteCount - initByteCount - zeroCount - 1; 162 if (byteCount == len) 164 pStrmData->strmBuffSize = byteCount - initByteCount - zeroCount;
|
/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/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...] |
/libcore/libart/src/main/java/java/lang/ |
StringFactory.java | 52 public static String newStringFromBytes(byte[] data, int offset, int byteCount) { 53 return newStringFromBytes(data, offset, byteCount, Charset.defaultCharset()); 56 public static native String newStringFromBytes(byte[] data, int high, int offset, int byteCount); 58 public static String newStringFromBytes(byte[] data, int offset, int byteCount, String charsetName) throws UnsupportedEncodingException { 59 return newStringFromBytes(data, offset, byteCount, Charset.forNameUEE(charsetName)); 67 public static String newStringFromBytes(byte[] data, int offset, int byteCount, Charset charset) { 68 if ((offset | byteCount) < 0 || byteCount > data.length - offset) { 69 throw new StringIndexOutOfBoundsException(data.length, offset, byteCount); 79 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);
|