Searched refs:i2 (Results 1 – 6 of 6) sorted by relevance
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | BigIntegerTest.java | 757 BigInteger i1 = element[0], i2 = element[1]; in test_andLjava_math_BigInteger() local 758 BigInteger res = i1.and(i2); in test_andLjava_math_BigInteger() 759 assertTrue("symmetry of and", res.equals(i2.and(i1))); in test_andLjava_math_BigInteger() 760 int len = Math.max(i1.bitLength(), i2.bitLength()) + 66; in test_andLjava_math_BigInteger() 762 assertTrue("and", (i1.testBit(i) && i2.testBit(i)) == res in test_andLjava_math_BigInteger() 773 BigInteger i1 = element[0], i2 = element[1]; in test_orLjava_math_BigInteger() local 774 BigInteger res = i1.or(i2); in test_orLjava_math_BigInteger() 775 assertTrue("symmetry of or", res.equals(i2.or(i1))); in test_orLjava_math_BigInteger() 776 int len = Math.max(i1.bitLength(), i2.bitLength()) + 66; in test_orLjava_math_BigInteger() 778 assertTrue("or", (i1.testBit(i) || i2.testBit(i)) == res in test_orLjava_math_BigInteger() [all …]
|
/libcore/luni/src/test/java/tests/java/security/ |
D | IdentityTest.java | 72 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/ |
D | Long.java | 306 int i2 = (int)i; in getChars() local 307 while (i2 >= 65536) { in getChars() 308 q2 = i2 / 100; in getChars() 310 r = i2 - ((q2 << 6) + (q2 << 5) + (q2 << 2)); in getChars() 311 i2 = q2; in getChars() 319 q2 = (i2 * 52429) >>> (16+3); in getChars() 320 r = i2 - ((q2 << 3) + (q2 << 1)); // r = i2-(q2*10) ... in getChars() 322 i2 = q2; in getChars() 323 if (i2 == 0) break; in getChars()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | LinkedListTest.java | 432 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/ |
D | OldSHA1PRNGSecureRandomTest.java | 163 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/ |
D | IntegerTest.java | 217 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()
|