/libcore/ojluni/src/test/java/nio/Buffer/ |
D | BasicInt.java | 566 tryCatch(b, NullPointerException.class, thunk); in catchNullArgument() 570 tryCatch(b, IllegalArgumentException.class, thunk); in catchIllegalArgument() 574 tryCatch(b, ReadOnlyBufferException.class, thunk); in catchReadOnlyBuffer() 578 tryCatch(b, IndexOutOfBoundsException.class, thunk); in catchIndexOutOfBounds() 582 tryCatch(t, IndexOutOfBoundsException.class, thunk); in catchIndexOutOfBounds() 585 private static void tryCatch(Buffer b, Class<?> ex, Runnable thunk) { in tryCatch() method in BasicInt 604 private static void tryCatch(int[] t, Class<?> ex, Runnable thunk) { in tryCatch() method in BasicInt 605 tryCatch(IntBuffer.wrap(t), ex, thunk); in tryCatch() 688 tryCatch(b, BufferUnderflowException.class, () -> b.get()); in test() 689 tryCatch(b, BufferOverflowException.class, () -> b.put((int)42)); in test() [all …]
|
D | BasicShort.java | 566 tryCatch(b, NullPointerException.class, thunk); in catchNullArgument() 570 tryCatch(b, IllegalArgumentException.class, thunk); in catchIllegalArgument() 574 tryCatch(b, ReadOnlyBufferException.class, thunk); in catchReadOnlyBuffer() 578 tryCatch(b, IndexOutOfBoundsException.class, thunk); in catchIndexOutOfBounds() 582 tryCatch(t, IndexOutOfBoundsException.class, thunk); in catchIndexOutOfBounds() 585 private static void tryCatch(Buffer b, Class<?> ex, Runnable thunk) { in tryCatch() method in BasicShort 604 private static void tryCatch(short[] t, Class<?> ex, Runnable thunk) { in tryCatch() method in BasicShort 605 tryCatch(ShortBuffer.wrap(t), ex, thunk); in tryCatch() 688 tryCatch(b, BufferUnderflowException.class, () -> b.get()); in test() 689 tryCatch(b, BufferOverflowException.class, () -> b.put((short)42)); in test() [all …]
|
D | BasicLong.java | 566 tryCatch(b, NullPointerException.class, thunk); in catchNullArgument() 570 tryCatch(b, IllegalArgumentException.class, thunk); in catchIllegalArgument() 574 tryCatch(b, ReadOnlyBufferException.class, thunk); in catchReadOnlyBuffer() 578 tryCatch(b, IndexOutOfBoundsException.class, thunk); in catchIndexOutOfBounds() 582 tryCatch(t, IndexOutOfBoundsException.class, thunk); in catchIndexOutOfBounds() 585 private static void tryCatch(Buffer b, Class<?> ex, Runnable thunk) { in tryCatch() method in BasicLong 604 private static void tryCatch(long[] t, Class<?> ex, Runnable thunk) { in tryCatch() method in BasicLong 605 tryCatch(LongBuffer.wrap(t), ex, thunk); in tryCatch() 688 tryCatch(b, BufferUnderflowException.class, () -> b.get()); in test() 689 tryCatch(b, BufferOverflowException.class, () -> b.put((long)42)); in test() [all …]
|
D | BasicFloat.java | 566 tryCatch(b, NullPointerException.class, thunk); in catchNullArgument() 570 tryCatch(b, IllegalArgumentException.class, thunk); in catchIllegalArgument() 574 tryCatch(b, ReadOnlyBufferException.class, thunk); in catchReadOnlyBuffer() 578 tryCatch(b, IndexOutOfBoundsException.class, thunk); in catchIndexOutOfBounds() 582 tryCatch(t, IndexOutOfBoundsException.class, thunk); in catchIndexOutOfBounds() 585 private static void tryCatch(Buffer b, Class<?> ex, Runnable thunk) { in tryCatch() method in BasicFloat 604 private static void tryCatch(float[] t, Class<?> ex, Runnable thunk) { in tryCatch() method in BasicFloat 605 tryCatch(FloatBuffer.wrap(t), ex, thunk); in tryCatch() 688 tryCatch(b, BufferUnderflowException.class, () -> b.get()); in test() 689 tryCatch(b, BufferOverflowException.class, () -> b.put((float)42)); in test() [all …]
|
D | BasicDouble.java | 566 tryCatch(b, NullPointerException.class, thunk); in catchNullArgument() 570 tryCatch(b, IllegalArgumentException.class, thunk); in catchIllegalArgument() 574 tryCatch(b, ReadOnlyBufferException.class, thunk); in catchReadOnlyBuffer() 578 tryCatch(b, IndexOutOfBoundsException.class, thunk); in catchIndexOutOfBounds() 582 tryCatch(t, IndexOutOfBoundsException.class, thunk); in catchIndexOutOfBounds() 585 private static void tryCatch(Buffer b, Class<?> ex, Runnable thunk) { in tryCatch() method in BasicDouble 604 private static void tryCatch(double[] t, Class<?> ex, Runnable thunk) { in tryCatch() method in BasicDouble 605 tryCatch(DoubleBuffer.wrap(t), ex, thunk); in tryCatch() 688 tryCatch(b, BufferUnderflowException.class, () -> b.get()); in test() 689 tryCatch(b, BufferOverflowException.class, () -> b.put((double)42)); in test() [all …]
|
D | BasicChar.java | 566 tryCatch(b, NullPointerException.class, thunk); in catchNullArgument() 570 tryCatch(b, IllegalArgumentException.class, thunk); in catchIllegalArgument() 574 tryCatch(b, ReadOnlyBufferException.class, thunk); in catchReadOnlyBuffer() 578 tryCatch(b, IndexOutOfBoundsException.class, thunk); in catchIndexOutOfBounds() 582 tryCatch(t, IndexOutOfBoundsException.class, thunk); in catchIndexOutOfBounds() 585 private static void tryCatch(Buffer b, Class<?> ex, Runnable thunk) { in tryCatch() method in BasicChar 604 private static void tryCatch(char[] t, Class<?> ex, Runnable thunk) { in tryCatch() method in BasicChar 605 tryCatch(CharBuffer.wrap(t), ex, thunk); in tryCatch() 666 tryCatch(b, BufferOverflowException.class, () -> in test() 688 tryCatch(b, BufferUnderflowException.class, () -> b.get()); in test() [all …]
|
D | BasicByte.java | 268 tryCatch(b, InvalidMarkException.class, () -> { in checkInvalidMarkException() 393 tryCatch(b, UnsupportedOperationException.class, in testAlign() 566 tryCatch(b, NullPointerException.class, thunk); in catchNullArgument() 570 tryCatch(b, IllegalArgumentException.class, thunk); in catchIllegalArgument() 574 tryCatch(b, ReadOnlyBufferException.class, thunk); in catchReadOnlyBuffer() 578 tryCatch(b, IndexOutOfBoundsException.class, thunk); in catchIndexOutOfBounds() 582 tryCatch(t, IndexOutOfBoundsException.class, thunk); in catchIndexOutOfBounds() 585 private static void tryCatch(Buffer b, Class<?> ex, Runnable thunk) { in tryCatch() method in BasicByte 604 private static void tryCatch(byte[] t, Class<?> ex, Runnable thunk) { in tryCatch() method in BasicByte 605 tryCatch(ByteBuffer.wrap(t), ex, thunk); in tryCatch() [all …]
|
D | Basic-X.java.template | 268 tryCatch(b, InvalidMarkException.class, () -> { 393 tryCatch(b, UnsupportedOperationException.class, 566 tryCatch(b, NullPointerException.class, thunk); 570 tryCatch(b, IllegalArgumentException.class, thunk); 574 tryCatch(b, ReadOnlyBufferException.class, thunk); 578 tryCatch(b, IndexOutOfBoundsException.class, thunk); 582 tryCatch(t, IndexOutOfBoundsException.class, thunk); 585 private static void tryCatch(Buffer b, Class<?> ex, Runnable thunk) { 604 private static void tryCatch($type$[] t, Class<?> ex, Runnable thunk) { 605 tryCatch($Type$Buffer.wrap(t), ex, thunk); [all …]
|