Home
last modified time | relevance | path

Searched refs:i2 (Results 1 – 8 of 8) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DBigIntegerTest.java753 BigInteger i1 = element[0], i2 = element[1]; in test_andLjava_math_BigInteger() local
754 BigInteger res = i1.and(i2); in test_andLjava_math_BigInteger()
755 assertTrue("symmetry of and", res.equals(i2.and(i1))); in test_andLjava_math_BigInteger()
756 int len = Math.max(i1.bitLength(), i2.bitLength()) + 66; in test_andLjava_math_BigInteger()
758 assertTrue("and", (i1.testBit(i) && i2.testBit(i)) == res in test_andLjava_math_BigInteger()
769 BigInteger i1 = element[0], i2 = element[1]; in test_orLjava_math_BigInteger() local
770 BigInteger res = i1.or(i2); in test_orLjava_math_BigInteger()
771 assertTrue("symmetry of or", res.equals(i2.or(i1))); in test_orLjava_math_BigInteger()
772 int len = Math.max(i1.bitLength(), i2.bitLength()) + 66; in test_orLjava_math_BigInteger()
774 assertTrue("or", (i1.testBit(i) || i2.testBit(i)) == res in test_orLjava_math_BigInteger()
[all …]
/libcore/luni/src/test/java/tests/java/security/
DIdentityTest.java72 Identity i2 = new IdentityStub("testEquals", IdentityScope.getSystemScope()); in testEquals() local
73 assertEquals(i1.identityEquals(i2), i1.equals(i2)); in testEquals()
234 Identity i2 = identityScope.getIdentity(name); in testIdentityEquals() local
235 i2.setPublicKey(pk); in testIdentityEquals()
236 assertTrue(i.identityEquals(i2)); in testIdentityEquals()
258 Identity i2 = new IdentityStub("testGetScope2", s); in testGetScope() local
259 assertSame(s, i2.getScope()); in testGetScope()
268 Identity i2 = new IdentityStub("testSetPublicKey2_2", IdentityScope.getSystemScope()); in testSetPublicKey2() local
271 i2.setPublicKey(null); in testSetPublicKey2()
/libcore/ojluni/src/main/java/java/lang/
DLong.java457 int i2 = (int)i; in getChars() local
458 while (i2 >= 65536) { in getChars()
459 q2 = i2 / 100; in getChars()
461 r = i2 - ((q2 << 6) + (q2 << 5) + (q2 << 2)); in getChars()
462 i2 = q2; in getChars()
470 q2 = (i2 * 52429) >>> (16+3); in getChars()
471 r = i2 - ((q2 << 3) + (q2 << 1)); // r = i2-(q2*10) ... in getChars()
473 i2 = q2; in getChars()
474 if (i2 == 0) break; in getChars()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DLinkedListTest.java432 ListIterator i2 = ll.listIterator(0); in test_listIteratorI() local
435 while (i2.hasNext()) { in test_listIteratorI()
438 assertTrue("First element claimed to have a previous", !i2 in test_listIteratorI()
441 assertTrue("Last element claimed to have next", !i2 in test_listIteratorI()
444 elm = i2.next(); in test_listIteratorI()
449 i2.nextIndex() == n + 1); in test_listIteratorI()
451 + i2.previousIndex() + ", n val: " + n, i2 in test_listIteratorI()
460 i2 = ll.listIterator(ll.size()/2); in test_listIteratorI()
461 assertTrue((Integer)i2.next() == ll.size()/2); in test_listIteratorI()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/
DOldSHA1PRNGSecureRandomTest.java163 int i2 = k % n1; in testNextBytesbyteArray02() local
166 assertTrue("non-equality: i1=" + i1 + " i2=" + i2 + " i3=" + i3 + " i4=" + i4, in testNextBytesbyteArray02()
167 bytes1[i1][i2] == bytes2[i3][i4]); in testNextBytesbyteArray02()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DIntegerTest.java217 Integer i2 = new Integer(1000); in test_equalsLjava_lang_Object2() local
219 assertTrue("Equality test failed", i1.equals(i2) && !(i1.equals(i3))); in test_equalsLjava_lang_Object2()
285 Integer i2 = new Integer(-1000); in test_hashCode2() local
287 && (i2.hashCode() == -1000)); in test_hashCode2()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKInstant.java1810 Instant i2 = Instant.ofEpochSecond(seconds2, nanos2);
1811 long amount = i1.until(i2, unit);
1818 Instant i2 = Instant.ofEpochSecond(seconds2, nanos2);
1819 long amount = i2.until(i1, unit);
1826 Instant i2 = Instant.ofEpochSecond(seconds2, nanos2);
1827 long amount = unit.between(i1, i2);
/libcore/ojluni/src/main/java/java/math/
DBigDecimal.java3404 int i2 = (int)intCompact;
3405 while (i2 >= 100) {
3406 q2 = i2 / 100;
3407 r = i2 - q2 * 100;
3408 i2 = q2;
3413 cmpCharArray[--charPos] = DIGIT_ONES[i2];
3414 if (i2 >= 10)
3415 cmpCharArray[--charPos] = DIGIT_TENS[i2];