Searched refs:putShort (Results 1 - 15 of 15) sorted by relevance

/libcore/ojluni/src/main/java/sun/nio/ch/
H A DAbstractPollArrayWrapper.java81 pollArray.putShort(offset, (short)event);
86 pollArray.putShort(offset, (short)revent);
H A DNativeObject.java216 final void putShort(int offset, short value) { method in class:NativeObject
217 unsafe.putShort(offset + address, value);
H A DDevPollArrayWrapper.java144 pollArray.putShort(offset, (short)revent);
290 array.putShort(structIndex + EVENT_OFFSET, event);
291 array.putShort(structIndex + REVENT_OFFSET, (short)0);
/libcore/ojluni/src/main/java/java/nio/
H A DHeapByteBuffer.java256 public ByteBuffer putShort(short x) { method in class:HeapByteBuffer
260 Bits.putShort(this, ix(nextPutIndex(2)), x, bigEndian);
264 public ByteBuffer putShort(int i, short x) { method in class:HeapByteBuffer
268 Bits.putShort(this, ix(checkIndex(i, 2)), x, bigEndian);
273 Bits.putShort(this, ix(i), x, bigEndian);
H A DDirectByteBuffer.java426 private ByteBuffer putShort(long a, short x) { method in class:DirectByteBuffer
431 public ByteBuffer putShort(short x) { method in class:DirectByteBuffer
438 putShort(ix(nextPutIndex(SizeOf.SHORT)), x);
442 public ByteBuffer putShort(int i, short x) { method in class:DirectByteBuffer
449 putShort(ix(checkIndex(i, SizeOf.SHORT)), x);
454 putShort(ix(i), x);
H A DByteBuffer.java181 * bb.putShort(3);
182 * bb.putShort(45);</pre></blockquote>
187 * bb.putInt(0xCAFEBABE).putShort(3).putShort(45);</pre></blockquote>
1057 public abstract ByteBuffer putShort(short value); method in class:ByteBuffer
1096 public abstract ByteBuffer putShort(int index, short value); method in class:ByteBuffer
H A DBits.java202 static void putShort(ByteBuffer bb, int bi, short x, boolean bigEndian) { method in class:Bits
209 static void putShort(long a, short x, boolean bigEndian) { method in class:Bits
/libcore/ojluni/src/main/java/java/io/
H A DBits.java93 static void putShort(byte[] b, int off, short val) { method in class:Bits
H A DObjectOutputStream.java1671 Bits.putShort(primVals, getFieldOffset(name, Short.TYPE), val);
2002 Bits.putShort(buf, pos, (short) v);
2128 Bits.putShort(buf, pos, v[off++]);
H A DObjectStreamClass.java1953 Bits.putShort(buf, off, unsafe.getShort(obj, key));
2007 unsafe.putShort(obj, key, Bits.getShort(buf, off));
/libcore/ojluni/src/main/java/sun/misc/
H A DUnsafe.java300 public native void putShort(Object obj, long offset, short newValue); method in class:Unsafe
367 public native void putShort(long address, short x); method in class:Unsafe
/libcore/luni/src/test/java/libcore/java/nio/
H A DBufferTest.java600 b.putShort((short) 0);
1083 b.putShort((short) 0);
1084 b.putShort(0, (short) 0);
1164 b.putShort((short) 0);
1169 b.putShort(0, (short) 0);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
H A DByteBufferTest.java1942 buf.putShort((short) 1);
1959 buf.putShort(value);
1967 buf.putShort(value);
1979 buf.putShort(0, (short) 1);
1996 buf.putShort(i, value);
2003 buf.putShort(-1, value);
2009 buf.putShort(buf.limit() - nbytes + 1, value);
/libcore/benchmarks/src/benchmarks/regression/
H A DByteBufferBenchmark.java386 src.putShort((short) 0);
/libcore/dex/src/main/java/com/android/dex/
H A DDex.java818 data.putShort(i);

Completed in 174 milliseconds