Searched refs:cb (Results 1 - 14 of 14) sorted by relevance

/libcore/luni/src/main/java/java/lang/
H A DReadable.java32 * @param cb
39 int read(CharBuffer cb) throws IOException; argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/
H A DCharBufferTest.java858 CharBuffer cb = CharBuffer.allocate(10);
859 CharBuffer cb2 = cb.duplicate();
860 cb.append(cb);
861 assertEquals(10, cb.position());
862 cb.clear();
863 assertEquals(cb2, cb);
865 cb.put("abc");
866 cb2 = cb.duplicate();
867 cb
[all...]
/libcore/luni/src/test/java/libcore/java/nio/charset/
H A DCharsetDecoderTest.java93 CharBuffer cb = CharBuffer.allocate(128);
95 cr = decoder.decode(ByteBuffer.wrap(new byte[] { (byte) 0xe2 }), cb, false);
97 cr = decoder.decode(ByteBuffer.wrap(new byte[] { (byte) 0x98 }), cb, false);
99 cr = decoder.decode(ByteBuffer.wrap(new byte[] { (byte) 0x83 }), cb, false);
101 cr = decoder.decode(ByteBuffer.wrap(new byte[0]), cb, true);
103 cr = decoder.flush(cb);
105 assertEquals(1, cb.position());
106 assertEquals('\u2603', cb.get(0));
H A DCharset_TestGenerator.java217 static void genEncoded (Charset charset, CharBuffer cb) { argument
223 ByteBuffer bb = encoder.encode(cb);
/libcore/luni/src/main/java/java/math/
H A DNativeBN.java123 long add, long rem, long cb);
125 // const BIGNUM *add, const BIGNUM *rem, BN_GENCB *cb);
127 public static native boolean BN_is_prime_ex(long p, int nchecks, long cb); argument
128 // int BN_is_prime_ex(const BIGNUM *p, int nchecks, BN_CTX *ctx, BN_GENCB *cb);
122 BN_generate_prime_ex(long ret, int bits, boolean safe, long add, long rem, long cb) argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/
H A DASCIICharsetEncoderTest.java102 CharBuffer cb = CharBuffer.wrap(chars);
103 ByteBuffer bb = encoder.encode(cb);
107 CharBuffer cb = CharBuffer.wrap("\u0080");
109 encoder.encode(cb);
114 cb = CharBuffer.wrap("\ud800");
116 encoder.encode(cb);
122 cb = CharBuffer.wrap("A");
124 encoder.encode(cb, bb, false);
126 encoder.encode(cb);
/libcore/luni/src/main/java/java/nio/charset/
H A DCharsetEncoder.java189 CharBuffer cb;
191 cb = ((CharBuffer) sequence).duplicate();
193 cb = CharBuffer.wrap(sequence);
207 encode(cb);
/libcore/harmony-tests/src/test/java/tests/api/java/nio/charset/
H A DCharsetTest.java713 CharBuffer cb = c1.decode(ByteBuffer.wrap("abcdefg".getBytes("iso8859-1")));
714 assertEquals("abcdefg", new String(cb.array()));
715 cb = c1.decode(ByteBuffer.wrap("".getBytes("iso8859-1")));
716 assertEquals("", new String(cb.array()));
721 CharBuffer cb = c1.decode(ByteBuffer.wrap("abcd\u5D14efg".getBytes("iso8859-1")));
723 assertEquals(new String(cb.array()).trim(), "abcd" + new String(replacement, "iso8859-1") + "efg");
/libcore/luni/src/main/native/
H A Djava_math_NativeBN.cpp523 jboolean safe, jlong add, jlong rem, jlong cb) {
526 reinterpret_cast<BN_GENCB*>(cb));
530 static jboolean NativeBN_BN_is_prime_ex(JNIEnv* env, jclass, jlong p, int nchecks, jlong cb) { argument
533 return BN_is_prime_ex(toBigNum(p), nchecks, ctx.get(), reinterpret_cast<BN_GENCB*>(cb));
522 NativeBN_BN_generate_prime_ex(JNIEnv* env, jclass, jlong ret, int bits, jboolean safe, jlong add, jlong rem, jlong cb) argument
/libcore/luni/src/test/java/libcore/sqlite/
H A DOldDatabaseTest.java782 AuthorizerCallback cb = new AuthorizerCallback();
783 db.set_authorizer(cb);
786 db.exec("select * from private_table", cb);
787 assertTrue(cb.wasCalled());
/libcore/libart/src/main/java/java/lang/
H A DString.java357 CharBuffer cb = charset.decode(ByteBuffer.wrap(data, offset, byteCount));
359 this.count = cb.length();
361 // We could use cb.array() directly, but that would mean we'd have to trust
367 System.arraycopy(cb.array(), 0, value, 0, count);
/libcore/libdvm/src/main/java/java/lang/
H A DString.java369 CharBuffer cb = charset.decode(ByteBuffer.wrap(data, offset, byteCount));
371 this.count = cb.length();
373 // We could use cb.array() directly, but that would mean we'd have to trust
379 System.arraycopy(cb.array(), 0, value, 0, count);
/libcore/luni/src/test/java/libcore/java/nio/
H A DBufferTest.java710 CharBuffer cb = b.asCharBuffer();
711 CharSequence cs = cb.subSequence(0, cb.length());
/libcore/harmony-tests/src/test/java/org/apache/harmony/luni/tests/java/util/
H A DScannerTest.java81 public int read(CharBuffer cb) throws IOException { argument

Completed in 202 milliseconds