Home
last modified time | relevance | path

Searched refs:putShort (Results 1 – 25 of 32) sorted by relevance

12

/libcore/ojluni/src/main/java/sun/nio/ch/
DAbstractPollArrayWrapper.java73 pollArray.putShort(offset, (short)event); in putEventOps()
78 pollArray.putShort(offset, (short)revent); in putReventOps()
DNativeObject.java216 final void putShort(int offset, short value) { in putShort() method in NativeObject
217 unsafe.putShort(offset + address, value); in putShort()
/libcore/luni/src/main/java/android/system/
DStructCmsghdr.java42 buf.putShort(value); in StructCmsghdr()
/libcore/ojluni/annotations/mmodule/java/nio/
DByteBuffer.annotated.java104 public abstract java.nio.ByteBuffer putShort(short value); in putShort() method in ByteBuffer
108 public abstract java.nio.ByteBuffer putShort(int index, short value); in putShort() method in ByteBuffer
DDirectByteBuffer.annotated.java114 public final java.nio.ByteBuffer putShort(short x) { throw new RuntimeException("Stub!"); } in putShort() method in DirectByteBuffer
117 public final java.nio.ByteBuffer putShort(int i, short x) { throw new RuntimeException("Stub!"); } in putShort() method in DirectByteBuffer
/libcore/ojluni/src/main/java/java/nio/
DHeapByteBuffer.java577 public ByteBuffer putShort(short x) { in putShort() method in HeapByteBuffer
583 Bits.putShort(this, ix(nextPutIndex(2)), x, bigEndian); in putShort()
591 public ByteBuffer putShort(int i, short x) { in putShort() method in HeapByteBuffer
595 Bits.putShort(this, ix(checkIndex(i, 2)), x, bigEndian); in putShort()
605 Bits.putShort(this, ix(i), x, bigEndian); in putShortUnchecked()
DDirectByteBuffer.java519 private ByteBuffer putShort(long a, short x) { in putShort() method in DirectByteBuffer
525 public final ByteBuffer putShort(short x) { in putShort() method in DirectByteBuffer
532 putShort(ix(nextPutIndex(Short.BYTES)), x); in putShort()
537 public final ByteBuffer putShort(int i, short x) { in putShort() method in DirectByteBuffer
544 putShort(ix(checkIndex(i, Short.BYTES)), x); in putShort()
553 putShort(ix(i), x); in putShortUnchecked()
DByteBuffer.java2567 public abstract ByteBuffer putShort(short value); in putShort() method in ByteBuffer
2615 public abstract ByteBuffer putShort(int index, short value); in putShort() method in ByteBuffer
DBits.java194 static void putShort(ByteBuffer bb, int bi, short x, boolean bigEndian) { in putShort() method in Bits
201 static void putShort(long a, short x, boolean bigEndian) { in putShort() method in Bits
DHeap-X-Buffer.java.template577 public $Type$Buffer putShort(short x) {
583 Bits.putShort(this, ix(nextPutIndex(2)), x, bigEndian);
591 public $Type$Buffer putShort(int i, short x) {
595 Bits.putShort(this, ix(checkIndex(i, 2)), x, bigEndian);
605 Bits.putShort(this, ix(i), x, bigEndian);
/libcore/ojluni/annotations/hiddenapi/java/nio/
DDirectByteBuffer.java230 private java.nio.ByteBuffer putShort(long a, short x) { in putShort() method in DirectByteBuffer
234 public final java.nio.ByteBuffer putShort(short x) { in putShort() method in DirectByteBuffer
238 public final java.nio.ByteBuffer putShort(int i, short x) { in putShort() method in DirectByteBuffer
DByteBuffer.java169 public abstract java.nio.ByteBuffer putShort(short value); in putShort() method in ByteBuffer
177 public abstract java.nio.ByteBuffer putShort(int index, short value); in putShort() method in ByteBuffer
/libcore/ojluni/annotations/flagged_api/java/nio/
DByteBuffer.annotated.java141 public abstract java.nio.ByteBuffer putShort(short value); in putShort() method in ByteBuffer
145 public abstract java.nio.ByteBuffer putShort(int index, short value); in putShort() method in ByteBuffer
/libcore/ojluni/src/main/java/sun/misc/
DUnsafe.java406 public native void putShort(Object obj, long offset, short newValue); in putShort() method in Unsafe
559 public native void putShort(long address, short x); in putShort() method in Unsafe
/libcore/ojluni/src/main/java/java/io/
DBits.java93 static void putShort(byte[] b, int off, short val) { in putShort() method in Bits
DObjectOutputStream.java1707 Bits.putShort(primVals, getFieldOffset(name, Short.TYPE), val); in put()
2047 Bits.putShort(buf, pos, (short) v); in writeShort()
2173 Bits.putShort(buf, pos, v[off++]); in writeShorts()
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DUnsafe.java149 public native void putShort(java.lang.Object obj, long offset, short newValue); in putShort() method in Unsafe
201 public native void putShort(long address, short x); in putShort() method in Unsafe
/libcore/ojluni/annotations/sdk/nullability/java/nio/
DByteBuffer.annotated.java131 @libcore.util.NonNull public abstract java.nio.ByteBuffer putShort(short value); in putShort() method in ByteBuffer
135 @libcore.util.NonNull public abstract java.nio.ByteBuffer putShort(int index, short value); in putShort() method in ByteBuffer
/libcore/ojluni/annotations/mmodule/sun/misc/
DUnsafe.annotated.java139 public native void putShort(java.lang.Object obj, long offset, short newValue); in putShort() method in Unsafe
193 public native void putShort(long address, short x); in putShort() method in Unsafe
/libcore/ojluni/src/test/java/nio/Buffer/
DBasicByte.java319 b.putShort((short)1); in testHet()
320 b.putShort((short)Short.MAX_VALUE); in testHet()
1014 catchReadOnlyBuffer(b, () -> rb.putShort((short)1)); in test()
1015 catchReadOnlyBuffer(b, () -> rb.putShort(0, (short)1)); in test()
DBasic-X.java.template319 b.putShort((short)1);
320 b.putShort((short)Short.MAX_VALUE);
1014 catchReadOnlyBuffer(b, () -> rb.putShort((short)1));
1015 catchReadOnlyBuffer(b, () -> rb.putShort(0, (short)1));
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DByteBufferTest.java1972 buf.putShort((short) 1); in testPutShort()
1989 buf.putShort(value); in testPutShort()
1997 buf.putShort(value); in testPutShort()
2009 buf.putShort(0, (short) 1); in testPutShortint()
2026 buf.putShort(i, value); in testPutShortint()
2033 buf.putShort(-1, value); in testPutShortint()
2039 buf.putShort(buf.limit() - nbytes + 1, value); in testPutShortint()
/libcore/luni/src/test/java/libcore/java/nio/
DBufferTest.java554 b.putShort((short) 0); in testRelativePositions()
1057 b.putShort((short) 0); in testPutMethods()
1058 b.putShort(0, (short) 0); in testPutMethods()
1138 b.putShort((short) 0); in testFailForPutMethods()
1143 b.putShort(0, (short) 0); in testFailForPutMethods()
/libcore/ojluni/src/main/java/jdk/internal/misc/
DUnsafe.java233 public native void putShort(Object o, long offset, short x); in putShort() method in Unsafe
401 public native void putShort(long address, short x); in putShort() method in Unsafe
/libcore/benchmarks/src/benchmarks/regression/
DByteBufferBenchmark.java386 src.putShort((short) 0); in timeByteBuffer_putShort()

12