Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/libcore/io/
DMemory.java252 result = Integer.reverseBytes(result); in peekInt()
266 result = Long.reverseBytes(result); in peekLong()
279 result = Short.reverseBytes(result); in peekShort()
342 value = Integer.reverseBytes(value); in pokeInt()
355 value = Long.reverseBytes(value); in pokeLong()
367 value = Short.reverseBytes(value); in pokeShort()
/libcore/ojluni/src/main/java/java/util/zip/
DCRC32C.java112 table[index] = Integer.reverseBytes(table[index]);
229 crc = Integer.reverseBytes(crc); in updateBytes()
274 crc = Integer.reverseBytes(crc); in updateBytes()
304 crc = Integer.reverseBytes(crc); in updateDirectByteBuffer()
336 crc = Integer.reverseBytes(crc); in updateDirectByteBuffer()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DShortTest.java678 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()
DLongTest.java1040 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()
DIntegerTest.java1205 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()
DCharacterTest.java1484 char origReversed = Character.reverseBytes(origChar);
/libcore/luni/src/test/java/libcore/libcore/io/
DMemoryTest.java31 swappedValues[i] = Integer.reverseBytes(values[i]); in testSetIntArray()
72 swappedValues[i] = Long.reverseBytes(values[i]); in testSetLongArray()
/libcore/ojluni/src/main/java/java/nio/
DBits.java49 return Short.reverseBytes(x); in swap()
53 return Character.reverseBytes(x); in swap()
57 return Integer.reverseBytes(x); in swap()
61 return Long.reverseBytes(x); in swap()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DShort.java122 public static short reverseBytes(short i) { in reverseBytes() method in Short
DLong.java237 public static long reverseBytes(long i) { in reverseBytes() method in Long
DInteger.java237 public static int reverseBytes(int i) { in reverseBytes() method in Integer
DCharacter.java445 public static char reverseBytes(char ch) { in reverseBytes() method in Character
/libcore/ojluni/src/main/java/java/lang/
DShort.java571 public static short reverseBytes(short i) { in reverseBytes() method in Short
DInteger.java1904 return reverseBytes(i); in reverse()
1931 public static int reverseBytes(int i) { in reverseBytes() method in Integer
DLong.java1949 return reverseBytes(i); in reverse()
1976 public static long reverseBytes(long i) { in reverseBytes() method
DCharacter.java11736 public static char reverseBytes(char ch) { in reverseBytes() method in Character
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DInteger.annotated.java128 public static int reverseBytes(int i) { throw new RuntimeException("Stub!"); } in reverseBytes() method in Integer
DLong.annotated.java127 public static long reverseBytes(long i) { throw new RuntimeException("Stub!"); } in reverseBytes() method in Long
DCharacter.annotated.java205 public static char reverseBytes(char ch) { throw new RuntimeException("Stub!"); } in reverseBytes() method in Character
/libcore/ojluni/annotations/flagged_api/java/lang/
DCharacter.annotated.java209 public static char reverseBytes(char ch) { throw new RuntimeException("Stub!"); } in reverseBytes() method in Character
/libcore/api/
Dcurrent.txt2504 method public static char reverseBytes(char);
3455 method public static int reverseBytes(int);
3533 method public static long reverseBytes(long);
3940 method public static short reverseBytes(short);