/libcore/benchmarks/src/benchmarks/regression/ |
H A D | EqualsHashCodeBenchmark.java | 45 Object b1; field in class:EqualsHashCodeBenchmark 54 b1 = type.newInstance("http://developer.android.com/reference/java/net/URI.html"); 64 a1.equals(b1); 66 b1.equals(b2); 73 b1.hashCode();
|
/libcore/luni/src/main/java/javax/net/ssl/ |
H A D | DistinguishedNameParser.java | 321 int b1, b2; 323 b1 = chars[position]; 324 if (b1 >= '0' && b1 <= '9') { 325 b1 = b1 - '0'; 326 } else if (b1 >= 'a' && b1 <= 'f') { 327 b1 = b1 [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
H A D | DNParser.java | 355 int b1 = chars[position]; 356 if (b1 >= '0' && b1 <= '9') { 357 b1 = b1 - '0'; 358 } else if (b1 >= 'a' && b1 <= 'f') { 359 b1 = b1 - 87; // 87 = 'a' - 10 360 } else if (b1 > [all...] |
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
H A D | CipherTest.java | 426 byte[] b1 = new byte[30]; 431 c.update(b, 0, 10, b1, 5); 447 int len = c.doFinal(b, 0, 16, b1, 0); 454 c.update(b1, 0, 24, b, 0); 487 byte[] b1 = new byte[6]; 491 c.update(b, 0, 10, b1, 5); 498 c.update(b, 0, 10, b1, 5); 503 b1 = new byte[30]; 504 c.update(b, 0, 10, b1, 5); 512 byte[] b1 [all...] |
/libcore/luni/src/test/java/tests/support/ |
H A D | Support_SQL.java | 91 public static boolean isEqual(byte[] b1, int off1, byte[] b2, int off2, argument 94 if (b1[i + off1] != b2[i + off2])
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
H A D | MessageDigest1Test.java | 200 byte[] b1 = { 1, 2, 3, 4 }; 205 assertTrue(MessageDigest.isEqual(b1, b4)); 206 assertFalse(MessageDigest.isEqual(b1, b2)); 207 assertFalse(MessageDigest.isEqual(b1, b3));
|
/libcore/luni/src/test/java/libcore/java/nio/ |
H A D | BufferTest.java | 903 ByteBuffer b1 = ByteBuffer.allocateDirect(1); 904 ByteBuffer b2 = b1.duplicate(); 905 NioUtils.freeDirectBuffer(b1); 906 for (ByteBuffer b: new ByteBuffer[] { b1, b2 }) { 926 ByteBuffer b1 = ByteBuffer.allocate(1); 927 ByteBuffer b2 = b1.duplicate(); 928 for (ByteBuffer b: new ByteBuffer[] { b1, b2 }) { 940 b1 = ByteBuffer.allocateDirect(8); 941 b2 = b1.duplicate(); 942 b1 [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
H A D | ByteTest.java | 495 Byte b1 = new Byte((byte) 90); 498 assertTrue("Equality test failed", b1.equals(b2)); 499 assertTrue("Equality test failed", !b1.equals(b3));
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | ArrayBlockingQueueTest.java | 643 Integer[] b1 = size == 0 ? null : (Integer[]) q.toArray(a1); 651 assertSame(b1[i], x); 652 assertEquals(b1[0] + i, (int) x); 659 assertNotSame(a1, b1); 660 assertEquals(size, b1.length);
|
H A D | ArrayDequeTest.java | 675 Integer[] b1 = size == 0 ? null : (Integer[]) q.toArray(a1); 683 assertSame(b1[i], x); 684 assertEquals(b1[0] + i, (int) x); 691 assertNotSame(a1, b1); 692 assertEquals(size, b1.length);
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/ |
H A D | ObjectInputStreamTest.java | 108 B1 b1 = new B1(); field in class:ObjectInputStreamTest.A1 110 B1 b2 = b1; 426 assertEquals(5, ((A1) deserialized).b1.i);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | ArraysTest.java | 2303 int[] b1 = { 1, 2, 3 }; 2308 Object b[] = { b1, b2, b3 }; 2326 int[] b1 = { 1, 2, 3 }; 2331 Object b[] = { b1, b2, b3 };
|