/libcore/ojluni/src/main/java/java/nio/ |
D | Bits.java | 68 static char getCharL(ByteBuffer bb, int bi) { in getCharL() argument 69 return makeChar(bb._get(bi + 1), in getCharL() 70 bb._get(bi )); in getCharL() 78 static char getCharB(ByteBuffer bb, int bi) { in getCharB() argument 79 return makeChar(bb._get(bi ), in getCharB() 80 bb._get(bi + 1)); in getCharB() 88 static char getChar(ByteBuffer bb, int bi, boolean bigEndian) { in getChar() argument 89 return bigEndian ? getCharB(bb, bi) : getCharL(bb, bi); in getChar() 99 static void putCharL(ByteBuffer bb, int bi, char x) { in putCharL() argument 100 bb._put(bi , char0(x)); in putCharL() [all …]
|
/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 | BigInt.java | 53 BigInt bi = new BigInt(); in newBigInt() local 54 bi.bignum = NativeBN.BN_new(); in newBigInt() 55 registry.registerNativeAllocation(bi, bi.bignum); in newBigInt() 56 return bi; in newBigInt() 71 BigInt bi = new BigInt(); in copy() local 72 bi.putCopy(this); in copy() 73 return bi; in copy()
|
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 | 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 | 1180 private static void parseFromString(BigInteger bi, String value, int radix) { in parseFromString() argument 1225 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 | 778 ByteArrayInputStream bi = new ByteArrayInputStream(rootCert.getBytes()); 779 rootCertificateSS = (X509Certificate) cf.generateCertificate(bi); 780 bi = new ByteArrayInputStream(endCert.getBytes()); 781 endCertificate = (X509Certificate) cf.generateCertificate(bi);
|
/libcore/ojluni/src/main/java/java/text/ |
D | FieldPosition.java | 193 public void setBeginIndex(int bi) { in setBeginIndex() argument 194 beginIndex = bi; in setBeginIndex()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ConcurrentHashMapTest.java | 144 BI bi = new BI(i); in testGenericComparable() local 146 LexicographicList<BI> bis = new LexicographicList<BI>(bi); in testGenericComparable()
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | X509CertSelectorTest.java | 1958 ByteArrayInputStream bi = new ByteArrayInputStream(TestUtils.rootCert.getBytes()); in setupEnvironment() local 1959 rootCertificate = (X509Certificate) cf.generateCertificate(bi); in setupEnvironment() 1960 bi = new ByteArrayInputStream(TestUtils.endCert.getBytes()); in setupEnvironment() 1961 endCertificate = (X509Certificate) cf.generateCertificate(bi); in setupEnvironment()
|