HomeSort by relevance Sort by last modified time
    Searched defs:readCount (Results 1 - 13 of 13) 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 869 int readCount;
871 while ((readCount = is.read(buffer, 0, buffer.length)) > 0) {
872 for (int i = 0; i < readCount; i++) {
881 readCount = is.read(buffer, 0, buffer.length);
882 assertEquals("Reading end of buffer: expected readCount=-1 but got " + readCount,
883 -1, readCount);
885 readCount = is.read(buffer, buffer.length, 0);
886 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/src/org/apache/commons/io/output/
ByteArrayOutputStream.java 192 int readCount = 0;
196 readCount += n;
205 return readCount;
  /build/libs/host/
CopyFile.c 102 ssize_t readCount, writeCount;
108 readCount = read(srcFd, buf, sizeof(buf));
109 if (readCount < 0) {
115 if (readCount > 0) {
116 writeCount = write(dstFd, buf, readCount);
122 if (writeCount != readCount) {
124 dst, writeCount, readCount);
129 if (readCount < (ssize_t) sizeof(buf))
  /dalvik/libcore/nio/src/main/java/java/nio/channels/
Channels.java 348 int readCount = 0;
351 readCount = inputStream.read(bytes);
353 end(readCount >= 0);
355 if (readCount > 0) {
356 target.put(bytes, 0, readCount);
358 return readCount;
  /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}.
  /dalvik/vm/jdwp/
JdwpAdb.c 508 int readCount;
595 readCount = read(netState->clientSock,
598 if (readCount < 0) {
604 } else if (readCount == 0) {
613 netState->inputCount += readCount;
JdwpSocket.c 660 int readCount;
749 readCount = read(netState->clientSock,
752 if (readCount < 0) {
758 } else if (readCount == 0) {
767 netState->inputCount += readCount;
  /dalvik/libcore/nio/src/main/java/org/apache/harmony/nio/internal/
DatagramChannelImpl.java 434 int readCount = 0;
436 readCount = readImpl(target);
437 if (readCount > 0) {
438 target.position(target.position() + readCount);
444 readCount = readImpl(readBuffer);
445 if (readCount > 0) {
446 target.put(readArray, 0, readCount);
449 return readCount;
477 int readCount;
478 readCount = readImpl(readBuffer)
    [all...]
SocketChannelImpl.java 380 int readCount;
382 readCount = readImpl(target);
383 if (readCount > 0) {
384 target.position(target.position() + readCount);
391 readCount = readImpl(readBuffer);
392 if (readCount > 0) {
393 target.put(readArray, 0, readCount);
396 return readCount;
417 int readCount;
420 readCount = readImpl(readBuffer)
    [all...]
  /sdk/ddms/libs/ddmlib/src/com/android/ddmlib/
SyncService.java 761 int readCount = 0;
763 readCount = fis.read(mBuffer, 8, SYNC_DATA_MAX);
768 if (readCount == -1) {
775 ArrayHelper.swap32bitsToArray(readCount, mBuffer, 4);
779 AdbHelper.write(mChannel, mBuffer, readCount+8, timeOut);
785 monitor.advance(readCount);
    [all...]
  /dalvik/libcore/nio/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/
FileChannelTest.java     [all...]

Completed in 220 milliseconds