/libcore/ojluni/src/main/java/java/nio/ |
H A D | ByteOrder.java | 37 public final class ByteOrder { class 41 private ByteOrder(String name) { method in class:ByteOrder 50 public static final ByteOrder BIG_ENDIAN 51 = new ByteOrder("BIG_ENDIAN"); 58 public static final ByteOrder LITTLE_ENDIAN 59 = new ByteOrder("LITTLE_ENDIAN"); 72 public static ByteOrder nativeOrder() {
|
H A D | ByteBufferAsDoubleBuffer.java | 35 private final ByteOrder order; 39 int off, ByteOrder order) { 157 public ByteOrder order() {
|
H A D | ByteBufferAsFloatBuffer.java | 34 private final ByteOrder order; 38 int off, ByteOrder order) { 156 public ByteOrder order() {
|
H A D | ByteBufferAsIntBuffer.java | 34 private final ByteOrder order; 38 int off, ByteOrder order) { 156 public ByteOrder order() {
|
H A D | ByteBufferAsLongBuffer.java | 34 private final ByteOrder order; 38 int off, ByteOrder order) { 156 public ByteOrder order() {
|
H A D | ByteBufferAsShortBuffer.java | 34 private final ByteOrder order; 38 int off, ByteOrder order) { 155 public ByteOrder order() {
|
H A D | StringCharBuffer.java | 123 public ByteOrder order() { 124 return ByteOrder.nativeOrder();
|
H A D | ByteBuffer.java | 118 * ByteOrder} class. The initial order of a byte buffer is always {@link 119 * ByteOrder#BIG_ENDIAN BIG_ENDIAN}. 897 = (Bits.byteOrder() == ByteOrder.BIG_ENDIAN); 904 * a newly-created byte buffer is always {@link ByteOrder#BIG_ENDIAN 909 public final ByteOrder order() { 910 return bigEndian ? ByteOrder.BIG_ENDIAN : ByteOrder.LITTLE_ENDIAN; 917 * either {@link ByteOrder#BIG_ENDIAN BIG_ENDIAN} 918 * or {@link ByteOrder#LITTLE_ENDIAN LITTLE_ENDIAN} 921 public final ByteBuffer order(ByteOrder b [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
H A D | ByteOrderTest.java | 20 import java.nio.ByteOrder; 25 * Test java.nio.ByteOrder 31 assertEquals(ByteOrder.BIG_ENDIAN.toString(), "BIG_ENDIAN"); 32 assertEquals(ByteOrder.LITTLE_ENDIAN.toString(), "LITTLE_ENDIAN"); 36 ByteOrder o = ByteOrder.nativeOrder(); 37 assertTrue(o == ByteOrder.BIG_ENDIAN || o == ByteOrder.LITTLE_ENDIAN);
|
H A D | ByteBufferTest.java | 23 import java.nio.ByteOrder; 486 assertEquals(ByteOrder.BIG_ENDIAN, buf.order()); 488 buf.order(ByteOrder.LITTLE_ENDIAN); 489 assertEquals(ByteOrder.LITTLE_ENDIAN, buf.order()); 491 buf.order(ByteOrder.BIG_ENDIAN); 492 assertEquals(ByteOrder.BIG_ENDIAN, buf.order()); 495 buf.order((ByteOrder)null); 496 assertEquals(ByteOrder.LITTLE_ENDIAN, buf.order()); 498 buf.order(ByteOrder.BIG_ENDIAN); 821 buf.order(ByteOrder [all...] |
H A D | DirectCharBufferTest.java | 19 import java.nio.ByteOrder; 77 assertEquals(ByteOrder.BIG_ENDIAN, buf.order());
|
H A D | DirectDoubleBufferTest.java | 19 import java.nio.ByteOrder; 76 assertEquals(ByteOrder.BIG_ENDIAN, buf.order());
|
H A D | DirectFloatBufferTest.java | 19 import java.nio.ByteOrder; 77 assertEquals(ByteOrder.BIG_ENDIAN, buf.order());
|
H A D | DirectIntBufferTest.java | 19 import java.nio.ByteOrder; 77 assertEquals(ByteOrder.BIG_ENDIAN, buf.order());
|
H A D | DirectLongBufferTest.java | 19 import java.nio.ByteOrder; 77 assertEquals(ByteOrder.BIG_ENDIAN, buf.order());
|
H A D | DirectShortBufferTest.java | 19 import java.nio.ByteOrder; 77 assertEquals(ByteOrder.BIG_ENDIAN, buf.order());
|
H A D | DirectByteBufferTest.java | 19 import java.nio.ByteOrder; 70 buf.order(ByteOrder.BIG_ENDIAN);
|
/libcore/luni/src/test/java/libcore/java/nio/ |
H A D | BufferTest.java | 28 import java.nio.ByteOrder; 135 b.order(ByteOrder.BIG_ENDIAN).asCharBuffer().get(chars, 1, 4); 137 b.order(ByteOrder.LITTLE_ENDIAN).asCharBuffer().get(chars, 1, 4); 141 b.order(ByteOrder.BIG_ENDIAN).asDoubleBuffer().get(doubles, 1, 1); 145 b.order(ByteOrder.LITTLE_ENDIAN).asDoubleBuffer().get(doubles, 1, 1); 151 b.order(ByteOrder.BIG_ENDIAN).asFloatBuffer().get(floats, 1, 2); 156 b.order(ByteOrder.LITTLE_ENDIAN).asFloatBuffer().get(floats, 1, 2); 163 b.order(ByteOrder.BIG_ENDIAN).asIntBuffer().get(ints, 1, 2); 168 b.order(ByteOrder.LITTLE_ENDIAN).asIntBuffer().get(ints, 1, 2); 175 b.order(ByteOrder [all...] |
H A D | OldDirectIntBufferTest.java | 19 import java.nio.ByteOrder; 30 byteBuffer.order(ByteOrder.nativeOrder());
|
H A D | OldDirectShortBufferTest.java | 19 import java.nio.ByteOrder; 30 byteBuffer.order(ByteOrder.nativeOrder());
|
H A D | OldAndroidNIOTest.java | 23 import java.nio.ByteOrder; 75 b.order(ByteOrder.LITTLE_ENDIAN); 77 assertEquals(ByteOrder.BIG_ENDIAN, dupe.order()); 78 b.order(ByteOrder.BIG_ENDIAN); 153 b.order(ByteOrder.LITTLE_ENDIAN); 174 b.order(ByteOrder.BIG_ENDIAN); 224 b.order(ByteOrder.LITTLE_ENDIAN); 239 b.order(ByteOrder.BIG_ENDIAN); 255 b.order(ByteOrder.LITTLE_ENDIAN); 267 b.order(ByteOrder [all...] |
/libcore/luni/src/main/java/libcore/io/ |
H A D | MemoryMappedFile.java | 23 import java.nio.ByteOrder; 77 return new NioBufferIterator(address, (int) size, ByteOrder.nativeOrder() != ByteOrder.BIG_ENDIAN); 84 return new NioBufferIterator(address, (int) size, ByteOrder.nativeOrder() != ByteOrder.LITTLE_ENDIAN);
|
H A D | Memory.java | 23 import java.nio.ByteOrder; 45 public static int peekInt(byte[] src, int offset, ByteOrder order) { 46 if (order == ByteOrder.BIG_ENDIAN) { 59 public static long peekLong(byte[] src, int offset, ByteOrder order) { 60 if (order == ByteOrder.BIG_ENDIAN) { 83 public static short peekShort(byte[] src, int offset, ByteOrder order) { 84 if (order == ByteOrder.BIG_ENDIAN) { 91 public static void pokeInt(byte[] dst, int offset, int value, ByteOrder order) { 92 if (order == ByteOrder.BIG_ENDIAN) { 105 public static void pokeLong(byte[] dst, int offset, long value, ByteOrder orde [all...] |
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/ |
H A D | ChunkHandler.java | 20 import java.nio.ByteOrder; 30 public static final ByteOrder CHUNK_ORDER = ByteOrder.BIG_ENDIAN;
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | NativeObject.java | 31 import java.nio.ByteOrder; 365 private static ByteOrder byteOrder = null; 370 * @return An instance of {@link java.nio.ByteOrder} 372 static ByteOrder byteOrder() { 380 case 0x01: byteOrder = ByteOrder.BIG_ENDIAN; break; 381 case 0x08: byteOrder = ByteOrder.LITTLE_ENDIAN; break;
|