Home
last modified time | relevance | path

Searched refs:BYTES (Results 1 – 25 of 40) sorted by relevance

12

/libcore/ojluni/src/main/java/java/nio/
DDirectByteBuffer.java351 int newPosition = position + Character.BYTES; in getChar()
365 checkIndex(i, Character.BYTES); in getChar()
399 putChar(ix(nextPutIndex(Character.BYTES)), x); in putChar()
411 putChar(ix(checkIndex(i, Character.BYTES)), x); in putChar()
460 return getShort(ix(nextGetIndex(Short.BYTES))); in getShort()
468 return getShort(ix(checkIndex(i, Short.BYTES))); in getShort()
501 putShort(ix(nextPutIndex(Short.BYTES)), x); in putShort()
513 putShort(ix(checkIndex(i, Short.BYTES)), x); in putShort()
562 return getInt(ix(nextGetIndex(Integer.BYTES))); in getInt()
570 return getInt(ix(checkIndex(i, (Integer.BYTES)))); in getInt()
[all …]
/libcore/luni/src/main/java/libcore/io/
DNioBufferIterator.java89 checkReadBounds(position, length, Integer.BYTES); in readInt()
91 position += Integer.BYTES; in readInt()
99 final int byteCount = Integer.BYTES * intCount; in readIntArray()
109 final int byteCount = Long.BYTES * longCount; in readLongArray()
118 checkReadBounds(position, length, Short.BYTES); in readShort()
120 position += Short.BYTES; in readShort()
/libcore/luni/src/test/java/libcore/libcore/io/
DMemoryTest.java34 int scale = Integer.BYTES; in testSetIntArray()
64 assertEquals(expectedValues[i], Memory.peekInt(ptr + Integer.BYTES * i, swap)); in assertIntsEqual()
75 int scale = Long.BYTES; in testSetLongArray()
105 assertEquals(expectedValues[i], Memory.peekLong(ptr + Long.BYTES * i, swap)); in assertLongsEqual()
113 int scale = Short.BYTES; in testSetShortArray()
143 assertEquals(expectedValues[i], Memory.peekShort(ptr + Short.BYTES * i, swap)); in assertShortsEqual()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DDirectCharBufferTest.java27 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Character.BYTES).asCharBuffer(); in setUp()
68 assertEquals(charBufferBasePointer + Character.BYTES, NIOAccess.getBasePointer(charBuffer)); in testJNIAccessByAddress()
DDirectShortBufferTest.java26 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Short.BYTES).asShortBuffer(); in setUp()
68 assertEquals(shortBufferBasePointer + Short.BYTES, NIOAccess.getBasePointer(shortBuffer)); in testJNIAccessByAddress()
DDirectIntBufferTest.java26 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Integer.BYTES).asIntBuffer(); in setUp()
68 assertEquals(intBufferBasePointer + Integer.BYTES, NIOAccess.getBasePointer(intBuffer)); in testJNIAccessByAddress()
DDirectLongBufferTest.java26 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Long.BYTES).asLongBuffer(); in setUp()
68 assertEquals(longBufferBasePointer + Long.BYTES, NIOAccess.getBasePointer(longBuffer)); in testJNIAccessByAddress()
DDirectFloatBufferTest.java26 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Float.BYTES).asFloatBuffer(); in setUp()
68 assertEquals(floatBufferBasePointer + Float.BYTES, NIOAccess.getBasePointer(floatBuffer)); in testJNIAccessByAddress()
DDirectDoubleBufferTest.java26 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Double.BYTES).asDoubleBuffer(); in setUp()
67 … assertEquals(doubleBufferBasePointer + Double.BYTES, NIOAccess.getBasePointer(doubleBuffer)); in testJNIAccessByAddress()
DDirectByteBufferTest.java28 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Byte.BYTES); in setUp()
/libcore/luni/src/test/java/libcore/java/lang/
DShortTest.java40 assertEquals(2, Short.BYTES);
47 assertEquals(0, ui >>> Short.BYTES * 8);
56 assertEquals(0, ul >>> Short.BYTES * 8); in testToUnsignedLong()
DByteTest.java40 assertEquals(1, Byte.BYTES);
47 assertEquals(0, ui >>> Byte.BYTES * 8);
56 assertEquals(0, ul >>> Byte.BYTES * 8); in testToUnsignedLong()
DIntegerTest.java158 assertEquals(4, Integer.BYTES);
239 assertEquals(0, ul >>> Integer.BYTES * 8);
DDoubleTest.java169 assertEquals(8, Double.BYTES); in testBYTES()
DFloatTest.java164 assertEquals(4, Float.BYTES); in testBYTES()
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DDouble.annotated.java93 public static final int BYTES = 8; // 0x8 field in Double
DFloat.annotated.java95 public static final int BYTES = 4; // 0x4 field in Float
DByte.annotated.java79 public static final int BYTES = 1; // 0x1 field in Byte
/libcore/ojluni/annotations/hiddenapi/java/lang/
DDouble.java152 public static final int BYTES = 8; // 0x8 field in Double
DShort.java134 public static final int BYTES = 2; // 0x2 field in Short
DFloat.java155 public static final int BYTES = 4; // 0x4 field in Float
DByte.java135 public static final int BYTES = 1; // 0x1 field in Byte
/libcore/ojluni/src/main/java/java/lang/
DShort.java514 public static final int BYTES = SIZE / Byte.SIZE; field in Short
DByte.java552 public static final int BYTES = SIZE / Byte.SIZE; field in Byte
DFloat.java128 public static final int BYTES = SIZE / Byte.SIZE; field in Float

12