Home
last modified time | relevance | path

Searched refs:negative (Results 1 – 12 of 12) sorted by relevance

/libcore/ojluni/src/main/java/java/lang/
DInteger.java170 boolean negative = (i < 0); in toString()
173 if (!negative) { in toString()
183 if (negative) { in toString()
508 boolean negative = i < 0; in toString()
509 boolean small = negative ? i > -100 : i < 100; in toString()
511 final String[] smallValues = negative ? SMALL_NEG_VALUES : SMALL_NONNEG_VALUES; in toString()
513 if (negative) { in toString()
589 boolean negative = i < 0;
590 if (!negative) {
613 if (negative) {
[all …]
DLong.java154 boolean negative = (i < 0); in toString()
156 if (!negative) { in toString()
166 if (negative) { in toString()
526 boolean negative = (i < 0); in getChars()
527 if (!negative) { in getChars()
561 if (negative) { in getChars()
574 boolean negative = (i < 0); in getChars()
575 if (!negative) { in getChars()
609 if (negative) { in getChars()
719 boolean negative = false; in parseLong()
[all …]
DStringUTF16.java1737 boolean negative = (i < 0);
1738 if (!negative) {
1761 if (negative) {
1781 boolean negative = (i < 0);
1782 if (!negative) {
1816 if (negative) {
/libcore/ojluni/src/test/java/lang/Double/
DNaNInfinityParsingTest.java146 boolean negative = (infinityString.charAt(0) == '-'); in testValidInfinityStrings()
147 Assert.assertEquals(d, (negative ? Double.NEGATIVE_INFINITY : in testValidInfinityStrings()
149 (negative ? "positive instead of negative." : in testValidInfinityStrings()
/libcore/ojluni/src/test/java/lang/Float/
DNaNInfinityParsingTest.java151 boolean negative = (infinityString.charAt(0) == '-'); in testValidInfinityStrings()
152 Assert.assertEquals(d, (negative ? Float.NEGATIVE_INFINITY : in testValidInfinityStrings()
154 (negative ? "positive instead of negative." : in testValidInfinityStrings()
/libcore/ojluni/src/main/java/java/nio/
DX-Buffer.java.template342 * If the {@code capacity} is a negative integer
374 * If the {@code capacity} is a negative integer
405 * The offset of the subarray to be used; must be non-negative and
411 * must be non-negative and no larger than
518 * must be non-negative and no larger than {@code csq.length()}.
612 * buffer will start; must be non-negative and no larger than
617 * non-negative and no larger than {@code limit() - index}
622 * If {@code index} is negative or greater than {@code limit()},
623 * {@code length} is negative, or {@code length > limit() - index}
721 * If {@code index} is negative
[all …]
DX-Buffer-bin.java.template81 * If {@code index} is negative
108 * If {@code index} is negative
/libcore/ojluni/src/test/java/nio/Buffer/
DBasic-X.java.template690 // The index must be non-negative and less than the buffer's limit.
711 fail("IllegalArgumentException expected for negative position");
715 + " negative position");
731 fail("IllegalArgumentException expected for negative limit");
735 + " negative limit");
1093 // The index, relative to the position, must be non-negative and
1097 // The index must be non-negative and less than the buffer's limit.
1100 // The start must be non-negative and no larger than remaining().
1109 // The offset must be non-negative and no larger than <array.length>.
1127 // The offset must be non-negative and no larger than <array.length>.
[all …]
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatterBuilder.java2873 boolean negative = false; in parse()
2885 negative = true; in parse()
2933 if (negative) { in parse()
3725 int negative = (sign == '-' ? -1 : 1); in parse() local
3807 long offsetSecs = negative * (array[1] * 3600L + array[2] * 60L + array[3]); in parse()
4030 int negative = 0; in parse() local
4036 negative = 1; in parse()
4038 negative = -1; in parse()
4098 long offsetSecs = negative * (h * 3600L + m * 60L + s); in parse()
/libcore/ojluni/src/test/java/math/BigInteger/
DBigIntegerTest.java1147 boolean negative = random.nextBoolean(); in fetchNumber()
1202 if (negative) in fetchNumber()
/libcore/ojluni/src/test/java/lang/invoke/
DLoopCombinatorTest.java819 boolean negative = !msg.isEmpty(); in testIterateParameters()
827 if (!negative) { in testIterateParameters()
833 if (negative) { in testIterateParameters()
/libcore/expectations/
Dknownfailures.txt47 …description: "can't compile a pattern with negative look-behind and quantifiers with upper bounds",