/libcore/ojluni/src/main/java/java/util/zip/ |
D | ZipCoder.java | 46 String toString(byte[] ba, int length) { in toString() argument 56 int clen = ((ArrayDecoder)cd).decode(ba, 0, length, ca); in toString() 61 ByteBuffer bb = ByteBuffer.wrap(ba, 0, length); in toString() 72 String toString(byte[] ba) { in toString() argument 73 return toString(ba, ba.length); in toString() 80 byte[] ba = new byte[len]; in getBytes() 82 return ba; in getBytes() 86 int blen = ((ArrayEncoder)ce).encode(ca, 0, ca.length, ba); in getBytes() 89 return Arrays.copyOf(ba, blen); in getBytes() 91 ByteBuffer bb = ByteBuffer.wrap(ba); in getBytes() [all …]
|
/libcore/luni/src/test/java/libcore/sun/security/x509/ |
D | Utils.java | 48 byte[] ba = new byte[byteCounter]; in testWithEachSinglePart() 49 ba[byteCounter - 1] = (byte) (1 << (7 - bitCounter)); in testWithEachSinglePart() 55 Object o = objectCreator.apply(ba); in testWithEachSinglePart() 85 byte[] ba = new byte[(parts.length + bitsInAByte - 1) / bitsInAByte]; in testWithEveryOtherPart() 88 ba[i / bitsInAByte] = (byte) 170; // Binary 10101010 in testWithEveryOtherPart() 91 assertEquals(prefix + expectedResult + suffix, objectCreator.apply(ba).toString()); in testWithEveryOtherPart()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldAndroidPrintWriterTest.java | 47 StringWriter ba = new StringWriter(); in testPrintWriter() local 48 PrintWriter b = new PrintWriter(ba); in testPrintWriter() 57 assertEquals("trueABCD1.23.045", ba.toString()); in testPrintWriter() 67 assertEquals("trueABCD1.23.045\ntrue\nA\nBCD\n1.2\n3.0\n4\n5\nTHE END", ba.toString()); in testPrintWriter()
|
D | OldAndroidInputStreamReaderTest.java | 92 byte[] ba = src.getBytes(enc[i]); in testStringy() 94 String s1 = new String(ba, enc[i]); in testStringy() 96 ByteArrayInputStream bais = new ByteArrayInputStream(ba); in testStringy()
|
D | OldAndroidPushbackReaderTest.java | 31 StringReader ba = new StringReader(str); in testPushbackReader() local 42 PushbackReader b = new PushbackReader(ba, 15); in testPushbackReader()
|
D | OldAndroidStreamTokenizerTest.java | 33 StringReader ba = new StringReader(strb); in testStreamTokenizer() local 35 StreamTokenizer b = new StreamTokenizer(ba); in testStreamTokenizer()
|
D | OldAndroidPushbackInputStreamTest.java | 31 ByteArrayInputStream ba = new ByteArrayInputStream(str.getBytes()); in testPushbackInputStream() local 42 PushbackInputStream b = new PushbackInputStream(ba, 9); in testPushbackInputStream()
|
D | OldAndroidBufferedReaderTest.java | 33 StringReader ba = new StringReader(str); in testBufferedReader() local 44 BufferedReader b = new BufferedReader(ba, 15); in testBufferedReader()
|
D | OldAndroidBufferedInputStreamTest.java | 34 ByteArrayInputStream ba = new ByteArrayInputStream(str.getBytes()); in testBufferedInputStream() local 46 BufferedInputStream b = new BufferedInputStream(ba, 7); in testBufferedInputStream()
|
D | OldAndroidLineNumberReaderTest.java | 35 StringReader ba = new StringReader(str); in testLineNumberReader() local 51 LineNumberReader b = new LineNumberReader(ba); in testLineNumberReader()
|
D | OldAndroidDataInputStreamTest.java | 33 ByteArrayInputStream ba = new ByteArrayInputStream(str.getBytes()); in testDataInputStream() local 44 DataInputStream b = new DataInputStream(ba); in testDataInputStream()
|
D | OldStreamTokenizerTest.java | 54 StringReader ba = new StringReader(strb); in test_basicStringTokenizerMethods() local 56 StreamTokenizer b = new StreamTokenizer(ba); in test_basicStringTokenizerMethods()
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | BitArray.java | 119 private BitArray(BitArray ba) { in BitArray() argument 120 length = ba.length; in BitArray() 121 repn = ba.repn.clone(); in BitArray() 177 BitArray ba = (BitArray) obj; in equals() 179 if (ba.length != length) return false; in equals() 182 if (repn[i] != ba.repn[i]) return false; in equals()
|
D | DerOutputStream.java | 250 public void putUnalignedBitString(BitArray ba) throws IOException { in putUnalignedBitString() argument 251 byte[] bits = ba.toByteArray(); in putUnalignedBitString() 255 write(bits.length*8 - ba.length()); // excess bits in last octet in putUnalignedBitString() 265 public void putTruncatedUnalignedBitString(BitArray ba) throws IOException { in putTruncatedUnalignedBitString() argument 266 putUnalignedBitString(ba.truncate()); in putTruncatedUnalignedBitString()
|
/libcore/ojluni/src/test/java/net/Socket/ |
D | ShutdownInput.java | 84 byte[] ba = new byte[2]; in test() 86 in.read(ba) != -1 || in test() 87 in.read(ba, 0, ba.length) != -1) { in test()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
D | CharsetEncoderTest.java | 175 byte[] ba = getLegalByteArray(); in testCharsetEncoderCharsetfloatfloatbyteArray() 177 CharsetEncoder ec = new MockCharsetEncoder(cs, 1, MAX_BYTES, ba); in testCharsetEncoderCharsetfloatfloatbyteArray() 181 assertTrue(Arrays.equals(ba, ec.replacement())); in testCharsetEncoderCharsetfloatfloatbyteArray() 188 ec = new MockCharsetEncoder(null, 1, MAX_BYTES, ba); in testCharsetEncoderCharsetfloatfloatbyteArray() 222 ec = new MockCharsetEncoder(cs, 0, MAX_BYTES, ba); in testCharsetEncoderCharsetfloatfloatbyteArray() 227 ec = new MockCharsetEncoder(cs, 1, 0, ba); in testCharsetEncoderCharsetfloatfloatbyteArray() 234 ec = new MockCharsetEncoder(cs, -1, MAX_BYTES, ba); in testCharsetEncoderCharsetfloatfloatbyteArray() 239 ec = new MockCharsetEncoder(cs, 1, -1, ba); in testCharsetEncoderCharsetfloatfloatbyteArray() 696 byte[] ba = new byte[out.limit() - out.position()]; in assertByteArray() 697 out.get(ba); in assertByteArray() [all …]
|
/libcore/ojluni/src/main/java/java/net/ |
D | URLEncoder.java | 269 byte[] ba = str.getBytes(charset); in encode() 270 for (int j = 0; j < ba.length; j++) { in encode() 272 char ch = Character.forDigit((ba[j] >> 4) & 0xF, 16); in encode() 279 ch = Character.forDigit(ba[j] & 0xF, 16); in encode()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | MessageDigestSpiTest.java | 53 byte[] ba = {0, 1, 2, 3, 4, 5}; in test_constructor() 57 mds.engineUpdate(ba[0]); in test_constructor() 58 mds.engineUpdate(ba, 0, ba.length); in test_constructor()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | ZipEntryTest.java | 118 byte[] ba = { 'T', 'E', 'S', 'T' }; in test_getExtra() 120 zentry.setExtra(ba); in test_getExtra() 122 ba, zentry.getExtra()); in test_getExtra() 284 byte[] ba = new byte[0xFFFF]; in test_setExtra$B() 286 zentry.setExtra(ba); in test_setExtra$B() 291 ba = new byte[0xFFFF + 1]; in test_setExtra$B() 292 zentry.setExtra(ba); in test_setExtra$B()
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | IPAddressName.java | 283 BitArray ba = new BitArray(16*8, maskBytes); in getName() local 287 if (!ba.get(i)) in getName() 293 if (ba.get(i)) { in getName()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | OldURLTest.java | 324 byte[] ba; in testOpenConnection() 331 is.read(ba = new byte[4096]); in testOpenConnection() 332 s = new String(ba); in testOpenConnection() 694 byte[] ba; in test_getContent_LJavaLangClass() 702 is.read(ba = new byte[4096]); in test_getContent_LJavaLangClass() 712 is.read(ba = new byte[4096]); in test_getContent_LJavaLangClass()
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixPath.java | 132 byte[] ba = new byte[(int)(ca.length * (double)ce.maxBytesPerChar())]; in encode() 135 ByteBuffer bb = ByteBuffer.wrap(ba); in encode() 153 if (len != ba.length) in encode() 154 ba = Arrays.copyOf(ba, len); in encode() 156 return ba; in encode()
|
/libcore/ojluni/annotations/hiddenapi/sun/security/util/ |
D | BitArray.java | 44 private BitArray(sun.security.util.BitArray ba) { in BitArray() argument
|
D | DerOutputStream.java | 95 public void putUnalignedBitString(sun.security.util.BitArray ba) throws java.io.IOException { in putUnalignedBitString() argument 99 public void putTruncatedUnalignedBitString(sun.security.util.BitArray ba) in putTruncatedUnalignedBitString() argument
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/ |
D | URLConnectionTest.java | 347 byte[] ba = new byte[testString.getBytes().length]; 389 byte[] ba = new byte[600]; 412 ((InputStream) fileURLCon.getContent(null)).read(ba, 0, 600); 419 ((InputStream) fileURLCon.getContent(new Class[] {})).read(ba, 0, 600); 426 ((InputStream) fileURLCon.getContent(new Class[] { Class.class })).read(ba, 1168 byte[] ba = new byte[600]; 1177 inputStream.read(ba, 0, 600);
|