Home
last modified time | relevance | path

Searched refs:byteValue (Results 1 – 25 of 29) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DByteTest.java86 assertEquals(1, new Byte((byte) 1).byteValue()); in test_ConstructorB()
87 assertEquals(2, new Byte((byte) 2).byteValue()); in test_ConstructorB()
88 assertEquals(0, new Byte((byte) 0).byteValue()); in test_ConstructorB()
89 assertEquals(-1, new Byte((byte) -1).byteValue()); in test_ConstructorB()
96 assertEquals(1, new Byte((byte) 1).byteValue()); in test_booleanValue()
97 assertEquals(2, new Byte((byte) 2).byteValue()); in test_booleanValue()
98 assertEquals(0, new Byte((byte) 0).byteValue()); in test_booleanValue()
99 assertEquals(-1, new Byte((byte) -1).byteValue()); in test_booleanValue()
178 assertEquals(Character.digit('1', 2), Byte.valueOf("1", 2).byteValue()); in test_valueOfLjava_lang_StringI()
179 assertEquals(Character.digit('F', 16), Byte.valueOf("F", 16).byteValue()); in test_valueOfLjava_lang_StringI()
[all …]
DNumberTest.java29 .byteValue()); in test_byteValue()
33 .byteValue()); in test_byteValue()
37 .byteValue()); in test_byteValue()
41 .byteValue()); in test_byteValue()
DShortTest.java31 .byteValue()); in test_byteValue()
33 .byteValue()); in test_byteValue()
417 assertEquals(1, new Short((short) 1).byteValue()); in test_booleanValue()
418 assertEquals(2, new Short((short) 2).byteValue()); in test_booleanValue()
419 assertEquals(0, new Short((short) 0).byteValue()); in test_booleanValue()
420 assertEquals(-1, new Short((short) -1).byteValue()); in test_booleanValue()
499 assertEquals(Character.digit('1', 2), Short.valueOf("1", 2).byteValue()); in test_valueOfLjava_lang_StringI()
500 assertEquals(Character.digit('F', 16), Short.valueOf("F", 16).byteValue()); in test_valueOfLjava_lang_StringI()
DLongTest.java42 assertEquals("Returned incorrect byte value", 127, l.byteValue()); in test_byteValue()
44 .byteValue()); in test_byteValue()
582 assertEquals(1, new Long(1).byteValue()); in test_booleanValue()
583 assertEquals(2, new Long(2).byteValue()); in test_booleanValue()
584 assertEquals(0, new Long(0).byteValue()); in test_booleanValue()
585 assertEquals(-1, new Long(-1).byteValue()); in test_booleanValue()
664 assertEquals(Character.digit('1', 2), Long.valueOf("1", 2).byteValue()); in test_valueOfLjava_lang_StringJ()
665 assertEquals(Character.digit('F', 16), Long.valueOf("F", 16).byteValue()); in test_valueOfLjava_lang_StringJ()
DIntegerTest.java42 .byteValue()); in test_byteValue()
44 .byteValue()); in test_byteValue()
747 assertEquals(1, new Integer(1).byteValue()); in test_booleanValue()
748 assertEquals(2, new Integer(2).byteValue()); in test_booleanValue()
749 assertEquals(0, new Integer(0).byteValue()); in test_booleanValue()
750 assertEquals(-1, new Integer(-1).byteValue()); in test_booleanValue()
829 assertEquals(Character.digit('1', 2), Integer.valueOf("1", 2).byteValue()); in test_valueOfLjava_lang_StringI()
830 assertEquals(Character.digit('F', 16), Integer.valueOf("F", 16).byteValue()); in test_valueOfLjava_lang_StringI()
DFloatTest.java124 assertTrue("Returned incorrect byte value", f.byteValue() == 0 && f2.byteValue() == 90); in test_byteValue()
DDoubleTest.java240 assertEquals("Returned incorrect byte value", (byte) -17, d.byteValue()); in test_byteValue()
/libcore/support/src/test/java/tests/support/
DSupport_GetPutFields.java38 public byte byteValue = 0; field in Support_GetPutFields
78 byteValue = (byte) 0xbe; in initTestValues()
95 byteValue == other.byteValue && in equals()
109 byteValue = getField.get("byteValue", (byte) 0); in readObject()
123 putField.put("byteValue", byteValue); in writeObject()
DSupport_GetPutFieldsDeprecated.java40 public byte byteValue = 0; field in Support_GetPutFieldsDeprecated
80 byteValue = (byte) 0xbe; in initTestValues()
97 byteValue == other.byteValue && in equals()
110 byteValue = getField.get("byteValue", (byte) 0); in readObject()
124 putField.put("byteValue", byteValue); in writeObject()
DSupport_GetPutFieldsDefaulted.java49 public byte byteValue = 0; field in Support_GetPutFieldsDefaulted
89 byteValue = (byte) 0x0b; in initTestValues()
106 byteValue == other.byteValue && in equals()
120 byteValue = getField.get("byteValue", (byte) 0x0b); in readObject()
/libcore/luni/src/test/java/libcore/java/math/
DOldBigDecimalConvertTest.java250 byte bNumber = bdNumber.byteValue(); in test_ByteValuePos()
260 byte bNumber = bdNumber.byteValue(); in test_ByteValueNeg()
272 byte bNumber = bdNumber.byteValue(); in test_ByteValueCharZero()
282 byte bNumber = bdNumber.byteValue(); in test_ByteValueStringZero()
290 byte bNumber = bdNumber.byteValue(); in test_ByteValueDoubleMax()
298 byte bNumber = bdNumber.byteValue(); in test_ByteValueDoubleMin()
306 byte bNumber = bdNumber.byteValue(); in test_ByteValueFloatNeg()
313 byte bNumber = bdNumber.byteValue(); in test_ByteValueDouble()
321 byte bNumber = bdNumber.byteValue(); in test_ByteValueLongMin()
329 byte bNumber = bdNumber.byteValue(); in test_ByteValueIntMin()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/
DOldDoubleTest.java25 assertEquals("Returned incorrect byte value", Byte.MAX_VALUE, d.byteValue()); in test_byteValue()
27 assertEquals("Returned incorrect byte value", Byte.MIN_VALUE, d.byteValue()); in test_byteValue()
29 assertEquals("Returned incorrect byte value", -1, d.byteValue()); in test_byteValue()
/libcore/ojluni/src/main/java/java/lang/
DNumber.java94 public byte byteValue() { in byteValue() method in Number
DByte.java323 public byte byteValue() { in byteValue() method in Byte
415 return value == ((Byte)obj).byteValue(); in equals()
DShort.java328 public byte byteValue() { in byteValue() method in Short
DFloat.java586 public byte byteValue() { in byteValue() method in Float
DDouble.java665 public byte byteValue() { in byteValue() method in Double
DLong.java711 public byte byteValue() { in byteValue() method in Long
DInteger.java713 public byte byteValue() {
/libcore/luni/src/test/java/libcore/java/nio/charset/
DCharsetDecoderTest.java57 arr = prependByteToByteArray(arr, new Integer(1).byteValue()); in test_ByteArray_decode_with_offset()
73 arr = prependByteToByteArray(arr, new Integer(1).byteValue()); in test_ByteArray_decode_with_offset_using_facade_method()
/libcore/luni/src/test/java/libcore/java/io/
DOldObjectInputStreamGetFieldTest.java65 public byte byteValue; field in OldObjectInputStreamGetFieldTest
/libcore/ojluni/src/main/java/sun/nio/ch/
DEPollArrayWrapper.java193 return result.byteValue(); in getUpdateEvents()
DDevPollArrayWrapper.java176 return result.byteValue(); in getUpdateEvents()
/libcore/luni/src/test/java/libcore/java/text/
DNumberFormatTest.java34 public byte byteValue() { throw new UnsupportedOperationException(); } in test_custom_Number_gets_longValue() method in NumberFormatTest.MyNumber
/libcore/ojluni/src/main/java/java/lang/reflect/
DArray.java458 setByte(array, index, ((Byte) value).byteValue()); in set()

12