/libcore/luni/src/main/java/java/io/ |
PipedInputStream.java | 258 * Reads at most {@code byteCount} bytes from this stream and stores them in the 270 * if {@code offset < 0} or {@code byteCount < 0}, or if {@code 271 * offset + byteCount} is greater than the size of {@code bytes}. 282 public synchronized int read(byte[] bytes, int offset, int byteCount) throws IOException { 283 Arrays.checkOffsetAndCount(bytes.length, offset, byteCount); 284 if (byteCount == 0) { 325 int length = leftInBuffer < byteCount ? leftInBuffer : byteCount; 340 if (totalCopied < byteCount && in != -1) { 342 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...] |
FileOutputStream.java | 186 public void write(byte[] buffer, int byteOffset, int byteCount) throws IOException { 187 IoBridge.write(fd, buffer, byteOffset, byteCount);
|
/libcore/luni/src/main/java/libcore/io/ |
ForwardingOs.java | 81 public void mincore(long address, long byteCount, byte[] vector) throws ErrnoException { os.mincore(address, byteCount, vector); } 83 public void mlock(long address, long byteCount) throws ErrnoException { os.mlock(address, byteCount); } 84 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); } 85 public void msync(long address, long byteCount, int flags) throws ErrnoException { os.msync(address, byteCount, flags); } 86 public void munlock(long address, long byteCount) throws ErrnoException { os.munlock(address, byteCount); } [all...] |
Os.java | 73 public void mincore(long address, long byteCount, byte[] vector) throws ErrnoException; 75 public void mlock(long address, long byteCount) throws ErrnoException; 76 public long mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) throws ErrnoException; 77 public void msync(long address, long byteCount, int flags) throws ErrnoException; 78 public void munlock(long address, long byteCount) throws ErrnoException; 79 public void munmap(long address, long byteCount) throws ErrnoException; 85 public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException; 87 public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException; 89 public int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException; 92 public int recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoException [all...] |
IoUtils.java | 119 int byteCount = f.read(buffer); 120 if (byteCount == -1) { 123 bytes.write(buffer, 0, byteCount);
|
IoBridge.java | 426 public static int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws IOException { 427 Arrays.checkOffsetAndCount(bytes.length, byteOffset, byteCount); 428 if (byteCount == 0) { 432 int readCount = Libcore.os.read(fd, bytes, byteOffset, byteCount); 450 public static void write(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws IOException { 451 Arrays.checkOffsetAndCount(bytes.length, byteOffset, byteCount); 452 if (byteCount == 0) { 456 while (byteCount > 0) { 457 int bytesWritten = Libcore.os.write(fd, bytes, byteOffset, byteCount); 458 byteCount -= bytesWritten [all...] |
/external/skia/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/main/java/java/nio/ |
Buffer.java | 171 int byteCount = bytesPerElement * count; 176 if (byteCount > remaining()) { 179 return byteCount; 183 int byteCount = bytesPerElement * count; 188 if (byteCount > remaining()) { 194 return byteCount;
|
MappedByteBufferAdapter.java | 143 public ByteBuffer get(byte[] dst, int dstOffset, int byteCount) { 144 ByteBuffer result = wrapped.get(dst, dstOffset, byteCount); 145 position += byteCount; 251 public ByteBuffer put(byte[] src, int srcOffset, int byteCount) { 253 wrapped.put(src, srcOffset, byteCount); 254 this.position += 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);
|
/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) {
|
/external/bouncycastle/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 | 35 size_t sk_fread(void* buffer, size_t byteCount, SkFILE*); 36 size_t sk_fwrite(const void* buffer, size_t byteCount, SkFILE*);
|
SkMetaData.h | 58 const void* findData(const char name[], size_t* byteCount = NULL) const; 81 bool hasData(const char name[], const void* data, size_t byteCount) const { 84 return NULL != ptr && len == byteCount && !memcmp(ptr, data, len); 94 void setData(const char name[], const void* data, size_t byteCount);
|
/libcore/luni/src/main/java/java/net/ |
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...] |
/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/bouncycastle/src/main/java/org/bouncycastle/asn1/ |
DERObjectIdentifier.java | 165 int byteCount = (fieldValue.bitLength()+6)/7; 166 if (byteCount == 0) 173 byte[] tmp = new byte[byteCount]; 174 for (int i = byteCount-1; i >= 0; i--) 179 tmp[byteCount-1] &= 0x7f;
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
combined_encode.cpp | 285 Int byteCount = 0, byteCount1 = 0, bitCount = 0; 368 byteCount1 = byteCount = bitCount >> 3; /* save the position before GOB header */ 438 byteCount = bitCount >> 3; /* save the state before encoding */ 469 BitstreamRepos(bs1, byteCount, bitCount); /* rewind one MB */ 506 if (mbnum < nTotalMB - 1 && currVol->stream->byteCount + bs1->byteCount + 1 >= currVol->stream->bufferSize) 509 byteCount = currVol->stream->bufferSize - currVol->stream->byteCount - 1; 511 num_bits = BitstreamGetPos(bs1) - (byteCount << 3); 512 BitstreamRepos(bs1, byteCount, 0) [all...] |
/libcore/luni/src/main/native/ |
libcore_net_RawSocket.cpp | 95 * Assumes that the caller has validated the offset & byteCount values. 99 jbyteArray packet, jint offset, jint byteCount) 135 byteCount, 0, &su.sa, sizeof(su))); 146 * Assumes that the caller has validated the offset & byteCount values. 149 jbyteArray packet, jint offset, jint byteCount, jint port, 175 int packetSize = byteCount;
|
java_util_zip_Inflater.cpp | 76 ssize_t byteCount; 77 while ((byteCount = TEMP_FAILURE_RETRY(read(fd, dst, len))) > 0) { 78 dst += byteCount; 79 len -= byteCount; 80 totalByteCount += byteCount; 82 if (byteCount == -1) {
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
Fingerprint.java | 82 * @param byteCount length of original data will be stored at byteCount[0] as a side product 85 public static Fingerprint fromInputStream(InputStream stream, long[] byteCount) 101 if ((byteCount != null) && (byteCount.length > 0)) byteCount[0] = count;
|
/sdk/ddms/libs/ddmlib/src/com/android/ddmlib/ |
RawImage.java | 154 int byteCount = this.bpp >> 3; // bpp is in bits, we want bytes to match our array 160 this.data, (y * w + x) * byteCount, 161 rotated.data, ((w-x-1) * h + y) * byteCount, 162 byteCount);
|
/external/bouncycastle/src/main/java/org/bouncycastle/math/ec/ |
ECPoint.java | 384 int byteCount = converter.getByteLength(this.x); 385 byte[] X = converter.integerToBytes(this.getX().toBigInteger(), byteCount); 391 PO = new byte[byteCount + 1]; 409 System.arraycopy(X, 0, PO, 1, byteCount); 413 byte[] Y = converter.integerToBytes(this.getY().toBigInteger(), byteCount); 415 PO = new byte[byteCount + byteCount + 1]; 418 System.arraycopy(X, 0, PO, 1, byteCount); 419 System.arraycopy(Y, 0, PO, byteCount + 1, byteCount); [all...] |