/libcore/luni/src/test/java/libcore/java/math/ |
D | OldBigIntegerToStringTest.java | 32 BigInteger bi = new BigInteger(s); in test_toString1() local 33 String sBI = bi.toString(); in test_toString1() 39 BigInteger bi = new BigInteger(s); in test_toString2() local 40 String sBI = bi.toString(); in test_toString2() 46 BigInteger bi = new BigInteger(s); in test_toString3() local 47 String sBI = bi.toString(); in test_toString3() 54 BigInteger bi = BigInteger.valueOf(l); in test_toString4() local 55 String sBI = bi.toString(); in test_toString4() 62 BigInteger bi = BigInteger.valueOf(l); in test_toString5() local 63 String sBI = bi.toString(); in test_toString5() [all …]
|
D | OldBigDecimalConstructorsTest.java | 49 BigInteger bi = new BigInteger( "12345678901234567890123456789012345"); in testConstrBigIntegerMathContext() local 53 bd = new BigDecimal(bi, mc); in testConstrBigIntegerMathContext() 59 bd = new BigDecimal(bi, mc); in testConstrBigIntegerMathContext() 65 bd = new BigDecimal(bi, mc); in testConstrBigIntegerMathContext() 71 bd = new BigDecimal(bi, mc); in testConstrBigIntegerMathContext() 77 bd = new BigDecimal(bi, mc); in testConstrBigIntegerMathContext() 85 bd = new BigDecimal(bi, mc); in testConstrBigIntegerMathContext() 91 bd = new BigDecimal(bi, mc); in testConstrBigIntegerMathContext() 98 bd = new BigDecimal(bi, mc); in testConstrBigIntegerMathContext() 136 BigInteger bi = new BigInteger( "12345678901234567890123456789012345"); in testConstrBigIntegerScaleMathContext() local [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | OldBigIntegerTest.java | 33 BigInteger bi; field in OldBigIntegerTest 50 bi = new BigInteger(70, rand); in test_ConstructorILjava_util_Random() 52 assertTrue("Random number is negative", bi.compareTo(BigInteger.ZERO) >= 0); in test_ConstructorILjava_util_Random() 53 assertTrue("Random number is too big", bi.compareTo(two.pow(70)) < 0); in test_ConstructorILjava_util_Random() 56 !bi.equals(bi2)); in test_ConstructorILjava_util_Random() 80 BigInteger bi; in test_ConstructorIILjava_util_Random() local 85 bi = new BigInteger(i, c, rand); // Create BigInteger in test_ConstructorIILjava_util_Random() 86 assertEquals(i, bi.bitLength()); in test_ConstructorIILjava_util_Random() 125 bi = new BigInteger(20, 20, rand); in test_isProbablePrimeI() 126 if (!bi.isProbablePrime(17)) { in test_isProbablePrimeI() [all …]
|
D | BigIntegerTest.java | 50 BigInteger bi; field in BigIntegerTest 92 bi = new BigInteger(70, rand); in test_ConstructorILjava_util_Random() 94 assertTrue("Random number is negative", bi.compareTo(zero) >= 0); in test_ConstructorILjava_util_Random() 96 bi.compareTo(twoToTheSeventy) < 0); in test_ConstructorILjava_util_Random() 99 !bi.equals(bi2)); in test_ConstructorILjava_util_Random() 109 bi = new BigInteger(myByteArray); in test_Constructor$B() 110 assertTrue("Incorrect value for pos number", bi.equals(BigInteger.ZERO in test_Constructor$B() 113 bi = new BigInteger(myByteArray); in test_Constructor$B() 114 assertTrue("Incorrect value for neg number", bi.equals(minusTwo)); in test_Constructor$B() 123 bi = new BigInteger(1, myByteArray); in test_ConstructorI$B() [all …]
|
/libcore/luni/src/main/java/java/math/ |
D | Multiplication.java | 92 BigInt bi = val.getBigInt().copy(); in multiplyByPositiveInt() local 93 bi.multiplyByPositiveInt(factor); in multiplyByPositiveInt() 94 return new BigInteger(bi); in multiplyByPositiveInt()
|
D | BigInt.java | 56 BigInt bi = new BigInt(); in newBigInt() local 57 bi.bignum = NativeBN.BN_new(); in newBigInt() 58 return bi; in newBigInt() 73 BigInt bi = new BigInt(); in copy() local 74 bi.putCopy(this); in copy() 75 return bi; in copy()
|
D | BigDecimal.java | 495 BigInt bi = new BigInt(); in BigDecimal() local 496 bi.putLongInt(mantissa); in BigDecimal() 497 bi.shift(-scale); in BigDecimal() 498 intVal = new BigInteger(bi); in BigDecimal() 767 … BigInt bi = Multiplication.multiplyByTenPow(augend.getUnscaledValue(),diffScale).getBigInt(); in addAndMult10() local 768 bi.add(thisValue.getUnscaledValue().getBigInt()); in addAndMult10() 769 return new BigDecimal(new BigInteger(bi), thisValue.scale); in addAndMult10()
|
D | BigInteger.java | 1158 private static void parseFromString(BigInteger bi, String value, int radix) { in parseFromString() argument 1203 bi.setJavaRepresentation(sign, numberLength, digits); in parseFromString()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | BreakIteratorTest.java | 271 BreakIterator bi = BreakIterator.getWordInstance(Locale.US); in test_next() local 272 bi.setText("This is the test, WordInstance"); in test_next() 273 int n = bi.first(); in test_next() 274 n = bi.next(); in test_next()
|
D | BidiTest.java | 957 Bidi bi = new Bidi(defText, 0); in testGetRuns() local 958 final int count = bi.getRunCount(); in testGetRuns() 960 assertEquals(expectedRuns[i][0], bi.getRunStart(i)); in testGetRuns() 961 assertEquals(expectedRuns[i][1], bi.getRunLimit(i)); in testGetRuns()
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/ |
D | TestUtils.java | 781 ByteArrayInputStream bi = new ByteArrayInputStream(rootCert.getBytes()); 782 rootCertificateSS = (X509Certificate) cf.generateCertificate(bi); 783 bi = new ByteArrayInputStream(endCert.getBytes()); 784 endCertificate = (X509Certificate) cf.generateCertificate(bi);
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ConcurrentHashMapTest.java | 107 BI bi = new BI(i); in testGenericComparable() local 109 LexicographicList<BI> bis = new LexicographicList<BI>(bi); in testGenericComparable()
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | X509CertSelectorTest.java | 1936 ByteArrayInputStream bi = new ByteArrayInputStream(TestUtils.rootCert.getBytes()); in setupEnvironment() local 1937 rootCertificate = (X509Certificate) cf.generateCertificate(bi); in setupEnvironment() 1938 bi = new ByteArrayInputStream(TestUtils.endCert.getBytes()); in setupEnvironment() 1939 endCertificate = (X509Certificate) cf.generateCertificate(bi); in setupEnvironment()
|