/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 | 592 int readCount; 594 while ((readCount = is.read(buffer, 0, buffer.length)) > 0) { 595 for (int i = 0; i < readCount; i++) { 604 readCount = is.read(buffer, 0, buffer.length); 605 assertEquals("Reading end of buffer: expected readCount=-1 but got " + readCount, 606 -1, readCount); 608 readCount = is.read(buffer, buffer.length, 0); 609 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...] |
/external/llvm/lib/Analysis/ |
ProfileInfoLoaderPass.cpp | 44 unsigned ReadCount; 134 if (ReadCount < ECs.size()) { 135 double weight = ECs[ReadCount++]; 144 << " (# "<< (ReadCount-1) << "): " 160 ReadCount = 0; 172 if (ReadCount != Counters.size()) { 176 NumEdgesRead = ReadCount; 181 ReadCount = 0; 220 if (ReadCount != Counters.size()) { 224 NumEdgesRead = ReadCount; [all...] |
ProfileDataLoaderPass.cpp | 93 void ProfileMetadataLoaderPass::readEdge(unsigned ReadCount, 96 if (ReadCount >= Counters.size()) return; 98 unsigned weight = Counters[ReadCount]; 103 << " (# "<< (ReadCount) << "): " 112 unsigned ReadCount = 0; 117 readEdge(ReadCount++, PB, PB.getEdge(0, &F->getEntryBlock()), Counters); 121 readEdge(ReadCount++, PB, PB.getEdge(BB,TI->getSuccessor(s)), 127 return ReadCount; 177 unsigned ReadCount = matchEdges(M, PB, Counters); 179 if (ReadCount != Counters.size()) [all...] |
/device/generic/goldfish/opengl/shared/OpenglCodecCommon/ |
Win32PipeStream.cpp | 210 DWORD readcount = 0; local 211 if (! ::ReadFile(m_pipe, (char *)buf + (len - res), res, &readcount, NULL) || readcount == 0) { 215 res -= readcount; 223 DWORD readcount; local 232 if (!::ReadFile(m_pipe, (char *)buf, len, &readcount, NULL)) { 237 *inout_len = (size_t)readcount;
|
/sdk/emulator/opengl/shared/OpenglCodecCommon/ |
Win32PipeStream.cpp | 207 DWORD readcount = 0; local 208 if (! ::ReadFile(m_pipe, (char *)buf + (len - res), res, &readcount, NULL) || readcount == 0) { 212 res -= readcount; 220 DWORD readcount; local 229 if (!::ReadFile(m_pipe, (char *)buf, len, &readcount, NULL)) { 234 *inout_len = (size_t)readcount;
|
/libcore/luni/src/main/java/java/nio/ |
DatagramChannelImpl.java | 279 int readCount = 0; 281 readCount = readImpl(target); 282 if (readCount > 0) { 283 target.position(target.position() + readCount); 289 readCount = readImpl(readBuffer); 290 if (readCount > 0) { 291 target.put(readArray, 0, readCount); 294 return readCount; 311 int readCount; 312 readCount = readImpl(readBuffer) [all...] |
SocketChannelImpl.java | 302 int readCount; 304 readCount = readImpl(readBuffer); 306 if (readCount > 0) { 307 int left = readCount; 312 targets[index].put(readArray, readCount - left, putLength); 317 return readCount; 322 int readCount = 0; 327 readCount = IoBridge.recvfrom(true, fd, dst, 0, null, false); 328 if (readCount > 0) { 329 dst.position(dst.position() + readCount); [all...] |
/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;
|
/external/guava/guava/src/com/google/common/collect/ |
Serialization.java | 49 static int readCount(ObjectInputStream stream) throws IOException { 83 * prior call to {@link #readCount}. 128 * of distinct elements is determined by a prior call to {@link #readCount}. 177 * of distinct keys is determined by a prior call to {@link #readCount}.
|
HashMultiset.java | 93 int distinctElements = Serialization.readCount(stream);
|
HashBiMap.java | 106 int size = Serialization.readCount(stream);
|
LinkedHashMultiset.java | 101 int distinctElements = Serialization.readCount(stream);
|
ArrayListMultimap.java | 156 int distinctKeys = Serialization.readCount(stream);
|
HashMultimap.java | 134 int distinctKeys = Serialization.readCount(stream);
|
/art/runtime/jdwp/ |
jdwp_adb.cc | 298 int readCount; 382 readCount = read(clientSock, input_buffer_ + input_count_, sizeof(input_buffer_) - input_count_); 383 if (readCount < 0) { 390 } else if (readCount == 0) { 400 input_count_ += readCount;
|
jdwp_socket.cc | 349 int readCount; 439 readCount = read(clientSock, input_buffer_ + input_count_, sizeof(input_buffer_) - input_count_); 440 if (readCount < 0) { 447 } else if (readCount == 0) { 457 input_count_ += 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))
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/ |
ByteArrayOutputStream.java | 194 int readCount = 0;
198 readCount += n;
207 return readCount;
|
/external/ppp/pppd/plugins/radius/ |
sendserver.c | 496 int readcount; local 502 readcount = read(fd, (char *)pos, i); 503 pos += readcount; 504 i -= 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;
|
/external/mdnsresponder/mDNSPosix/ |
mDNSPosix.c | [all...] |
/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;
|