Home
last modified time | relevance | path

Searched refs:b1 (Results 1 – 19 of 19) 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/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/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/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/luni/src/test/java/libcore/java/nio/
DBufferTest.java900 ByteBuffer b1 = ByteBuffer.allocateDirect(1); in testFreed() local
901 ByteBuffer b2 = b1.duplicate(); in testFreed()
902 NioUtils.freeDirectBuffer(b1); in testFreed()
903 for (ByteBuffer b: new ByteBuffer[] { b1, b2 }) { in testFreed()
923 ByteBuffer b1 = ByteBuffer.allocate(1); in testAccess() local
924 ByteBuffer b2 = b1.duplicate(); in testAccess()
925 for (ByteBuffer b: new ByteBuffer[] { b1, b2 }) { in testAccess()
937 b1 = ByteBuffer.allocateDirect(8); in testAccess()
938 b2 = b1.duplicate(); in testAccess()
939 b1.setAccessible(false); in testAccess()
[all …]
/libcore/ojluni/src/main/java/java/io/
DObjectInputStream.java3243 int b1, b2, b3; in readUTFSpan() local
3244 b1 = buf[pos++] & 0xFF; in readUTFSpan()
3245 switch (b1 >> 4) { in readUTFSpan()
3254 cbuf[cpos++] = (char) b1; in readUTFSpan()
3263 cbuf[cpos++] = (char) (((b1 & 0x1F) << 6) | in readUTFSpan()
3274 cbuf[cpos++] = (char) (((b1 & 0x0F) << 12) | in readUTFSpan()
3311 int b1, b2, b3; in readUTFChar() local
3312 b1 = readByte() & 0xFF; in readUTFChar()
3313 switch (b1 >> 4) { in readUTFChar()
3322 sbuf.append((char) b1); in readUTFChar()
[all …]
/libcore/ojluni/src/main/java/java/math/
DMutableBigInteger.java270 int b1 = value[i] + 0x80000000; in compare() local
272 if (b1 < b2) in compare()
274 if (b1 > b2) in compare()
296 int b1 = value[i] + 0x80000000; in compareShifted() local
298 if (b1 < b2) in compareShifted()
300 if (b1 > b2) in compareShifted()
1354 MutableBigInteger b1 = new MutableBigInteger(b); in divide3n2n() local
1355 b1.safeRightShift(n * 32); in divide3n2n()
1362 r = a12.divide2n1n(b1, quotient); in divide3n2n()
1369 a12.add(b1); in divide3n2n()
[all …]
DBigInteger.java1803 BigInteger a0, a1, a2, b0, b1, b2; in multiplyToomCook3() local
1808 b1 = b.getToomSlice(k, r, 1, largest); in multiplyToomCook3()
1816 vm1 = da1.subtract(a1).multiply(db1.subtract(b1), true); in multiplyToomCook3()
1818 db1 = db1.add(b1); in multiplyToomCook3()
3103 long b1 = arg1[i] & LONG_MASK; in intArrayCmpToLen() local
3105 if (b1 < b2) in intArrayCmpToLen()
3107 if (b1 > b2) in intArrayCmpToLen()
/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()