/external/okhttp/okio/okio/src/main/java/okio/ |
InflaterSource.java | 56 Buffer sink, long byteCount) throws IOException { 57 if (byteCount < 0) throw new IllegalArgumentException("byteCount < 0: " + byteCount); 59 if (byteCount == 0) return 0;
|
DeflaterSink.java | 58 @Override public void write(Buffer source, long byteCount) 60 checkOffsetAndCount(source.size, 0, byteCount); 61 while (byteCount > 0) { 64 int toDeflate = (int) Math.min(byteCount, head.limit - head.pos); 78 byteCount -= toDeflate;
|
Okio.java | 70 @Override public void write(Buffer source, long byteCount) throws IOException { 71 checkOffsetAndCount(source.size, 0, byteCount); 72 while (byteCount > 0) { 75 int toCopy = (int) Math.min(byteCount, head.limit - head.pos); 79 byteCount -= toCopy; 129 @Override public long read(Buffer sink, long byteCount) throws IOException { 130 if (byteCount < 0) throw new IllegalArgumentException("byteCount < 0: " + byteCount); 131 if (byteCount == 0) return 0 [all...] |
BufferedSink.java | 39 * Like {@link OutputStream#write(byte[], int, int)}, this writes {@code byteCount} 42 BufferedSink write(byte[] source, int offset, int byteCount) throws IOException; 50 /** Removes {@code byteCount} bytes from {@code source} and appends them to this sink. */ 51 BufferedSink write(Source source, long byteCount) throws IOException;
|
/external/python/cpython3/Modules/_sha3/kcp/ |
KeccakP-1600-SnP-opt32.h | 31 void KeccakP1600_OverwriteWithZeroes(void *state, unsigned int byteCount);
|
/external/okhttp/okio/okio/src/test/java/okio/ |
MockSink.java | 50 @Override public void write(Buffer source, long byteCount) throws IOException { 51 log.add("write(" + source + ", " + byteCount + ")"); 52 source.skip(byteCount);
|
SocketTimeoutTest.java | 123 private static void writeFully(OutputStream out, int byteCount) throws IOException { 124 out.write(new byte[byteCount]); 128 private static byte[] readFully(InputStream in, int byteCount) throws IOException { 130 byte[] result = new byte[byteCount]; 131 while (count < byteCount) {
|
/frameworks/base/core/java/android/util/jar/ |
StrictJarFile.java | 347 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { 352 int r = super.read(buffer, byteOffset, byteCount); 384 public long skip(long byteCount) throws IOException { 385 return Streams.skipByReading(this, byteCount); 399 @Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { 402 i = super.read(buffer, byteOffset, byteCount); 458 @Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { 461 if (byteCount > length) { 462 byteCount = (int) length; 469 int count = IoBridge.read(fd, buffer, byteOffset, byteCount); [all...] |
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
ShadowMemoryMappedFile.java | 99 @Override public void skip(int byteCount) { 100 buffer.position(buffer.position() + byteCount); 108 @Override public void readByteArray(byte[] dst, int dstOffset, int byteCount) { 109 System.arraycopy(buffer.array(), buffer.position(), dst, dstOffset, byteCount); 110 skip(byteCount);
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
CachedInputStream.java | 213 public long skip(long byteCount) throws IOException { 218 return in.skip(byteCount); 222 if (totalSkip > byteCount) { 223 totalSkip = byteCount; 226 byteCount -= totalSkip; 227 while (byteCount > 0) { 236 int toRead = (int) (byteCount > leftInBuffer ? leftInBuffer : byteCount); 241 byteCount -= reads; 244 if (byteCount > 0) [all...] |
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
NativeFrame.java | 177 int byteCount = rgbaBitmap.getByteCount(); 179 if (!setNativeBitmap(rgbaBitmap, byteCount, bps)) { 193 int byteCount = result.getByteCount(); 195 if (!getNativeBitmap(result, byteCount, bps)) { 244 private native byte[] getNativeData(int byteCount); 252 private native int[] getNativeInts(int byteCount); 254 private native float[] getNativeFloats(int byteCount);
|
/libcore/luni/src/main/java/libcore/io/ |
Linux.java | 120 public native void mincore(long address, long byteCount, byte[] vector) throws ErrnoException; 123 public native void mlock(long address, long byteCount) throws ErrnoException; 124 public native long mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) throws ErrnoException; 125 public native void msync(long address, long byteCount, int flags) throws ErrnoException; 126 public native void munlock(long address, long byteCount) throws ErrnoException; 127 public native void munmap(long address, long byteCount) throws ErrnoException; 146 public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException { 148 return preadBytes(fd, bytes, byteOffset, byteCount, offset); 150 private native int preadBytes(FileDescriptor fd, Object buffer, int bufferOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException; 164 public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException [all...] |
Os.java | 115 public void mincore(long address, long byteCount, byte[] vector) throws ErrnoException; 118 public void mlock(long address, long byteCount) throws ErrnoException; 119 public long mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) throws ErrnoException; 120 public void msync(long address, long byteCount, int flags) throws ErrnoException; 121 public void munlock(long address, long byteCount) throws ErrnoException; 122 public void munmap(long address, long byteCount) throws ErrnoException; 130 public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException; 132 public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException; 134 public int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException, InterruptedIOException; 139 public int recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException [all...] |
BlockGuardOs.java | 232 @Override public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException { 234 return os.pread(fd, bytes, byteOffset, byteCount, offset); 242 @Override public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException { 244 return os.pwrite(fd, bytes, byteOffset, byteCount, offset); 252 @Override public int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException, InterruptedIOException { 254 return os.read(fd, bytes, byteOffset, byteCount); 277 @Override public int recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException { 279 return os.recvfrom(fd, bytes, byteOffset, byteCount, flags, srcAddress); 292 @Override public long sendfile(FileDescriptor outFd, FileDescriptor inFd, Int64Ref offset, long byteCount) throws ErrnoException { 294 return os.sendfile(outFd, inFd, offset, byteCount); [all...] |
ForwardingOs.java | 129 public void mincore(long address, long byteCount, byte[] vector) throws ErrnoException { os.mincore(address, byteCount, vector); } 132 public void mlock(long address, long byteCount) throws ErrnoException { os.mlock(address, byteCount); } 133 public long mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) throws ErrnoException { return os.mmap(address, byteCount, prot, flags, fd, offset); } 134 public void msync(long address, long byteCount, int flags) throws ErrnoException { os.msync(address, byteCount, flags); } 135 public void munlock(long address, long byteCount) throws ErrnoException { os.munlock(address, byteCount); } [all...] |
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/ |
FramedStream.java | 337 @Override public long read(Buffer sink, long byteCount) 339 if (byteCount < 0) throw new IllegalArgumentException("byteCount < 0: " + byteCount); 348 read = readBuffer.read(sink, Math.min(byteCount, readBuffer.size())); 384 void receive(BufferedSource in, long byteCount) throws IOException { 387 while (byteCount > 0) { 392 flowControlError = byteCount + readBuffer.size() > maxByteCount; 397 in.skip(byteCount); 404 in.skip(byteCount); [all...] |
/external/webrtc/webrtc/examples/objc/AppRTCDemo/ |
ARDStatsBuilder.m | 190 NSInteger byteCount = value.integerValue; 191 [_connRecvBitrateTracker updateBitrateWithCurrentByteCount:byteCount]; 194 NSInteger byteCount = value.integerValue; 195 [_connSendBitrateTracker updateBitrateWithCurrentByteCount:byteCount]; 220 NSInteger byteCount = value.integerValue; 221 [_audioSendBitrateTracker updateBitrateWithCurrentByteCount:byteCount]; 248 NSInteger byteCount = value.integerValue; 249 [_videoSendBitrateTracker updateBitrateWithCurrentByteCount:byteCount]; 272 NSInteger byteCount = value.integerValue; 273 [_audioRecvBitrateTracker updateBitrateWithCurrentByteCount:byteCount]; [all...] |
/libcore/luni/src/test/etc/loading-test-jar/ |
TestMethods.java | 71 int byteCount = in.read(buffer); 72 if (byteCount == -1) { 75 bytes.write(buffer, 0, byteCount);
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
RequestBody.java | 83 final int offset, final int byteCount) { 85 Util.checkOffsetAndCount(content.length, offset, byteCount); 92 return byteCount; 96 sink.write(content, offset, byteCount);
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
Fingerprint.java | 78 * @param byteCount length of original data will be stored at byteCount[0] as a side product 81 public static Fingerprint fromInputStream(InputStream stream, long[] byteCount) 97 if ((byteCount != null) && (byteCount.length > 0)) byteCount[0] = count;
|
/bionic/libc/bionic/ |
ifaddrs.cpp | 70 void SetAddress(int family, const void* data, size_t byteCount) { 76 ifa.ifa_addr = CopyAddress(family, data, byteCount, &addr); 79 ifa.ifa_dstaddr = CopyAddress(family, data, byteCount, &ifa_ifu); 83 void SetBroadcastAddress(int family, const void* data, size_t byteCount) { 90 ifa.ifa_broadaddr = CopyAddress(family, data, byteCount, &ifa_ifu); 93 void SetLocalAddress(int family, const void* data, size_t byteCount) { 103 ifa.ifa_addr = CopyAddress(family, data, byteCount, &addr); 127 sockaddr* CopyAddress(int family, const void* data, size_t byteCount, sockaddr_storage* ss) { 133 memcpy(SockaddrBytes(family, ss), data, byteCount);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/ |
X9FieldElement.java | 59 int byteCount = converter.getByteLength(f); 60 byte[] paddedBigInteger = converter.integerToBytes(f.toBigInteger(), byteCount);
|
/external/llvm/lib/Fuzzer/ |
FuzzerSHA1.cpp | 54 uint32_t byteCount; 88 s->byteCount = 0; 148 ++s->byteCount; 167 sha1_addUncounted(s, s->byteCount >> 29); // Shifting to multiply by 8 168 sha1_addUncounted(s, s->byteCount >> 21); // as SHA-1 supports bitstreams as well as 169 sha1_addUncounted(s, s->byteCount >> 13); // byte. 170 sha1_addUncounted(s, s->byteCount >> 5); 171 sha1_addUncounted(s, s->byteCount << 3);
|
/development/tools/axl/ |
chewie.py | 70 byteCount = 0 133 byteCount += int(x[3]) 135 byteCount += int(x[2]) 172 "byteCount: %s\n" % byteCount + \ 173 "data rate: %s\n" % (1000 * byteCount / vals[-1][6])+ \
|
/libcore/luni/src/main/java/android/system/ |
Os.java | 318 public static void mincore(long address, long byteCount, byte[] vector) throws ErrnoException { Libcore.os.mincore(address, byteCount, vector); } 333 public static void mlock(long address, long byteCount) throws ErrnoException { Libcore.os.mlock(address, byteCount); } 338 public static long mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) throws ErrnoException { return Libcore.os.mmap(address, byteCount, prot, flags, fd, offset); } 343 public static void msync(long address, long byteCount, int flags) throws ErrnoException { Libcore.os.msync(address, byteCount, flags); } 348 public static void munlock(long address, long byteCount) throws ErrnoException { Libcore.os.munlock(address, byteCount); } [all...] |