Searched refs:count (Results 101 - 125 of 257) sorted by relevance

1234567891011

/libcore/libart/src/main/java/java/lang/
H A DStringFactory.java284 public static String newStringFromCodePoints(int[] codePoints, int offset, int count) { argument
288 if ((offset | count) < 0 || count > codePoints.length - offset) {
289 throw new StringIndexOutOfBoundsException(codePoints.length, offset, count);
291 char[] value = new char[count * 2];
292 int end = offset + count;
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
H A DGroupByOpTest.java73 int count = 0;
78 ++count;
80 assertEquals(5, count);
89 int count = 0;
94 ++count;
96 assertEquals(5, count);
/libcore/luni/src/test/java/libcore/java/util/logging/
H A DOldFileHandlerTest.java64 // rotation count is 2
65 props.put("java.util.logging.FileHandler.count", "2");
242 int count = 1;
243 handler = new FileHandler("%t/log/string", limit, count);
256 handler = new FileHandler("%t/log/string", limit, count);
264 new FileHandler("", limit, count);
271 new FileHandler("%t/log/string", -1, count);
287 int count = 1;
291 handler = new FileHandler("%t/log/string", limit, count, append);
304 handler = new FileHandler("%t/log/string", limit, count, appen
[all...]
/libcore/luni/src/main/native/
H A Dlibcore_icu_ICU.cpp629 int32_t count = 0; local
630 const icu::UnicodeString* amPmStrs = dateFormatSym.getAmPmStrings(count);
631 setStringArrayField(env, localeData, "amPm", amPmStrs, count);
632 const icu::UnicodeString* erasStrs = dateFormatSym.getEras(count);
633 setStringArrayField(env, localeData, "eras", erasStrs, count);
636 dateFormatSym.getMonths(count, icu::DateFormatSymbols::FORMAT, icu::DateFormatSymbols::WIDE);
637 setStringArrayField(env, localeData, "longMonthNames", longMonthNames, count);
639 dateFormatSym.getMonths(count, icu::DateFormatSymbols::FORMAT, icu::DateFormatSymbols::ABBREVIATED);
640 setStringArrayField(env, localeData, "shortMonthNames", shortMonthNames, count);
642 dateFormatSym.getMonths(count, ic
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DHashtable.java142 private transient int count; field in class:Hashtable
236 return count;
246 return count == 0;
425 if (count >= threshold) {
438 count++;
505 count--;
536 count = 0;
600 if (count == 0) {
608 if (count == 0) {
652 return count;
[all...]
/libcore/ojluni/src/main/java/java/net/
H A DNetworkInterface.java139 private int i=0, count=0;
159 local_addrs[count++] = addrs[j];
166 if (i < count) {
174 return (i < count);
667 int count = thatAddrs.length;
669 for (int i=0; i<count; i++) {
671 for (int j=0; j<count; j++) {
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DFileChannelImpl.java539 private long transferToTrustedChannel(long position, long count, argument
548 long remaining = count;
579 if (remaining == count)
584 return count - remaining;
623 public long transferTo(long position, long count, argument
635 if ((position < 0) || (count < 0))
640 int icount = (int)Math.min(count, Integer.MAX_VALUE);
659 long position, long count)
666 long max = Math.min(count, src.size() - pos);
698 long position, long count)
658 transferFromFileChannel(FileChannelImpl src, long position, long count) argument
697 transferFromArbitraryChannel(ReadableByteChannel src, long position, long count) argument
733 transferFrom(ReadableByteChannel src, long position, long count) argument
837 static volatile int count; field in class:FileChannelImpl.Unmapper
1236 transferTo0(FileDescriptor src, long position, long count, FileDescriptor dst) argument
[all...]
/libcore/ojluni/src/main/native/
H A DUNIXProcess_md.c247 int count; local
248 for (count = 0; *s != '\0'; s++)
249 count += (*s == c);
250 return count;
259 int count = countOccurrences(path, ':') + 1; local
261 pathv = NEW(char*, count+1);
262 pathv[count] = NULL;
263 for (p = path, i = 0; i < count; i++, p = q + 1) {
368 restartableWrite(int fd, const void *buf, size_t count) argument
371 RESTARTABLE(write(fd, buf, count), resul
472 initVectorFromBlock(const char**vector, const char* block, int count) argument
[all...]
H A Dnet_util_md.h45 extern int NET_ReadV(int s, const struct iovec * vector, int count);
49 extern int NET_Writev(int s, const struct iovec * vector, int count);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
H A DSSLServerSocketTest.java224 int count = sss.getSupportedCipherSuites().length;
225 assertTrue("No supported cipher suites", count > 0);
263 int count = sss.getSupportedProtocols().length;
264 assertTrue("No supported protocols", count > 0);
268 assertTrue("no enabled protocols.", res.length == count);
/libcore/benchmarks/src/benchmarks/
H A DXmlParseBenchmark.java76 int count;
78 while ((count = fileIn.read(buffer)) != -1) {
79 bytesOut.write(buffer, 0, count);
/libcore/benchmarks/src/benchmarks/regression/
H A DParseBenchmark.java113 int count;
114 while ((count = reader.read(buffer)) != -1) {
115 writer.write(buffer, 0, count);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DOutputStreamTesterTest.java129 int count;
130 while ((count = in.read(buffer)) != -1) {
131 bytes.write(buffer, 0, count);
H A DWriterTesterTest.java122 int count;
123 while ((count = in.read(buffer)) != -1) {
124 chars.write(buffer, 0, count);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A DSupport_Format.java37 protected void t_FormatWithField(int count, Format format, Object object, argument
47 assertEquals("Test " + count + ": incorrect formatted text", this.text, buffer.toString());
58 protected void t_Format(int count, Object object, Format format, Vector<FieldContainer> expectedResults) { argument
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DZipInputStreamTest.java60 int count;
61 while ((count = in.read(buffer)) != -1) {
62 out.write(buffer, 0, count);
/libcore/luni/src/test/java/libcore/java/util/
H A DRandomTest.java69 assertEquals(size, new Random(0).ints(size).count());
108 assertEquals(size, new Random(0).ints(size, origin, bound).count());
144 assertEquals(size, new Random(0).longs(size).count());
183 assertEquals(size, new Random(0).longs(size, origin, bound).count());
219 assertEquals(size, new Random(0).doubles(size).count());
266 assertEquals(size, new Random(0).doubles(size, origin, bound).count());
/libcore/ojluni/src/main/java/java/nio/channels/
H A DFileChannel.java488 * The new size, a non-negative byte count
560 * <p> An attempt is made to read up to <tt>count</tt> bytes starting at
566 * <tt>count</tt> bytes starting at the given <tt>position</tt>, or if the
567 * target channel is non-blocking and it has fewer than <tt>count</tt>
585 * @param count
619 public abstract long transferTo(long position, long count, argument
627 * <p> An attempt is made to read up to <tt>count</tt> bytes from the
633 * <tt>count</tt> bytes remaining, or if the source channel is non-blocking
634 * and has fewer than <tt>count</tt> bytes immediately available in its
655 * @param count
686 transferFrom(ReadableByteChannel src, long position, long count) argument
[all...]
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
H A DTestData.java93 b -> (int) b.count());
109 n -> (int) n.count());
123 b -> (int) b.count());
140 n -> (int) n.count());
154 b -> (int) b.count());
171 n -> (int) n.count());
185 b -> (int) b.count());
202 n -> (int) n.count());
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
H A DSpinedBufferTest.java89 assertEquals(sb.count(), array.length);
90 assertEquals(sb.count(), sb.spliterator().getExactSizeIfKnown());
164 assertEquals(sb.count(), array.length);
165 assertEquals(sb.count(), sb.spliterator().getExactSizeIfKnown());
239 assertEquals(sb.count(), array.length);
240 assertEquals(sb.count(), sb.spliterator().getExactSizeIfKnown());
315 assertEquals(sb.count(), array.length);
316 assertEquals(sb.count(), sb.spliterator().getExactSizeIfKnown());
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
H A DTestData.java94 b -> (int) b.count());
110 n -> (int) n.count());
124 b -> (int) b.count());
141 n -> (int) n.count());
155 b -> (int) b.count());
172 n -> (int) n.count());
186 b -> (int) b.count());
203 n -> (int) n.count());
/libcore/luni/src/test/java/libcore/java/io/
H A DFileInputStreamTest.java76 private void verifyData(FileInputStream is, int start, int count) throws IOException { argument
77 byte buffer[] = new byte[count];
78 assertEquals(count, is.read(buffer));
79 for (int i = 0; i < count; ++i) {
/libcore/ojluni/src/main/java/java/lang/
H A DStringBuilder.java407 if (count == 0) {
410 return StringFactory.newStringFromChars(0, count, value);
427 s.writeInt(count);
438 count = s.readInt();
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DLinkedBlockingDeque.java152 private transient int count; field in class:LinkedBlockingDeque
219 if (count >= capacity)
228 ++count;
238 if (count >= capacity)
247 ++count;
269 --count;
291 --count;
313 --count;
720 return capacity - count;
752 int n = Math.min(maxElements, count);
[all...]
/libcore/ojluni/src/test/java/util/stream/
H A DTestDoubleSumAverage.java71 int count = 1_000_001;
73 double expectedSum = base + (increment * (count - 1));
74 double expectedAvg = expectedSum / count;
76 // Factory for double a stream of [base, increment, ..., increment] limited to a size of count
77 Supplier<DoubleStream> ds = () -> DoubleStream.iterate(base, e -> increment).limit(count);

Completed in 2215 milliseconds

1234567891011