Home
last modified time | relevance | path

Searched refs:i2 (Results 1 – 18 of 18) 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/ojluni/src/test/java/lang/invoke/
DClassValueTest.java116 for (int i2 = 0; i2 < CVN_COUNT2; i2++) { in testGetMany()
117 int n = i1*CVN_COUNT2 + i2; in testGetMany()
122 boolean doremove = (((i1 + i2) & 3) == 0); in testGetMany()
141 if (i1 > i2 && i1 < i2+5) continue eachClass; // leave diagonal gap in testGetMany()
DPermuteArgsReturnVoidTest.java45 static String consumeIdentity(String s, int i1, int i2) { in consumeIdentity() argument
49 static void consumeVoid(String s, int i1, int i2) { in consumeVoid() argument
DSpreadCollectTest.java206 static String forSpreading(String s1, int i1, int i2, int i3, String s2) { in forSpreading() argument
207 return s1 + i1 + i2 + i3 + s2; in forSpreading()
/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/
DClassValue.java671 for (int i2 = home1 + 1; i2 < home1 + PROBE_LIMIT; i2++) { in findReplacement()
672 Entry<?> e2 = cache[i2 & mask]; in findReplacement()
675 int dis2 = entryDislocation(cache, i2, e2); in findReplacement()
677 int home2 = i2 - dis2; in findReplacement()
683 replacementPos = i2; in findReplacement()
687 replacementPos = i2; in findReplacement()
736 for (int i2 = home2; i2 < home2 + PROBE_LIMIT; i2++) { in addToCache()
737 if (placeInCache(cache, i2 & mask, e2, true) == null) { in addToCache()
DLong.java542 int i2 = (int)i; in getChars() local
543 while (i2 <= -100) { in getChars()
544 q2 = i2 / 100; in getChars()
545 r = (q2 * 100) - i2; in getChars()
546 i2 = q2; in getChars()
552 q2 = i2 / 10; in getChars()
553 r = (q2 * 10) - i2; in getChars()
590 int i2 = (int)i; in getChars() local
591 while (i2 <= -100) { in getChars()
592 q2 = i2 / 100; in getChars()
[all …]
DStringUTF16.java1797 int i2 = (int)i;
1798 while (i2 <= -100) {
1799 q2 = i2 / 100;
1800 r = (q2 * 100) - i2;
1801 i2 = q2;
1807 q2 = i2 / 10;
1808 r = (q2 * 10) - i2;
/libcore/ojluni/src/test/java/text/BreakIterator/
DExceptionTest.java115 private static void check(int i1, int i2) { in check() argument
116 if (i1 != i2) { in check()
117 throw new RuntimeException(i1 + " != " + i2); in check()
/libcore/ojluni/src/test/java/util/Collections/
DReverseOrder2.java84 int i2 = Integer.parseInt(s2);
85 return (i1 < i2 ? Integer.MIN_VALUE : (i1 == i2 ? 0 : 1));
/libcore/ojluni/src/test/java/text/Collator/
DCollatorTest.java53 protected void assertEqual(CollationElementIterator i1, CollationElementIterator i2) { in assertEqual() argument
57 c2 = i2.next(); in assertEqual()
/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/ojluni/src/main/java/jdk/internal/misc/
DUnsafe.java4050 …private static long makeLong(byte i0, byte i1, byte i2, byte i3, byte i4, byte i5, byte i6, byte i… in makeLong() argument
4053 | (toUnsignedLong(i2) << pickPos(56, 16)) in makeLong()
4060 private static long makeLong(short i0, short i1, short i2, short i3) { in makeLong() argument
4063 | (toUnsignedLong(i2) << pickPos(48, 32)) in makeLong()
4074 private static int makeInt(byte i0, byte i1, byte i2, byte i3) { in makeInt() argument
4077 | (toUnsignedInt(i2) << pickPos(24, 16)) in makeInt()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/
DOldSHA1PRNGSecureRandomTest.java167 int i2 = k % n1; in testNextBytesbyteArray02() local
170 assertTrue("non-equality: i1=" + i1 + " i2=" + i2 + " i3=" + i3 + " i4=" + i4, in testNextBytesbyteArray02()
171 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.java1816 Instant i2 = Instant.ofEpochSecond(seconds2, nanos2);
1817 long amount = i1.until(i2, unit);
1824 Instant i2 = Instant.ofEpochSecond(seconds2, nanos2);
1825 long amount = i2.until(i1, unit);
1832 Instant i2 = Instant.ofEpochSecond(seconds2, nanos2);
1833 long amount = unit.between(i1, i2);
/libcore/ojluni/src/test/java/util/Random/
DRandomTestCoverage.java57 int i2 = rng.nextInt(10); in coverRandomGenerator() local
/libcore/ojluni/src/main/java/java/math/
DBigDecimal.java3935 int i2 = (int)intCompact;
3936 while (i2 >= 100) {
3937 q2 = i2 / 100;
3938 r = i2 - q2 * 100;
3939 i2 = q2;
3944 cmpCharArray[--charPos] = DIGIT_ONES[i2];
3945 if (i2 >= 10)
3946 cmpCharArray[--charPos] = DIGIT_TENS[i2];