/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
UTFCharsetEncoderTest.java | 19 import java.nio.CharBuffer; 78 CharBuffer getMalformedCharBuffer() { 79 return CharBuffer.wrap("\ud800 buffer"); 82 CharBuffer getUnmapCharBuffer() { 86 CharBuffer getExceptionCharBuffer() {
|
CharsetEncoderTest.java | 19 import java.nio.CharBuffer; 273 encoder.encode(CharBuffer.wrap("aaa")); 275 encoder.encode(CharBuffer.wrap("aaa"), ByteBuffer.allocate(3), false); 277 encoder.encode(CharBuffer.wrap("aaa"), ByteBuffer.allocate(3), true); 282 CharBuffer in = CharBuffer.wrap("aaa"); 328 CharBuffer in = CharBuffer.wrap("aaa"); 349 encoder.encode(CharBuffer.wrap("testCanEncodeIllegalState2"), 356 encoder.encode(CharBuffer.wrap("testCanEncodeIllegalState3") [all...] |
CharsetDecoder2Test.java | 22 import java.nio.CharBuffer; 61 protected CoderResult decodeLoop(ByteBuffer in, CharBuffer out) { 81 // CharBuffer charbuf = Charset.forName("UTF-16").decode(buf); 159 protected CoderResult decodeLoop(ByteBuffer in, CharBuffer out) { 173 protected CoderResult encodeLoop(CharBuffer in, ByteBuffer out) { 188 CharBuffer out = CharBuffer.allocate(1); 196 out = CharBuffer.allocate(10); 219 protected CoderResult decodeLoop(ByteBuffer in, CharBuffer out) { 259 CharBuffer cb = decoder.decode(ByteBuffer.wrap(bytes)) [all...] |
UTF16CharsetEncoderTest.java | 20 import java.nio.CharBuffer; 94 CharBuffer getMalformedCharBuffer() { 95 return CharBuffer.wrap("\ud800 buffer"); 98 CharBuffer getUnmapCharBuffer() { 102 CharBuffer getExceptionCharBuffer() {
|
/libcore/ojluni/src/main/java/java/nio/ |
CharBufferSpliterator.java | 34 * maintained in a CharBuffer. 40 private final CharBuffer buffer; 44 CharBufferSpliterator(CharBuffer buffer) { 48 CharBufferSpliterator(CharBuffer buffer, int origin, int limit) { 67 CharBuffer cb = buffer;
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
OldCharsetEncoderDecoderBufferTest.java | 20 import java.nio.CharBuffer; 41 CharBuffer out = CharBuffer.wrap(cBuf); 71 CharBuffer out = CharBuffer.wrap(new char[10]); 102 encoder.encode(CharBuffer.wrap("ab"), out, false); 114 encoder.encode(CharBuffer.wrap("x"), out, true); 132 CharBuffer inWithArray = CharBuffer.wrap(inArray); 139 CharBuffer inWithoutArray = CharBuffer.wrap("x") [all...] |
CharsetEncoderTest.java | 20 import java.nio.CharBuffer; 38 String output = ascii.decode(e.encode(CharBuffer.wrap(input))).toString(); 72 CoderResult cr = e.encode(CharBuffer.wrap(new char[] { '\ud842', '\udf9f' }), bb, false); 86 CoderResult cr = e.encode(CharBuffer.wrap(new char[] { '\udf9f' }), bb, false); 123 CoderResult cr = e.encode(CharBuffer.wrap(new char[] { '\ud842' }), bb, false); 126 cr = e.encode(CharBuffer.wrap(new char[] { '\udf9f' }), bb, false); 135 cr = e.encode(CharBuffer.wrap(new char[] { }), bb, true); 147 CoderResult cr = e.encode(CharBuffer.wrap(new char[] { 'x' }), bb, false); 159 cr = e.encode(CharBuffer.wrap(new char[] { 'x' }), bb, true); 181 protected CoderResult encodeLoop(CharBuffer in, ByteBuffer out) [all...] |
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/nio/ |
CharToByteBufferAdapter.java | 32 final class CharToByteBufferAdapter extends CharBuffer { // implements DirectBuffer { 34 static CharBuffer wrap (ByteBuffer byteBuffer) { 95 public CharBuffer asReadOnlyBuffer () { 104 public CharBuffer compact () { 119 public CharBuffer duplicate () { 174 public CharBuffer put (char c) { 183 public CharBuffer put (int index, char c) { 192 public CharBuffer slice () { 195 CharBuffer result = new CharToByteBufferAdapter(byteBuffer.slice()); 206 CharBuffer result = duplicate() [all...] |
CharArrayBuffer.java | 27 abstract class CharArrayBuffer extends CharBuffer { 61 public final CharBuffer get (char[] dest, int off, int len) { 87 CharBuffer result = duplicate();
|
CharBuffer.java | 34 public abstract class CharBuffer extends Buffer implements Comparable<CharBuffer>, CharSequence, Appendable {// , Readable { 42 public static CharBuffer allocate (int capacity) { 57 public static CharBuffer wrap (char[] array) { 72 public static CharBuffer wrap (char[] array, int start, int len) { 78 CharBuffer buf = BufferFactory.newCharBuffer(array); 93 public static CharBuffer wrap (CharSequence chseq) { 109 public static CharBuffer wrap (CharSequence chseq, int start, int end) { 117 CharBuffer result = BufferFactory.newCharBuffer(chseq); 123 /** Constructs a {@code CharBuffer} with given capacity [all...] |
/external/icu/icu4c/source/samples/layout/ |
UnicodeReader.cpp | 31 UChar *charBuffer; 107 charBuffer = LE_NEW_ARRAY(UChar, charCount + 1); 108 if(charBuffer == 0) { 114 myText.extract(0, myText.length(), charBuffer); 115 charBuffer[charCount] = 0; // NULL terminate for easier reading in the debugger 117 return charBuffer;
|
/external/hamcrest/library/src/org/hamcrest/text/ |
SubstringMatcher.java | 9 // String, StringBuffer, StringBuilder, CharBuffer, etc (joe).
|
/external/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/ |
ConverterPerformanceTest.java | 15 import java.nio.CharBuffer; 41 CharBuffer source = CharBuffer.wrap(unicodeBuffer, 0, unicodeBuffer.length); 206 CharBuffer outBuf = CharBuffer.allocate(unicodeBuffer.length); 237 CharBuffer srcBuf = CharBuffer.wrap(unicodeBuffer,0,unicodeBuffer.length); 264 CharBuffer outBuf = CharBuffer.allocate(unicodeBuffer.length); 295 CharBuffer srcBuf = CharBuffer.wrap(unicodeBuffer,0,unicodeBuffer.length) [all...] |
/external/guava/guava-tests/test/com/google/common/io/ |
CharSequenceReaderTest.java | 22 import java.nio.CharBuffer; 148 reader.read(CharBuffer.allocate(10)); 210 // read all to one CharBuffer 212 CharBuffer buf2 = CharBuffer.allocate(expected.length()); 218 // read in chunks to fixed CharBuffer 220 buf2 = CharBuffer.allocate(5); 250 assertEquals(-1, reader.read(CharBuffer.allocate(10)));
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
ReadOnlyHeapCharBufferTest.java | 19 import java.nio.CharBuffer; 26 buf = CharBuffer.allocate(BUFFER_LENGTH);
|
ReadOnlyWrappedCharBufferTest1.java | 19 import java.nio.CharBuffer; 25 buf = CharBuffer.wrap(new char[BUFFER_LENGTH]);
|
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
Charset88591.java | 11 import java.nio.CharBuffer; 28 protected CoderResult decodeLoopCoreOptimized(ByteBuffer source, CharBuffer target, 41 protected CoderResult decodeLoopCoreUnoptimized(ByteBuffer source, CharBuffer target) { 65 protected final CoderResult encodeLoopCoreOptimized(CharBuffer source, ByteBuffer target, 96 protected final CoderResult encodeLoopCoreUnoptimized(CharBuffer source, ByteBuffer target, boolean flush) {
|
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/com/badlogic/gdx/utils/ |
Utf8Decoder.java | 86 private char[] charBuffer; 97 public int decode (byte[] b, int offset, int length, char[] charBuffer, int charOffset) { 98 this.charBuffer = charBuffer; 109 charBuffer[charOffset++] = (char)(b & 0xFF); 120 charBuffer[charOffset++] = (char)codePoint; 123 // for (char c : Character.toChars(codePoint)) charBuffer[charOffset++] = c; 126 charBuffer[charOffset++] = utf16Char[0]; 127 if (codePointLength == 2) charBuffer[charOffset++] = utf16Char[1]; 134 charBuffer[charOffset++] = REPLACEMENT [all...] |
/external/apache-http/src/org/apache/http/impl/io/ |
AbstractSessionInputBuffer.java | 169 public int readLine(final CharArrayBuffer charbuffer) throws IOException { 170 if (charbuffer == null) { 183 return lineFromReadBuffer(charbuffer, i); 209 return lineFromLineBuffer(charbuffer); 212 private int lineFromLineBuffer(final CharArrayBuffer charbuffer) 231 charbuffer.append(this.linebuffer, 0, l); 236 charbuffer.append(s); 241 private int lineFromReadBuffer(final CharArrayBuffer charbuffer, int pos) 256 charbuffer.append(this.buffer, off, len); 261 charbuffer.append(s) 267 CharArrayBuffer charbuffer = new CharArrayBuffer(64); local [all...] |
/frameworks/base/docs/html/sdk/api_diff/19/changes/ |
java.nio.CharBuffer.html | 10 java.nio.CharBuffer 74 Class java.nio.<A HREF="../../../../reference/java/nio/CharBuffer.html" target="_top"><font size="+2"><code>CharBuffer</code></font></A> 86 <A NAME="java.nio.CharBuffer.subSequence_changed(int, int)"></A> 87 <nobr><code>CharBuffer</code> <A HREF="../../../../reference/java/nio/CharBuffer.html#subSequence(int, int)" target="_top"><code>subSequence</code></A>(<code>int,</nobr> int<nobr><nobr></code>) </nobr> 90 Change in return type from <code>CharSequence</code> to <code>CharBuffer</code>.<br>
|
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/ |
Charsets.java | 19 import java.nio.CharBuffer; 53 CharBuffer cb = CharBuffer.allocate(length); 63 CharBuffer cb = CharBuffer.allocate(length); 73 CharBuffer cb = CharBuffer.allocate(length);
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/compression/ |
DecompressionTest.java | 43 char [] charBuffer = new char [2*(segment1.length + segment2.length)]; 48 charBuffer, 0, charBuffer.length); 55 logln(charBuffer, 0, count1); 56 s.append(charBuffer, 0, count1); 60 charBuffer, count1, 61 charBuffer.length); 68 logln(charBuffer, count1, count2); 70 s.append(charBuffer, count1, count2); 73 logln(charBuffer, 0, count1 + count2) [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/compression/ |
DecompressionTest.java | 39 char [] charBuffer = new char [2*(segment1.length + segment2.length)]; 44 charBuffer, 0, charBuffer.length); 51 logln(charBuffer, 0, count1); 52 s.append(charBuffer, 0, count1); 56 charBuffer, count1, 57 charBuffer.length); 64 logln(charBuffer, count1, count2); 66 s.append(charBuffer, count1, count2); 69 logln(charBuffer, 0, count1 + count2) [all...] |
/libcore/ojluni/src/main/java/java/lang/ |
Readable.java | 33 * method via a {@link java.nio.CharBuffer CharBuffer}. 53 public int read(java.nio.CharBuffer cb) throws IOException;
|
/packages/services/Telephony/src/com/android/phone/common/mail/utils/ |
Utility.java | 20 import java.nio.CharBuffer; 63 final ByteBuffer buffer = charset.encode(CharBuffer.wrap(s)); 73 final CharBuffer cb = charset.decode(ByteBuffer.wrap(b));
|