Home
last modified time | relevance | path

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

/libcore/benchmarks/src/benchmarks/regression/
DEqualsHashCodeBenchmark.java46 Object b2; field in EqualsHashCodeBenchmark
56 b2 = type.newInstance("http://developer.android.com/reference/java/net/URI.html"); in setUp()
67 b1.equals(b2); in timeEquals()
/libcore/luni/src/test/java/tests/support/
DSupport_SQL.java91 public static boolean isEqual(byte[] b1, int off1, byte[] b2, int off2, in isEqual() argument
94 if (b1[i + off1] != b2[i + off2]) in isEqual()
/libcore/ojluni/src/main/java/sun/security/pkcs/
DPKCS8Key.java421 byte[] b2 = ((Key)object).getEncoded(); in equals()
425 if (b1.length != b2.length) in equals()
428 if (b1[i] != b2[i]) { in equals()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DMessageDigest1Test.java201 byte[] b2 = { 1, 2, 3, 4, 5 }; in test_isEqualLB$LB$()
206 assertFalse(MessageDigest.isEqual(b1, b2)); in test_isEqualLB$LB$()
/libcore/ojluni/src/main/java/java/io/
DObjectInputStream.java3243 int b1, b2, b3; in readUTFSpan() local
3259 b2 = buf[pos++]; in readUTFSpan()
3260 if ((b2 & 0xC0) != 0x80) { in readUTFSpan()
3264 ((b2 & 0x3F) << 0)); in readUTFSpan()
3269 b2 = buf[pos + 0]; in readUTFSpan()
3271 if ((b2 & 0xC0) != 0x80 || (b3 & 0xC0) != 0x80) { in readUTFSpan()
3275 ((b2 & 0x3F) << 6) | in readUTFSpan()
3311 int b1, b2, b3; in readUTFChar() local
3330 b2 = readByte(); in readUTFChar()
3331 if ((b2 & 0xC0) != 0x80) { in readUTFChar()
[all …]
/libcore/ojluni/src/main/java/java/util/
DBase64.java755 private int b0, b1, b2; field in Base64.EncOutputStream
807 b2 = b[off++] & 0xff; in write()
812 out.write(base64[(b1 << 2) & 0x3f | (b2 >> 6)]); in write()
813 out.write(base64[b2 & 0x3f]); in write()
/libcore/ojluni/src/main/java/java/nio/
DBits.java208 static private int makeInt(byte b3, byte b2, byte b1, byte b0) { in makeInt() argument
210 ((b2 & 0xff) << 16) | in makeInt()
302 byte b3, byte b2, byte b1, byte b0) in makeLong() argument
309 (((long)b2 & 0xff) << 16) | in makeLong()
/libcore/luni/src/test/java/libcore/java/nio/
DBufferTest.java901 ByteBuffer b2 = b1.duplicate(); in testFreed() local
903 for (ByteBuffer b: new ByteBuffer[] { b1, b2 }) { in testFreed()
924 ByteBuffer b2 = b1.duplicate(); in testAccess() local
925 for (ByteBuffer b: new ByteBuffer[] { b1, b2 }) { in testAccess()
938 b2 = b1.duplicate(); in testAccess()
941 for (ByteBuffer b: new ByteBuffer[] { b1, b2, b3 }) { in testAccess()
981 b2.setAccessible(true); in testAccess()
982 for (ByteBuffer b: new ByteBuffer[] { b1, b2, b3 }) { in testAccess()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DByteTest.java496 Byte b2 = new Byte((byte) 90);
498 assertTrue("Equality test failed", b1.equals(b2));
/libcore/jsr166-tests/src/test/java/jsr166/
DArrayDequeTest.java674 Integer[] b2 = (Integer[]) q.toArray(a2); in checkToArray2() local
676 assertSame(a2, b2); in checkToArray2()
683 assertSame(b2[i], x); in checkToArray2()
DArrayBlockingQueueTest.java644 Integer[] b2 = (Integer[]) q.toArray(a2); in checkToArray2() local
646 assertSame(a2, b2); in checkToArray2()
653 assertSame(b2[i], x); in checkToArray2()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DArraysTest.java2315 short[] b2 = { 0, 1 }; in test_deepEquals$Ljava_lang_ObjectLjava_lang_Object() local
2316 Object[] b3 = { new Integer(1), b2 }; in test_deepEquals$Ljava_lang_ObjectLjava_lang_Object()
2319 Object b[] = { b1, b2, b3 }; in test_deepEquals$Ljava_lang_ObjectLjava_lang_Object()
2338 short[] b2 = { 0, 1 }; in test_deepHashCode$Ljava_lang_Object() local
2339 Object[] b3 = { new Integer(1), b2 }; in test_deepHashCode$Ljava_lang_Object()
2342 Object b[] = { b1, b2, b3 }; in test_deepHashCode$Ljava_lang_Object()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/
DObjectInputStreamTest.java110 B1 b2 = b1; field in ObjectInputStreamTest.A1