/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);
|
/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 | 90 public void mincore(long address, long byteCount, byte[] vector) throws ErrnoException { os.mincore(address, byteCount, vector); } 92 public void mlock(long address, long byteCount) throws ErrnoException { os.mlock(address, byteCount); } 93 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); } 94 public void msync(long address, long byteCount, int flags) throws ErrnoException { os.msync(address, byteCount, flags); } 95 public void munlock(long address, long byteCount) throws ErrnoException { os.munlock(address, byteCount); } [all...] |
Os.java | 82 public void mincore(long address, long byteCount, byte[] vector) throws ErrnoException; 84 public void mlock(long address, long byteCount) throws ErrnoException; 85 public long mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) throws ErrnoException; 86 public void msync(long address, long byteCount, int flags) throws ErrnoException; 87 public void munlock(long address, long byteCount) throws ErrnoException; 88 public void munmap(long address, long byteCount) throws ErrnoException; 94 public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException; 96 public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException; 98 public int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException; 101 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...] |
IoUtils.java | 120 int byteCount = f.read(buffer); 121 if (byteCount == -1) { 124 bytes.write(buffer, 0, byteCount);
|
/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 offset, int byteCount) throws IOException { 240 return socketImpl.read(buffer, offset, 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; 396 * @param byteCount 400 * @exception IndexOutOfBoundsException if {@code dstOffset < 0 || byteCount < 0} 401 * @exception BufferUnderflowException if {@code byteCount > remaining()} 403 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);
|
/libcore/luni/src/main/java/java/io/ |
PipedInputStream.java | 259 * Reads at most {@code byteCount} bytes from this stream and stores them in the 271 * if {@code offset < 0} or {@code byteCount < 0}, or if {@code 272 * offset + byteCount} is greater than the size of {@code bytes}. 283 public synchronized int read(byte[] bytes, int offset, int byteCount) throws IOException { 284 Arrays.checkOffsetAndCount(bytes.length, offset, byteCount); 285 if (byteCount == 0) { 326 int length = leftInBuffer < byteCount ? leftInBuffer : byteCount; 341 if (totalCopied < byteCount && in != -1) { 343 int leftToCopy = byteCount - totalCopied [all...] |
LineNumberInputStream.java | 225 * used. This implementation skips {@code byteCount} bytes in the 229 * @param byteCount 239 public long skip(long byteCount) throws IOException { 240 return Streams.skipByReading(this, byteCount);
|
RandomAccessFile.java | 276 * Reads at most {@code byteCount} bytes from the current position in this file 284 * if {@code byteOffset < 0} or {@code byteCount < 0}, or if {@code 285 * byteOffset + byteCount} is greater than the size of {@code buffer}. 289 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { 290 return IoBridge.read(fd, buffer, byteOffset, byteCount); 389 * Reads {@code byteCount} bytes from this stream and stores them in the byte 390 * array {@code dst} starting at {@code offset}. If {@code byteCount} is zero, then this 392 * {@code byteCount} bytes have been read. If insufficient bytes are available, 401 * @param byteCount 407 * if {@code offset < 0} or {@code byteCount < 0}, o [all...] |
/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);
|
/external/skia/legacy/include/views/ |
SkEvent.h | 143 const void* findData(const char name[], size_t* byteCount = NULL) const { 144 return fMeta.findData(name, byteCount); 156 bool hasData(const char name[], const void* data, size_t byteCount) const { 157 return fMeta.hasData(name, data, byteCount); 173 void setData(const char name[], const void* data, size_t byteCount) { 174 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);
|
/external/okhttp/src/main/java/com/squareup/okhttp/internal/ |
Util.java | 199 * Reads exactly 'byteCount' bytes from 'in' (into 'dst' at offset 'offset'), and throws 204 public static void readFully(InputStream in, byte[] dst, int offset, int byteCount) 206 if (byteCount == 0) { 215 checkOffsetAndCount(dst.length, offset, byteCount); 216 while (byteCount > 0) { 217 int bytesRead = in.read(dst, offset, byteCount); 222 byteCount -= bytesRead; 249 * {@code byteCount} bytes have been read. 258 public static long skipByReading(InputStream in, long byteCount) throws IOException { 266 while (skipped < byteCount) { [all...] |
/frameworks/base/core/jni/ |
android_net_wifi_Wifi.cpp | 57 int byteCount = vsnprintf(buf, sizeof(buf), fmt, args); 59 if (byteCount < 0 || byteCount >= BUF_SIZE) { 74 int byteCount = vsnprintf(buf, sizeof(buf), fmt, args); 76 if (byteCount < 0 || byteCount >= BUF_SIZE) { 91 int byteCount = vsnprintf(buf, sizeof(buf), fmt, args); 93 if (byteCount < 0 || byteCount >= BUF_SIZE) {
|
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/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;
|
/cts/tests/tests/net/src/android/net/cts/ |
TrafficStatsTest.java | 93 final int byteCount = 1024; 106 byte[] buf = new byte[byteCount]; 121 byte[] buf = new byte[byteCount]; 123 while (read < byteCount * packetCount) { 173 uidTxDeltaBytes >= tcpPacketToIpBytes(packetCount, byteCount) + tcpPacketToIpBytes(5, 0) && 174 uidTxDeltaBytes <= tcpPacketToIpBytes(packetCount, byteCount) + tcpPacketToIpBytes(packetCount + 7, 0)); 176 uidRxDeltaBytes >= tcpPacketToIpBytes(packetCount, byteCount) + tcpPacketToIpBytes(5, 0) && 177 uidRxDeltaBytes <= tcpPacketToIpBytes(packetCount, byteCount) + tcpPacketToIpBytes(packetCount + 7, 0));
|
/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/skia/include/core/ |
SkOSFile.h | 44 size_t sk_fread(void* buffer, size_t byteCount, SkFILE*); 45 size_t sk_fwrite(const void* buffer, size_t byteCount, SkFILE*);
|
/external/skia/legacy/include/core/ |
SkOSFile.h | 35 size_t sk_fread(void* buffer, size_t byteCount, SkFILE*); 36 size_t sk_fwrite(const void* buffer, size_t byteCount, SkFILE*);
|
/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])+ \
|