/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ByteTest.java | 86 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 …]
|
D | NumberTest.java | 29 .byteValue()); in test_byteValue() 33 .byteValue()); in test_byteValue() 37 .byteValue()); in test_byteValue() 41 .byteValue()); in test_byteValue()
|
D | ShortTest.java | 31 .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()
|
D | LongTest.java | 42 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()
|
D | IntegerTest.java | 42 .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/ |
D | Support_GetPutFields.java | 38 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()
|
D | Support_GetPutFieldsDeprecated.java | 40 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()
|
D | Support_GetPutFieldsDefaulted.java | 49 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/ |
D | OldBigDecimalConvertTest.java | 250 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/ |
D | OldDoubleTest.java | 25 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()
|
D | ByteTest.java | 48 assertEquals(b, Integer.valueOf(b).byteValue()); 57 assertEquals(b, Long.valueOf(b).byteValue()); in testToUnsignedLong()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Number.java | 103 public byte byteValue() { in byteValue() method in Number
|
D | Byte.java | 325 public byte byteValue() { in byteValue() method in Byte 423 return value == ((Byte)obj).byteValue(); in equals()
|
D | Short.java | 329 public byte byteValue() { in byteValue() method in Short
|
/libcore/luni/src/test/java/libcore/libcore/util/ |
D | HexEncodingTest.java | 47 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/ |
D | CharsetDecoderTest.java | 57 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/ |
D | Float.java | 91 public byte byteValue() { in byteValue() method in Float
|
D | Short.java | 74 public byte byteValue() { in byteValue() method in Short
|
D | Double.java | 88 public byte byteValue() { in byteValue() method in Double
|
D | Byte.java | 74 public byte byteValue() { in byteValue() method in Byte
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | Double.annotated.java | 59 public byte byteValue() { throw new RuntimeException("Stub!"); } in byteValue() method in Double
|
D | Byte.annotated.java | 51 public byte byteValue() { throw new RuntimeException("Stub!"); } in byteValue() method in Byte
|
D | Float.annotated.java | 61 public byte byteValue() { throw new RuntimeException("Stub!"); } in byteValue() method in Float
|
/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
D | ExplicitCastArgumentsTest.java | 471 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 …]
|
D | MethodHandleAccessorsTest.java | 455 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()
|