Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/nio/
DBits.java68 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/
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
87 bi = new BigInteger(70, rand); in test_ConstructorILjava_util_Random()
89 assertTrue("Random number is negative", bi.compareTo(zero) >= 0); in test_ConstructorILjava_util_Random()
91 bi.compareTo(twoToTheSeventy) < 0); in test_ConstructorILjava_util_Random()
94 !bi.equals(bi2)); in test_ConstructorILjava_util_Random()
104 bi = new BigInteger(myByteArray); in test_Constructor$B()
105 assertTrue("Incorrect value for pos number", bi.equals(BigInteger.ZERO in test_Constructor$B()
108 bi = new BigInteger(myByteArray); in test_Constructor$B()
109 assertTrue("Incorrect value for neg number", bi.equals(minusTwo)); in test_Constructor$B()
118 bi = new BigInteger(1, myByteArray); in test_ConstructorI$B()
[all …]
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/
DTestUtils.java778 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/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/ojluni/src/main/java/java/text/
DFieldPosition.java193 public void setBeginIndex(int bi) { in setBeginIndex() argument
194 beginIndex = bi; in setBeginIndex()
/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/ojluni/src/test/java/util/concurrent/tck/
DConcurrentHashMapTest.java169 BI bi = new BI(i); in testGenericComparable() local
171 LexicographicList<BI> bis = new LexicographicList<BI>(bi); in testGenericComparable()
/libcore/luni/src/test/java/tests/security/cert/
DX509CertSelectorTest.java1958 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()
/libcore/ojluni/src/main/java/java/math/
DBigInteger.java4674 static void putSign(BigInteger bi, int sign) {
4675 unsafe.putIntVolatile(bi, signumOffset, sign);
4678 static void putMag(BigInteger bi, int[] magnitude) {
4679 unsafe.putObjectVolatile(bi, magOffset, magnitude);