Home
last modified time | relevance | path

Searched refs:shortValue (Results 1 – 25 of 37) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DShortTest.java68 .shortValue() == (short) -1); in test_decodeLjava_lang_String2()
70 .shortValue() == (short) -100); in test_decodeLjava_lang_String2()
72 .shortValue() == (short) 23); in test_decodeLjava_lang_String2()
74 .shortValue() == (short) 16); in test_decodeLjava_lang_String2()
76 .shortValue() == (short) 32767); in test_decodeLjava_lang_String2()
78 .shortValue() == (short) -32767); in test_decodeLjava_lang_String2()
80 .shortValue() == (short) -32768); in test_decodeLjava_lang_String2()
292 .shortValue()); in test_valueOfLjava_lang_String2()
294 .shortValue()); in test_valueOfLjava_lang_String2()
305 .shortValue()); in test_valueOfLjava_lang_StringI2()
[all …]
DNumberTest.java51 .shortValue()); in test_shortValue()
55 .shortValue()); in test_shortValue()
59 .shortValue()); in test_shortValue()
63 .shortValue()); in test_shortValue()
DByteTest.java348 assertEquals(-1, new Byte((byte) -1).shortValue()); in test_shortValue()
349 assertEquals(0, new Byte((byte) 0).shortValue()); in test_shortValue()
350 assertEquals(1, new Byte((byte) 1).shortValue()); in test_shortValue()
617 assertEquals((short) 127, new Byte((byte) 127).shortValue());
DIntegerTest.java438 assertEquals("Returned incorrect long value", -32768, i.shortValue()); in test_shortValue2()
999 assertEquals(-1, new Integer(-1).shortValue()); in test_shortValue()
1000 assertEquals(0, new Integer(0).shortValue()); in test_shortValue()
1001 assertEquals(1, new Integer(1).shortValue()); in test_shortValue()
DLongTest.java834 assertEquals(-1, new Long(-1).shortValue()); in test_shortValue()
835 assertEquals(0, new Long(0).shortValue()); in test_shortValue()
836 assertEquals(1, new Long(1).shortValue()); in test_shortValue()
/libcore/support/src/test/java/tests/support/
DSupport_GetPutFieldsDeprecated.java46 public short shortValue = 0; field in Support_GetPutFieldsDeprecated
87 shortValue = 3078; in initTestValues()
104 shortValue == other.shortValue in equals()
118 shortValue = getField.get("shortValue", (short) 0); in readObject()
131 putField.put("shortValue", shortValue); in writeObject()
DSupport_GetPutFields.java44 public short shortValue = 0; field in Support_GetPutFields
85 shortValue = 1234; in initTestValues()
102 shortValue == other.shortValue in equals()
117 shortValue = getField.get("shortValue", (short) 0); in readObject()
130 putField.put("shortValue", shortValue); in writeObject()
DSupport_GetPutFieldsDefaulted.java55 public short shortValue = 0; field in Support_GetPutFieldsDefaulted
96 shortValue = 4321; in initTestValues()
113 shortValue == other.shortValue in equals()
129 shortValue = getField.get("shortValue", (short) 4321); in readObject()
/libcore/luni/src/test/java/libcore/java/lang/
DShortTest.java48 assertEquals(b, Integer.valueOf(b).shortValue());
57 assertEquals(b, Long.valueOf(b).shortValue()); in testToUnsignedLong()
/libcore/ojluni/src/main/java/java/lang/
DShort.java337 public short shortValue() { in shortValue() method in Short
426 return value == ((Short)obj).shortValue(); in equals()
DNumber.java118 public short shortValue() { in shortValue() method in Number
DByte.java332 public short shortValue() { in shortValue() method in Byte
DFloat.java592 public short shortValue() { in shortValue() method in Float
DDouble.java669 public short shortValue() { in shortValue() method in Double
/libcore/ojluni/annotations/mmodule/java/lang/
DByte.annotated.java53 public short shortValue() { throw new RuntimeException("Stub!"); } in shortValue() method in Byte
/libcore/ojluni/annotations/hiddenapi/java/lang/
DDouble.java92 public short shortValue() { in shortValue() method in Double
DFloat.java95 public short shortValue() { in shortValue() method in Float
DShort.java78 public short shortValue() { in shortValue() method in Short
DByte.java78 public short shortValue() { in shortValue() method in Byte
DLong.java133 public short shortValue() { in shortValue() method in Long
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DDouble.annotated.java61 public short shortValue() { throw new RuntimeException("Stub!"); } in shortValue() method in Double
DFloat.annotated.java63 public short shortValue() { throw new RuntimeException("Stub!"); } in shortValue() method in Float
DByte.annotated.java53 public short shortValue() { throw new RuntimeException("Stub!"); } in shortValue() method in Byte
/libcore/luni/src/test/java/libcore/java/lang/invoke/
DMethodHandleAccessorsTest.java475 short shortValue = value instanceof Short ? ((Short)value).shortValue() : (short)0; in tryAccessor() local
476 setShort(methodHandle, valueHolder, shortValue, in tryAccessor()
478 setShort(methodHandle, shortValue, in tryAccessor()
480 getShort(methodHandle, valueHolder, shortValue, in tryAccessor()
482 getShort(methodHandle, shortValue, in tryAccessor()
/libcore/luni/src/test/java/libcore/java/math/
DOldBigDecimalConvertTest.java345 assertTrue("incorrect value", aNumber.shortValue() == result); in test_ShortValueNeg()
352 assertTrue("incorrect value", aNumber.shortValue() == result); in test_ShortValuePos()

12