/libcore/ojluni/src/main/java/java/nio/channels/ |
D | Channels.java | 150 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/ |
D | EqualsHashCodeBenchmark.java | 45 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/ |
D | CipherTest.java | 426 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/ |
D | ChannelInputStream.java | 79 private byte[] b1 = null; field in ChannelInputStream 86 if (b1 == null) in read() 87 b1 = new byte[1]; in read() 88 int n = this.read(b1); in read() 90 return b1[0] & 0xff; in read()
|
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
D | PKCS8Key.java | 413 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/ |
D | Base64.java | 429 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 797 b1 = b[off++] & 0xff; in write() 808 out.write(base64[(b0 << 4) & 0x3f | (b1 >> 4)]); in write() 809 out.write(base64[(b1 << 2) & 0x3f | (b2 >> 6)]); in write() 830 b1 = b[off++] & 0xff; in write() 849 out.write(base64[(b0 << 4) & 0x3f | (b1 >> 4)]); in close() 850 out.write(base64[(b1 << 2) & 0x3f]); in close()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | MessageDigest1Test.java | 200 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/ |
D | X509Key.java | 455 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/luni/src/test/java/tests/support/ |
D | Support_SQL.java | 91 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/java/nio/ |
D | Bits.java | 65 static private char makeChar(byte b1, byte b0) { in makeChar() argument 66 return (char) ((b1 << 8) | (b0 & 0xff)); in makeChar() 142 static private short makeShort(byte b1, byte b0) { in makeShort() argument 143 return (short) ((b1 << 8) | (b0 & 0xff)); in makeShort() 219 static private int makeInt(byte b3, byte b2, byte b1, byte b0) { in makeInt() argument 222 ((b1 & 0xff) << 8) | in makeInt() 324 byte b3, byte b2, byte b1, byte b0) { in makeLong() argument 331 (((long) b1 & 0xff) << 8) | in makeLong()
|
/libcore/luni/src/test/java/libcore/java/nio/ |
D | BufferTest.java | 954 ByteBuffer b1 = ByteBuffer.allocateDirect(1); in testFreed() local 955 ByteBuffer b2 = b1.duplicate(); in testFreed() 956 NioUtils.freeDirectBuffer(b1); in testFreed() 957 for (ByteBuffer b: new ByteBuffer[] { b1, b2 }) { in testFreed() 977 ByteBuffer b1 = ByteBuffer.allocate(1); in testAccess() local 978 ByteBuffer b2 = b1.duplicate(); in testAccess() 979 for (ByteBuffer b: new ByteBuffer[] { b1, b2 }) { in testAccess() 991 b1 = ByteBuffer.allocateDirect(8); in testAccess() 992 b2 = b1.duplicate(); in testAccess() 993 b1.setAccessible(false); in testAccess() [all …]
|
/libcore/ojluni/src/main/java/java/io/ |
D | ObjectInputStream.java | 3107 int b1, b2, b3; in readUTFSpan() local 3108 b1 = buf[pos++] & 0xFF; in readUTFSpan() 3109 switch (b1 >> 4) { in readUTFSpan() 3118 cbuf[cpos++] = (char) b1; in readUTFSpan() 3127 cbuf[cpos++] = (char) (((b1 & 0x1F) << 6) | in readUTFSpan() 3138 cbuf[cpos++] = (char) (((b1 & 0x0F) << 12) | in readUTFSpan() 3175 int b1, b2, b3; in readUTFChar() local 3176 b1 = readByte() & 0xFF; in readUTFChar() 3177 switch (b1 >> 4) { in readUTFChar() 3186 sbuf.append((char) b1); in readUTFChar() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
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/ |
D | ArrayDequeTest.java | 673 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()
|
D | ArrayBlockingQueueTest.java | 643 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/ |
D | ObjectInputStreamTest.java | 108 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/ |
D | ArraysTest.java | 2314 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()
|