Home
last modified time | relevance | path

Searched refs:byteOrder (Results 1 – 12 of 12) sorted by relevance

/libcore/benchmarks/src/benchmarks/regression/
DByteBufferBenchmark.java36 final ByteOrder byteOrder; field in ByteBufferBenchmark.MyByteOrder
37 MyByteOrder(ByteOrder byteOrder) { in MyByteOrder() argument
38 this.byteOrder = byteOrder; in MyByteOrder()
42 @Param private MyByteOrder byteOrder; field in ByteBufferBenchmark
51 …public static ByteBuffer newBuffer(MyByteOrder byteOrder, boolean aligned, MyBufferType bufferType… in newBuffer() argument
75 result.order(byteOrder.byteOrder); in newBuffer()
85 ByteBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); in timeByteBuffer_getByte()
95 ByteBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); in timeByteBuffer_getByteArray()
106 ByteBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); in timeByteBuffer_getByte_indexed()
116 ByteBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); in timeByteBuffer_getChar()
[all …]
DByteBufferScalarVersusVectorBenchmark.java23 @Param private ByteBufferBenchmark.MyByteOrder byteOrder; field in ByteBufferScalarVersusVectorBenchmark
28 ByteBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); in timeManualByteBufferCopy()
29 ByteBuffer dst = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); in timeManualByteBufferCopy()
/libcore/libart/src/main/java/java/lang/invoke/
DByteArrayViewVarHandle.java28 private ByteArrayViewVarHandle(Class<?> arrayClass, ByteOrder byteOrder) { in ByteArrayViewVarHandle() argument
31 this.nativeByteOrder = byteOrder.equals(ByteOrder.nativeOrder()); in ByteArrayViewVarHandle()
34 static ByteArrayViewVarHandle create(Class<?> arrayClass, ByteOrder byteOrder) { in create() argument
35 return new ByteArrayViewVarHandle(arrayClass, byteOrder); in create()
DByteBufferViewVarHandle.java29 private ByteBufferViewVarHandle(Class<?> arrayClass, ByteOrder byteOrder) { in ByteBufferViewVarHandle() argument
32 this.nativeByteOrder = byteOrder.equals(ByteOrder.nativeOrder()); in ByteBufferViewVarHandle()
35 static ByteBufferViewVarHandle create(Class<?> arrayClass, ByteOrder byteOrder) { in create() argument
36 return new ByteBufferViewVarHandle(arrayClass, byteOrder); in create()
/libcore/ojluni/src/main/java/sun/nio/ch/
DNativeObject.java365 private static ByteOrder byteOrder = null; field in NativeObject
372 static ByteOrder byteOrder() { in byteOrder() method in NativeObject
373 if (byteOrder != null) in byteOrder()
374 return byteOrder; in byteOrder()
380 case 0x01: byteOrder = ByteOrder.BIG_ENDIAN; break; in byteOrder()
381 case 0x08: byteOrder = ByteOrder.LITTLE_ENDIAN; break; in byteOrder()
388 return byteOrder; in byteOrder()
/libcore/ojluni/src/main/java/java/nio/
DByteOrder.java72 return Bits.byteOrder(); in nativeOrder()
DBits.java567 private static final ByteOrder byteOrder; field in Bits
569 static ByteOrder byteOrder() { in byteOrder() method in Bits
575 return byteOrder; in byteOrder()
596 byteOrder = ByteOrder.LITTLE_ENDIAN;
DByteBuffer.java1039 = (Bits.byteOrder() == ByteOrder.BIG_ENDIAN);
1068 (bigEndian == (Bits.byteOrder() == ByteOrder.BIG_ENDIAN)); in order()
/libcore/ojluni/src/main/java/java/net/
DURLConnection.java1655 int byteOrder = c[0]; in checkfpx() local
1664 if(byteOrder == 0xFE) { in checkfpx()
1688 if(byteOrder == 0xFE) { in checkfpx()
1740 if (byteOrder == 0xFE && in checkfpx()
/libcore/luni/src/test/java/libcore/libcore/io/
DMemoryMappedFileTest.java568 BufferIterator iterator, byte[] underlyingData, ByteOrder byteOrder, int intCount) { in assertReadIntArraySucceeds() argument
580 IntBuffer expectedIntsBuffer = byteBuffer.slice().order(byteOrder).asIntBuffer(); in assertReadIntArraySucceeds()
581 assertEquals(byteOrder, expectedIntsBuffer.order()); in assertReadIntArraySucceeds()
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodHandles.java2238 ByteOrder byteOrder) throws IllegalArgumentException { in byteArrayViewVarHandle() argument
2241 return ByteArrayViewVarHandle.create(viewArrayClass, byteOrder); in byteArrayViewVarHandle()
2327 ByteOrder byteOrder) throws IllegalArgumentException { in byteBufferViewVarHandle() argument
2330 return ByteBufferViewVarHandle.create(viewArrayClass, byteOrder); in byteBufferViewVarHandle()
/libcore/ojluni/annotations/hiddenapi/java/lang/invoke/
DMethodHandles.java143 java.lang.Class<?> viewArrayClass, java.nio.ByteOrder byteOrder) in byteArrayViewVarHandle() argument
149 java.lang.Class<?> viewArrayClass, java.nio.ByteOrder byteOrder) in byteBufferViewVarHandle() argument