Home
last modified time | relevance | path

Searched refs:readCount (Results 1 – 17 of 17) sorted by relevance

/external/apache-commons-compress/src/test/java/org/apache/commons/compress/utils/
DSeekableInMemoryByteChannelTest.java43 int readCount = c.read(readBuffer); in shouldReadContentsProperly() local
45 assertEquals(testData.length, readCount); in shouldReadContentsProperly()
57 int readCount = c.read(readBuffer); in shouldReadContentsWhenBiggerBufferSupplied() local
59 assertEquals(testData.length, readCount); in shouldReadContentsWhenBiggerBufferSupplied()
72 int readCount = c.read(readBuffer); in shouldReadDataFromSetPosition() local
74 assertEquals(4L, readCount); in shouldReadDataFromSetPosition()
87 int readCount = c.read(readBuffer); in shouldSignalEOFWhenPositionAtTheEnd() local
90 assertEquals(-1, readCount); in shouldSignalEOFWhenPositionAtTheEnd()
/external/mdnsresponder/mDNSPosix/
DmDNSPosix.c1060 ssize_t readCount; in ProcessRoutingNotification() local
1070 readCount = read(sd, buff, sizeof buff); in ProcessRoutingNotification()
1075 if (((char*) &pNLMsg[1] > (buff + readCount)) || // i.e. *pNLMsg extends off end of buffer in ProcessRoutingNotification()
1076 ((char*) pNLMsg + pNLMsg->nlmsg_len > (buff + readCount))) in ProcessRoutingNotification()
1081 readCount -= ((char*) pNLMsg - buff); in ProcessRoutingNotification()
1082 memmove(buff, pNLMsg, readCount); in ProcessRoutingNotification()
1086 readCount += read(sd, buff + readCount, sizeof buff - readCount); in ProcessRoutingNotification()
1106 ssize_t len = readCount - ((char*)pNLMsg - buff); in ProcessRoutingNotification()
1149 ssize_t readCount; in ProcessRoutingNotification() local
1154 readCount = read(sd, buff, sizeof buff); in ProcessRoutingNotification()
[all …]
/external/okhttp/repackaged/okio/okio/src/main/java/com/android/okhttp/okio/
DRealBufferedSink.java103 for (long readCount; (readCount = source.read(buffer, Segment.SIZE)) != -1; ) { in writeAll()
104 totalBytesRead += readCount; in writeAll()
DBuffer.java958 for (long readCount; (readCount = source.read(this, Segment.SIZE)) != -1; ) {
959 totalBytesRead += readCount;
/external/okhttp/okio/okio/src/main/java/okio/
DRealBufferedSink.java102 for (long readCount; (readCount = source.read(buffer, Segment.SIZE)) != -1; ) { in writeAll()
103 totalBytesRead += readCount; in writeAll()
DBuffer.java956 for (long readCount; (readCount = source.read(this, Segment.SIZE)) != -1; ) {
957 totalBytesRead += readCount;
/external/guava/guava/src/com/google/common/collect/
DHashMultiset.java93 int distinctElements = Serialization.readCount(stream); in readObject()
DLinkedHashMultiset.java105 int distinctElements = Serialization.readCount(stream); in readObject()
DHashMultimap.java134 int distinctKeys = Serialization.readCount(stream); in readObject()
DArrayListMultimap.java160 int distinctKeys = Serialization.readCount(stream); in readObject()
DSerialization.java49 static int readCount(ObjectInputStream stream) throws IOException { in readCount() method in Serialization
DHashBiMap.java660 int size = Serialization.readCount(stream);
DMapMakerInternalMap.java2074 final AtomicInteger readCount = new AtomicInteger(); field in MapMakerInternalMap.Segment
2839 readCount.set(0); in clear()
3049 if ((readCount.incrementAndGet() & DRAIN_THRESHOLD) == 0) { in postReadCleanup()
3082 readCount.set(0); in runLockedCleanup()
/external/guava/guava-tests/test/com/google/common/cache/
DCacheTesting.java290 assertEquals(0, segment.readCount.get());
DLocalCacheTest.java1678 segment.readCount.incrementAndGet(); in testClear()
1690 assertEquals(0, segment.readCount.get()); in testClear()
1713 segment.readCount.incrementAndGet(); in testClear_notification()
1725 assertEquals(0, segment.readCount.get()); in testClear_notification()
/external/guava/guava/src/com/google/common/cache/
DLocalCache.java2070 final AtomicInteger readCount = new AtomicInteger(); field in LocalCache.Segment
3235 readCount.set(0); in clear()
3416 if ((readCount.incrementAndGet() & DRAIN_THRESHOLD) == 0) { in postReadCleanup()
3450 readCount.set(0); in runLockedCleanup()
/external/guava/guava-tests/test/com/google/common/collect/
DMapMakerInternalMapTest.java1042 segment.readCount.incrementAndGet(); in testClear()
1053 assertEquals(0, segment.readCount.get()); in testClear()