/libcore/ojluni/src/main/java/java/util/concurrent/ |
H A D | LinkedBlockingDeque.java | 152 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/main/java/sun/nio/ch/ |
H A D | FileChannelImpl.java | 532 private long transferToTrustedChannel(long position, long count, argument 541 long remaining = count; 572 if (remaining == count) 577 return count - remaining; 616 public long transferTo(long position, long count, argument 628 if ((position < 0) || (count < 0)) 633 int icount = (int)Math.min(count, Integer.MAX_VALUE); 652 long position, long count) 659 long max = Math.min(count, src.size() - pos); 691 long position, long count) 651 transferFromFileChannel(FileChannelImpl src, long position, long count) argument 690 transferFromArbitraryChannel(ReadableByteChannel src, long position, long count) argument 726 transferFrom(ReadableByteChannel src, long position, long count) argument 830 static volatile int count; field in class:FileChannelImpl.Unmapper 1229 transferTo0(FileDescriptor src, long position, long count, FileDescriptor dst) argument [all...] |
/libcore/ojluni/src/main/native/ |
H A D | jni_util.c | 913 jint count) 918 for (i=0; i<count; i++) { 912 JNU_CopyObjectArray(JNIEnv *env, jobjectArray dst, jobjectArray src, jint count) argument
|
H A D | UNIXProcess_md.c | 245 int count; local 246 for (count = 0; *s != '\0'; s++) 247 count += (*s == c); 248 return count; 257 int count = countOccurrences(path, ':') + 1; local 259 pathv = NEW(char*, count+1); 260 pathv[count] = NULL; 261 for (p = path, i = 0; i < count; i++, p = q + 1) { 366 restartableWrite(int fd, const void *buf, size_t count) argument 369 RESTARTABLE(write(fd, buf, count), resul 470 initVectorFromBlock(const char**vector, const char* block, int count) argument [all...] |
H A D | zip_util.c | 195 jint count = (len < limit) ? local 198 jint n = ZFILE_read(zfd, bp, count, offset); 528 jint count = 0; local 531 count++; 532 return count; 1422 jlong count = entry->csize; local 1426 if (count == 0) { 1440 while (count > 0) { 1441 jint n = count > (jlong)sizeof(tmp) ? (jint)sizeof(tmp) : (jint)count; 1516 jint count = (size - pos < limit) ? local [all...] |
/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);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | CollectionsTest.java | 403 int count = 0; 406 objArray[count++]); 408 assertEquals("Enumeration missing elements: " + count, objArray.length, 409 count); 552 int count = objArray.length - 1; 554 assertEquals("Failed to reverse collection", objArray[count], i 556 --count; 1118 private void testwithCharList(int count, String string1, String string2, argument 1132 assertEquals("Test " + count + ": Returned wrong index:", string1 1136 assertEquals("Test " + count [all...] |
H A D | ArraysTest.java | 1634 private static int count = 0; field in class:ArraysTest.Element 1638 index = count++;
|
/libcore/luni/src/main/native/ |
H A D | libcore_icu_ICU.cpp | 629 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...] |
H A D | org_apache_harmony_xml_ExpatParser.cpp | 620 int count = 0; local 621 while (attributes[count * 2]) count++; 625 parsingContext->attributeCount = count; 639 env->CallVoidMethod(javaParser, startElementMethod, uri, localName, qName, attributesAddress, count); 1244 * @param count number of attributes 1246 static jlong ExpatParser_cloneAttributes(JNIEnv* env, jobject, jlong address, jint count) { argument 1248 count *= 2; 1251 int arraySize = (count + 1) * sizeof(char*); 1253 int stringLengths[count]; [all...] |
H A D | libcore_io_Linux.cpp | 1783 size_t count = 0; // Some trailing array elements may be irrelevant. (See below.) local 1793 fds[count].fd = jniGetFDFromFileDescriptor(env, javaFd.get()); 1794 fds[count].events = env->GetShortField(javaStruct.get(), eventsFid); 1795 ++count; 1799 for (size_t i = 0; i < count; ++i) { 1808 rc = poll(fds.get(), count, timeoutMs); 1845 for (size_t i = 0; i < count; ++i) {
|
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | OldClassTest.java | 129 int count = 0; field in class:OldClassTest.PublicTestClass 132 return count; 136 count = value;
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
H A D | ReflectionTest.java | 301 assertEquals(1, count(names(methods), "method")); 306 assertEquals(1, count(names(fields), "field")); 419 private int count(List<?> list, Object element) { method in class:ReflectionTest
|
/libcore/ojluni/src/main/java/java/awt/font/ |
H A D | NumericShaper.java | 64 * 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/ojluni/src/main/java/java/lang/ |
H A D | String.java | 124 private final int count; field in class:String 181 * index of the first character of the subarray and the {@code count} 192 * @param count 196 * If the {@code offset} and {@code count} arguments index 199 public String(char value[], int offset, int count) { argument 207 * point of the subarray and the {@code count} argument specifies the 218 * @param count 226 * If the {@code offset} and {@code count} arguments index 231 public String(int[] codePoints, int offset, int count) { argument 240 * subarray, and the {@code count} argumen 275 String(byte ascii[], int hibyte, int offset, int count) argument 527 String(int offset, int count, char[] value) argument 2864 valueOf(char data[], int offset, int count) argument 2881 copyValueOf(char data[], int offset, int count) argument [all...] |
H A D | Character.java | 5213 * the text range count as one code point each. 5249 * subarray and the {@code count} argument specifies the 5251 * surrogates within the subarray count as one code point each. 5256 * @param count the length of the subarray in {@code char}s 5260 * {@code count} is negative, or if {@code offset + 5261 * count} is larger than the length of the given array. 5264 public static int codePointCount(char[] a, int offset, int count) { argument 5265 if (count > a.length - offset || offset < 0 || count < 0) { 5268 return codePointCountImpl(a, offset, count); 5271 codePointCountImpl(char[] a, int offset, int count) argument 5373 offsetByCodePoints(char[] a, int start, int count, int index, int codePointOffset) argument 5382 offsetByCodePointsImpl(char[]a, int start, int count, int index, int codePointOffset) argument [all...] |
/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 | CompletableFutureTest.java | 552 final AtomicInteger count = new AtomicInteger(0); field in class:CompletableFutureTest.ThreadExecutor 559 count.getAndIncrement(); 3314 assertEquals(0, exec.count.get()); 3506 assertEquals(1, executor.count.get()); 3523 assertEquals(1, executor.count.get());
|
/libcore/ojluni/src/main/java/java/time/format/ |
H A D | DateTimeFormatterBuilder.java | 1409 * 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 4453 private int count; field in class:DateTimeFormatterBuilder.WeekBasedFieldPrinterParser 4461 WeekBasedFieldPrinterParser(char chr, int count) argument [all...] |
/libcore/support/src/test/java/tests/resources/ |
H A D | junit4-4.3.1.jar | META-INF/ META-INF/MANIFEST.MF junit/ junit/extensions/ junit/framework/ junit/runner/ junit/textui/ org/ ... |
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | URLConnectionTest.java | 1175 * Reads {@code count} characters from the stream. If the stream is 1176 * exhausted before {@code count} characters can be read, the remaining 1179 private String readAscii(InputStream in, int count) throws IOException { argument 1181 for (int i = 0; i < count; i++) { 1413 int count = i + targetChunkSize < outputBytes.length ? 3 : outputBytes.length - i; 1414 outputStream.write(outputBytes, i, count);
|