HomeSort by relevance Sort by last modified time
    Searched defs:readCount (Results 1 - 17 of 17) sorted by null

  /cts/tests/tests/content/src/android/content/res/cts/
RawResourceTest.java 46 int readCount;
48 while ((readCount = is.read(buffer, 0, buffer.length)) > 0) {
49 for (int i = 0; i < readCount; i++) {
58 readCount = is.read(buffer, 0, buffer.length);
59 assertEquals("Reading end of buffer: expected readCount=-1 but got " + readCount,
60 -1, readCount);
62 readCount = is.read(buffer, buffer.length, 0);
63 assertEquals("Reading end of buffer length 0: expected readCount=0 but got " + readCount,
    [all...]
ResourcesTest.java 845 int readCount;
847 while ((readCount = is.read(buffer, 0, buffer.length)) > 0) {
848 for (int i = 0; i < readCount; i++) {
857 readCount = is.read(buffer, 0, buffer.length);
858 assertEquals("Reading end of buffer: expected readCount=-1 but got " + readCount,
859 -1, readCount);
861 readCount = is.read(buffer, buffer.length, 0);
862 assertEquals("Reading end of buffer length 0: expected readCount=0 but got " + readCount,
    [all...]
  /frameworks/base/core/tests/coretests/src/android/content/
AssetTest.java 39 int readCount;
41 while ((readCount = is.read(buffer, 0, buffer.length)) > 0) {
42 for (int i = 0; i < readCount; i++) {
51 readCount = is.read(buffer, 0, buffer.length);
52 assertEquals("Reading end of buffer: expected readCount=-1 but got " + readCount,
53 -1, readCount);
55 readCount = is.read(buffer, buffer.length, 0);
56 assertEquals("Reading end of buffer length 0: expected readCount=0 but got " + readCount,
    [all...]
  /packages/apps/Email/emailcommon/src/org/apache/commons/io/output/
ByteArrayOutputStream.java 194 int readCount = 0;
198 readCount += n;
207 return readCount;
  /build/libs/host/
CopyFile.c 119 ssize_t readCount, writeCount;
125 readCount = read(srcFd, buf, sizeof(buf));
126 if (readCount < 0) {
132 if (readCount > 0) {
133 writeCount = write(dstFd, buf, readCount);
139 if (writeCount != readCount) {
141 dst, writeCount, readCount);
146 if (readCount < (ssize_t) sizeof(buf))
  /external/guava/src/com/google/common/collect/
Serialization.java 54 public static int readCount(ObjectInputStream stream) throws IOException {
90 * prior call to {@link #readCount}.
138 * of distinct elements is determined by a prior call to {@link #readCount}.
190 * of distinct keys is determined by a prior call to {@link #readCount}.
  /libcore/luni/src/main/java/java/nio/channels/
Channels.java 303 int readCount = 0;
306 readCount = inputStream.read(bytes);
308 end(readCount >= 0);
310 if (readCount > 0) {
311 target.put(bytes, 0, readCount);
313 return readCount;
  /dalvik/vm/jdwp/
JdwpAdb.cpp 503 int readCount;
590 readCount = read(netState->clientSock,
593 if (readCount < 0) {
599 } else if (readCount == 0) {
608 netState->inputCount += readCount;
JdwpSocket.cpp 661 int readCount;
750 readCount = read(netState->clientSock,
753 if (readCount < 0) {
759 } else if (readCount == 0) {
768 netState->inputCount += readCount;
  /libcore/luni/src/main/java/java/net/
PlainSocketImpl.java 488 int readCount = IoBridge.recvfrom(true, fd, buffer, offset, byteCount, 0, null, false);
490 if (readCount == 0) {
494 if (readCount == -1) {
497 return readCount;
  /libcore/luni/src/main/java/java/nio/
DatagramChannelImpl.java 284 int readCount = 0;
286 readCount = readImpl(target);
287 if (readCount > 0) {
288 target.position(target.position() + readCount);
294 readCount = readImpl(readBuffer);
295 if (readCount > 0) {
296 target.put(readArray, 0, readCount);
299 return readCount;
316 int readCount;
317 readCount = readImpl(readBuffer)
    [all...]
SocketChannelImpl.java 280 int readCount;
282 readCount = readImpl(readBuffer);
284 if (readCount > 0) {
285 int left = readCount;
290 targets[index].put(readArray, readCount - left, putLength);
295 return readCount;
300 int readCount = 0;
305 readCount = IoBridge.recvfrom(true, fd, dst, 0, null, false);
306 if (readCount > 0) {
307 dst.position(dst.position() + readCount);
    [all...]
  /libcore/luni/src/main/java/libcore/io/
IoBridge.java 422 int readCount = Libcore.os.read(fd, bytes, byteOffset, byteCount);
423 if (readCount == 0) {
426 return readCount;
  /sdk/ddms/libs/ddmlib/src/com/android/ddmlib/
SyncService.java 658 int readCount = fis.read(mBuffer, 8, SYNC_DATA_MAX);
660 if (readCount == -1) {
667 ArrayHelper.swap32bitsToArray(readCount, mBuffer, 4);
670 AdbHelper.write(mChannel, mBuffer, readCount+8, timeOut);
673 monitor.advance(readCount);
  /external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/
DatagramChannelTest.java     [all...]
FileChannelTest.java     [all...]
  /prebuilt/common/tradefed/
tradefed-prebuilt.jar 

Completed in 369 milliseconds