Home
last modified time | relevance | path

Searched defs:bd (Results 1 – 25 of 26) sorted by relevance

12

/libcore/ojluni/src/test/java/math/BigDecimal/
DConstructor.java39 BigDecimal bd = new BigDecimal("1.2e"); in stringConstructor() local
44 BigDecimal bd = new BigDecimal(new char[5], -1, 4, null); in charArrayConstructorNegativeOffset() local
49 BigDecimal bd = new BigDecimal(new char[5], 0, -1, null); in charArrayConstructorNegativeLength() local
55 BigDecimal bd = new BigDecimal(new char[5], Integer.MAX_VALUE - 5, in charArrayConstructorIntegerOverflow() local
69 BigDecimal bd = new BigDecimal(new char[5], 1, 5, null); in charArrayConstructorIndexOutOfBounds() local
DFloatDoubleValueTests.java49 static void testDoubleValue0(long i, BigDecimal bd) { in testDoubleValue0()
51 "Unexpected equality failure for " + i + "\t" + bd); in testDoubleValue0() local
54 static void testFloatValue0(long i, BigDecimal bd) { in testFloatValue0()
56 "Unexpected equality failure for " + i + "\t" + bd); in testFloatValue0() local
59 static void checkFloat(BigDecimal bd, float f) { in checkFloat()
66 static void checkDouble(BigDecimal bd, double d) { in checkDouble()
DIntegralValueTests.java204 BigDecimal bd = testCase.getKey(); in integralValuesTest() local
227 private static int reportError(BigDecimal bd, Number expected, long longValue, boolean isInt) { in reportError()
245 private static long simpleLongValue(BigDecimal bd) { in simpleLongValue()
249 private static int simpleIntValue(BigDecimal bd) { in simpleIntValue()
DToPlainStringTests.java80 BigDecimal bd = new BigDecimal(testCase[0]); in testToPlainString() local
90 "Unexpected plain result ``" + s + "'' from BigDecimal " + bd); in testToPlainString() local
DNegateTests.java40 static BigDecimal negateThenRound(BigDecimal bd, MathContext mc) { in negateThenRound()
45 static BigDecimal absThenRound(BigDecimal bd, MathContext mc) { in absThenRound()
53 BigDecimal bd = testCase[0]; in negateTest() local
DLongValueExactTests.java52 BigDecimal bd = new BigDecimal(longValue); in longValueExactTests() local
72 BigDecimal bd = new BigDecimal(bigValue); in longValueExactTests() local
DIntValueExactTests.java49 private static int simpleIntValueExact(BigDecimal bd) { in simpleIntValueExact()
77 BigDecimal bd = testCase.getKey(); in intValueExactSuccessful() local
DScaleByPowerOfTenTests.java43 BigDecimal bd = BigDecimal.ONE.scaleByPowerOfTen(i); in testScaleByPowerOfTen() local
DSerializationTests.java41 static void checkSerialForm(BigDecimal bd) throws Exception { in checkSerialForm()
DZeroScalingTests.java313 BigDecimal bd = zero.setScale(scale); in setScaleTests() local
337 BigDecimal bd = new BigDecimal(testCase[0]); in toEngineeringStringTests() local
DPrecisionTests.java81 private static void testPrecision(BigDecimal bd, int expected) { in testPrecision()
DStringConstructor.java88 BigDecimal bd = new BigDecimal(bi, scale); in testRoundtrip() local
DDivideTests.java149 BigDecimal bd; in powersOf2and5() local
DSquareRootTests.java145 private static void compareSqrtImplementations(BigDecimal bd, MathContext mc) { in compareSqrtImplementations()
/libcore/luni/src/test/java/libcore/java/math/
DOldBigDecimalConstructorsTest.java48 BigDecimal bd; in testConstrBigIntegerMathContext() local
134 BigDecimal bd; in testConstrBigIntegerScaleMathContext() local
266 BigDecimal bd; in testConstrBigIntegerScaleMathContext_AndroidFailure() local
306 BigDecimal bd; in testConstrCharIntIntMathContext() local
393 BigDecimal bd; in testConstrCharMathContext() local
445 BigDecimal bd; in testConstrDoubleMathContext() local
528 BigDecimal bd; in testConstrDoubleMathContext_AndroidFailure() local
583 BigDecimal bd; in testConstrLongMathContext() local
651 BigDecimal bd = new BigDecimal(a); in testConstrStringException() local
674 BigDecimal bd; in testConstrStringMathContext() local
DOldBigDecimalTest.java62 BigDecimal bd; in test_constructor_String_plus_exp() local
DOldBigDecimalConvertTest.java441 BigDecimal bd = new BigDecimal("1"); in test_stripTrailingZeros() local
DOldBigDecimalArithmeticTest.java477 BigDecimal bd; in testRoundNonTrivial() local
/libcore/benchmarks/src/benchmarks/regression/
DBidiBenchmark.java37 Bidi bd = new Bidi(new char[]{'s', 's', 's'}, 0, new byte[]{(byte) 1, in time_createBidiFromCharArray() local
57 Bidi bd = new Bidi(new char[]{'\u05D0', '\u05D0', '\u05D0'}, 0, in time_hebrewBidi() local
68 Bidi bd = new Bidi("a\u05D0a\"a\u05D0\"\u05D0a".toCharArray(), 0, in time_complicatedOverrideBidi() local
/libcore/luni/src/test/java/libcore/java/text/
DOldBidiTest.java28 Bidi bd = new Bidi("bidi", 173); in testToString() local
43 Bidi bd = new Bidi("text", Bidi.DIRECTION_LEFT_TO_RIGHT); in testGetRunLevelLInt() local
67 Bidi bd = new Bidi(new char[] { 's', 's', 's' }, 0, new byte[] { (byte) -7, in testGetRunStart() local
DDecimalFormatTest.java75 BigDecimal bd = new BigDecimal(longDec); in testBigDecimalBug1897917() local
267 private void assertBigDecimalWithFraction(BigDecimal bd, String expectedResult, int fraction) { in assertBigDecimalWithFraction()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DBidiTest.java28 Bidi bd; field in BidiTest
/libcore/luni/src/main/java/javax/xml/datatype/
DDuration.java936 private String toString(BigDecimal bd) { in toString()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DBigDecimalTest.java885 BigDecimal bd = new BigDecimal(in, 0, 9); in test_BigDecimal_serialization() local
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DFormatterTest.java3999 BigDecimal bd = new BigDecimal("1.0"); in test_formatLjava_lang_String$Ljava_lang_Object_BigDecimalExceptionOrder() local

12