/libcore/ojluni/src/test/java/lang/StackWalker/ |
D | StackWalkTest.java | 167 public void walk(int total, int markAt) { in walk() argument 172 System.out.println("Call.walk() total=" + total + ", markAt=" + markAt); in walk() 192 public void call(int total, int current, int markAt) { in call() argument 194 if (current < total) { in call() 195 testCall.call(total, current+1, markAt); in call() 197 walk(total, markAt); in call() 204 public void call(int total, int current, int markAt) { in call() argument 206 if (current < total) { in call() 207 testCall.call(total, current+1, markAt); in call() 209 walk(total, markAt); in call() [all …]
|
D | MultiThreadStackWalk.java | 106 public Env(long total, long markAt, AtomicBoolean debug) { in Env() argument 111 this.max = total+2; in Env() 112 this.checkMarkAt = total - markAt + 1; in Env() 236 default void call(Env env, Call next, int total, int current, int markAt) { in call() argument 237 if (current < total) { in call() 238 next.call(env, next, total, current+1, markAt); in call() 254 public void call(Env env, Call next, int total, int current, int markAt) { in call() argument 256 if (current < total) { in call() 257 next.call(env, next, total, current+1, markAt); in call() 278 public void call(Env env, Call next, int total, int current, int markAt) { in call() argument [all …]
|
/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/test/java/nio/channels/Channels/ |
D | Basic2.java | 72 if (reader.total() != writer.total()) in basic2Test() 84 private volatile int total; field in Basic2.Reader 110 total += n; in run() 124 int total() { return total; } in total() method in Basic2.Reader 130 private final int total; field in Basic2.Writer 135 this.total = 50*1000 + rand.nextInt(50*1000); in Writer() 140 int rem = total; in run() 176 int total() { return total; } in total() method in Basic2.Writer
|
/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 | 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 | InflaterInputStream.java | 258 int total = 0; in skip() local 259 while (total < max) { in skip() 260 int len = max - total; in skip() 269 total += len; in skip() 271 return total; in skip()
|
D | ZipInputStream.java | 274 int total = 0; in skip() local 275 while (total < max) { in skip() 276 int len = max - total; in skip() 285 total += len; in skip() 287 return total; in skip()
|
D | ZipFile.java | 578 return new ZipEntryIterator<ZipEntry>(res.zsrc.total); in entries() 585 return new ZipEntryIterator<JarEntry>(res.zsrc.total); in jarEntries() 631 return StreamSupport.stream(new EntrySpliterator<>(0, res.zsrc.total, in stream() 657 new EntrySpliterator<>(0, res.zsrc.total, this::getEntryName), false); in entryNameStream() 674 return StreamSupport.stream(new EntrySpliterator<>(0, res.zsrc.total, in jarStream() 744 return res.zsrc.total; in size() 1301 private int total; // total number of entries field in ZipFile.Source 1612 total = 0; in initCEN() 1631 this.total = end.centot; in initCEN() 1634 this.total = knownTotal; in initCEN() [all …]
|
/libcore/ojluni/src/test/java/util/Random/ |
D | NextIntPowerOfTwoMod.java | 38 int total = 0; in main() local 40 total += r.nextInt(16); in main() 41 if (total != 7639) in main()
|
/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/ojluni/src/test/java/util/Arrays/ |
D | TimSortStackSize.java | 97 int total = 0; in genData() local 99 total += len; in genData() 102 while (pow < total) { in genData() 105 chunks.addLast(pow - total); in genData() 106 System.out.println(" Total: " + total); in genData()
|
/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/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/java/io/ |
D | InputStream.java | 401 int total = 0; in readNBytes() local 416 if (MAX_BUFFER_SIZE - total < nread) { in readNBytes() 422 total += nread; in readNBytes() 441 return result.length == total ? in readNBytes() 442 result : Arrays.copyOf(result, total); in readNBytes() 445 result = new byte[total]; in readNBytes() 447 remaining = total; in readNBytes()
|
D | DataInputStream.java | 225 int total = 0; in skipBytes() local 228 while ((total<n) && ((cur = (int) in.skip(n-total)) > 0)) { in skipBytes() 229 total += cur; in skipBytes() 232 return total; in skipBytes()
|
/libcore/ojluni/src/main/java/javax/crypto/ |
D | CipherSpi.java | 787 int total = 0; in bufferCrypt() local 799 total += n; in bufferCrypt() 803 output.position(outPos + total); in bufferCrypt() 804 return total; in bufferCrypt() 817 int total = 0; in bufferCrypt() local 838 total += n; in bufferCrypt() 856 return total; in bufferCrypt()
|
/libcore/ojluni/src/test/java/io/InputStream/ |
D | Skip.java | 40 private static void dotest(InputStream in, int curpos, long total, in dotest() argument 44 "\nTotal bytes in the Stream = " + total + in dotest() 63 private static void dotestExact(MyInputStream in, long curpos, long total, in dotestExact() argument 67 "\nTotal bytes in the Stream = " + total + in dotestExact()
|
/libcore/ojluni/src/main/java/java/util/jar/ |
D | Manifest.java | 470 int total = 0; in readLine() local 471 while (total < len) { in readLine() 480 int n = len - total; in readLine() 495 total += n; in readLine() 506 if (total < len) { in readLine() 508 total++; in readLine() 521 return total; in readLine()
|
/libcore/tools/expected_upstream/ |
D | ojluni_versions_report.py | 39 total = len(non_test_refs) 55 percentages = '{:.2%}'.format(subtotal / total)
|
/libcore/luni/src/main/java/libcore/io/ |
D | Streams.java | 265 int total = 0; in copy() local 269 total += c; in copy() 272 return total; in copy()
|
/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()
|
/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 | 597 jint total, tablelen, i, j; in readCEN() local 622 total = ENDTOT(endbuf); in readCEN() 624 total == ZIP64_MAGICCOUNT) { in readCEN() 629 total = (jint)ZIP64_ENDTOT(end64buf); in readCEN() 707 total = (knownTotal != -1) ? knownTotal : total; in readCEN() 708 entries = zip->entries = calloc(total, sizeof(entries[0])); in readCEN() 709 tablelen = zip->tablelen = ((total/2) | 1); // Odd -> fewer collisions in readCEN() 714 if ((entries == NULL && total != 0) || table == NULL) goto Catch; in readCEN() 726 if (i >= total) { in readCEN() 806 zip->total = i; in readCEN() [all …]
|