Home
last modified time | relevance | path

Searched refs:isNegative (Results 1 – 19 of 19) sorted by relevance

/libcore/ojluni/src/main/java/jdk/internal/math/
DFormattedFloatingDecimal.java67 boolean isNegative = fdConverter.isNegative(); in FormattedFloatingDecimal()
72 fillCompatible(precision, digits, nDigits, exp, isNegative); in FormattedFloatingDecimal()
76 fillDecimal(precision, digits, nDigits, exp, isNegative); in FormattedFloatingDecimal()
81 fillScientific(precision, digits, nDigits, exp, isNegative); in FormattedFloatingDecimal()
91 fillScientific(precision, digits, nDigits, exp, isNegative); in FormattedFloatingDecimal()
95 fillDecimal(precision, digits, nDigits, exp, isNegative); in FormattedFloatingDecimal()
181 …ivate void fillCompatible(int precision, char[] digits, int nDigits, int exp, boolean isNegative) { in fillCompatible() argument
182 int startIndex = isNegative ? 1 : 0; in fillCompatible()
187 mantissa = create(isNegative, nDigits + extraZeros + 2); in fillCompatible()
194 mantissa = create(isNegative, exp + 1 + t); in fillCompatible()
[all …]
DFloatingDecimal.java159 public boolean isNegative(); in isNegative() method
191 private boolean isNegative; field in FloatingDecimal.ExceptionalBinaryToASCIIBuffer
193 public ExceptionalBinaryToASCIIBuffer(String image, boolean isNegative) { in ExceptionalBinaryToASCIIBuffer() argument
195 this.isNegative = isNegative; in ExceptionalBinaryToASCIIBuffer()
225 public boolean isNegative() { in isNegative() method in FloatingDecimal.ExceptionalBinaryToASCIIBuffer
226 return isNegative; in isNegative()
260 private boolean isNegative; field in FloatingDecimal.BinaryToASCIIBuffer
291 BinaryToASCIIBuffer(boolean isNegative, char[] digits){ in BinaryToASCIIBuffer() argument
292 this.isNegative = isNegative; in BinaryToASCIIBuffer()
329 public boolean isNegative() { in isNegative() method in FloatingDecimal.BinaryToASCIIBuffer
[all …]
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DFormattedFloatingDecimal.java64 int precision, char[] digits, int nDigits, int exp, boolean isNegative) { in fillCompatible() argument
68 private static char[] create(boolean isNegative, int size) { in create() argument
73 int precision, char[] digits, int nDigits, int exp, boolean isNegative) { in fillDecimal() argument
78 int precision, char[] digits, int nDigits, int exp, boolean isNegative) { in fillScientific() argument
DFloatingDecimal.java273 boolean isNegative; field in FloatingDecimal.ASCIIToBinaryBuffer
293 BinaryToASCIIBuffer(boolean isNegative, char[] digits) { in BinaryToASCIIBuffer() argument
313 public boolean isNegative() { in isNegative() method in FloatingDecimal.BinaryToASCIIBuffer
329 private void setSign(boolean isNegative) { in setSign() argument
390 private boolean isNegative; field in FloatingDecimal.BinaryToASCIIBuffer
406 public boolean isNegative(); in isNegative() method
419 public ExceptionalBinaryToASCIIBuffer(java.lang.String image, boolean isNegative) { in ExceptionalBinaryToASCIIBuffer() argument
439 public boolean isNegative() { in isNegative() method in FloatingDecimal.ExceptionalBinaryToASCIIBuffer
461 private boolean isNegative; field in FloatingDecimal.ExceptionalBinaryToASCIIBuffer
/libcore/ojluni/src/test/java/lang/Float/
DParseFloatTest.java56 boolean isNegative = false; in check()
61 isNegative = true; in check()
72 if (isNegativeN != isNegative) in check()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKPeriod.java561 assertEquals(Period.of(0, 0, 0).isNegative(), false); in test_isPositive()
562 assertEquals(Period.of(1, 2, 3).isNegative(), false); in test_isPositive()
563 assertEquals(Period.of(1, 0, 0).isNegative(), false); in test_isPositive()
564 assertEquals(Period.of(0, 2, 0).isNegative(), false); in test_isPositive()
565 assertEquals(Period.of(0, 0, 3).isNegative(), false); in test_isPositive()
567 assertEquals(Period.of(-1, -2, -3).isNegative(), true); in test_isPositive()
568 assertEquals(Period.of(-1, -2, 3).isNegative(), true); in test_isPositive()
569 assertEquals(Period.of(1, -2, -3).isNegative(), true); in test_isPositive()
570 assertEquals(Period.of(-1, 2, -3).isNegative(), true); in test_isPositive()
571 assertEquals(Period.of(-1, 2, 3).isNegative(), true); in test_isPositive()
[all …]
DTCKDuration.java917 assertEquals(Duration.ofNanos(0).isNegative(), false); in test_isNegative()
918 assertEquals(Duration.ofSeconds(0).isNegative(), false); in test_isNegative()
919 assertEquals(Duration.ofNanos(1).isNegative(), false); in test_isNegative()
920 assertEquals(Duration.ofSeconds(1).isNegative(), false); in test_isNegative()
921 assertEquals(Duration.ofSeconds(1, 1).isNegative(), false); in test_isNegative()
922 assertEquals(Duration.ofNanos(-1).isNegative(), true); in test_isNegative()
923 assertEquals(Duration.ofSeconds(-1).isNegative(), true); in test_isNegative()
924 assertEquals(Duration.ofSeconds(-1, -1).isNegative(), true); in test_isNegative()
/libcore/ojluni/src/main/java/java/security/acl/
DAclEntry.java106 public boolean isNegative(); in isNegative() method
/libcore/ojluni/src/test/java/lang/Double/
DParseDoubleTest.java58 boolean isNegative = false; in check()
63 isNegative = true; in check()
74 if (isNegativeN != isNegative) in check()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKChronoPeriod.java152 assertEquals(periodPositive.isNegative(), false); in test_isZero_isNegative()
156 assertEquals(periodZero.isNegative(), false); in test_isZero_isNegative()
160 assertEquals(periodNegative.isNegative(), true); in test_isZero_isNegative()
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoPeriod.java186 default boolean isNegative() { in isNegative() method
DChronoPeriodImpl.java169 public boolean isNegative() { in isNegative() method in ChronoPeriodImpl
/libcore/ojluni/src/main/java/java/util/
DScanner.java2198 boolean isNegative = false; in processIntegerToken()
2201 isNegative = true; in processIntegerToken()
2206 isNegative = true; in processIntegerToken()
2210 if (isNegative) in processIntegerToken()
2414 boolean isNegative = false; in processFloatToken()
2417 isNegative = true; in processFloatToken()
2422 isNegative = true; in processFloatToken()
2434 if (isNegative) in processFloatToken()
/libcore/ojluni/src/main/java/java/time/
DDuration.java588 public boolean isNegative() { in isNegative() method in Duration
1054 return isNegative() ? negated() : this; in abs()
DClock.java315 if (tickDuration.isNegative()) { in tick()
DPeriod.java491 public boolean isNegative() { in isNegative() method in Period
/libcore/ojluni/annotations/hiddenapi/java/time/
DDuration.java161 public boolean isNegative() { in isNegative() method in Duration
/libcore/ojluni/src/test/java/math/BigInteger/
DBigIntegerTest.java207 boolean isNegative = random.nextBoolean(); in constructor()
208 BigInteger signMag = new BigInteger(isNegative ? -1 : 1, objArray, offset, refLen); in constructor()
209 Assert.assertEquals(signMag.compareTo(isNegative ? reference.negate() : reference), 0, in constructor()
/libcore/api/
Dcurrent.txt8658 method @Deprecated public boolean isNegative();
11429 method public boolean isNegative();
11951 method public boolean isNegative();
12254 method public default boolean isNegative();