HomeSort by relevance Sort by last modified time
    Searched refs:byteCount (Results 51 - 75 of 167) sorted by null

1 23 4 5 6 7

  /libcore/luni/src/main/java/java/nio/
ByteBuffer.java 89 * {@code start + byteCount}, capacity will be the length of the array.
96 * @param byteCount
101 * if either {@code start} or {@code byteCount} is invalid.
103 public static ByteBuffer wrap(byte[] array, int start, int byteCount) {
104 Arrays.checkOffsetAndCount(array.length, start, byteCount);
107 buf.limit = start + byteCount;
397 * @param byteCount
401 * @exception IndexOutOfBoundsException if {@code dstOffset < 0 || byteCount < 0}
402 * @exception BufferUnderflowException if {@code byteCount > remaining()}
404 public ByteBuffer get(byte[] dst, int dstOffset, int byteCount) {
    [all...]
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;
  /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 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 86 public void mincore(long address, long byteCount, byte[] vector) throws ErrnoException { os.mincore(address, byteCount, vector); }
88 public void mlock(long address, long byteCount) throws ErrnoException { os.mlock(address, byteCount); }
89 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); }
90 public void msync(long address, long byteCount, int flags) throws ErrnoException { os.msync(address, byteCount, flags); }
91 public void munlock(long address, long byteCount) throws ErrnoException { os.munlock(address, byteCount); }
    [all...]
Os.java 78 public void mincore(long address, long byteCount, byte[] vector) throws ErrnoException;
80 public void mlock(long address, long byteCount) throws ErrnoException;
81 public long mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long offset) throws ErrnoException;
82 public void msync(long address, long byteCount, int flags) throws ErrnoException;
83 public void munlock(long address, long byteCount) throws ErrnoException;
84 public void munmap(long address, long byteCount) throws ErrnoException;
90 public int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException;
92 public int pwrite(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException;
94 public int read(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount) throws ErrnoException;
97 public int recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException
    [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/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) {
  /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/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/okhttp/src/main/java/libcore/net/spdy/
SpdyStream.java 293 void receive(InputStream in, int byteCount) throws IOException {
297 if (byteCount == 0) {
301 if (byteCount > buffer.length - available()) {
307 int firstCopyCount = Math.min(byteCount, buffer.length - limit);
310 byteCount -= firstCopyCount;
317 if (byteCount > 0) {
318 Streams.readFully(in, buffer, limit, byteCount);
319 limit += byteCount;
SpdyReader.java 159 @Override public int read(byte[] buffer, int offset, int byteCount) throws IOException {
160 byteCount = Math.min(byteCount, compressedLimit);
161 int consumed = in.read(buffer, offset, 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])+ \
  /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 96 * Assumes that the caller has validated the offset & byteCount values.
100 jbyteArray packet, jint offset, jint byteCount)
137 byteCount, 0, &su.sa, sizeof(su)));
148 * Assumes that the caller has validated the offset & byteCount values.
151 jbyteArray packet, jint offset, jint byteCount, jint port,
177 int packetSize = byteCount;
  /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);

Completed in 1403 milliseconds

1 23 4 5 6 7