Home
last modified time | relevance | path

Searched refs:getShort (Results 1 – 25 of 35) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/nio/
DOldAndroidNIOTest.java226 assertEquals((short) 0xA1A0, b.getShort()); in byteBufferTest()
227 assertEquals((short) 0xA3A2, b.getShort()); in byteBufferTest()
228 assertEquals((short) 0xA5A4, b.getShort()); in byteBufferTest()
229 assertEquals((short) 0xA7A6, b.getShort()); in byteBufferTest()
230 assertEquals((short) 0xA9A8, b.getShort()); in byteBufferTest()
231 assertEquals((short) 0xABAA, b.getShort()); in byteBufferTest()
233 bb.getShort(); in byteBufferTest()
241 assertEquals((short) 0xA0A1, b.getShort()); in byteBufferTest()
242 assertEquals((short) 0xA2A3, b.getShort()); in byteBufferTest()
243 assertEquals((short) 0xA4A5, b.getShort()); in byteBufferTest()
[all …]
/libcore/ojluni/src/main/java/sun/nio/ch/
DAbstractPollArrayWrapper.java58 return pollArray.getShort(offset); in getEventOps()
63 return pollArray.getShort(offset); in getReventOps()
DNativeObject.java202 final short getShort(int offset) { in getShort() method in NativeObject
203 return unsafe.getShort(offset + address); in getShort()
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DArrayTest.java129 try { Array.getShort(booleans, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetShort()
130 assertEquals((int) bytes[0], Array.getShort(bytes, 0)); in testGetShort()
131 try { Array.getShort(chars, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetShort()
132 try { Array.getShort(doubles, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetShort()
133 try { Array.getShort(floats, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetShort()
134 try { Array.getShort(ints, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetShort()
135 try { Array.getShort(longs, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetShort()
136 assertEquals(shorts[0], Array.getShort(shorts, 0)); in testGetShort()
137 try { Array.getShort(null, 0); fail(); } catch (NullPointerException expected) {} in testGetShort()
/libcore/ojluni/src/main/java/java/nio/
DHeapByteBuffer.java257 public short getShort() { in getShort() method in HeapByteBuffer
258 return Bits.getShort(this, ix(nextGetIndex(2)), bigEndian); in getShort()
262 public short getShort(int i) { in getShort() method in HeapByteBuffer
263 return Bits.getShort(this, ix(checkIndex(i, 2)), bigEndian); in getShort()
268 return Bits.getShort(this, ix(i), bigEndian); in getShortUnchecked()
DDirectByteBuffer.java451 private short getShort(long a) { in getShort() method in DirectByteBuffer
456 public final short getShort() { in getShort() method in DirectByteBuffer
460 return getShort(ix(nextGetIndex(Short.BYTES))); in getShort()
464 public final short getShort(int i) { in getShort() method in DirectByteBuffer
468 return getShort(ix(checkIndex(i, Short.BYTES))); in getShort()
476 return getShort(ix(i)); in getShortUnchecked()
DByteBuffer.java1200 public abstract short getShort(); in getShort() method in ByteBuffer
1240 public abstract short getShort(int index); in getShort() method in ByteBuffer
/libcore/ojluni/annotations/mmodule/java/nio/
DDirectByteBuffer.annotated.java81 public final short getShort() { throw new RuntimeException("Stub!"); } in getShort() method in DirectByteBuffer
83 public final short getShort(int i) { throw new RuntimeException("Stub!"); } in getShort() method in DirectByteBuffer
DByteBuffer.annotated.java102 public abstract short getShort(); in getShort() method in ByteBuffer
106 public abstract short getShort(int index); in getShort() method in ByteBuffer
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DArrayTest.java446 ret = Array.getShort(x, 0); in test_getShortLjava_lang_ObjectI()
452 ret = Array.getShort(new Object(), 0); in test_getShortLjava_lang_ObjectI()
462 ret = Array.getShort(x, 4); in test_getShortLjava_lang_ObjectI()
472 ret = Array.getShort(null, 0); in test_getShortLjava_lang_ObjectI()
955 assertEquals("Get returned incorrect value", 1, Array.getShort(x, 0)); in test_setShortLjava_lang_ObjectIS()
DFieldTest.java257 res = new Short(f.getShort(o)); in getField()
1001 val = f.getShort(x); in test_getShortLjava_lang_Object()
1011 f.getShort(x); in test_getShortLjava_lang_Object()
1025 f.getShort(null); in test_getShortLjava_lang_Object()
1038 short staticValue = f.getShort(null); in test_getShortLjava_lang_Object()
1474 val = f.getShort(x); in test_setShortLjava_lang_ObjectS()
1508 val = f.getShort(x); in test_setShortLjava_lang_ObjectS()
/libcore/ojluni/annotations/hiddenapi/java/nio/
DDirectByteBuffer.java203 private short getShort(long a) { in getShort() method in DirectByteBuffer
207 public final short getShort() { in getShort() method in DirectByteBuffer
211 public final short getShort(int i) { in getShort() method in DirectByteBuffer
DByteBuffer.java167 public abstract short getShort(); in getShort() method in ByteBuffer
171 public abstract short getShort(int index); in getShort() method in ByteBuffer
/libcore/luni/src/test/java/tests/java/sql/
DDatabaseMetaDataTest.java202 .getShort("SCOPE")); in test_getBestRowIdentifierLjava_lang_StringLjava_lang_StringLjava_lang_StringIZ()
480 .getShort("KEY_SEQ")); in test_getCrossReferenceLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_String()
483 .getShort("UPDATE_RULE")); in test_getCrossReferenceLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_String()
486 .getShort("DELETE_RULE")); in test_getCrossReferenceLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_String()
491 .getShort("DEFERRABILITY")); in test_getCrossReferenceLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_String()
718 .getShort("KEY_SEQ")); in test_getImportedKeysLjava_lang_StringLjava_lang_StringLjava_lang_String()
721 .getShort("UPDATE_RULE")); in test_getImportedKeysLjava_lang_StringLjava_lang_StringLjava_lang_String()
724 .getShort("DELETE_RULE")); in test_getImportedKeysLjava_lang_StringLjava_lang_StringLjava_lang_String()
730 .getShort("DEFERRABILITY")); in test_getImportedKeysLjava_lang_StringLjava_lang_StringLjava_lang_String()
851 assertEquals("Incorrect sequence number", 1, rs.getShort("KEY_SEQ")); in test_getPrimaryKeysLjava_lang_StringLjava_lang_StringLjava_lang_String()
[all …]
DDatabaseMetaDataNotSupportedTest.java283 rs.getShort("TYPE")); in test_getIndexInfoLjava_lang_StringLjava_lang_StringLjava_lang_StringZZ()
285 .getShort("ORDINAL_POSITION")); in test_getIndexInfoLjava_lang_StringLjava_lang_StringLjava_lang_StringZZ()
380 .getShort("KEY_SEQ")); in test_getExportedKeysLjava_lang_StringLjava_lang_StringLjava_lang_String()
383 .getShort("UPDATE_RULE")); in test_getExportedKeysLjava_lang_StringLjava_lang_StringLjava_lang_String()
386 .getShort("DELETE_RULE")); in test_getExportedKeysLjava_lang_StringLjava_lang_StringLjava_lang_String()
392 .getShort("DEFERRABILITY")); in test_getExportedKeysLjava_lang_StringLjava_lang_StringLjava_lang_String()
/libcore/ojluni/src/main/java/sun/misc/
DUnsafe.java329 public native short getShort(Object obj, long offset); in getShort() method in Unsafe
395 public native short getShort(long address); in getShort() method in Unsafe
/libcore/ojluni/annotations/sdk/nullability/java/nio/
DByteBuffer.annotated.java113 public abstract short getShort(); in getShort() method in ByteBuffer
117 public abstract short getShort(int index); in getShort() method in ByteBuffer
/libcore/ojluni/src/main/java/java/io/
DBits.java48 static short getShort(byte[] b, int off) { in getShort() method in Bits
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DUnsafe.java146 public native short getShort(java.lang.Object obj, long offset); in getShort() method in Unsafe
198 public native short getShort(long address); in getShort() method in Unsafe
/libcore/ojluni/src/main/java/java/sql/
DCallableStatement.java220 short getShort(int parameterIndex) throws SQLException; in getShort() method
1405 short getShort(String parameterName) throws SQLException; in getShort() method
/libcore/luni/src/test/java/libcore/java/lang/invoke/
DMethodHandleAccessorsTest.java181 static void getShort(MethodHandle m, ValueHolder v, short value, boolean expectFailure) in getShort() method in MethodHandleAccessorsTest
194 static void getShort(MethodHandle m, short value, boolean expectFailure) throws Throwable { in getShort() method in MethodHandleAccessorsTest
195 getShort(m, null, value, expectFailure); in getShort()
480 getShort(methodHandle, valueHolder, shortValue, in tryAccessor()
482 getShort(methodHandle, shortValue, in tryAccessor()
/libcore/luni/src/test/java/libcore/java/sql/
DOldResultSetGetterTests.java806 short shorty = res.getShort(6); in testGetShortInt()
810 shorty = res.getShort(6); in testGetShortInt()
814 res.getShort(500); in testGetShortInt()
822 short shorty = res.getShort("Sint"); in testGetShortString()
826 shorty = res.getShort("Sint"); in testGetShortString()
830 res.getShort("bla"); in testGetShortString()
/libcore/ojluni/annotations/hiddenapi/java/lang/reflect/
DField.java103 public native short getShort(java.lang.Object obj) in getShort() method in Field
/libcore/ojluni/src/main/java/java/lang/reflect/
DField.java456 public native short getShort(Object obj) in getShort() method in Field
/libcore/ojluni/annotations/sdk/nullability/java/lang/reflect/
DArray.annotated.java50 public static short getShort(@libcore.util.NonNull java.lang.Object array, int index) throws java.l… in getShort() method in Array

12