Searched defs:bi (Results 1 - 6 of 6) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
H A DOldBigIntegerTest.java33 BigInteger bi; field in class:OldBigIntegerTest
50 bi = new BigInteger(70, rand);
52 assertTrue("Random number is negative", bi.compareTo(BigInteger.ZERO) >= 0);
53 assertTrue("Random number is too big", bi.compareTo(two.pow(70)) < 0);
56 !bi.equals(bi2));
80 BigInteger bi;
85 bi = new BigInteger(i, c, rand); // Create BigInteger
86 assertEquals(i, bi.bitLength());
117 // fail("isProbablePrime failed for: " + bi);
125 bi
[all...]
H A DBigIntegerTest.java50 BigInteger bi; field in class:BigIntegerTest
92 bi = new BigInteger(70, rand);
94 assertTrue("Random number is negative", bi.compareTo(zero) >= 0);
96 bi.compareTo(twoToTheSeventy) < 0);
99 !bi.equals(bi2));
109 bi = new BigInteger(myByteArray);
110 assertTrue("Incorrect value for pos number", bi.equals(BigInteger.ZERO
113 bi = new BigInteger(myByteArray);
114 assertTrue("Incorrect value for neg number", bi.equals(minusTwo));
123 bi
[all...]
/libcore/ojluni/src/main/java/java/text/
H A DFieldPosition.java184 public void setBeginIndex(int bi) { argument
185 beginIndex = bi;
/libcore/ojluni/src/main/java/sun/security/ec/
H A DNamedCurve.java114 private static BigInteger bi(String s) { method in class:NamedCurve
122 BigInteger p = bi(sfield);
132 EllipticCurve curve = new EllipticCurve(field, bi(a), bi(b));
133 ECPoint g = new ECPoint(bi(x), bi(y));
137 NamedCurve params = new NamedCurve(name, oid, curve, g, bi(n), h);
/libcore/luni/src/main/java/java/math/
H A DBigInteger.java1158 private static void parseFromString(BigInteger bi, String value, int radix) { argument
1203 bi.setJavaRepresentation(sign, numberLength, digits);
/libcore/ojluni/src/main/java/java/nio/
H A DBits.java69 static char getCharL(ByteBuffer bb, int bi) { argument
70 return makeChar(bb._get(bi + 1),
71 bb._get(bi));
79 static char getCharB(ByteBuffer bb, int bi) { argument
80 return makeChar(bb._get(bi),
81 bb._get(bi + 1));
89 static char getChar(ByteBuffer bb, int bi, boolean bigEndian) { argument
90 return bigEndian ? getCharB(bb, bi) : getCharL(bb, bi);
105 static void putCharL(ByteBuffer bb, int bi, cha argument
115 putCharB(ByteBuffer bb, int bi, char x) argument
125 putChar(ByteBuffer bb, int bi, char x, boolean bigEndian) argument
146 getShortL(ByteBuffer bb, int bi) argument
156 getShortB(ByteBuffer bb, int bi) argument
166 getShort(ByteBuffer bb, int bi, boolean bigEndian) argument
182 putShortL(ByteBuffer bb, int bi, short x) argument
192 putShortB(ByteBuffer bb, int bi, short x) argument
202 putShort(ByteBuffer bb, int bi, short x, boolean bigEndian) argument
226 getIntL(ByteBuffer bb, int bi) argument
240 getIntB(ByteBuffer bb, int bi) argument
254 getInt(ByteBuffer bb, int bi, boolean bigEndian) argument
278 putIntL(ByteBuffer bb, int bi, int x) argument
292 putIntB(ByteBuffer bb, int bi, int x) argument
306 putInt(ByteBuffer bb, int bi, int x, boolean bigEndian) argument
335 getLongL(ByteBuffer bb, int bi) argument
357 getLongB(ByteBuffer bb, int bi) argument
379 getLong(ByteBuffer bb, int bi, boolean bigEndian) argument
419 putLongL(ByteBuffer bb, int bi, long x) argument
441 putLongB(ByteBuffer bb, int bi, long x) argument
463 putLong(ByteBuffer bb, int bi, long x, boolean bigEndian) argument
480 getFloatL(ByteBuffer bb, int bi) argument
488 getFloatB(ByteBuffer bb, int bi) argument
496 getFloat(ByteBuffer bb, int bi, boolean bigEndian) argument
504 putFloatL(ByteBuffer bb, int bi, float x) argument
512 putFloatB(ByteBuffer bb, int bi, float x) argument
520 putFloat(ByteBuffer bb, int bi, float x, boolean bigEndian) argument
537 getDoubleL(ByteBuffer bb, int bi) argument
545 getDoubleB(ByteBuffer bb, int bi) argument
553 getDouble(ByteBuffer bb, int bi, boolean bigEndian) argument
561 putDoubleL(ByteBuffer bb, int bi, double x) argument
569 putDoubleB(ByteBuffer bb, int bi, double x) argument
577 putDouble(ByteBuffer bb, int bi, double x, boolean bigEndian) argument
[all...]

Completed in 759 milliseconds