/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 | 229 int total = 0; in skip() local 230 while (total < max) { in skip() 231 int len = max - total; in skip() 240 total += len; in skip() 242 return total; in skip()
|
D | DeflaterInputStream.java | 247 int total = (int)Math.min(n, Integer.MAX_VALUE); in skip() local 249 while (total > 0) { in skip() 251 int len = read(rbuf, 0, (total <= rbuf.length ? total : rbuf.length)); in skip() 257 total -= len; in skip()
|
D | ZipInputStream.java | 261 int total = 0; in skip() local 262 while (total < max) { in skip() 263 int len = max - total; in skip() 272 total += len; in skip() 274 return total; in skip()
|
D | ZipFile.java | 80 private final int total; // total number of entries field in ZipFile 270 this.total = getTotal(jzfile); in ZipFile() 554 return i < total; in hasNext() 565 if (i >= total) { in next() 578 ",\n total = " + ZipFile.this.total + in next() 657 return total; in size()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | GZIPInputStreamTest.java | 178 int total; in test_read$BII() local 180 total = 0; in test_read$BII() 182 total += result; in test_read$BII() 186 assertEquals("Incorrectly decompressed", test.length, total); in test_read$BII() 189 total = 0; in test_read$BII() 191 total += result; in test_read$BII() 195 assertEquals("Incorrectly decompressed", test.length, total); in test_read$BII() 198 total = 0; in test_read$BII() 200 total += result; in test_read$BII() 204 assertEquals("Incorrectly decompressed", test.length, total); in test_read$BII()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | DeflaterOutputStreamTest.java | 149 int total = 0; in testSyncFlushDeflater() local 151 int n = iis.read(input, total, input.length - total); in testSyncFlushDeflater() 155 total += n; in testSyncFlushDeflater() 156 if (total == input.length) { in testSyncFlushDeflater() 165 assertEquals(output.length, total); in testSyncFlushDeflater()
|
/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 | 786 int total = 0; in bufferCrypt() local 798 total += n; in bufferCrypt() 802 output.position(outPos + total); in bufferCrypt() 803 return total; in bufferCrypt() 816 int total = 0; in bufferCrypt() local 837 total += n; in bufferCrypt() 855 return total; in bufferCrypt()
|
/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/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/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()
|
/libcore/ojluni/src/main/java/java/time/ |
D | LocalTime.java | 1468 int total = hour * SECONDS_PER_HOUR; in toSecondOfDay() local 1469 total += minute * SECONDS_PER_MINUTE; in toSecondOfDay() 1470 total += second; in toSecondOfDay() 1471 return total; in toSecondOfDay() 1481 long total = hour * NANOS_PER_HOUR; in toNanoOfDay() local 1482 total += minute * NANOS_PER_MINUTE; in toNanoOfDay() 1483 total += second * NANOS_PER_SECOND; in toNanoOfDay() 1484 total += nano; in toNanoOfDay() 1485 return total; in toNanoOfDay()
|
D | LocalDate.java | 1825 long total = 0; in toEpochDay() local 1826 total += 365 * y; in toEpochDay() 1828 total += (y + 3) / 4 - (y + 99) / 100 + (y + 399) / 400; in toEpochDay() 1830 total -= y / -4 - y / -100 + y / -400; in toEpochDay() 1832 total += ((367 * m - 362) / 12); in toEpochDay() 1833 total += day - 1; in toEpochDay() 1835 total--; in toEpochDay() 1837 total--; in toEpochDay() 1840 return total - DAYS_0000_TO_1970; in toEpochDay()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | SocketTest.java | 341 int total = 0; in assertAvailableReturnsZeroAfterSocketReadsAllData() local 343 while (total < data.length) { in assertAvailableReturnsZeroAfterSocketReadsAllData() 344 total += in.read(readBuffer); in assertAvailableReturnsZeroAfterSocketReadsAllData() 517 int total = 0; in enqueue() local 518 while (total < receiveByteCount) { in enqueue() 519 total += in.read(result, total, result.length - total); in enqueue()
|
/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/ojluni/src/main/native/ |
D | zip_util.c | 553 jint total, tablelen, i, j; in readCEN() local 578 total = ENDTOT(endbuf); in readCEN() 580 total == ZIP64_MAGICCOUNT) { in readCEN() 585 total = (jint)ZIP64_ENDTOT(end64buf); in readCEN() 664 total = (knownTotal != -1) ? knownTotal : total; in readCEN() 665 entries = zip->entries = calloc(total, sizeof(entries[0])); in readCEN() 666 tablelen = zip->tablelen = ((total/2) | 1); // Odd -> fewer collisions in readCEN() 671 if ((entries == NULL && total != 0) || table == NULL) goto Catch; in readCEN() 681 if (i >= total) { in readCEN() 750 zip->total = i; in readCEN() [all …]
|
/libcore/ojluni/src/test/java/time/test/java/util/ |
D | TestFormatter.java | 69 private int total = 0; field in TestFormatter 133 System.out.println("Total " + failure + "/" + total + " tests failed"); in test() 135 System.out.println("All tests (" + total + ") PASSED"); in test() 170 total++; in test()
|
/libcore/luni/src/main/java/libcore/io/ |
D | Streams.java | 274 int total = 0; in copy() local 278 total += c; in copy() 281 return total; in copy()
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | DoubleAdderTest.java | 169 double total = (long)nthreads * incs; in testAddAndSumMT() local 171 assertEquals(sum, total); in testAddAndSumMT()
|
D | LongAdderTest.java | 192 long total = (long)nthreads * incs; in testAddAndSumMT() local 194 assertEquals(sum, total); in testAddAndSumMT()
|
/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/luni/src/test/java/libcore/libcore/util/ |
D | NativeAllocationRegistryTest.java | 63 long total = Runtime.getRuntime().totalMemory(); in testNativeAllocation() local 67 int expectedMaxNumAllocations = (int)(max-total) / javaSize; in testNativeAllocation()
|