Home
last modified time | relevance | path

Searched refs:reverseBytes (Results 1 – 8 of 8) sorted by relevance

/dalvik/libcore/luni/src/main/java/java/lang/
DShort.java289 public static short reverseBytes(short s) { in reverseBytes() method in Short
DLong.java715 public static long reverseBytes(long lng) { in reverseBytes() method
743 return reverseBytes(lng); in reverse()
DInteger.java829 public static int reverseBytes(int i) { in reverseBytes() method
850 return reverseBytes(i); in reverse()
DCharacter.java3101 public static char reverseBytes(char c) { in reverseBytes() method in Character
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/
DShortTest.java835 assertEquals((short)0xABCD, Short.reverseBytes((short)0xCDAB)); in test_reverseBytesS()
836 assertEquals((short)0x1234, Short.reverseBytes((short)0x3412)); in test_reverseBytesS()
837 assertEquals((short)0x0011, Short.reverseBytes((short)0x1100)); in test_reverseBytesS()
838 assertEquals((short)0x2002, Short.reverseBytes((short)0x0220)); in test_reverseBytesS()
DLongTest.java1293 assertEquals(0xAABBCCDD00112233L, Long.reverseBytes(0x33221100DDCCBBAAL)); in test_reverseBytesJ()
1294 assertEquals(0x1122334455667788L, Long.reverseBytes(0x8877665544332211L)); in test_reverseBytesJ()
1295 assertEquals(0x0011223344556677L, Long.reverseBytes(0x7766554433221100L)); in test_reverseBytesJ()
1296 assertEquals(0x2000000000000002L, Long.reverseBytes(0x0200000000000020L)); in test_reverseBytesJ()
DIntegerTest.java1493 assertEquals(0xAABBCCDD, Integer.reverseBytes(0xDDCCBBAA)); in test_reverseBytesI()
1494 assertEquals(0x11223344, Integer.reverseBytes(0x44332211)); in test_reverseBytesI()
1495 assertEquals(0x00112233, Integer.reverseBytes(0x33221100)); in test_reverseBytesI()
1496 assertEquals(0x20000002, Integer.reverseBytes(0x02000020)); in test_reverseBytesI()
DCharacterTest.java2075 char origReversed= Character.reverseBytes(origChar);