/libcore/ojluni/src/main/java/java/nio/ |
D | DirectByteBuffer.java | 351 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/ |
D | NioBufferIterator.java | 89 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/ |
D | MemoryTest.java | 34 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/ |
D | DirectCharBufferTest.java | 27 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Character.BYTES).asCharBuffer(); in setUp() 68 assertEquals(charBufferBasePointer + Character.BYTES, NIOAccess.getBasePointer(charBuffer)); in testJNIAccessByAddress()
|
D | DirectShortBufferTest.java | 26 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Short.BYTES).asShortBuffer(); in setUp() 68 assertEquals(shortBufferBasePointer + Short.BYTES, NIOAccess.getBasePointer(shortBuffer)); in testJNIAccessByAddress()
|
D | DirectIntBufferTest.java | 26 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Integer.BYTES).asIntBuffer(); in setUp() 68 assertEquals(intBufferBasePointer + Integer.BYTES, NIOAccess.getBasePointer(intBuffer)); in testJNIAccessByAddress()
|
D | DirectLongBufferTest.java | 26 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Long.BYTES).asLongBuffer(); in setUp() 68 assertEquals(longBufferBasePointer + Long.BYTES, NIOAccess.getBasePointer(longBuffer)); in testJNIAccessByAddress()
|
D | DirectFloatBufferTest.java | 26 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Float.BYTES).asFloatBuffer(); in setUp() 68 assertEquals(floatBufferBasePointer + Float.BYTES, NIOAccess.getBasePointer(floatBuffer)); in testJNIAccessByAddress()
|
D | DirectDoubleBufferTest.java | 26 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Double.BYTES).asDoubleBuffer(); in setUp() 67 … assertEquals(doubleBufferBasePointer + Double.BYTES, NIOAccess.getBasePointer(doubleBuffer)); in testJNIAccessByAddress()
|
D | DirectByteBufferTest.java | 28 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Byte.BYTES); in setUp()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | ShortTest.java | 40 assertEquals(2, Short.BYTES); 47 assertEquals(0, ui >>> Short.BYTES * 8); 56 assertEquals(0, ul >>> Short.BYTES * 8); in testToUnsignedLong()
|
D | ByteTest.java | 40 assertEquals(1, Byte.BYTES); 47 assertEquals(0, ui >>> Byte.BYTES * 8); 56 assertEquals(0, ul >>> Byte.BYTES * 8); in testToUnsignedLong()
|
D | IntegerTest.java | 158 assertEquals(4, Integer.BYTES); 239 assertEquals(0, ul >>> Integer.BYTES * 8);
|
D | DoubleTest.java | 169 assertEquals(8, Double.BYTES); in testBYTES()
|
D | FloatTest.java | 164 assertEquals(4, Float.BYTES); in testBYTES()
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | Double.annotated.java | 93 public static final int BYTES = 8; // 0x8 field in Double
|
D | Float.annotated.java | 95 public static final int BYTES = 4; // 0x4 field in Float
|
D | Byte.annotated.java | 79 public static final int BYTES = 1; // 0x1 field in Byte
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | Double.java | 152 public static final int BYTES = 8; // 0x8 field in Double
|
D | Short.java | 134 public static final int BYTES = 2; // 0x2 field in Short
|
D | Float.java | 155 public static final int BYTES = 4; // 0x4 field in Float
|
D | Byte.java | 135 public static final int BYTES = 1; // 0x1 field in Byte
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Short.java | 514 public static final int BYTES = SIZE / Byte.SIZE; field in Short
|
D | Byte.java | 552 public static final int BYTES = SIZE / Byte.SIZE; field in Byte
|
D | Float.java | 128 public static final int BYTES = SIZE / Byte.SIZE; field in Float
|