/libcore/ojluni/src/main/java/java/lang/ |
D | StringUTF16.java | 55 static void putChar(byte[] val, int index, int c) { in putChar() method in StringUTF16 177 putChar(val, i, value[off]); 250 putChar(buf, j, cp); 252 putChar(buf, j++, Character.highSurrogate(cp)); 253 putChar(buf, j, Character.lowSurrogate(cp)); 261 putChar(result, 0, c); 267 putChar(result, 0, Character.highSurrogate(cp)); 268 putChar(result, 1, Character.lowSurrogate(cp)); 629 putChar(buf, j, getChar(value, j)); // TBD:arraycopy? 633 putChar(buf, i, c == oldChar ? newChar : c); [all …]
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | NativeObject.java | 243 final void putChar(int offset, char value) { in putChar() method in NativeObject 244 unsafe.putChar(offset + address, value); in putChar()
|
/libcore/ojluni/annotations/mmodule/java/nio/ |
D | ByteBuffer.annotated.java | 94 public abstract java.nio.ByteBuffer putChar(char value); in putChar() method in ByteBuffer 98 public abstract java.nio.ByteBuffer putChar(int index, char value); in putChar() method in ByteBuffer
|
D | DirectByteBuffer.annotated.java | 99 public final java.nio.ByteBuffer putChar(char x) { throw new RuntimeException("Stub!"); } in putChar() method in DirectByteBuffer 102 public final java.nio.ByteBuffer putChar(int i, char x) { throw new RuntimeException("Stub!"); } in putChar() method in DirectByteBuffer
|
/libcore/ojluni/src/main/java/java/nio/ |
D | HeapByteBuffer.java | 461 public ByteBuffer putChar(char x) { in putChar() method in HeapByteBuffer 467 Bits.putChar(this, ix(nextPutIndex(2)), x, bigEndian); in putChar() 487 public ByteBuffer putChar(int i, char x) { in putChar() method in HeapByteBuffer 493 Bits.putChar(this, ix(checkIndex(i, 2)), x, bigEndian); in putChar() 503 Bits.putChar(this, ix(i), x, bigEndian); in putCharUnchecked()
|
D | DirectByteBuffer.java | 417 private ByteBuffer putChar(long a, char x) { in putChar() method in DirectByteBuffer 423 public final ByteBuffer putChar(char x) { in putChar() method in DirectByteBuffer 430 putChar(ix(nextPutIndex(Character.BYTES)), x); in putChar() 435 public final ByteBuffer putChar(int i, char x) { in putChar() method in DirectByteBuffer 442 putChar(ix(checkIndex(i, Character.BYTES)), x); in putChar() 451 putChar(ix(i), x); in putCharUnchecked()
|
D | ByteBuffer.java | 2457 public abstract ByteBuffer putChar(char value); in putChar() method in ByteBuffer 2505 public abstract ByteBuffer putChar(int index, char value); in putChar() method in ByteBuffer
|
D | Bits.java | 122 static void putChar(ByteBuffer bb, int bi, char x, boolean bigEndian) { in putChar() method in Bits 129 static void putChar(long a, char x, boolean bigEndian) { in putChar() method in Bits
|
D | Heap-X-Buffer.java.template | 461 public $Type$Buffer putChar(char x) { 467 Bits.putChar(this, ix(nextPutIndex(2)), x, bigEndian); 487 public $Type$Buffer putChar(int i, char x) { 493 Bits.putChar(this, ix(checkIndex(i, 2)), x, bigEndian); 503 Bits.putChar(this, ix(i), x, bigEndian);
|
/libcore/ojluni/annotations/hiddenapi/java/nio/ |
D | DirectByteBuffer.java | 186 private java.nio.ByteBuffer putChar(long a, char x) { in putChar() method in DirectByteBuffer 190 public final java.nio.ByteBuffer putChar(char x) { in putChar() method in DirectByteBuffer 194 public final java.nio.ByteBuffer putChar(int i, char x) { in putChar() method in DirectByteBuffer
|
D | ByteBuffer.java | 151 public abstract java.nio.ByteBuffer putChar(char value); in putChar() method in ByteBuffer 159 public abstract java.nio.ByteBuffer putChar(int index, char value); in putChar() method in ByteBuffer
|
/libcore/ojluni/annotations/flagged_api/java/nio/ |
D | ByteBuffer.annotated.java | 131 public abstract java.nio.ByteBuffer putChar(char value); in putChar() method in ByteBuffer 135 public abstract java.nio.ByteBuffer putChar(int index, char value); in putChar() method in ByteBuffer
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | Unsafe.java | 386 public native void putChar(Object obj, long offset, char newValue); in putChar() method in Unsafe 577 public native void putChar(long address, char x); in putChar() method in Unsafe
|
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/ |
D | ChunkHandler.java | 112 out.putChar(msg.charAt(i)); in createFailChunk()
|
/libcore/ojluni/src/main/java/java/io/ |
D | Bits.java | 88 static void putChar(byte[] b, int off, char val) { in putChar() method in Bits
|
D | ObjectOutputStream.java | 1703 Bits.putChar(primVals, getFieldOffset(name, Character.TYPE), val); in put() 2038 Bits.putChar(buf, pos, (char) v); in writeChar() 2156 Bits.putChar(buf, pos, v[off++]); in writeChars()
|
/libcore/luni/src/test/java/libcore/java/nio/ |
D | BufferTest.java | 534 b.putChar('x'); in testRelativePositions() 755 b.putChar('H'); in testCharBufferSubSequence() 756 b.putChar('e'); in testCharBufferSubSequence() 757 b.putChar('l'); in testCharBufferSubSequence() 758 b.putChar('l'); in testCharBufferSubSequence() 759 b.putChar('o'); in testCharBufferSubSequence() 1043 b.putChar('a'); in testPutMethods() 1044 b.putChar(0, 'a'); in testPutMethods() 1088 b.putChar('a'); in testFailForPutMethods() 1093 b.putChar(0, 'a'); in testFailForPutMethods()
|
/libcore/ojluni/annotations/hiddenapi/sun/misc/ |
D | Unsafe.java | 143 public native void putChar(java.lang.Object obj, long offset, char newValue); in putChar() method in Unsafe 207 public native void putChar(long address, char x); in putChar() method in Unsafe
|
/libcore/ojluni/annotations/sdk/nullability/java/nio/ |
D | ByteBuffer.annotated.java | 121 @libcore.util.NonNull public abstract java.nio.ByteBuffer putChar(char value); in putChar() method in ByteBuffer 125 @libcore.util.NonNull public abstract java.nio.ByteBuffer putChar(int index, char value); in putChar() method in ByteBuffer
|
/libcore/ojluni/annotations/mmodule/sun/misc/ |
D | Unsafe.annotated.java | 133 public native void putChar(java.lang.Object obj, long offset, char newValue); in putChar() method in Unsafe 199 public native void putChar(long address, char x); in putChar() method in Unsafe
|
/libcore/ojluni/src/test/java/nio/Buffer/ |
D | BasicByte.java | 315 b.putChar((char)1); in testHet() 316 b.putChar((char)Character.MAX_VALUE); in testHet() 1012 catchReadOnlyBuffer(b, () -> rb.putChar((char)1)); in test() 1013 catchReadOnlyBuffer(b, () -> rb.putChar(0, (char)1)); in test()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
D | ByteBufferTest.java | 1258 buf.putChar((char) 1); in testPutChar() 1275 buf.putChar(value); in testPutChar() 1283 buf.putChar(value); in testPutChar() 1295 buf.putChar(0, (char) 1); in testPutCharint() 1312 buf.putChar(i, value); in testPutCharint() 1319 buf.putChar(-1, value); in testPutCharint() 1325 buf.putChar(buf.limit() - nbytes + 1, value); in testPutCharint() 1334 ByteBuffer.allocateDirect(16).putChar(Integer.MAX_VALUE, 'h'); in testPutCharint()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | ChannelsTest.java | 187 writebuf.putChar((char) (val + 64)); in testNewChannelOutputStream_inputNull() 229 writebuf.putChar((char) (val + 64)); in testNewChannelOutputStream()
|
/libcore/ojluni/src/main/java/jdk/internal/misc/ |
D | Unsafe.java | 245 public native void putChar(Object o, long offset, char x); in putChar() method in Unsafe 425 public native void putChar(long address, char x); in putChar() method in Unsafe
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | ByteBufferBenchmark.java | 281 src.putChar(' '); in timeByteBuffer_putChar()
|