Searched refs:reverseBytes (Results 1 – 13 of 13) sorted by relevance
/libcore/luni/src/main/java/libcore/io/ |
D | Memory.java | 260 result = Integer.reverseBytes(result); in peekInt() 274 result = Long.reverseBytes(result); in peekLong() 287 result = Short.reverseBytes(result); in peekShort() 343 value = Integer.reverseBytes(value); in pokeInt() 356 value = Long.reverseBytes(value); in pokeLong() 368 value = Short.reverseBytes(value); in pokeShort()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ShortTest.java | 678 assertEquals((short) 0xABCD, Short.reverseBytes((short) 0xCDAB)); in test_reverseBytesS() 679 assertEquals((short) 0x1234, Short.reverseBytes((short) 0x3412)); in test_reverseBytesS() 680 assertEquals((short) 0x0011, Short.reverseBytes((short) 0x1100)); in test_reverseBytesS() 681 assertEquals((short) 0x2002, Short.reverseBytes((short) 0x0220)); in test_reverseBytesS()
|
D | LongTest.java | 1040 assertEquals(0xAABBCCDD00112233L, Long.reverseBytes(0x33221100DDCCBBAAL)); in test_reverseBytesJ() 1041 assertEquals(0x1122334455667788L, Long.reverseBytes(0x8877665544332211L)); in test_reverseBytesJ() 1042 assertEquals(0x0011223344556677L, Long.reverseBytes(0x7766554433221100L)); in test_reverseBytesJ() 1043 assertEquals(0x2000000000000002L, Long.reverseBytes(0x0200000000000020L)); in test_reverseBytesJ()
|
D | IntegerTest.java | 1205 assertEquals(0xAABBCCDD, Integer.reverseBytes(0xDDCCBBAA)); in test_reverseBytesI() 1206 assertEquals(0x11223344, Integer.reverseBytes(0x44332211)); in test_reverseBytesI() 1207 assertEquals(0x00112233, Integer.reverseBytes(0x33221100)); in test_reverseBytesI() 1208 assertEquals(0x20000002, Integer.reverseBytes(0x02000020)); in test_reverseBytesI()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Short.java | 527 public static short reverseBytes(short i) { in reverseBytes() method in Short
|
D | Long.java | 1576 public static long reverseBytes(long i) { in reverseBytes() method in Long
|
D | Integer.java | 1580 public static int reverseBytes(int i) { in reverseBytes() method in Integer
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | Long.java | 237 public static long reverseBytes(long i) { in reverseBytes() method in Long
|
D | Integer.java | 237 public static int reverseBytes(int i) { in reverseBytes() method in Integer
|
D | Character.java | 445 public static char reverseBytes(char ch) { in reverseBytes() method in Character
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | Long.annotated.java | 123 public static long reverseBytes(long i) { throw new RuntimeException("Stub!"); } in reverseBytes() method in Long
|
D | Integer.annotated.java | 124 public static int reverseBytes(int i) { throw new RuntimeException("Stub!"); } in reverseBytes() method in Integer
|
D | Character.annotated.java | 205 public static char reverseBytes(char ch) { throw new RuntimeException("Stub!"); } in reverseBytes() method in Character
|