Home
last modified time | relevance | path

Searched refs:b1 (Results 1 – 15 of 15) sorted by relevance

/libcore/ojluni/src/main/java/java/nio/channels/
DChannels.java150 private byte[] b1 = null; in newOutputStream()
153 if (b1 == null) in newOutputStream()
154 b1 = new byte[1]; in newOutputStream()
155 b1[0] = (byte)b; in newOutputStream()
156 this.write(b1); in newOutputStream()
206 private byte[] b1 = null; in newInputStream()
210 if (b1 == null) in newInputStream()
211 b1 = new byte[1]; in newInputStream()
212 int n = this.read(b1); in newInputStream()
214 return b1[0] & 0xff; in newInputStream()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DEqualsHashCodeBenchmark.java45 Object b1; field in EqualsHashCodeBenchmark
55 b1 = type.newInstance("http://developer.android.com/reference/java/net/URI.html"); in setUp()
65 a1.equals(b1); in timeEquals()
67 b1.equals(b2); in timeEquals()
74 b1.hashCode(); in timeHashCode()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DCipherTest.java426 byte[] b1 = new byte[30]; in test_doFinal()
431 c.update(b, 0, 10, b1, 5); in test_doFinal()
447 int len = c.doFinal(b, 0, 16, b1, 0); in test_doFinal()
454 c.update(b1, 0, 24, b, 0); in test_doFinal()
487 byte[] b1 = new byte[6]; in testUpdatebyteArrayintintbyteArrayint()
491 c.update(b, 0, 10, b1, 5); in testUpdatebyteArrayintintbyteArrayint()
498 c.update(b, 0, 10, b1, 5); in testUpdatebyteArrayintintbyteArrayint()
503 b1 = new byte[30]; in testUpdatebyteArrayintintbyteArrayint()
504 c.update(b, 0, 10, b1, 5); in testUpdatebyteArrayintintbyteArrayint()
512 byte[] b1 = new byte[30]; in testDoFinalbyteArrayintintbyteArrayint()
[all …]
/libcore/ojluni/src/main/java/sun/nio/ch/
DChannelInputStream.java73 private byte[] b1 = null; field in ChannelInputStream
80 if (b1 == null) in read()
81 b1 = new byte[1]; in read()
82 int n = this.read(b1); in read()
84 return b1[0] & 0xff; in read()
/libcore/ojluni/src/main/java/sun/security/pkcs/
DPKCS8Key.java413 byte[] b1; in equals()
415 b1 = encodedKey; in equals()
417 b1 = getEncoded(); in equals()
425 if (b1.length != b2.length) in equals()
427 for (i = 0; i < b1.length; i++) { in equals()
428 if (b1[i] != b2[i]) { in equals()
444 byte[] b1 = getEncoded(); in hashCode()
446 for (int i = 1; i < b1.length; i++) { in hashCode()
447 retval += b1[i] * i; in hashCode()
/libcore/ojluni/src/main/java/java/util/
DBase64.java429 int b1 = src[sp++] & 0xff; in encode0() local
430 dst[dp++] = (byte)base64[(b0 << 4) & 0x3f | (b1 >> 4)]; in encode0()
431 dst[dp++] = (byte)base64[(b1 << 2) & 0x3f]; in encode0()
755 private int b0, b1, b2; field in Base64.EncOutputStream
800 b1 = b[off++] & 0xff; in write()
811 out.write(base64[(b0 << 4) & 0x3f | (b1 >> 4)]); in write()
812 out.write(base64[(b1 << 2) & 0x3f | (b2 >> 6)]); in write()
833 b1 = b[off++] & 0xff; in write()
852 out.write(base64[(b0 << 4) & 0x3f | (b1 >> 4)]); in close()
853 out.write(base64[(b1 << 2) & 0x3f]); in close()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DMessageDigest1Test.java200 byte[] b1 = { 1, 2, 3, 4 }; in test_isEqualLB$LB$()
205 assertTrue(MessageDigest.isEqual(b1, b4)); in test_isEqualLB$LB$()
206 assertFalse(MessageDigest.isEqual(b1, b2)); in test_isEqualLB$LB$()
207 assertFalse(MessageDigest.isEqual(b1, b3)); in test_isEqualLB$LB$()
/libcore/ojluni/src/main/java/sun/security/x509/
DX509Key.java455 byte[] b1 = getEncodedInternal(); in hashCode()
456 int r = b1.length; in hashCode()
457 for (int i = 0; i < b1.length; i++) { in hashCode()
458 r += (b1[i] & 0xff) * 37; in hashCode()
/libcore/ojluni/src/main/java/java/nio/
DBits.java64 static private char makeChar(byte b1, byte b0) { in makeChar() argument
65 return (char)((b1 << 8) | (b0 & 0xff)); in makeChar()
136 static private short makeShort(byte b1, byte b0) { in makeShort() argument
137 return (short)((b1 << 8) | (b0 & 0xff)); in makeShort()
208 static private int makeInt(byte b3, byte b2, byte b1, byte b0) { in makeInt() argument
211 ((b1 & 0xff) << 8) | in makeInt()
302 byte b3, byte b2, byte b1, byte b0) in makeLong() argument
310 (((long)b1 & 0xff) << 8) | in makeLong()
/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/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DByteTest.java495 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/
DArrayDequeTest.java673 Integer[] b1 = (size == 0) ? null : (Integer[]) q.toArray(a1); in checkToArray2() local
681 assertSame(b1[i], x); in checkToArray2()
682 assertEquals(b1[0] + i, (int) x); in checkToArray2()
689 assertNotSame(a1, b1); in checkToArray2()
690 assertEquals(size, b1.length); in checkToArray2()
DArrayBlockingQueueTest.java643 Integer[] b1 = (size == 0) ? null : (Integer[]) q.toArray(a1); in checkToArray2() local
651 assertSame(b1[i], x); in checkToArray2()
652 assertEquals(b1[0] + i, (int) x); in checkToArray2()
659 assertNotSame(a1, b1); in checkToArray2()
660 assertEquals(size, b1.length); in checkToArray2()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/
DObjectInputStreamTest.java108 B1 b1 = new B1(); field in ObjectInputStreamTest.A1
110 B1 b2 = b1;
423 assertEquals(5, ((A1) deserialized).b1.i); in test_readObjectMissingClasses()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DArraysTest.java2314 int[] b1 = { 1, 2, 3 }; in test_deepEquals$Ljava_lang_ObjectLjava_lang_Object() local
2319 Object b[] = { b1, b2, b3 }; in test_deepEquals$Ljava_lang_ObjectLjava_lang_Object()
2337 int[] b1 = { 1, 2, 3 }; in test_deepHashCode$Ljava_lang_Object() local
2342 Object b[] = { b1, b2, b3 }; in test_deepHashCode$Ljava_lang_Object()