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.java516 assertEquals(ByteOrder.BIG_ENDIAN, buf.order()); in testOrder()
521 buf.order(ByteOrder.BIG_ENDIAN); in testOrder()
522 assertEquals(ByteOrder.BIG_ENDIAN, buf.order()); in testOrder()
528 buf.order(ByteOrder.BIG_ENDIAN); in testOrder()
851 buf.order(ByteOrder.BIG_ENDIAN); in testAsCharBuffer()
853 assertSame(ByteOrder.BIG_ENDIAN, charBuffer.order()); in testAsCharBuffer()
874 buf.order(ByteOrder.BIG_ENDIAN); in testAsCharBuffer()
876 assertSame(ByteOrder.BIG_ENDIAN, charBuffer.order()); in testAsCharBuffer()
897 buf.order(ByteOrder.BIG_ENDIAN); in testAsCharBuffer()
907 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.java76 assertEquals(ByteOrder.BIG_ENDIAN, buf.order()); in testOrder()
DDirectShortBufferTest.java76 assertEquals(ByteOrder.BIG_ENDIAN, buf.order()); in testOrder()
DDirectLongBufferTest.java76 assertEquals(ByteOrder.BIG_ENDIAN, buf.order()); in testOrder()
DDirectFloatBufferTest.java76 assertEquals(ByteOrder.BIG_ENDIAN, buf.order()); in testOrder()
DDirectIntBufferTest.java76 assertEquals(ByteOrder.BIG_ENDIAN, buf.order()); in testOrder()
DDirectDoubleBufferTest.java75 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.java81 b.order(ByteOrder.BIG_ENDIAN).asCharBuffer().get(chars, 1, 4); in testByteSwappedBulkGet()
87 b.order(ByteOrder.BIG_ENDIAN).asDoubleBuffer().get(doubles, 1, 1); in testByteSwappedBulkGet()
97 b.order(ByteOrder.BIG_ENDIAN).asFloatBuffer().get(floats, 1, 2); in testByteSwappedBulkGet()
109 b.order(ByteOrder.BIG_ENDIAN).asIntBuffer().get(ints, 1, 2); in testByteSwappedBulkGet()
121 b.order(ByteOrder.BIG_ENDIAN).asLongBuffer().get(longs, 1, 1); in testByteSwappedBulkGet()
131 b.order(ByteOrder.BIG_ENDIAN).asShortBuffer().get(shorts, 1, 4); in testByteSwappedBulkGet()
171 b.order(ByteOrder.BIG_ENDIAN).asCharBuffer().put(chars, 1, 4); in testByteSwappedBulkPut()
177 b.order(ByteOrder.BIG_ENDIAN).asDoubleBuffer().put(doubles, 1, 1); in testByteSwappedBulkPut()
184 b.order(ByteOrder.BIG_ENDIAN).asFloatBuffer().put(floats, 1, 2); in testByteSwappedBulkPut()
190 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.java51 if (order == ByteOrder.BIG_ENDIAN) { in peekInt()
65 if (order == ByteOrder.BIG_ENDIAN) { in peekLong()
90 if (order == ByteOrder.BIG_ENDIAN) { in peekShort()
99 if (order == ByteOrder.BIG_ENDIAN) { in pokeInt()
114 if (order == ByteOrder.BIG_ENDIAN) { in pokeLong()
141 if (order == ByteOrder.BIG_ENDIAN) { in pokeShort()
DMemoryMappedFile.java89 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.java1039 = (Bits.byteOrder() == ByteOrder.BIG_ENDIAN);
1052 return bigEndian ? ByteOrder.BIG_ENDIAN : ByteOrder.LITTLE_ENDIAN; in order()
1066 bigEndian = (bo == ByteOrder.BIG_ENDIAN); in order()
1068 (bigEndian == (Bits.byteOrder() == ByteOrder.BIG_ENDIAN)); in order()
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/
DChunkHandler.java36 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/benchmarks/src/benchmarks/regression/
DByteBufferBenchmark.java35 BIG(ByteOrder.BIG_ENDIAN), LITTLE(ByteOrder.LITTLE_ENDIAN);
/libcore/luni/src/test/java/libcore/libcore/io/
DMemoryMappedFileTest.java358 checkReadIntArray(MemoryMappedFile::bigEndianIterator, ByteOrder.BIG_ENDIAN); in testReadIntArray()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
DCharsetTest.java200 if (ByteOrder.nativeOrder().equals(ByteOrder.BIG_ENDIAN)) { in test_UTF_32()