Searched refs:count (Results 126 - 150 of 257) sorted by relevance

1234567891011

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DThreadGroupTest.java111 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 DThreadTest.java314 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 DProcessManagerTest.java209 int count = 0;
211 count++;
213 return count;
/libcore/ojluni/src/main/java/java/util/stream/
H A DNodes.java75 * 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 DConcurrentHashMapTest.java201 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 DCertificateFactoryTest.java341 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 Djava_util_zip_ZipFile.c358 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 Dzip_util.c195 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 DMockWebServer.java438 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 Dcbigint.cpp200 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 DAbstractSelectableChannel.java64 // 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 DDeflaterInputStreamTest.java158 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 DIOUtil.java117 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 DDerInputBuffer.java87 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 DNodeBuilderTest.java81 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 DPropertiesTest.java525 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 DJaxenXPathTestSuite.java154 /* 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 DString.java128 // 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 DOCSP.java250 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 DCompareUpstreams.java112 int count = map.get(comment);
113 if (count == 1) {
116 result.add(comment + " (x" + count + ")");
/libcore/support/src/test/java/tests/support/
H A DSupport_TestWebServer.java158 * 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 DServerSocketChannelTest.java428 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 DPKCS7.java331 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 DLambdaTestHelpers.java184 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 DLambdaTestHelpers.java185 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);

Completed in 875 milliseconds

1234567891011