Searched defs:ba (Results 1 - 2 of 2) sorted by relevance

/dalvik/libcore/nio_char/src/test/java/tests/api/java/nio/charset/
H A DAbstractCharsetEncoderTestCase.java662 byte[] ba = new byte[out.limit() - out.position()];
663 out.get(ba);
664 // byte[] ba = out.array();
665 assertTrue(Arrays.equals(ba, expected));
775 byte[] ba = buffer.array();
776 for (int i = 0; i < ba.length; i++) {
777 System.out.println(Integer.toHexString(ba[i]));
801 private byte[] duplicateByteArray(byte[] ba, int times) { argument
802 byte[] result = new byte[ba.length * times];
804 System.arraycopy(ba,
[all...]
H A DCharsetEncoderTest.java324 byte[] ba = getLegalByteArray();
326 CharsetEncoder ec = new MockCharsetEncoder(cs, 1, MAX_BYTES, ba);
330 assertSame(ba, ec.replacement());
337 ec = new MockCharsetEncoder(null, 1, MAX_BYTES, ba);
365 // ec = new MockCharsetEncoder(cs, MAX_BYTES, ba.length, ba);
367 // assertTrue(ec.maxBytesPerChar() == ba.length);
371 ec = new MockCharsetEncoder(cs, 0, MAX_BYTES, ba);
376 ec = new MockCharsetEncoder(cs, 1, 0, ba);
383 ec = new MockCharsetEncoder(cs, -1, MAX_BYTES, ba);
478 isLegalReplacement(byte[] ba) argument
549 implReplaceWith(byte[] ba) argument
[all...]

Completed in 180 milliseconds