HomeSort by relevance Sort by last modified time
    Searched full:charbuffer (Results 1 - 25 of 329) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
ASCIICharsetEncoderTest.java 21 import java.nio.CharBuffer;
80 encoder.encode(CharBuffer.wrap("\ud800\udc00"));
87 encoder.encode(CharBuffer.wrap("\ud800"), out, true));
92 CharBuffer buffer1 = CharBuffer.wrap("\ud800");
93 CharBuffer buffer2 = CharBuffer.wrap("\udc00");
108 CharBuffer cb = CharBuffer.wrap(chars);
113 CharBuffer cb = CharBuffer.wrap("\u0080")
    [all...]
ISOCharsetEncoderTest.java 19 import java.nio.CharBuffer;
67 CharBuffer getMalformedCharBuffer() {
68 return CharBuffer.wrap("\ud800 buffer");
71 CharBuffer getUnmapCharBuffer() {
72 return CharBuffer.wrap("\ud800\udc00 buffer");
75 CharBuffer getExceptionCharBuffer() {
87 encoder.encode(CharBuffer.wrap("\ud800\udc00"));
GBCharsetEncoderTest.java 19 import java.nio.CharBuffer;
73 CharBuffer getMalformedCharBuffer() {
74 return CharBuffer.wrap("\ud800 buffer");
77 CharBuffer getUnmapCharBuffer() {
81 CharBuffer getExceptionCharBuffer() {
CharsetEncoder2Test.java 22 import java.nio.CharBuffer;
84 protected CoderResult encodeLoop(CharBuffer in, ByteBuffer out) {
96 protected CoderResult encodeLoop(CharBuffer arg0, ByteBuffer arg1) {
106 * Test malfunction encode(CharBuffer)
111 cs.encode(CharBuffer.wrap("AB"));
149 protected CoderResult encodeLoop(CharBuffer in, ByteBuffer out) {
155 * Test reserve bytes encode(CharBuffer,ByteBuffer,boolean)
160 CharBuffer char1 = CharBuffer.wrap("\ud800");
161 CharBuffer char2 = CharBuffer.wrap("\udc00")
    [all...]
CharsetDecoderTest.java 20 import java.nio.CharBuffer;
199 * Class under test for CharBuffer decode(ByteBuffer)
214 CharBuffer out = decoder.decode(ByteBuffer.allocate(0));
236 CharBuffer out;
246 CharBuffer buffer = decoder.decode(in);
298 * Class under test for CoderResult decode(ByteBuffer, CharBuffer, boolean)
309 CharBuffer out = CharBuffer.allocate(100);
363 out = CharBuffer.allocate(4);
370 out = CharBuffer.allocate(100)
    [all...]
UTF16BECharsetEncoderTest.java 19 import java.nio.CharBuffer;
89 CharBuffer getMalformedCharBuffer() {
90 return CharBuffer.wrap("\ud800 buffer");
93 CharBuffer getUnmapCharBuffer() {
97 CharBuffer getExceptionCharBuffer() {
UTF16LECharsetEncoderTest.java 19 import java.nio.CharBuffer;
89 CharBuffer getMalformedCharBuffer() {
90 return CharBuffer.wrap("\ud800 buffer");
93 CharBuffer getUnmapCharBuffer() {
97 CharBuffer getExceptionCharBuffer() {
  /external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/nio/
ReadOnlyCharArrayBuffer.java 41 public CharBuffer asReadOnlyBuffer () {
45 public CharBuffer compact () {
49 public CharBuffer duplicate () {
69 public CharBuffer put (char c) {
73 public CharBuffer put (int index, char c) {
77 public final CharBuffer put (char[] src, int off, int len) {
81 public final CharBuffer put (CharBuffer src) {
85 public CharBuffer put (String src, int start, int end) {
92 public CharBuffer slice ()
    [all...]
ReadWriteCharArrayBuffer.java 49 public CharBuffer asReadOnlyBuffer () {
53 public CharBuffer compact () {
61 public CharBuffer duplicate () {
81 public CharBuffer put (char c) {
89 public CharBuffer put (int index, char c) {
97 public CharBuffer put (char[] src, int off, int len) {
110 public CharBuffer slice () {
CharSequenceAdapter.java 27 final class CharSequenceAdapter extends CharBuffer {
44 public CharBuffer asReadOnlyBuffer () {
48 public CharBuffer compact () {
52 public CharBuffer duplicate () {
70 public final CharBuffer get (char[] dest, int off, int len) {
108 public CharBuffer put (char c) {
112 public CharBuffer put (int index, char c) {
116 public final CharBuffer put (char[] src, int off, int len) {
128 public CharBuffer put (String src, int start, int end) {
135 public CharBuffer slice ()
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
WrappedCharBufferTest1.java 19 import java.nio.CharBuffer;
25 buf = CharBuffer.wrap(new char[BUFFER_LENGTH]);
37 * @tests java.nio.CharBuffer#allocate(char[],int,int)
43 CharBuffer.wrap(array, -1, 0);
49 CharBuffer.wrap(array, BUFFER_LENGTH + 1, 0);
55 CharBuffer.wrap(array, 0, -1);
61 CharBuffer.wrap(array, 0, BUFFER_LENGTH + 1);
67 CharBuffer.wrap(array, Integer.MAX_VALUE, 1);
73 CharBuffer.wrap(array, 1, Integer.MAX_VALUE);
79 CharBuffer.wrap((char[])null, -1, 0)
    [all...]
CharBufferTest.java 24 import java.nio.CharBuffer;
29 * Tests java.nio.CharBuffer
37 protected CharBuffer buf;
44 buf = CharBuffer.wrap(charscopy);
93 CharBuffer readonly = buf.asReadOnlyBuffer();
142 CharBuffer ret = buf.compact();
194 CharBuffer other = CharBuffer.allocate(buf.capacity());
221 CharBuffer duplicate = buf.duplicate();
279 CharBuffer readonly = buf.asReadOnlyBuffer()
    [all...]
WrappedCharBufferTest2.java 20 import java.nio.CharBuffer;
28 buf = CharBuffer.wrap(TEST_STRING);
41 CharBuffer.wrap(str, -1, 0);
47 CharBuffer.wrap(str, 21, 21);
53 CharBuffer.wrap(str, 2, 1);
59 CharBuffer.wrap(str, 0, 21);
65 CharBuffer.wrap((String)null, -1, 21);
109 CharBuffer other = CharBuffer.allocate(1);
116 buf.put((CharBuffer) null)
    [all...]
DirectCharBufferTest.java 20 import java.nio.CharBuffer;
62 CharBuffer charBuffer = directByteBuffer.asCharBuffer();
64 long charBufferBasePointer = NIOAccess.getBasePointer(charBuffer);
68 charBuffer.put('b');
69 assertEquals(charBufferBasePointer + SizeOf.CHAR, NIOAccess.getBasePointer(charBuffer));
HeapCharBufferTest.java 19 import java.nio.CharBuffer;
25 buf = CharBuffer.allocate(BUFFER_LENGTH);
38 CharBuffer.allocate(-1);
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
ReaderTest.java 21 import java.nio.CharBuffer;
30 CharBuffer charBuffer = null;
32 mockReader.read(charBuffer);
40 //the charBuffer has the capacity of 0, then there the number of char read
41 // to the CharBuffer is 0. Furthermore, the MockReader is intact in its content.
45 CharBuffer charBuffer = CharBuffer.allocate(0);
46 int result = mockReader.read(charBuffer);
    [all...]
  /external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/service/
Relay.java 30 import java.nio.CharBuffer;
56 private CharBuffer charBuffer;
97 charBuffer = CharBuffer.allocate(BUFFER_SIZE);
110 charArray = charBuffer.array();
131 result = decoder.decode(byteBuffer, charBuffer, false);
140 offset = charBuffer.position();
148 EastAsianWidth.measure(charArray, 0, charBuffer.position(), wideAttribute,
151 buffer.putString(charArray, wideAttribute, 0, charBuffer.position())
    [all...]
  /libcore/luni/src/test/java/libcore/java/nio/
CharBufferTest.java 22 import java.nio.CharBuffer;
30 CharBuffer cb = CharBuffer.allocate(32).append(s);
41 CharBuffer cb = CharBuffer.allocate(32).append(s);
51 cb = CharBuffer.allocate(32).append(surrogateCP);
  /libcore/ojluni/src/main/java/java/nio/
ByteBufferAsCharBuffer.java 30 class ByteBufferAsCharBuffer extends CharBuffer { // package-private
56 public CharBuffer slice() {
66 public CharBuffer duplicate() {
76 public CharBuffer asReadOnlyBuffer() {
98 public CharBuffer get(char[] dst, int offset, int length) {
111 public CharBuffer put(char x) {
116 public CharBuffer put(int i, char x) {
124 public CharBuffer put(char[] src, int offset, int length) {
133 public CharBuffer compact() {
166 CharBuffer cb = CharBuffer.wrap(ca)
    [all...]
StringCharBuffer.java 32 extends CharBuffer {
43 public CharBuffer slice() {
62 public CharBuffer duplicate() {
67 public CharBuffer asReadOnlyBuffer() {
85 public final CharBuffer put(char c) {
89 public final CharBuffer put(int index, char c) {
93 public final CharBuffer compact() {
105 public final CharBuffer subSequence(int start, int end) {
HeapCharBuffer.java 33 class HeapCharBuffer extends CharBuffer {
75 public CharBuffer slice() {
85 public CharBuffer duplicate() {
95 public CharBuffer asReadOnlyBuffer() {
122 public CharBuffer get(char[] dst, int offset, int length) {
139 public CharBuffer put(char x) {
147 public CharBuffer put(int i, char x) {
155 public CharBuffer put(char[] src, int offset, int length) {
167 public CharBuffer put(CharBuffer src)
    [all...]
  /external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/lang/
Readable.java 20 import java.nio.CharBuffer;
23 int read (CharBuffer cb) throws IOException;
  /libcore/luni/src/test/java/libcore/java/nio/charset/
OldCharset_MultiByte_EUC_JP.java 19 import java.nio.CharBuffer;
37 CharBuffer inputCB = CharBuffer.allocate(65536);
47 CharBuffer outputCB = decoder.decode(intermediateBB);
CharsetDecoderTest.java 20 import java.nio.CharBuffer;
44 CharBuffer outBuffer = CharBuffer.allocate(arr.length);
60 CharBuffer outBuffer = CharBuffer.allocate(arr.length - offset);
75 CharBuffer outBuffer = decoder.decode(ByteBuffer.wrap(arr, offset, arr.length - offset));
88 ByteBuffer buf = encoder.encode(CharBuffer.wrap(s));
97 CharBuffer cb = CharBuffer.allocate(128);
115 CharBuffer cb = CharBuffer.allocate(128)
    [all...]
OldCharset_AbstractTest.java 20 import java.nio.CharBuffer;
109 CharBuffer inputCB = CharBuffer.wrap(testChars);
126 CharBuffer outputCB = decoder.decode(inputBB);
136 CharBuffer inputCB = CharBuffer.wrap(testChars);
154 CharBuffer inputCB = CharBuffer.allocate(1);
161 CharBuffer outputCB = decoder.decode(intermediateBB);
179 CharBuffer inputCB = CharBuffer.allocate(65536)
    [all...]

Completed in 1034 milliseconds

1 2 3 4 5 6 7 8 91011>>