Searched refs:count (Results 76 - 100 of 257) sorted by relevance

1234567891011

/libcore/ojluni/src/main/java/java/util/
H A DDualPivotQuicksort.java120 int count = 0; run[0] = left;
123 for (int k = left; k < right; run[count] = k) {
128 for (int lo = run[count] - 1, hi = k; ++lo < --hi; ) {
144 if (++count == MAX_RUN_COUNT) {
152 if (run[count] == right++) { // The last run contains one element
153 run[++count] = right;
154 } else if (count == 1) { // The array is already sorted
160 for (int n = 1; (n <<= 1) < count; odd ^= 1);
183 for (int last; count > 1; count
[all...]
/libcore/ojluni/src/main/java/java/time/format/
H A DDateTimeFormatterBuilder.java1409 * The count of pattern letters determine the format.
1585 int count = pos - start;
1592 pad = count;
1595 count = pos - start;
1607 parseField(cur, count, field);
1609 if (count > 4) {
1611 } else if (count == 4) {
1617 if (count != 2) {
1618 throw new IllegalArgumentException("Pattern letter count must be 2: " + cur);
1622 if (count <
1710 parseField(char cur, int count, TemporalField field) argument
4456 private int count; field in class:DateTimeFormatterBuilder.WeekBasedFieldPrinterParser
4464 WeekBasedFieldPrinterParser(char chr, int count) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DObjectTest.java296 int count = 0;
307 if (count < toLong.length) {
308 toLong[count][0] = i;
309 toLong[count][1] = before;
310 toLong[count][2] = after;
311 count++;
313 if (error > (1000 + delay) || count == toLong.length) {
315 for (int j = 0; j < count; j++) {
H A DRuntimeTest.java102 int count = 10;
105 while (!ranFinalize && count-- > 0) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/
H A DNamespaceSupportTest.java75 int count;
78 count = countPrefixes();
82 assertEquals("Test 1: Incorrect prefix count;",
83 count + 1, countPrefixes());
86 assertEquals("Test 2: Incorrect prefix count;",
87 count, countPrefixes());
99 int count;
102 count = countPrefixes();
107 assertEquals("Test 1: Incorrect prefix count;",
108 count
[all...]
/libcore/luni/src/test/java/tests/support/
H A DThreadPool.java80 int count = enumerate(threads);
81 for (int i = 0; i < count; i++) {
/libcore/luni/src/main/java/libcore/icu/
H A DRelativeDateTimeFormatter.java138 int count;
143 count = (int)(duration / SECOND_IN_MILLIS);
146 count = (int)(duration / MINUTE_IN_MILLIS);
152 count = (int)(duration / HOUR_IN_MILLIS);
155 count = Math.abs(dayDistance(icuTimeZone, time, now));
158 if (count == 2) {
185 } else if (count == 1) {
189 } else if (count == 0) {
196 count = (int)(duration / WEEK_IN_MILLIS);
224 return formatter.format(count, directio
[all...]
/libcore/libart/src/main/java/java/lang/
H A DCaseMapper.java37 * and count fields.
146 public static String toUpperCase(Locale locale, String s, int count) { argument
157 for (int o = 0; o < count; o++) {
165 char[] newoutput = new char[output.length + (count / 6) + 2];
173 output = new char[count];
182 output = new char[count + (count / 6) + 2];
186 char[] newoutput = new char[output.length + (count / 6) + 3];
/libcore/luni/src/main/java/libcore/io/
H A DMemory.java225 public static native void pokeByteArray(long address, byte[] src, int offset, int count); argument
226 public static native void pokeCharArray(long address, char[] src, int offset, int count, boolean swap); argument
227 public static native void pokeDoubleArray(long address, double[] src, int offset, int count, boolean swap); argument
228 public static native void pokeFloatArray(long address, float[] src, int offset, int count, boolean swap); argument
229 public static native void pokeIntArray(long address, int[] src, int offset, int count, boolean swap); argument
230 public static native void pokeLongArray(long address, long[] src, int offset, int count, boolean swap); argument
231 public static native void pokeShortArray(long address, short[] src, int offset, int count, boolean swap); argument
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DGZIPInputStreamTest.java102 long count;
104 count = in.skip(Long.MAX_VALUE);
105 totalSkipped += count;
106 } while (count > 0);
246 int count;
247 while ((count = in.read(buffer)) != -1) {
248 out.write(buffer, 0, count);
/libcore/ojluni/src/main/java/java/lang/
H A DStringBuffer.java163 return count;
201 if ((index < 0) || (index >= count))
254 if ((index < 0) || (index >= count))
462 return substring(start, count);
645 return lastIndexOf(str, count);
669 toStringCache = Arrays.copyOfRange(value, 0, count);
671 return new String(toStringCache, 0, count);
679 * @serialField count int
688 new java.io.ObjectStreamField("count", Integer.TYPE),
700 fields.put("count", coun
[all...]
/libcore/benchmarks/src/benchmarks/regression/
H A DURLConnectionBenchmark.java84 int count;
85 while ((count = in.read(readBuffer)) != -1) {
86 totalBytesRead += count;
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DSequenceInputStreamTest.java71 int count = 0;
79 return count < streams.length;
83 return streams[count++];
H A DInputStreamReaderTest.java42 int count; field in class:InputStreamReaderTest.LimitedByteArrayInputStream
58 count = bytes.length;
63 return count;
68 if (count == 0) {
71 count--;
72 return bytes[bytes.length - count];
77 if (count == 0) {
83 buffer[offset] = bytes[bytes.length - count];
84 count--;
170 int count
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DSinkChannelTest.java89 int count = source.read(readBuf);
90 if (count > 0) {
91 totalCount += count;
131 long count = source.read(readBuf);
132 if (count < 0) {
135 totalCount += count;
198 int count = source.read(readBuf);
199 if (count < 0) {
202 totalCount += count;
295 int count
[all...]
/libcore/luni/src/test/java/libcore/javax/net/
H A DServerSocketFactoryTest.java130 int count;
131 while ((count = in.read(buffer)) != -1) {
132 out.write(buffer, 0, count);
/libcore/ojluni/src/main/java/java/awt/font/
H A DNumericShaper.java64 * shaper.shape(text, start, count);
74 * shaper.shape(text, start, count);
1090 * start + count.
1094 * @param count the number of characters in <code>text</code>
1096 * @throws IndexOutOfBoundsException if start or start + count is
1100 public void shape(char[] text, int start, int count) { argument
1101 checkParams(text, start, count);
1104 shapeContextually(text, start, count, key);
1106 shapeContextually(text, start, count, shapingRange);
1109 shapeNonContextually(text, start, count);
1131 shape(char[] text, int start, int count, int context) argument
1163 shape(char[] text, int start, int count, Range context) argument
1185 checkParams(char[] text, int start, int count) argument
1244 shapeNonContextually(char[] text, int start, int count) argument
1268 shapeContextually(char[] text, int start, int count, int ctxKey) argument
1313 shapeContextually(char[] text, int start, int count, Range ctxKey) argument
[all...]
/libcore/luni/src/test/java/libcore/java/io/
H A DOldByteArrayInputStreamTest.java60 assertEquals(2, SubByteArrayInputStream.count);
66 public static int mark, pos, count; field in class:OldByteArrayInputStreamTest.SubByteArrayInputStream
74 count = super.count;
H A DOldFilterReaderTest.java58 public int read(char[] buffer, int offset, int count) throws IOException { argument
72 public long skip(long count) throws IOException { argument
/libcore/ojluni/src/main/java/java/text/
H A DBidi.java387 * <code>objectStart</code> up to <code>objectStart + count</code>
396 * @param count the number of objects to reorder
398 public static void reorderVisually(byte[] levels, int levelStart, Object[] objects, int objectStart, int count) { argument
410 if (0 > count || objects.length < (objectStart+count)) {
411 throw new IllegalArgumentException("Value count " +
418 android.icu.text.Bidi.reorderVisually(levels, levelStart, objects, objectStart, count);
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DCountedCompleter.java50 * count} starts at zero, but may be (atomically) changed using
53 * #tryComplete}, if the pending action count is nonzero, it is
153 * setPendingCount(2); // must set pending count before fork
168 * {@code tryComplete}) the pending count is set to one:
190 * and add a pending count for each fork. Additionally, because no task
333 * in which the pending count is, or becomes, zero: (1) by a task
334 * itself, if its pending count is zero upon invocation of {@code
336 * decrement the pending count to zero. The {@code caller} argument
422 * and initial pending count.
425 * @param initialPendingCount the initial pending count
517 setPendingCount(int count) argument
538 compareAndSetPendingCount(int expected, int count) argument
[all...]
/libcore/ojluni/src/main/native/
H A Dlinux_close.cpp130 int NET_ReadV(int s, const struct iovec * vector, int count) { argument
131 BLOCKING_IO_RETURN_INT( s, readv(s, vector, count) );
145 int NET_WriteV(int s, const struct iovec * vector, int count) { argument
146 BLOCKING_IO_RETURN_INT( s, writev(s, vector, count) );
/libcore/support/src/test/java/org/apache/harmony/testframework/
H A DCharWrapperTester.java207 public void write(char[] buf, int offset, int count) throws IOException { argument
211 buffer.append(buf, offset, count);
220 public void write(char[] buf, int offset, int count) throws IOException { argument
249 public void write(char[] buf, int offset, int count) throws IOException { argument
/libcore/luni/src/main/java/org/xml/sax/helpers/
H A DAttributeListImpl.java117 int count = atts.getLength();
121 for (int i = 0; i < count; i++) {
/libcore/ojluni/src/main/java/java/nio/
H A DMappedByteBuffer.java175 int count = Bits.pageCount(length);
178 for (int i=0; i<count; i++) {

Completed in 594 milliseconds

1234567891011