/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | ArraysTest.java | 3659 byte[] result = Arrays.copyOfRange(byteArray, 0, arraySize * 2); in test_copyOfRange_$BII() 3667 result = Arrays.copyOfRange(byteArray, 0, arraySize / 2); in test_copyOfRange_$BII() 3672 result = Arrays.copyOfRange(byteArray, 0, 0); in test_copyOfRange_$BII() 3675 Arrays.copyOfRange((byte[]) null, 0, arraySize); in test_copyOfRange_$BII() 3681 Arrays.copyOfRange((byte[]) null, -1, arraySize); in test_copyOfRange_$BII() 3687 Arrays.copyOfRange((byte[]) null, 0, -1); in test_copyOfRange_$BII() 3693 Arrays.copyOfRange(byteArray, -1, arraySize); in test_copyOfRange_$BII() 3699 Arrays.copyOfRange(byteArray, 0, -1); in test_copyOfRange_$BII() 3704 assertEquals(byteArray.length + 1, Arrays.copyOfRange(byteArray, 0, in test_copyOfRange_$BII() 3712 short[] result = Arrays.copyOfRange(shortArray, 0, arraySize * 2); in test_copyOfRange_$SII() [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Arrays.java | 499 public static <T> T[] copyOfRange(T[] original, int from, int to) { in copyOfRange() method in Arrays 503 public static <T, U> T[] copyOfRange( in copyOfRange() method in Arrays 508 public static byte[] copyOfRange(byte[] original, int from, int to) { in copyOfRange() method in Arrays 512 public static short[] copyOfRange(short[] original, int from, int to) { in copyOfRange() method in Arrays 516 public static int[] copyOfRange(int[] original, int from, int to) { in copyOfRange() method in Arrays 520 public static long[] copyOfRange(long[] original, int from, int to) { in copyOfRange() method in Arrays 524 public static char[] copyOfRange(char[] original, int from, int to) { in copyOfRange() method in Arrays 528 public static float[] copyOfRange(float[] original, int from, int to) { in copyOfRange() method in Arrays 532 public static double[] copyOfRange(double[] original, int from, int to) { in copyOfRange() method in Arrays 536 public static boolean[] copyOfRange(boolean[] original, int from, int to) { in copyOfRange() method in Arrays
|
/libcore/benchmarks/src/benchmarks/ |
D | ArrayCopyBenchmark.java | 50 char[] dst = Arrays.copyOfRange(src, 0, 8192); in time_Arrays_copyOfRange()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | Base64Test.java | 42 import static java.util.Arrays.copyOfRange; 97 for (byte b : Arrays.copyOfRange(encodedBytes, 0, endIndex)) { in checkAlphabet() 529 assertEquals("", encoder.encodeToString(copyOfRange(SAMPLE_NON_ASCII_BYTES, 0, 0))); in testEncoder_nonPrintableBytes() 530 assertEquals("_w==", encoder.encodeToString(copyOfRange(SAMPLE_NON_ASCII_BYTES, 0, 1))); in testEncoder_nonPrintableBytes() 531 assertEquals("_-4=", encoder.encodeToString(copyOfRange(SAMPLE_NON_ASCII_BYTES, 0, 2))); in testEncoder_nonPrintableBytes() 532 assertEquals("_-7d", encoder.encodeToString(copyOfRange(SAMPLE_NON_ASCII_BYTES, 0, 3))); in testEncoder_nonPrintableBytes() 533 assertEquals("_-7dzA==", encoder.encodeToString(copyOfRange(SAMPLE_NON_ASCII_BYTES, 0, 4))); in testEncoder_nonPrintableBytes() 534 assertEquals("_-7dzLs=", encoder.encodeToString(copyOfRange(SAMPLE_NON_ASCII_BYTES, 0, 5))); in testEncoder_nonPrintableBytes() 535 assertEquals("_-7dzLuq", encoder.encodeToString(copyOfRange(SAMPLE_NON_ASCII_BYTES, 0, 6))); in testEncoder_nonPrintableBytes() 536 … assertEquals("_-7dzLuqmQ==", encoder.encodeToString(copyOfRange(SAMPLE_NON_ASCII_BYTES, 0, 7))); in testEncoder_nonPrintableBytes() [all …]
|
D | SpliteratorsTest.java | 131 Arrays.asList(Arrays.copyOfRange(array, 2, 10))); in testSpliteratorObjectArrayRange()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Arrays.annotated.java | 244 public static <T> T @libcore.util.NonNull [] copyOfRange(T @libcore.util.NonNull [] original, int f… in copyOfRange() method in Arrays 246 public static <T, U> T @libcore.util.NonNull [] copyOfRange(U @libcore.util.NonNull [] original, in… in copyOfRange() method in Arrays 248 public static byte @libcore.util.NonNull [] copyOfRange(byte @libcore.util.NonNull [] original, int… in copyOfRange() method in Arrays 250 public static short @libcore.util.NonNull [] copyOfRange(short @libcore.util.NonNull [] original, i… in copyOfRange() method in Arrays 252 public static int @libcore.util.NonNull [] copyOfRange(int @libcore.util.NonNull [] original, int f… in copyOfRange() method in Arrays 254 public static long @libcore.util.NonNull [] copyOfRange(long @libcore.util.NonNull [] original, int… in copyOfRange() method in Arrays 256 public static char @libcore.util.NonNull [] copyOfRange(char @libcore.util.NonNull [] original, int… in copyOfRange() method in Arrays 258 public static float @libcore.util.NonNull [] copyOfRange(float @libcore.util.NonNull [] original, i… in copyOfRange() method in Arrays 260 public static double @libcore.util.NonNull [] copyOfRange(double @libcore.util.NonNull [] original,… in copyOfRange() method in Arrays 262 public static boolean @libcore.util.NonNull [] copyOfRange(boolean @libcore.util.NonNull [] origina… in copyOfRange() method in Arrays
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
D | GCMParameterSpecTest.java | 94 assertEquals(Arrays.toString(Arrays.copyOfRange(TEST_IV, 2, 6)), in testGetIV_Subarray_Success()
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | MethodType.java | 401 Class<?>[] nptypes = Arrays.copyOfRange(ptypes, 0, len+ilen); in insertParameterTypes() 565 nptypes = Arrays.copyOfRange(ptypes, end, len); in dropParameterTypes() 570 nptypes = Arrays.copyOfRange(ptypes, 0, start); in dropParameterTypes() 573 nptypes = Arrays.copyOfRange(ptypes, 0, start + tail); in dropParameterTypes()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Arrays.java | 3365 public static <T> T[] copyOfRange(T[] original, int from, int to) { in copyOfRange() method in Arrays 3366 return copyOfRange(original, from, to, (Class<? extends T[]>) original.getClass()); in copyOfRange() 3402 …public static <T,U> T[] copyOfRange(U[] original, int from, int to, Class<? extends T[]> newType) { in copyOfRange() method in Arrays 3441 public static byte[] copyOfRange(byte[] original, int from, int to) { in copyOfRange() method in Arrays 3477 public static short[] copyOfRange(short[] original, int from, int to) { in copyOfRange() method in Arrays 3513 public static int[] copyOfRange(int[] original, int from, int to) { in copyOfRange() method in Arrays 3549 public static long[] copyOfRange(long[] original, int from, int to) { in copyOfRange() method in Arrays 3585 public static char[] copyOfRange(char[] original, int from, int to) { in copyOfRange() method in Arrays 3621 public static float[] copyOfRange(float[] original, int from, int to) { in copyOfRange() method in Arrays 3657 public static double[] copyOfRange(double[] original, int from, int to) { in copyOfRange() method in Arrays [all …]
|
D | ArrayDeque.java | 776 Object[] a = Arrays.copyOfRange(elements, head, end); in toArray() 827 a = (T[]) Arrays.copyOfRange(elements, head, head + size, in toArray()
|
/libcore/ojluni/src/main/java/java/security/ |
D | PKCS12Attribute.java | 238 bytes = Arrays.copyOfRange(bytes, 1, bytes.length); in encode()
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
D | CharsetEncoderTest.java | 130 System.err.println(Arrays.toString(Arrays.copyOfRange(bb.array(), 0, bb.position()))); in testCharsetEncoderSplitSurrogates()
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ArrayBlockingQueue.java | 548 final Object[] a = Arrays.copyOfRange(items, takeIndex, end); in toArray() 601 a = (T[]) Arrays.copyOfRange(items, takeIndex, takeIndex + count, in toArray()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | StringBuffer.java | 669 toStringCache = Arrays.copyOfRange(value, 0, count); in toString()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldThreadGroupTest.java | 365 return Arrays.copyOfRange(all, 0, actualSize); in groups()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | RecursiveActionTest.java | 1229 long[] buf = Arrays.copyOfRange(array, lo, mid); in merge()
|