/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/ |
D | DecimalQuantityTest.java | 440 assertTrue("Zero should fit", quantity.fitsInLong()); in testFitsInLong() 442 assertTrue("Small int should fit", quantity.fitsInLong()); in testFitsInLong() 444 assertFalse("Fraction should not fit", quantity.fitsInLong()); in testFitsInLong() 446 assertFalse("Fraction should not fit", quantity.fitsInLong()); in testFitsInLong() 448 assertTrue("Large low-precision int should fit", quantity.fitsInLong()); in testFitsInLong() 450 assertTrue("10^19 should fit", quantity.fitsInLong()); in testFitsInLong() 452 assertTrue("A number between 10^19 and max long should fit", quantity.fitsInLong()); in testFitsInLong() 454 … assertTrue("A number with trailing zeros less than max long should fit", quantity.fitsInLong()); in testFitsInLong() 457 quantity.fitsInLong()); in testFitsInLong() 459 assertTrue("One less than max long should fit", quantity.fitsInLong()); in testFitsInLong() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
D | DecimalQuantityTest.java | 437 assertTrue("Zero should fit", quantity.fitsInLong()); in testFitsInLong() 439 assertTrue("Small int should fit", quantity.fitsInLong()); in testFitsInLong() 441 assertFalse("Fraction should not fit", quantity.fitsInLong()); in testFitsInLong() 443 assertFalse("Fraction should not fit", quantity.fitsInLong()); in testFitsInLong() 445 assertTrue("Large low-precision int should fit", quantity.fitsInLong()); in testFitsInLong() 447 assertTrue("10^19 should fit", quantity.fitsInLong()); in testFitsInLong() 449 assertTrue("A number between 10^19 and max long should fit", quantity.fitsInLong()); in testFitsInLong() 451 … assertTrue("A number with trailing zeros less than max long should fit", quantity.fitsInLong()); in testFitsInLong() 454 quantity.fitsInLong()); in testFitsInLong() 456 assertTrue("One less than max long should fit", quantity.fitsInLong()); in testFitsInLong() [all …]
|
/external/guava/android/guava-tests/test/com/google/common/math/ |
D | LongMathTest.java | 60 if (fitsInLong(expectedResult)) { in testCeilingPowerOfTwo() 180 assertTrue(fitsInLong(BigIntegerMath.binomial(LongMath.biggestBinomials[k], k))); in testConstantsBiggestBinomials() 183 || !fitsInLong(BigIntegerMath.binomial(LongMath.biggestBinomials[k] + 1, k))); in testConstantsBiggestBinomials() 188 assertFalse(fitsInLong(BigIntegerMath.binomial(2 * k, k))); in testConstantsBiggestBinomials() 220 if (fitsInLong(difference)) { in testLessThanBranchFree() 575 boolean expectedSuccess = fitsInLong(expectedResult); in testCheckedAdd() 595 boolean expectedSuccess = fitsInLong(expectedResult); in testCheckedSubtract() 626 boolean expectedSuccess = fitsInLong(expectedResult); in testCheckedMultiply() 646 boolean expectedSuccess = fitsInLong(expectedResult); in testCheckedPow() 723 long expectedLong = fitsInLong(expectedBig) ? expectedBig.longValue() : Long.MAX_VALUE; in testFactorial() [all …]
|
/external/guava/guava-tests/test/com/google/common/math/ |
D | LongMathTest.java | 60 if (fitsInLong(expectedResult)) { in testCeilingPowerOfTwo() 180 assertTrue(fitsInLong(BigIntegerMath.binomial(LongMath.biggestBinomials[k], k))); in testConstantsBiggestBinomials() 183 || !fitsInLong(BigIntegerMath.binomial(LongMath.biggestBinomials[k] + 1, k))); in testConstantsBiggestBinomials() 188 assertFalse(fitsInLong(BigIntegerMath.binomial(2 * k, k))); in testConstantsBiggestBinomials() 220 if (fitsInLong(difference)) { in testLessThanBranchFree() 575 boolean expectedSuccess = fitsInLong(expectedResult); in testCheckedAdd() 595 boolean expectedSuccess = fitsInLong(expectedResult); in testCheckedSubtract() 626 boolean expectedSuccess = fitsInLong(expectedResult); in testCheckedMultiply() 646 boolean expectedSuccess = fitsInLong(expectedResult); in testCheckedPow() 723 long expectedLong = fitsInLong(expectedBig) ? expectedBig.longValue() : Long.MAX_VALUE; in testFactorial() [all …]
|
/external/guava/android/guava/src/com/google/common/math/ |
D | BigIntegerMath.java | 152 if (fitsInLong(x)) { in log10() 230 if (fitsInLong(x)) { in sqrt() 524 static boolean fitsInLong(BigInteger x) { in fitsInLong() method in BigIntegerMath
|
/external/guava/guava/src/com/google/common/math/ |
D | BigIntegerMath.java | 152 if (fitsInLong(x)) { in log10() 230 if (fitsInLong(x)) { in sqrt() 524 static boolean fitsInLong(BigInteger x) { in fitsInLong() method in BigIntegerMath
|
/external/icu/icu4c/source/i18n/ |
D | numparse_parsednumber.cpp | 81 if (quantity.fitsInLong()) { in getDouble()
|
D | number_decimalquantity.h | 206 bool fitsInLong(bool ignoreFraction = false) const;
|
D | numparse_decimal.cpp | 364 if (digitsConsumed.fitsInLong()) { in match()
|
D | fmtable.cpp | 466 if (fDecimalQuantity->fitsInLong(true)) { in getInt64() 788 if (fDecimalQuantity->fitsInLong()) { in adoptDecimalQuantity()
|
D | rbnf.cpp | 1128 if (copy.fitsInLong()) { in format() 1133 if (copy.fitsInLong()) { in format()
|
D | number_decimalquantity.cpp | 577 bool DecimalQuantity::fitsInLong(bool ignoreFraction) const { in fitsInLong() function in DecimalQuantity
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/parse/ |
D | ParsedNumber.java | 162 if (quantity.fitsInLong() && !forceBigDecimal) { in getNumber()
|
D | DecimalMatcher.java | 382 if (digitsConsumed.fitsInLong()) { in match()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/ |
D | ParsedNumber.java | 160 if (quantity.fitsInLong() && !forceBigDecimal) { in getNumber()
|
D | DecimalMatcher.java | 380 if (digitsConsumed.fitsInLong()) { in match()
|
/external/icu/libicu/cts_headers/ |
D | number_decimalquantity.h | 206 bool fitsInLong(bool ignoreFraction = false) const;
|
/external/lottie/lottie/src/main/java/com/airbnb/lottie/parser/moshi/ |
D | JsonUtf8Reader.java | 397 boolean fitsInLong = true; in peekNumber() 458 fitsInLong &= value > MIN_INCOMPLETE_INTEGER in peekNumber() 470 if (last == NUMBER_CHAR_DIGIT && fitsInLong && (value != Long.MIN_VALUE || negative) in peekNumber()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | DecimalQuantity_AbstractBCD.java | 616 assert(truncateIfOverflow || fitsInLong()); in toLong() 664 public boolean fitsInLong() { in fitsInLong() method in DecimalQuantity_AbstractBCD
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
D | DecimalQuantity_AbstractBCD.java | 618 assert(truncateIfOverflow || fitsInLong()); in toLong() 666 public boolean fitsInLong() { in fitsInLong() method in DecimalQuantity_AbstractBCD
|
/external/icu/icu4c/source/test/intltest/ |
D | numfmtdatadriventest.cpp | 272 if (!uprv_isNaN(doubleVal) && !uprv_isInfinite(doubleVal) && digitList.fitsInLong()) { in isFormatPass()
|