/libcore/ojluni/src/test/java/nio/Buffer/ |
D | Order.java | 40 protected static final int LENGTH = 16; field in Order 78 ck(ByteBuffer.wrap(new byte[LENGTH], LENGTH/2, LENGTH/2).order(), be); in testOrder() 79 ck(ByteBuffer.wrap(new byte[LENGTH]).order(), be); in testOrder() 80 ck(ByteBuffer.wrap(new byte[LENGTH], LENGTH/2, LENGTH/2).order(be).order(), be); in testOrder() 81 ck(ByteBuffer.wrap(new byte[LENGTH]).order(be).order(), be); in testOrder() 82 ck(ByteBuffer.wrap(new byte[LENGTH], LENGTH/2, LENGTH/2).order(le).order(), le); in testOrder() 83 ck(ByteBuffer.wrap(new byte[LENGTH]).order(le).order(), le); in testOrder() 84 ck(ByteBuffer.allocate(LENGTH).order(), be); in testOrder() 85 ck(ByteBuffer.allocateDirect(LENGTH).order(), be); in testOrder() 86 ck(ByteBuffer.allocate(LENGTH).order(be).order(), be); in testOrder() [all …]
|
D | OrderChar.java | 48 char[] array = new char[LENGTH]; in ckCharBuffer() 53 buf = CharBuffer.wrap(array, LENGTH/2, LENGTH/2); in ckCharBuffer() 57 buf = CharBuffer.allocate(LENGTH); in ckCharBuffer() 69 buf = CharBuffer.wrap(array).subSequence(0, LENGTH); in ckCharBuffer() 73 buf = ByteBuffer.wrap(new byte[LENGTH]).asCharBuffer(); in ckCharBuffer() 77 buf = ByteBuffer.wrap(new byte[LENGTH]).order(le).asCharBuffer(); in ckCharBuffer()
|
D | OrderInt.java | 48 int[] array = new int[LENGTH]; in ckIntBuffer() 53 buf = IntBuffer.wrap(array, LENGTH/2, LENGTH/2); in ckIntBuffer() 57 buf = IntBuffer.allocate(LENGTH); in ckIntBuffer()
|
D | OrderFloat.java | 48 float[] array = new float[LENGTH]; in ckFloatBuffer() 53 buf = FloatBuffer.wrap(array, LENGTH/2, LENGTH/2); in ckFloatBuffer() 57 buf = FloatBuffer.allocate(LENGTH); in ckFloatBuffer()
|
D | OrderShort.java | 48 short[] array = new short[LENGTH]; in ckShortBuffer() 53 buf = ShortBuffer.wrap(array, LENGTH/2, LENGTH/2); in ckShortBuffer() 57 buf = ShortBuffer.allocate(LENGTH); in ckShortBuffer()
|
D | OrderDouble.java | 48 double[] array = new double[LENGTH]; in ckDoubleBuffer() 53 buf = DoubleBuffer.wrap(array, LENGTH/2, LENGTH/2); in ckDoubleBuffer() 57 buf = DoubleBuffer.allocate(LENGTH); in ckDoubleBuffer()
|
D | OrderLong.java | 48 long[] array = new long[LENGTH]; in ckLongBuffer() 53 buf = LongBuffer.wrap(array, LENGTH/2, LENGTH/2); in ckLongBuffer() 57 buf = LongBuffer.allocate(LENGTH); in ckLongBuffer()
|
D | Order-X.java.template | 48 $type$[] array = new $type$[LENGTH]; 53 buf = $Type$Buffer.wrap(array, LENGTH/2, LENGTH/2); 57 buf = $Type$Buffer.allocate(LENGTH); 69 buf = $Type$Buffer.wrap(array).subSequence(0, LENGTH); 73 buf = ByteBuffer.wrap(new byte[LENGTH]).as$Type$Buffer(); 77 buf = ByteBuffer.wrap(new byte[LENGTH]).order(le).as$Type$Buffer();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/ |
D | OldSHA1PRNGSecureRandomTest.java | 35 private static final int LENGTH = 20; // constant defining loop limit field in OldSHA1PRNGSecureRandomTest 73 for (int i = 0; i < LENGTH; i++) { in testGenerateSeedint02() 89 for (int i = 0; i < LENGTH; i += INCR) { in testGenerateSeedint03() 127 for (int i = 1; i < LENGTH; i += INCR) { in testNextBytesbyteArray02() 136 for (int k = 1; k < LENGTH; k += INCR) { in testNextBytesbyteArray02() 151 for (int n = 1; n < LENGTH; n += INCR) { in testNextBytesbyteArray02() 191 for (int i = 1; i < LENGTH / 2; i += INCR) { in testNextBytesbyteArray03() 247 for (int i = 1; i < LENGTH / 2; i += INCR) { in testNextBytesbyteArray04() 285 for (int n = 1; n < LENGTH; n += INCR) { in testNextBytesbyteArray04() 330 byte[] seed = new byte[LENGTH]; in testSetSeedbyteArray02() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | FileChannelTest.java | 2540 final int LENGTH = 5; in test_transferFromLReadableByteChannelJJ_PositionBeyondSize() local 2542 POSITION, LENGTH); in test_transferFromLReadableByteChannelJJ_PositionBeyondSize() 2564 final int LENGTH = 5; in test_transferFromLReadableByteChannelJJ_FileChannel() local 2566 POSITION, LENGTH); in test_transferFromLReadableByteChannelJJ_FileChannel() 2567 assertEquals(LENGTH, result); in test_transferFromLReadableByteChannelJJ_FileChannel() 2570 assertEquals(READONLYFILECHANNELPOSITION + LENGTH, readOnlyFileChannel in test_transferFromLReadableByteChannelJJ_FileChannel() 2574 final int EXPECTED_LENGTH = POSITION + LENGTH; in test_transferFromLReadableByteChannelJJ_FileChannel() 2582 expectedContent, POSITION, LENGTH); in test_transferFromLReadableByteChannelJJ_FileChannel() 2682 final int LENGTH = 4; in test_transferFromLReadableByteChannelJJ_Pipe() local 2684 LENGTH); in test_transferFromLReadableByteChannelJJ_Pipe() [all …]
|
/libcore/ojluni/src/test/java/lang/invoke/ |
D | RicochetTest.java | 338 final int LENGTH = 4; in testReturns() local 340 Object vals = java.lang.reflect.Array.newInstance(vret, LENGTH); in testReturns() 348 for (int i = 0; i < LENGTH; i++) { in testReturns() 358 for (int i = 0; i < LENGTH; i++) { in testReturns()
|