Home
last modified time | relevance | path

Searched refs:getShort (Results 1 – 25 of 28) 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 …]
DBufferTest.java563 b.getShort(); in testRelativePositions()
1195 b.getShort(); in testGetMethods()
1196 b.getShort(0); in testGetMethods()
1271 b.getShort(); in testFailForGetMethods()
1276 b.getShort(0); in testFailForGetMethods()
/libcore/ojluni/src/main/java/sun/nio/ch/
DAbstractPollArrayWrapper.java66 return pollArray.getShort(offset); in getEventOps()
71 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()
DDevPollArrayWrapper.java149 return pollArray.getShort(offset); in getEventOps()
154 return pollArray.getShort(offset); in getReventOps()
/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.java240 public short getShort() { in getShort() method in HeapByteBuffer
241 return Bits.getShort(this, ix(nextGetIndex(2)), bigEndian); in getShort()
244 public short getShort(int i) { in getShort() method in HeapByteBuffer
245 return Bits.getShort(this, ix(checkIndex(i, 2)), bigEndian); in getShort()
249 return Bits.getShort(this, ix(i), bigEndian); in getShortUnchecked()
DDirectByteBuffer.java398 private short getShort(long a) { in getShort() method in DirectByteBuffer
402 public short getShort() { in getShort() method in DirectByteBuffer
406 return getShort(ix(nextGetIndex(SizeOf.SHORT))); in getShort()
409 public short getShort(int i) { in getShort() method in DirectByteBuffer
413 return getShort(ix(checkIndex(i, SizeOf.SHORT))); in getShort()
417 return getShort(ix(i)); in getShortUnchecked()
DByteBuffer.java1041 public abstract short getShort(); in getShort() method in ByteBuffer
1071 public abstract short getShort(int index); in getShort() method in ByteBuffer
DBits.java166 static short getShort(ByteBuffer bb, int bi, boolean bigEndian) { in getShort() method in Bits
170 static short getShort(long a, boolean bigEndian) { in getShort() method in Bits
/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/src/main/java/sun/misc/
DUnsafe.java299 public native short getShort(Object obj, long offset); in getShort() method in Unsafe
365 public native short getShort(long address); in getShort() method in Unsafe
/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()
DMultiThreadAccessTest.java295 .getShort("fsmallint"));
/libcore/dex/src/main/java/com/android/dex/
DDex.java381 return data.getShort(position) & 0xFFFF; // typeIndex in typeIndexFromFieldIndex()
391 return data.getShort(position) & 0xFFFF; // declaringClassIndex in declaringClassIndexFromMethodIndex()
414 int protoIndex = data.getShort(position) & 0xFFFF; in parameterTypeIndicesFromMethodIndex()
431 types[i] = data.getShort(position); in parameterTypeIndicesFromMethodIndex()
445 int protoIndex = data.getShort(position) & 0xFFFF; in returnTypeIndexFromMethodIndex()
507 types[i] = data.getShort(position); in interfaceTypeIndicesFromClassDefIndex()
533 return data.getShort(); in readShort()
/libcore/ojluni/src/main/java/java/io/
DBits.java48 static short getShort(byte[] b, int off) { in getShort() method in Bits
/libcore/ojluni/src/main/java/java/sql/
DCallableStatement.java220 short getShort(int parameterIndex) throws SQLException; in getShort() method
1403 short getShort(String parameterName) throws SQLException; in getShort() method
DResultSet.java288 short getShort(int columnIndex) throws SQLException; in getShort() method
574 short getShort(String columnLabel) throws SQLException; in getShort() method
/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/src/main/java/java/lang/reflect/
DField.java421 public native short getShort(Object object) in getShort() method in Field
DArray.java287 …public static short getShort(Object array, int index) throws IllegalArgumentException, ArrayIndexO… in getShort() method in Array
/libcore/luni/src/test/java/libcore/java/nio/charset/
DModifiedUtf8Test.java311 assertEquals(testStringLength, b.getShort()); in test_encode_lengthAtBeginning()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DByteBufferTest.java1893 value = buf.getShort(); in testGetShort()
1898 buf.getShort(); in testGetShort()
1916 value = buf.getShort(i); in testGetShortint()
1923 buf.getShort(-1); in testGetShortint()
1929 buf.getShort(buf.limit() - nbytes + 1); in testGetShortint()

12