/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 | 236 @Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { 237 return socketImpl.read(buffer, byteOffset, byteCount); 265 @Override public void write(byte[] buffer, int offset, int byteCount) throws IOException { 266 socketImpl.write(buffer, offset, byteCount); 477 private int read(byte[] buffer, int offset, int byteCount) throws IOException { 478 if (byteCount == 0) { 481 Arrays.checkOffsetAndCount(buffer.length, offset, byteCount); 485 int readCount = IoBridge.recvfrom(true, fd, buffer, offset, byteCount, 0, null, false); 500 private void write(byte[] buffer, int offset, int byteCount) throws IOException { 501 Arrays.checkOffsetAndCount(buffer.length, offset, byteCount); [all...] |
/libcore/luni/src/main/java/javax/crypto/ |
CipherInputStream.java | 99 int byteCount = in.read(inputBuffer); 100 if (byteCount == -1) { 110 outputLength = cipher.update(inputBuffer, 0, byteCount, outputBuffer, 0); 170 public long skip(long byteCount) throws IOException { 171 return Streams.skipByReading(this, byteCount);
|
/libcore/luni/src/main/java/java/nio/ |
ByteBuffer.java | 97 * {@code start + byteCount}, capacity will be the length of the array. 104 * @param byteCount 109 * if either {@code start} or {@code byteCount} is invalid. 111 public static ByteBuffer wrap(byte[] array, int start, int byteCount) { 112 Arrays.checkOffsetAndCount(array.length, start, byteCount); 115 buf.limit = start + byteCount; 389 * @param byteCount 393 * @throws IndexOutOfBoundsException if {@code dstOffset < 0 || byteCount < 0} 394 * @throws BufferUnderflowException if {@code byteCount > remaining()} 396 public ByteBuffer get(byte[] dst, int dstOffset, int byteCount) { [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
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/java/io/ |
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 | 273 * Reads up to {@code byteCount} bytes from the current position in this file 281 * if {@code byteOffset < 0 || byteCount < 0 || byteOffset + byteCount > buffer.length}. 285 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { 286 return IoBridge.read(fd, buffer, byteOffset, byteCount); 385 * Reads {@code byteCount} bytes from this stream and stores them in the byte 386 * array {@code dst} starting at {@code offset}. If {@code byteCount} is zero, then this 388 * {@code byteCount} bytes have been read. If insufficient bytes are available, 397 * @param byteCount 403 * if {@code offset < 0} or {@code byteCount < 0}, o [all...] |
/libcore/luni/src/main/java/android/system/ |
Os.java | 260 public static void mincore(long address, long byteCount, byte[] vector) throws ErrnoException { Libcore.os.mincore(address, byteCount, vector); } 275 public static void mlock(long address, long byteCount) throws ErrnoException { Libcore.os.mlock(address, byteCount); } 280 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); } 285 public static void msync(long address, long byteCount, int flags) throws ErrnoException { Libcore.os.msync(address, byteCount, flags); } 290 public static void munlock(long address, long byteCount) throws ErrnoException { Libcore.os.munlock(address, byteCount); } [all...] |
/libcore/luni/src/main/java/libcore/io/ |
ForwardingOs.java | 107 public void mincore(long address, long byteCount, byte[] vector) throws ErrnoException { os.mincore(address, byteCount, vector); } 110 public void mlock(long address, long byteCount) throws ErrnoException { os.mlock(address, byteCount); } 111 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); } 112 public void msync(long address, long byteCount, int flags) throws ErrnoException { os.msync(address, byteCount, flags); } 113 public void munlock(long address, long byteCount) throws ErrnoException { os.munlock(address, byteCount); } [all...] |
Posix.java | 101 public native void mincore(long address, long byteCount, byte[] vector) throws ErrnoException; 104 public native void mlock(long address, long byteCount) throws ErrnoException; 105 public native long mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) throws ErrnoException; 106 public native void msync(long address, long byteCount, int flags) throws ErrnoException; 107 public native void munlock(long address, long byteCount) throws ErrnoException; 108 public native void munmap(long address, long byteCount) throws ErrnoException; 127 public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException { 129 return preadBytes(fd, bytes, byteOffset, byteCount, offset); 131 private native int preadBytes(FileDescriptor fd, Object buffer, int bufferOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException; 145 public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException [all...] |
BlockGuardOs.java | 208 @Override public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException { 210 return os.pread(fd, bytes, byteOffset, byteCount, offset); 218 @Override public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException { 220 return os.pwrite(fd, bytes, byteOffset, byteCount, offset); 228 @Override public int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException, InterruptedIOException { 230 return os.read(fd, bytes, byteOffset, byteCount); 248 @Override public int recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException { 250 return os.recvfrom(fd, bytes, byteOffset, byteCount, flags, srcAddress); 263 @Override public long sendfile(FileDescriptor outFd, FileDescriptor inFd, MutableLong inOffset, long byteCount) throws ErrnoException { 265 return os.sendfile(outFd, inFd, inOffset, byteCount); [all...] |
IoBridge.java | 466 public static int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws IOException { 467 Arrays.checkOffsetAndCount(bytes.length, byteOffset, byteCount); 468 if (byteCount == 0) { 472 int readCount = Libcore.os.read(fd, bytes, byteOffset, byteCount); 490 public static void write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws IOException { 491 Arrays.checkOffsetAndCount(bytes.length, byteOffset, byteCount); 492 if (byteCount == 0) { 496 while (byteCount > 0) { 497 int bytesWritten = Libcore.os.write(fd, bytes, byteOffset, byteCount); 498 byteCount -= bytesWritten [all...] |
Os.java | 99 public void mincore(long address, long byteCount, byte[] vector) throws ErrnoException; 102 public void mlock(long address, long byteCount) throws ErrnoException; 103 public long mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) throws ErrnoException; 104 public void msync(long address, long byteCount, int flags) throws ErrnoException; 105 public void munlock(long address, long byteCount) throws ErrnoException; 106 public void munmap(long address, long byteCount) throws ErrnoException; 114 public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException; 116 public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException; 118 public int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException, InterruptedIOException; 122 public int recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException [all...] |
/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); 232 " Wanted: " + uidTxDeltaBytes + ">=" + tcpPacketToIpBytes(packetCount, byteCount) + "+" + tcpPacketToIpBytes(minExpectedExtraPackets, 0) + " && " + 233 uidTxDeltaBytes + "<=" + tcpPacketToIpBytes(packetCount, byteCount) + "+" + tcpPacketToIpBytes(packetCount + maxExpectedExtraPackets, 0), 234 uidTxDeltaBytes >= tcpPacketToIpBytes(packetCount, byteCount) + tcpPacketToIpBytes(minExpectedExtraPackets, 0) && 235 uidTxDeltaBytes <= tcpPacketToIpBytes(packetCount, byteCount) + tcpPacketToIpBytes(packetCount + maxExpectedExtraPackets + deltaTxOtherPackets, 0)); 237 " 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;
|
/libcore/luni/src/main/java/java/util/zip/ |
ZipFile.java | 488 @Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { 491 if (byteCount > length) { 492 byteCount = (int) length; 495 int count = sharedRaf.read(buffer, byteOffset, byteCount); 505 @Override public long skip(long byteCount) throws IOException { 506 if (byteCount > endOffset - offset) { 507 byteCount = endOffset - offset; 509 offset += byteCount; 510 return byteCount; 535 @Override public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException [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])+ \
|
/external/okhttp/okio/src/test/java/okio/ |
DeflaterSinkTest.java | 84 int byteCount = Segment.SIZE * 4; 85 deflaterSink.write(new OkBuffer().writeUtf8(repeat('a', byteCount)), byteCount); 87 assertEquals(repeat('a', byteCount), inflate(buffer).readUtf8(byteCount));
|
/frameworks/base/core/jni/ |
android_ddm_DdmHandleNativeHeap.cpp | 60 ssize_t byteCount; 61 while ((byteCount = TEMP_FAILURE_RETRY(read(fd, bytes, sizeof(bytes)))) > 0) { 62 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));
|