/libcore/support/src/test/java/tests/support/ |
D | ThrowingReader.java | 30 private int total = 0; field in ThrowingReader 41 total++; in read() 49 if (total < throwAt) { in read() 50 count = Math.min(count, (throwAt - total)); in read() 54 total += returned; in read() 59 if (total == throwAt) { in explodeIfNecessary()
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | CheckedInputStream.java | 97 long total = 0; in skip() local 98 while (total < n) { in skip() 99 long len = n - total; in skip() 102 return total; in skip() 104 total += len; in skip() 106 return total; in skip()
|
D | InflaterInputStream.java | 208 int total = 0; in skip() local 209 while (total < max) { in skip() 210 int len = max - total; in skip() 219 total += len; in skip() 221 return total; in skip()
|
D | DeflaterInputStream.java | 240 int total = (int)Math.min(n, Integer.MAX_VALUE); in skip() local 242 while (total > 0) { in skip() 244 int len = read(rbuf, 0, (total <= rbuf.length ? total : rbuf.length)); in skip() 250 total -= len; in skip()
|
D | ZipInputStream.java | 251 int total = 0; in skip() local 252 while (total < max) { in skip() 253 int len = max - total; in skip() 262 total += len; in skip() 264 return total; in skip()
|
D | ZipFile.java | 65 private final int total; // total number of entries field in ZipFile 220 this.total = getTotal(jzfile); in ZipFile() 498 return i < total; in entries() 504 if (i >= total) { in entries() 517 ",\n total = " + ZipFile.this.total + in entries() 572 return total; in size()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | DeflaterOutputStreamTest.java | 145 int total = 0; in testSyncFlushDeflater() local 147 int n = iis.read(input, total, input.length - total); in testSyncFlushDeflater() 151 total += n; in testSyncFlushDeflater() 152 if (total == input.length) { in testSyncFlushDeflater() 161 assertEquals(output.length, total); in testSyncFlushDeflater()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | GZIPInputStreamTest.java | 167 int total = 0; in test_read$BII() local 169 total += result; in test_read$BII() 173 assertEquals("Incorrectly decompressed", test.length, total); in test_read$BII() 176 total = 0; in test_read$BII() 178 total += result; in test_read$BII() 182 assertEquals("Incorrectly decompressed", test.length, total); in test_read$BII() 185 total = 0; in test_read$BII() 187 total += result; in test_read$BII() 191 assertEquals("Incorrectly decompressed", test.length, total); in test_read$BII()
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
D | OCSP.java | 248 int total = 0; in check() local 249 while (total < contentLength) { in check() 250 int count = in.read(response, total, response.length - total); in check() 254 total += count; in check() 255 if (total >= response.length && total < contentLength) { in check() 256 response = Arrays.copyOf(response, total * 2); in check() 259 response = Arrays.copyOf(response, total); in check()
|
/libcore/ojluni/src/main/java/javax/crypto/ |
D | CipherSpi.java | 777 int total = 0; in bufferCrypt() local 787 total += n; in bufferCrypt() 791 output.position(outPos + total); in bufferCrypt() 792 return total; in bufferCrypt() 805 int total = 0; in bufferCrypt() local 824 total += n; in bufferCrypt() 839 return total; in bufferCrypt()
|
/libcore/dalvik/src/main/java/dalvik/system/profiler/ |
D | AsciiHprofWriter.java | 57 int total = 0; in write() local 61 total += count; in write() 72 total, now, now, now, now, now); in write() 80 double self = (double)count/(double)total; in write()
|
D | BinaryHprofWriter.java | 67 int total = 0; in write() local 69 total += sample.count; in write() 72 writeCpuSamples(total, samples); in write()
|
D | BinaryHprofReader.java | 443 int total = 0; in parseCpuSamples() local 473 total += count; in parseCpuSamples() 475 if (strict && totalSamples != total) { in parseCpuSamples() 477 + " samples but saw " + total); in parseCpuSamples()
|
/libcore/ojluni/src/main/java/java/io/ |
D | DataInputStream.java | 220 int total = 0; in skipBytes() local 223 while ((total<n) && ((cur = (int) in.skip(n-total)) > 0)) { in skipBytes() 224 total += cur; in skipBytes() 227 return total; in skipBytes()
|
/libcore/luni/src/main/java/libcore/io/ |
D | Streams.java | 180 int total = 0; in copy() local 184 total += c; in copy() 187 return total; in copy()
|
/libcore/ojluni/src/main/java/java/util/jar/ |
D | Manifest.java | 371 int total = 0; in readLine() local 372 while (total < len) { in readLine() 381 int n = len - total; in readLine() 391 total += n; in readLine() 397 return total; in readLine()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | SocketTest.java | 318 int total = 0; in assertAvailableReturnsZeroAfterSocketReadsAllData() local 320 while (total < data.length) { in assertAvailableReturnsZeroAfterSocketReadsAllData() 321 total += in.read(readBuffer); in assertAvailableReturnsZeroAfterSocketReadsAllData() 472 int total = 0; in enqueue() local 473 while (total < receiveByteCount) { in enqueue() 474 total += in.read(result, total, result.length - total); in enqueue()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | ServerSocketChannelTest.java | 429 int total = 0; in assertReadResult() local 430 while ((count = in.read(readContent, total, size + 1 - total)) != -1) { in assertReadResult() 431 total = total + count; in assertReadResult() 433 assertEquals(size, total); in assertReadResult() 640 int total = 0; in assertWriteResult() local 643 total = total + count; in assertWriteResult() 649 assertEquals(total, size); in assertWriteResult()
|
D | DatagramChannelTest.java | 1903 int total = 0; in readWriteReadData() local 1905 while (total < dataSize && (count = receiver.read(targetBuf)) != -1) { in readWriteReadData() 1906 total = total + count; in readWriteReadData() 1913 assertEquals(dataSize, total); in readWriteReadData() 1914 assertEquals(targetBuf.position(), total); in readWriteReadData() local 2020 int total = 0; in testReadWrite_Block_WriterConnectLater() local 2023 while (total < CAPACITY_NORMAL && (count = channel2.read(targetBuf)) != -1) { in testReadWrite_Block_WriterConnectLater() 2024 total = total + count; in testReadWrite_Block_WriterConnectLater() 2031 assertEquals(CAPACITY_NORMAL, total); in testReadWrite_Block_WriterConnectLater() 2032 assertEquals(targetBuf.position(), total); in testReadWrite_Block_WriterConnectLater() local
|
/libcore/support/src/test/java/tests/support/resource/ |
D | Support_Resources.java | 138 int total = 0; in copy() local 142 total += c; in copy() 145 return total; in copy()
|
/libcore/luni/src/test/java/libcore/util/ |
D | NativeAllocationRegistryTest.java | 49 long total = Runtime.getRuntime().totalMemory(); in testNativeAllocation() local 51 int expectedMaxNumAllocations = (int)(max-total)/size; in testNativeAllocation()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | DoubleAdderTest.java | 146 double total = (long)nthreads * incs; in testAddAndSumMT() local 148 assertEquals(sum, total); in testAddAndSumMT()
|
D | LongAdderTest.java | 169 long total = (long)nthreads * incs; in testAddAndSumMT() local 171 assertEquals(sum, total); in testAddAndSumMT()
|
/libcore/ojluni/src/main/native/ |
D | zip_util.c | 551 jint total, tablelen, i, j; in readCEN() local 576 total = ENDTOT(endbuf); in readCEN() 578 total == ZIP64_MAGICCOUNT) { in readCEN() 583 total = (jint)ZIP64_ENDTOT(end64buf); in readCEN() 662 total = (knownTotal != -1) ? knownTotal : total; in readCEN() 663 entries = zip->entries = calloc(total, sizeof(entries[0])); in readCEN() 664 tablelen = zip->tablelen = ((total/2) | 1); // Odd -> fewer collisions in readCEN() 676 if (i >= total) { in readCEN() 745 zip->total = i; in readCEN() 1162 if (zip->total == 0) { in ZIP_GetEntry() [all …]
|
D | zip_util.h | 226 jint total; /* total number of entries */ member
|