/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
H A D | ThreadGroupTest.java | 111 int count = tg.activeCount(); 112 assertTrue("wrong active count: " + count, count == 0); 114 count = tg.activeCount(); 115 assertTrue("wrong active count: " + count, count == 1); 662 int count = parent.activeGroupCount(); 663 ThreadGroup[] all = new ThreadGroup[count]; [all...] |
H A D | ThreadTest.java | 314 int count = Thread.enumerate(tarray); 316 1, count); 324 count = Thread.enumerate(tarray); 326 2, count); 334 count = Thread.enumerate(tarray); 336 3, count); 761 int count = 0; 762 while (!rt.didThreadRun && count < 20) { 764 count++;
|
H A D | ProcessManagerTest.java | 209 int count = 0; 211 count++; 213 return count;
|
/libcore/ojluni/src/main/java/java/util/stream/ |
H A D | Nodes.java | 75 * Produces an empty node whose count is zero, has no children and no content. 95 * <p>The count of the concatenated node is equal to the sum of the count 455 * whose length is {@link Node#count()}. Then the node tree is traversed 466 long size = node.count(); 483 * is {@link Node#count()}. Then the node tree is traversed and leaf node 492 long size = node.count(); 509 * is {@link Node#count()}. Then the node tree is traversed and leaf node 518 long size = node.count(); 535 * is {@link Node#count()} 568 public long count() { method in class:Nodes.EmptyNode 677 public long count() { method in class:Nodes.ArrayNode 725 public long count() { method in class:Nodes.CollectionNode 773 public long count() { method in class:Nodes.AbstractConcNode 1350 public long count() { method in class:Nodes.IntArrayNode 1404 public long count() { method in class:Nodes.LongArrayNode 1458 public long count() { method in class:Nodes.DoubleArrayNode [all...] |
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | ConcurrentHashMapTest.java | 201 int count = 0; 204 ++count; 206 assertEquals(count, size); 280 int count = 0; 282 count++; 285 assertEquals(5, count); 316 int count = 0; 318 count++; 321 assertEquals(5, count);
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
H A D | CertificateFactoryTest.java | 341 int count = mStream.read(buffer); 342 mCount += count; 343 return count; 348 int count = mStream.read(buffer, offset, length); 349 mCount += count; 350 return count; 355 long count = mStream.skip(byteCount); 356 mCount += count; 357 return count;
|
/libcore/ojluni/src/main/native/ |
H A D | java_util_zip_ZipFile.c | 358 int i, count; local 368 /* count the number of valid ZIP metanames */ 369 count = 0; 373 count++; 379 if (count > 0) { 381 result = (*env)->NewObjectArray(env, count, cls, 0); 383 for (i = 0; i < count; i++) {
|
H A D | zip_util.c | 195 jint count = (len < limit) ? local 198 jint n = ZFILE_read(zfd, bp, count, offset); 529 jint count = 0; local 532 count++; 533 return count; 1423 jlong count = entry->csize; local 1427 if (count == 0) { 1441 while (count > 0) { 1442 jint n = count > (jlong)sizeof(tmp) ? (jint)sizeof(tmp) : (jint)count; 1517 jint count = (size - pos < limit) ? local [all...] |
/libcore/support/src/test/java/tests/http/ |
H A D | MockWebServer.java | 438 int count = in.read(buffer, 0, Math.min(buffer.length, length)); 439 if (count == -1) { 442 out.write(buffer, 0, count); 443 length -= count; 480 super.write(buffer, offset, Math.min(len, bodyLimit - count)); 484 if (count < bodyLimit) {
|
/libcore/luni/src/main/native/ |
H A D | cbigint.cpp | 200 int32_t count, index; local 207 count = length1; 209 length2 = count; 217 for (count = 0; count < length2; ++count) 219 simpleMultiplyAddHighPrecision (arg1, length1, LOW_IN_U64 (arg2[count]), 221 simpleMultiplyAddHighPrecision(arg1, length1, HIGH_IN_U64(arg2[count]), resultIn32 + (++index));
|
/libcore/ojluni/src/main/java/java/nio/channels/spi/ |
H A D | AbstractSelectableChannel.java | 64 // Lock for key set and count 236 int count = (keys == null) ? 0 : keys.length; 237 for (int i = 0; i < count; i++) {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
H A D | DeflaterInputStreamTest.java | 158 int count = 0; 160 while ((bytesRead = dis.read(result, count, 4)) != -1) { 161 count += bytesRead; 163 assertEquals(23, count);
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | IOUtil.java | 117 int count = offset + length; 119 while (i < count && iov_len < IOV_MAX) { 247 int count = offset + length; 249 while (i < count && iov_len < IOV_MAX) {
|
/libcore/ojluni/src/main/java/sun/security/util/ |
H A D | DerInputBuffer.java | 87 if (pos >= count) 138 count = pos + len; 234 if (pos >= count) 252 pos = count;
|
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
H A D | NodeBuilderTest.java | 81 assertEquals(n.count(), l.size()); 126 assertEquals(n.count(), l.size()); 176 assertEquals(n.count(), l.size()); 226 assertEquals(n.count(), l.size());
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | PropertiesTest.java | 525 int count = 0; 527 count++; 530 assertEquals(keys.length, count); 541 count = 0; 543 count++; 546 assertEquals(keys.length, count); 582 int count = 0; 584 count++; 587 assertEquals(keyList.size(), count); 602 count [all...] |
/libcore/luni/src/test/java/libcore/xml/ |
H A D | JaxenXPathTestSuite.java | 154 /* Such as <test exception="true" select="..." count="0"/> */ 183 /* Such as <test select="..." count="5"/> */ 184 final String count = element.getAttribute("count"); 185 if (count.length() > 0) { 190 assertEquals(Integer.parseInt(count), result.getLength());
|
/libcore/ojluni/src/main/java/java/lang/ |
H A D | String.java | 128 // If STRING_COMPRESSION_ENABLED, count stores the length shifted one bit to the left with the 131 private final int count; field in class:String 195 * index of the first character of the subarray and the {@code count} 206 * @param count 210 * If the {@code offset} and {@code count} arguments index 213 public String(char value[], int offset, int count) { argument 222 * point of the subarray and the {@code count} argument specifies the 233 * @param count 241 * If the {@code offset} and {@code count} arguments index 246 public String(int[] codePoints, int offset, int count) { argument 291 String(byte ascii[], int hibyte, int offset, int count) argument 556 String(int offset, int count, char[] value) argument 2935 valueOf(char data[], int offset, int count) argument 2954 copyValueOf(char data[], int offset, int count) argument [all...] |
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
H A D | OCSP.java | 250 int count = in.read(response, total, response.length - total); 251 if (count < 0) 254 total += count;
|
/libcore/tools/upstream/src/main/java/libcore/ |
H A D | CompareUpstreams.java | 112 int count = map.get(comment); 113 if (count == 1) { 116 result.add(comment + " (x" + count + ")");
|
/libcore/support/src/test/java/tests/support/ |
H A D | Support_TestWebServer.java | 158 * Sets the maximum byte count of any chunk if the server is using 398 int count; 404 count = is.read(buf, read, length-read); 405 read += count; 689 void psWrite(PrintStream ps, byte[] bytes, int offset, int count) throws IOException { argument 691 ps.write(bytes, offset, count);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
H A D | ServerSocketChannelTest.java | 428 int count = 0; 430 while ((count = in.read(readContent, total, size + 1 - total)) != -1) { 431 total = total + count; 639 int count = 0; 642 while ((count = clientChannel.read(buf)) != -1) { 643 total = total + count; 651 for (int i = 0; i < count; i++) {
|
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
H A D | PKCS7.java | 331 int count = 0; 343 certificates[count] = new X509CertImpl(certVals[i], original); 346 certificates[count] = new VerbatimX509Certificate( 353 count++; 368 if (count != len) { 369 certificates = Arrays.copyOf(certificates, count);
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
H A D | LambdaTestHelpers.java | 184 public static void assertCountSum(Stream<? super Integer> it, int count, int sum) { argument 185 assertCountSum(it.iterator(), count, sum); 188 public static void assertCountSum(Iterable<? super Integer> it, int count, int sum) { argument 189 assertCountSum(it.iterator(), count, sum); 192 public static void assertCountSum(Iterator<? super Integer> it, int count, int sum) { argument 201 assertEquals(c, count);
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
H A D | LambdaTestHelpers.java | 185 public static void assertCountSum(Stream<? super Integer> it, int count, int sum) { argument 186 assertCountSum(it.iterator(), count, sum); 189 public static void assertCountSum(Iterable<? super Integer> it, int count, int sum) { argument 190 assertCountSum(it.iterator(), count, sum); 193 public static void assertCountSum(Iterator<? super Integer> it, int count, int sum) { argument 202 assertEquals(c, count);
|