Home
last modified time | relevance | path

Searched refs:byteValue (Results 1 – 25 of 44) 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()
/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()
DByteTest.java48 assertEquals(b, Integer.valueOf(b).byteValue());
57 assertEquals(b, Long.valueOf(b).byteValue()); in testToUnsignedLong()
/libcore/ojluni/src/main/java/java/lang/
DNumber.java103 public byte byteValue() { in byteValue() method in Number
DByte.java325 public byte byteValue() { in byteValue() method in Byte
423 return value == ((Byte)obj).byteValue(); in equals()
DShort.java329 public byte byteValue() { in byteValue() method in Short
/libcore/luni/src/test/java/libcore/libcore/util/
DHexEncodingTest.java47 String actualUpper = encodeToString(toEncode.byteValue(), true /* upperCase */); in testEncodeByte()
50 String actualLower = encodeToString(toEncode.byteValue(), false /* upperCase */); in testEncodeByte()
/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/ojluni/annotations/hiddenapi/java/lang/
DFloat.java91 public byte byteValue() { in byteValue() method in Float
DShort.java74 public byte byteValue() { in byteValue() method in Short
DDouble.java88 public byte byteValue() { in byteValue() method in Double
DByte.java74 public byte byteValue() { in byteValue() method in Byte
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DDouble.annotated.java59 public byte byteValue() { throw new RuntimeException("Stub!"); } in byteValue() method in Double
DByte.annotated.java51 public byte byteValue() { throw new RuntimeException("Stub!"); } in byteValue() method in Byte
DFloat.annotated.java61 public byte byteValue() { throw new RuntimeException("Stub!"); } in byteValue() method in Float
/libcore/luni/src/test/java/libcore/java/lang/invoke/
DExplicitCastArgumentsTest.java471 Boolean o = (Boolean) mh.invokeExact(BYTE_VALUES[0].byteValue()); in explicitCastArgumentBToBoolean()
488 Character o = (Character) mh.invokeExact(BYTE_VALUES[0].byteValue()); in explicitCastArgumentBToCharacter()
497 Short o = (Short) mh.invokeExact(BYTE_VALUES[0].byteValue()); in explicitCastArgumentBToShort()
506 Integer o = (Integer) mh.invokeExact(BYTE_VALUES[0].byteValue()); in explicitCastArgumentBToInteger()
515 Long o = (Long) mh.invokeExact(BYTE_VALUES[0].byteValue()); in explicitCastArgumentBToLong()
524 Float o = (Float) mh.invokeExact(BYTE_VALUES[0].byteValue()); in explicitCastArgumentBToFloat()
533 Double o = (Double) mh.invokeExact(BYTE_VALUES[0].byteValue()); in explicitCastArgumentBToDouble()
1487 assertEquals(toBooleanValue(v.byteValue()), (boolean) mh.invokeExact(v)); in explicitCastArgumentByteToZ()
1495 assertEquals(v.byteValue(), (byte) mh.invokeExact(v)); in explicitCastArgumentByteToB()
1503 assertEquals((char) v.byteValue(), (char) mh.invokeExact(v)); in explicitCastArgumentByteToC()
[all …]
DMethodHandleAccessorsTest.java455 byte byteValue = value instanceof Byte ? ((Byte)value).byteValue() : (byte)0; in tryAccessor()
456 setByte(methodHandle, valueHolder, byteValue, in tryAccessor()
458 setByte(methodHandle, byteValue, in tryAccessor()
460 getByte(methodHandle, valueHolder, byteValue, in tryAccessor()
462 getByte(methodHandle, byteValue, in tryAccessor()

12