/libcore/benchmarks/src/benchmarks/regression/ |
H A D | EqualsHashCodeBenchmark.java | 45 Object b1; field in class:EqualsHashCodeBenchmark 55 b1 = type.newInstance("http://developer.android.com/reference/java/net/URI.html"); 65 a1.equals(b1); 67 b1.equals(b2); 74 b1.hashCode();
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | ChannelInputStream.java | 80 private byte[] b1 = null; field in class:ChannelInputStream 87 if (b1 == null) 88 b1 = new byte[1]; 89 int n = this.read(b1); 91 return b1[0] & 0xff;
|
/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/ojluni/src/main/java/sun/security/pkcs/ |
H A D | PKCS8Key.java | 424 byte[] b1; 426 b1 = encodedKey; 428 b1 = getEncoded(); 436 if (b1.length != b2.length) 438 for (i = 0; i < b1.length; i++) { 439 if (b1[i] != b2[i]) { 455 byte[] b1 = getEncoded(); 457 for (int i = 1; i < b1.length; i++) { 458 retval += b1[i] * i;
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
H A D | Channels.java | 150 private byte[] b1 = null; 153 if (b1 == null) 154 b1 = new byte[1]; 155 b1[0] = (byte)b; 156 this.write(b1);
|
/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/ojluni/src/main/java/sun/security/x509/ |
H A D | X509Key.java | 455 byte[] b1 = getEncodedInternal(); 456 int r = b1.length; 457 for (int i = 0; i < b1.length; i++) { 458 r += (b1[i] & 0xff) * 37;
|
/libcore/ojluni/src/main/java/java/nio/ |
H A D | Bits.java | 65 static private char makeChar(byte b1, byte b0) { argument 66 return (char) ((b1 << 8) | (b0 & 0xff)); 142 static private short makeShort(byte b1, byte b0) { argument 143 return (short) ((b1 << 8) | (b0 & 0xff)); 219 static private int makeInt(byte b3, byte b2, byte b1, byte b0) { argument 222 ((b1 & 0xff) << 8) | 324 byte b3, byte b2, byte b1, byte b0) { 331 (((long) b1 & 0xff) << 8) | 323 makeLong(byte b7, byte b6, byte b5, byte b4, byte b3, byte b2, byte b1, byte b0) argument
|
/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/ojluni/src/main/java/java/io/ |
H A D | ObjectInputStream.java | 3095 int b1, b2, b3; 3096 b1 = buf[pos++] & 0xFF; 3097 switch (b1 >> 4) { 3106 cbuf[cpos++] = (char) b1; 3115 cbuf[cpos++] = (char) (((b1 & 0x1F) << 6) | 3126 cbuf[cpos++] = (char) (((b1 & 0x0F) << 12) | 3163 int b1, b2, b3; 3164 b1 = readByte() & 0xFF; 3165 switch (b1 >> 4) { 3174 sbuf.append((char) b1); [all...] |
/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 | 673 Integer[] b1 = (size == 0) ? null : (Integer[]) q.toArray(a1); 681 assertSame(b1[i], x); 682 assertEquals(b1[0] + i, (int) x); 689 assertNotSame(a1, b1); 690 assertEquals(size, b1.length);
|
/libcore/luni/src/test/java/libcore/java/nio/ |
H A D | BufferTest.java | 954 ByteBuffer b1 = ByteBuffer.allocateDirect(1); 955 ByteBuffer b2 = b1.duplicate(); 956 NioUtils.freeDirectBuffer(b1); 957 for (ByteBuffer b: new ByteBuffer[] { b1, b2 }) { 978 ByteBuffer b1 = ByteBuffer.allocate(1); 979 ByteBuffer b2 = b1.duplicate(); 980 for (ByteBuffer b: new ByteBuffer[] { b1, b2 }) { 992 b1 = ByteBuffer.allocateDirect(8); 993 b2 = b1.duplicate(); 994 b1 [all...] |
/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; 423 assertEquals(5, ((A1) deserialized).b1.i);
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/http/ |
H A D | HttpURLConnection.java | 1329 boolean b1 = responses.filterNTLMResponses("WWW-Authenticate"); 1331 if (b1 || b2) {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | ArraysTest.java | 2314 int[] b1 = { 1, 2, 3 }; 2319 Object b[] = { b1, b2, b3 }; 2337 int[] b1 = { 1, 2, 3 }; 2342 Object b[] = { b1, b2, b3 };
|