/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
D | ByteBufferTest.java | 490 assertEquals(ByteOrder.BIG_ENDIAN, buf.order()); in testOrder() 495 buf.order(ByteOrder.BIG_ENDIAN); in testOrder() 496 assertEquals(ByteOrder.BIG_ENDIAN, buf.order()); in testOrder() 502 buf.order(ByteOrder.BIG_ENDIAN); in testOrder() 825 buf.order(ByteOrder.BIG_ENDIAN); in testAsCharBuffer() 827 assertSame(ByteOrder.BIG_ENDIAN, charBuffer.order()); in testAsCharBuffer() 848 buf.order(ByteOrder.BIG_ENDIAN); in testAsCharBuffer() 850 assertSame(ByteOrder.BIG_ENDIAN, charBuffer.order()); in testAsCharBuffer() 871 buf.order(ByteOrder.BIG_ENDIAN); in testAsCharBuffer() 881 buf.order(ByteOrder.BIG_ENDIAN); in testAsDoubleBuffer() [all …]
|
D | ByteOrderTest.java | 31 assertEquals(ByteOrder.BIG_ENDIAN.toString(), "BIG_ENDIAN"); in testToString() 37 assertTrue(o == ByteOrder.BIG_ENDIAN || o == ByteOrder.LITTLE_ENDIAN); in testNativeOrder()
|
D | DirectCharBufferTest.java | 77 assertEquals(ByteOrder.BIG_ENDIAN, buf.order()); in testOrder()
|
D | DirectDoubleBufferTest.java | 76 assertEquals(ByteOrder.BIG_ENDIAN, buf.order()); in testOrder()
|
D | DirectFloatBufferTest.java | 77 assertEquals(ByteOrder.BIG_ENDIAN, buf.order()); in testOrder()
|
D | DirectIntBufferTest.java | 77 assertEquals(ByteOrder.BIG_ENDIAN, buf.order()); in testOrder()
|
D | DirectLongBufferTest.java | 77 assertEquals(ByteOrder.BIG_ENDIAN, buf.order()); in testOrder()
|
D | DirectShortBufferTest.java | 77 assertEquals(ByteOrder.BIG_ENDIAN, buf.order()); in testOrder()
|
D | DirectByteBufferTest.java | 70 buf.order(ByteOrder.BIG_ENDIAN); in testUnalignedReadsAndWrites()
|
/libcore/luni/src/test/java/libcore/java/nio/ |
D | BufferTest.java | 135 b.order(ByteOrder.BIG_ENDIAN).asCharBuffer().get(chars, 1, 4); in testByteSwappedBulkGet() 141 b.order(ByteOrder.BIG_ENDIAN).asDoubleBuffer().get(doubles, 1, 1); in testByteSwappedBulkGet() 151 b.order(ByteOrder.BIG_ENDIAN).asFloatBuffer().get(floats, 1, 2); in testByteSwappedBulkGet() 163 b.order(ByteOrder.BIG_ENDIAN).asIntBuffer().get(ints, 1, 2); in testByteSwappedBulkGet() 175 b.order(ByteOrder.BIG_ENDIAN).asLongBuffer().get(longs, 1, 1); in testByteSwappedBulkGet() 185 b.order(ByteOrder.BIG_ENDIAN).asShortBuffer().get(shorts, 1, 4); in testByteSwappedBulkGet() 225 b.order(ByteOrder.BIG_ENDIAN).asCharBuffer().put(chars, 1, 4); in testByteSwappedBulkPut() 231 b.order(ByteOrder.BIG_ENDIAN).asDoubleBuffer().put(doubles, 1, 1); in testByteSwappedBulkPut() 238 b.order(ByteOrder.BIG_ENDIAN).asFloatBuffer().put(floats, 1, 2); in testByteSwappedBulkPut() 244 b.order(ByteOrder.BIG_ENDIAN).asIntBuffer().put(ints, 1, 2); in testByteSwappedBulkPut() [all …]
|
D | OldAndroidNIOTest.java | 77 assertEquals(ByteOrder.BIG_ENDIAN, dupe.order()); in byteBufferTest() 78 b.order(ByteOrder.BIG_ENDIAN); in byteBufferTest() 174 b.order(ByteOrder.BIG_ENDIAN); in byteBufferTest() 239 b.order(ByteOrder.BIG_ENDIAN); in byteBufferTest() 267 b.order(ByteOrder.BIG_ENDIAN); in byteBufferTest() 292 b.order(ByteOrder.BIG_ENDIAN); in byteBufferTest() 321 b.order(ByteOrder.BIG_ENDIAN); in byteBufferTest() 343 assertEquals(ByteOrder.BIG_ENDIAN, bb.order()); in byteBufferTest() 356 bb.order(ByteOrder.BIG_ENDIAN); in byteBufferTest() 371 bb.order(ByteOrder.BIG_ENDIAN); in byteBufferTest() [all …]
|
/libcore/luni/src/main/java/libcore/io/ |
D | Memory.java | 47 if (order == ByteOrder.BIG_ENDIAN) { in peekInt() 61 if (order == ByteOrder.BIG_ENDIAN) { in peekLong() 85 if (order == ByteOrder.BIG_ENDIAN) { in peekShort() 93 if (order == ByteOrder.BIG_ENDIAN) { in pokeInt() 107 if (order == ByteOrder.BIG_ENDIAN) { in pokeLong() 133 if (order == ByteOrder.BIG_ENDIAN) { in pokeShort()
|
D | MemoryMappedFile.java | 88 this, address, size, ByteOrder.nativeOrder() != ByteOrder.BIG_ENDIAN); in bigEndianIterator()
|
/libcore/ojluni/src/main/java/java/io/ |
D | DataInputStream.java | 318 return Memory.peekShort(readBuffer, 0, ByteOrder.BIG_ENDIAN); in readShort() 342 return Memory.peekShort(readBuffer, 0, ByteOrder.BIG_ENDIAN) & 0xffff; in readUnsignedShort() 366 return (char)Memory.peekShort(readBuffer, 0, ByteOrder.BIG_ENDIAN); in readChar() 390 return Memory.peekInt(readBuffer, 0, ByteOrder.BIG_ENDIAN); in readInt()
|
/libcore/ojluni/src/main/java/java/nio/ |
D | ByteOrder.java | 49 public static final ByteOrder BIG_ENDIAN field in ByteOrder
|
D | ByteBuffer.java | 897 = (Bits.byteOrder() == ByteOrder.BIG_ENDIAN); 910 return bigEndian ? ByteOrder.BIG_ENDIAN : ByteOrder.LITTLE_ENDIAN; in order() 922 bigEndian = (bo == ByteOrder.BIG_ENDIAN); in order() 924 (bigEndian == (Bits.byteOrder() == ByteOrder.BIG_ENDIAN)); in order()
|
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/ |
D | ChunkHandler.java | 30 public static final ByteOrder CHUNK_ORDER = ByteOrder.BIG_ENDIAN;
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | NativeObject.java | 380 case 0x01: byteOrder = ByteOrder.BIG_ENDIAN; break; in byteOrder()
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
D | ModifiedUtf8Test.java | 310 b.order(ByteOrder.BIG_ENDIAN); in test_encode_lengthAtBeginning()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | ByteBufferBenchmark.java | 35 BIG(ByteOrder.BIG_ENDIAN), LITTLE(ByteOrder.LITTLE_ENDIAN);
|
/libcore/luni/src/test/java/libcore/io/ |
D | MemoryMappedFileTest.java | 355 checkReadIntArray(MemoryMappedFile::bigEndianIterator, ByteOrder.BIG_ENDIAN); in testReadIntArray()
|