Home
last modified time | relevance | path

Searched refs:bi (Results 1 – 17 of 17) sorted by relevance

/libcore/ojluni/src/main/java/java/nio/
DBits.java69 static char getCharL(ByteBuffer bb, int bi) { in getCharL() argument
70 return makeChar(bb._get(bi + 1), in getCharL()
71 bb._get(bi)); in getCharL()
79 static char getCharB(ByteBuffer bb, int bi) { in getCharB() argument
80 return makeChar(bb._get(bi), in getCharB()
81 bb._get(bi + 1)); in getCharB()
89 static char getChar(ByteBuffer bb, int bi, boolean bigEndian) { in getChar() argument
90 return bigEndian ? getCharB(bb, bi) : getCharL(bb, bi); in getChar()
105 static void putCharL(ByteBuffer bb, int bi, char x) { in putCharL() argument
106 bb._put(bi, char0(x)); in putCharL()
[all …]
/libcore/luni/src/test/java/libcore/java/math/
DOldBigIntegerToStringTest.java32 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 …]
DOldBigDecimalConstructorsTest.java49 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/
DOldBigIntegerTest.java33 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 …]
DBigIntegerTest.java50 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/ojluni/src/main/java/sun/security/ec/
DNamedCurve.java114 private static BigInteger bi(String s) { in bi() method in NamedCurve
122 BigInteger p = bi(sfield); in add()
132 EllipticCurve curve = new EllipticCurve(field, bi(a), bi(b)); in add()
133 ECPoint g = new ECPoint(bi(x), bi(y)); in add()
137 NamedCurve params = new NamedCurve(name, oid, curve, g, bi(n), h); in add()
/libcore/luni/src/main/java/java/math/
DBigInt.java51 BigInt bi = new BigInt(); in newBigInt() local
52 bi.bignum = NativeBN.BN_new(); in newBigInt()
53 registry.registerNativeAllocation(bi, bi.bignum); in newBigInt()
54 return bi; in newBigInt()
69 BigInt bi = new BigInt(); in copy() local
70 bi.putCopy(this); in copy()
71 return bi; in copy()
DMultiplication.java92 BigInt bi = val.getBigInt().copy(); in multiplyByPositiveInt() local
93 bi.multiplyByPositiveInt(factor); in multiplyByPositiveInt()
94 return new BigInteger(bi); in multiplyByPositiveInt()
DBigDecimal.java495 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()
DBigInteger.java1158 private static void parseFromString(BigInteger bi, String value, int radix) { in parseFromString() argument
1203 bi.setJavaRepresentation(sign, numberLength, digits); in parseFromString()
/libcore/ojluni/src/main/java/java/text/
DFieldPosition.java184 public void setBeginIndex(int bi) { in setBeginIndex() argument
185 beginIndex = bi; in setBeginIndex()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/
DTestUtils.java781 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DBreakIteratorTest.java271 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()
DBidiTest.java957 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/jsr166-tests/src/test/java/jsr166/
DConcurrentHashMapTest.java144 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/
DX509CertSelectorTest.java1956 ByteArrayInputStream bi = new ByteArrayInputStream(TestUtils.rootCert.getBytes()); in setupEnvironment() local
1957 rootCertificate = (X509Certificate) cf.generateCertificate(bi); in setupEnvironment()
1958 bi = new ByteArrayInputStream(TestUtils.endCert.getBytes()); in setupEnvironment()
1959 endCertificate = (X509Certificate) cf.generateCertificate(bi); in setupEnvironment()
/libcore/ojluni/src/main/java/sun/security/ssl/
DHandshakeMessage.java101 static byte[] toByteArray(BigInteger bi) { in toByteArray() argument
102 byte[] b = bi.toByteArray(); in toByteArray()