Home
last modified time | relevance | path

Searched refs:getElementSizeShift (Results 1 – 3 of 3) sorted by relevance

/libcore/ojluni/annotations/hiddenapi/java/nio/
DBuffer.java136 public int getElementSizeShift() { in getElementSizeShift() method in Buffer
/libcore/ojluni/src/main/java/java/nio/
DBuffer.java597 public int getElementSizeShift() { in getElementSizeShift() method in Buffer
/libcore/luni/src/test/java/libcore/java/nio/
DBufferTest.java887 assertEquals(1, 1 << ByteBuffer.allocate(0).getElementSizeShift()); in testElementSizeShifts()
889 assertEquals(Character.BYTES, 1 << CharBuffer.allocate(0).getElementSizeShift()); in testElementSizeShifts()
890 assertEquals(Short.BYTES, 1 << ShortBuffer.allocate(0).getElementSizeShift()); in testElementSizeShifts()
892 assertEquals(Integer.BYTES, 1 << IntBuffer.allocate(0).getElementSizeShift()); in testElementSizeShifts()
893 assertEquals(Float.BYTES, 1 << FloatBuffer.allocate(0).getElementSizeShift()); in testElementSizeShifts()
895 assertEquals(Long.BYTES, 1 << LongBuffer.allocate(0).getElementSizeShift()); in testElementSizeShifts()
896 assertEquals(Double.BYTES, 1 << DoubleBuffer.allocate(0).getElementSizeShift()); in testElementSizeShifts()