/libcore/luni/src/main/java/libcore/net/url/ |
FtpURLInputStream.java | 77 public long skip(long byteCount) throws IOException { 78 return is.skip(byteCount);
|
/libcore/luni/src/main/java/java/io/ |
DataInput.java | 115 * Reads {@code byteCount} bytes from this stream and stores them in the byte 116 * array {@code dst} starting at {@code offset}. If {@code byteCount} is zero, then this 118 * {@code byteCount} bytes have been read. If insufficient bytes are available, 127 * @param byteCount 133 * if {@code offset < 0} or {@code byteCount < 0}, or 134 * {@code offset + byteCount > dst.length}. 140 public abstract void readFully(byte[] dst, int offset, int byteCount) throws IOException;
|
SequenceInputStream.java | 149 * Reads up to {@code byteCount} bytes from this sequence of input streams and 157 * requested by {@code byteCount}, it will not retry to read more on its own 166 * if {@code byteOffset < 0 || byteCount < 0 || byteOffset + byteCount > buffer.length}. 173 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { 177 Arrays.checkOffsetAndCount(buffer.length, byteOffset, byteCount); 179 int result = in.read(buffer, byteOffset, byteCount);
|
PipedInputStream.java | 259 * Reads up to {@code byteCount} bytes from this stream and stores them in the 272 * if {@code byteOffset < 0 || byteCount < 0 || byteOffset + byteCount > bytes.length}. 282 @Override public synchronized int read(byte[] bytes, int byteOffset, int byteCount) throws IOException { 283 Arrays.checkOffsetAndCount(bytes.length, byteOffset, byteCount); 284 if (byteCount == 0) { 325 int length = leftInBuffer < byteCount ? leftInBuffer : byteCount; 340 if (totalCopied < byteCount && in != -1) { 342 int leftToCopy = byteCount - totalCopied [all...] |
RandomAccessFile.java | 274 * Reads up to {@code byteCount} bytes from the current position in this file 282 * if {@code byteOffset < 0 || byteCount < 0 || byteOffset + byteCount > buffer.length}. 286 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { 287 return IoBridge.read(fd, buffer, byteOffset, byteCount); 386 * Reads {@code byteCount} bytes from this stream and stores them in the byte 387 * array {@code dst} starting at {@code offset}. If {@code byteCount} is zero, then this 389 * {@code byteCount} bytes have been read. If insufficient bytes are available, 398 * @param byteCount 404 * if {@code offset < 0} or {@code byteCount < 0}, o [all...] |
/libcore/luni/src/main/java/java/util/zip/ |
InflaterOutputStream.java | 141 public void write(byte[] bytes, int offset, int byteCount) throws IOException, ZipException { 143 Arrays.checkOffsetAndCount(bytes.length, offset, byteCount); 144 inf.setInput(bytes, offset, byteCount);
|
ZipFile.java | 457 @Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { 460 if (byteCount > length) { 461 byteCount = (int) length; 464 int count = sharedRaf.read(buffer, byteOffset, byteCount); 474 @Override public long skip(long byteCount) throws IOException { 475 if (byteCount > endOffset - offset) { 476 byteCount = endOffset - offset; 478 offset += byteCount; 479 return byteCount; 503 @Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException [all...] |
/libcore/luni/src/main/java/libcore/io/ |
BlockGuardOs.java | 127 @Override public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException { 129 return os.pread(fd, bytes, byteOffset, byteCount, offset); 137 @Override public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException { 139 return os.pwrite(fd, bytes, byteOffset, byteCount, offset); 147 @Override public int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException { 149 return os.read(fd, bytes, byteOffset, byteCount); 162 @Override public int recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException { 164 return os.recvfrom(fd, bytes, byteOffset, byteCount, flags, srcAddress); 172 @Override public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { 177 return os.sendto(fd, bytes, byteOffset, byteCount, flags, inetAddress, port) [all...] |
ForwardingOs.java | 91 public void mincore(long address, long byteCount, byte[] vector) throws ErrnoException { os.mincore(address, byteCount, vector); } 93 public void mlock(long address, long byteCount) throws ErrnoException { os.mlock(address, byteCount); } 94 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); } 95 public void msync(long address, long byteCount, int flags) throws ErrnoException { os.msync(address, byteCount, flags); } 96 public void munlock(long address, long byteCount) throws ErrnoException { os.munlock(address, byteCount); } [all...] |
Os.java | 83 public void mincore(long address, long byteCount, byte[] vector) throws ErrnoException; 85 public void mlock(long address, long byteCount) throws ErrnoException; 86 public long mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) throws ErrnoException; 87 public void msync(long address, long byteCount, int flags) throws ErrnoException; 88 public void munlock(long address, long byteCount) throws ErrnoException; 89 public void munmap(long address, long byteCount) throws ErrnoException; 95 public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException; 97 public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException; 99 public int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException; 102 public int recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException [all...] |
IoBridge.java | 419 public static int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws IOException { 420 Arrays.checkOffsetAndCount(bytes.length, byteOffset, byteCount); 421 if (byteCount == 0) { 425 int readCount = Libcore.os.read(fd, bytes, byteOffset, byteCount); 443 public static void write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws IOException { 444 Arrays.checkOffsetAndCount(bytes.length, byteOffset, byteCount); 445 if (byteCount == 0) { 449 while (byteCount > 0) { 450 int bytesWritten = Libcore.os.write(fd, bytes, byteOffset, byteCount); 451 byteCount -= bytesWritten [all...] |
/libcore/luni/src/main/java/java/net/ |
DatagramPacket.java | 180 public synchronized void setData(byte[] data, int offset, int byteCount) { 181 if ((offset | byteCount) < 0 || offset > data.length || byteCount > data.length - offset) { 186 this.length = byteCount; 187 this.userSuppliedLength = byteCount;
|
PlainSocketImpl.java | 239 @Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { 240 return socketImpl.read(buffer, byteOffset, byteCount); 268 @Override public void write(byte[] buffer, int offset, int byteCount) throws IOException { 269 socketImpl.write(buffer, offset, byteCount); 480 private int read(byte[] buffer, int offset, int byteCount) throws IOException { 481 if (byteCount == 0) { 484 Arrays.checkOffsetAndCount(buffer.length, offset, byteCount); 488 int readCount = IoBridge.recvfrom(true, fd, buffer, offset, byteCount, 0, null, false); 503 private void write(byte[] buffer, int offset, int byteCount) throws IOException { 504 Arrays.checkOffsetAndCount(buffer.length, offset, byteCount); [all...] |
/libcore/luni/src/main/java/java/nio/ |
ByteBuffer.java | 93 * {@code start + byteCount}, capacity will be the length of the array. 100 * @param byteCount 105 * if either {@code start} or {@code byteCount} is invalid. 107 public static ByteBuffer wrap(byte[] array, int start, int byteCount) { 108 Arrays.checkOffsetAndCount(array.length, start, byteCount); 111 buf.limit = start + byteCount; 385 * @param byteCount 389 * @exception IndexOutOfBoundsException if {@code dstOffset < 0 || byteCount < 0} 390 * @exception BufferUnderflowException if {@code byteCount > remaining()} 392 public ByteBuffer get(byte[] dst, int dstOffset, int byteCount) { [all...] |
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
NativeFrame.java | 179 int byteCount = rgbaBitmap.getByteCount(); 181 if (!setNativeBitmap(rgbaBitmap, byteCount, bps)) { 195 int byteCount = result.getByteCount(); 197 if (!getNativeBitmap(result, byteCount, bps)) { 246 private native byte[] getNativeData(int byteCount); 254 private native int[] getNativeInts(int byteCount); 256 private native float[] getNativeFloats(int byteCount);
|
/cts/tests/tests/net/src/android/net/cts/ |
TrafficStatsTest.java | 119 final int byteCount = 1024; 132 byte[] buf = new byte[byteCount]; 162 byte[] buf = new byte[byteCount]; 163 while (read < byteCount * packetCount) { 171 assertTrue("Not all data read back", read >= byteCount * packetCount); 222 " Wanted: " + uidTxDeltaBytes + ">=" + tcpPacketToIpBytes(packetCount, byteCount) + "+" + tcpPacketToIpBytes(minExpectedExtraPackets, 0) + " && " + 223 uidTxDeltaBytes + "<=" + tcpPacketToIpBytes(packetCount, byteCount) + "+" + tcpPacketToIpBytes(packetCount + maxExpectedExtraPackets, 0), 224 uidTxDeltaBytes >= tcpPacketToIpBytes(packetCount, byteCount) + tcpPacketToIpBytes(minExpectedExtraPackets, 0) && 225 uidTxDeltaBytes <= tcpPacketToIpBytes(packetCount, byteCount) + tcpPacketToIpBytes(packetCount + maxExpectedExtraPackets, 0)); 227 " Wanted: " + uidRxDeltaBytes + ">=" + tcpPacketToIpBytes(packetCount, byteCount) + "+" + tcpPacketToIpBytes(minExpectedExtraPackets, 0) + " && " [all...] |
/external/chromium_org/third_party/skia/include/views/ |
SkEvent.h | 141 const void* findData(const char name[], size_t* byteCount = NULL) const { 142 return fMeta.findData(name, byteCount); 154 bool hasData(const char name[], const void* data, size_t byteCount) const { 155 return fMeta.hasData(name, data, byteCount); 171 void setData(const char name[], const void* data, size_t byteCount) { 172 fMeta.setData(name, data, byteCount);
|
/external/skia/include/views/ |
SkEvent.h | 141 const void* findData(const char name[], size_t* byteCount = NULL) const { 142 return fMeta.findData(name, byteCount); 154 bool hasData(const char name[], const void* data, size_t byteCount) const { 155 return fMeta.hasData(name, data, byteCount); 171 void setData(const char name[], const void* data, size_t byteCount) { 172 fMeta.setData(name, data, byteCount);
|
/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);
|
/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;
|
/external/okhttp/src/main/java/com/squareup/okhttp/internal/ |
Util.java | 205 * Reads exactly 'byteCount' bytes from 'in' (into 'dst' at offset 'offset'), and throws 210 public static void readFully(InputStream in, byte[] dst, int offset, int byteCount) 212 if (byteCount == 0) { 221 checkOffsetAndCount(dst.length, offset, byteCount); 222 while (byteCount > 0) { 223 int bytesRead = in.read(dst, offset, byteCount); 228 byteCount -= bytesRead; 255 * {@code byteCount} bytes have been read. 264 public static long skipByReading(InputStream in, long byteCount) throws IOException { 272 while (skipped < byteCount) { [all...] |
/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);
|
/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])+ \
|
/frameworks/base/core/jni/ |
android_ddm_DdmHandleNativeHeap.cpp | 52 ssize_t byteCount; 53 while ((byteCount = TEMP_FAILURE_RETRY(read(fd, bytes, sizeof(bytes)))) > 0) { 54 s.append(bytes, byteCount);
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/jpegstream/ |
JPEGInputStream.java | 137 public long skip(long byteCount) throws IOException { 138 if (byteCount <= 0) { 142 int flag = skipDecodedBytes((int) (0x7FFFFFFF & byteCount));
|