Home
last modified time | relevance | path

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

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DByteBufferTest.java490 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 …]
DByteOrderTest.java31 assertEquals(ByteOrder.BIG_ENDIAN.toString(), "BIG_ENDIAN"); in testToString()
37 assertTrue(o == ByteOrder.BIG_ENDIAN || o == ByteOrder.LITTLE_ENDIAN); in testNativeOrder()
DDirectCharBufferTest.java77 assertEquals(ByteOrder.BIG_ENDIAN, buf.order()); in testOrder()
DDirectDoubleBufferTest.java76 assertEquals(ByteOrder.BIG_ENDIAN, buf.order()); in testOrder()
DDirectFloatBufferTest.java77 assertEquals(ByteOrder.BIG_ENDIAN, buf.order()); in testOrder()
DDirectIntBufferTest.java77 assertEquals(ByteOrder.BIG_ENDIAN, buf.order()); in testOrder()
DDirectLongBufferTest.java77 assertEquals(ByteOrder.BIG_ENDIAN, buf.order()); in testOrder()
DDirectShortBufferTest.java77 assertEquals(ByteOrder.BIG_ENDIAN, buf.order()); in testOrder()
DDirectByteBufferTest.java70 buf.order(ByteOrder.BIG_ENDIAN); in testUnalignedReadsAndWrites()
/libcore/luni/src/test/java/libcore/java/nio/
DBufferTest.java135 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 …]
DOldAndroidNIOTest.java77 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/
DMemory.java47 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()
DMemoryMappedFile.java88 this, address, size, ByteOrder.nativeOrder() != ByteOrder.BIG_ENDIAN); in bigEndianIterator()
/libcore/ojluni/src/main/java/java/io/
DDataInputStream.java318 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/
DByteOrder.java49 public static final ByteOrder BIG_ENDIAN field in ByteOrder
DByteBuffer.java897 = (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/
DChunkHandler.java30 public static final ByteOrder CHUNK_ORDER = ByteOrder.BIG_ENDIAN;
/libcore/ojluni/src/main/java/sun/nio/ch/
DNativeObject.java380 case 0x01: byteOrder = ByteOrder.BIG_ENDIAN; break; in byteOrder()
/libcore/luni/src/test/java/libcore/java/nio/charset/
DModifiedUtf8Test.java310 b.order(ByteOrder.BIG_ENDIAN); in test_encode_lengthAtBeginning()
/libcore/benchmarks/src/benchmarks/regression/
DByteBufferBenchmark.java35 BIG(ByteOrder.BIG_ENDIAN), LITTLE(ByteOrder.LITTLE_ENDIAN);
/libcore/luni/src/test/java/libcore/io/
DMemoryMappedFileTest.java355 checkReadIntArray(MemoryMappedFile::bigEndianIterator, ByteOrder.BIG_ENDIAN); in testReadIntArray()