/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/math/ |
D | MutableBigInteger.java | 141 value = Arrays.copyOfRange(val.value, val.offset, val.offset + intLen); in MutableBigInteger() 164 return Arrays.copyOfRange(value, offset, offset + intLen); in getMagnitudeArray() 718 … return new BigInteger(Arrays.copyOfRange(value, offset+intLen-len, offset+intLen), sign); in getLower() 1420 int[] newVal = Arrays.copyOfRange(value, offset+intLen-blockEnd, offset+intLen-blockStart); in getBlock() 1511 divisor = Arrays.copyOfRange(div.value, div.offset, div.offset + div.intLen); in divideMagnitude()
|
D | BigInteger.java | 1633 rmag = java.util.Arrays.copyOfRange(rmag, 1, rmag.length); in multiplyByInt() 1678 rmag = java.util.Arrays.copyOfRange(rmag, 1, rmag.length); in multiply() 4338 return java.util.Arrays.copyOfRange(val, keep, vlen); 4352 return keep == 0 ? val : java.util.Arrays.copyOfRange(val, keep, vlen);
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldThreadGroupTest.java | 365 return Arrays.copyOfRange(all, 0, actualSize); in groups()
|
/libcore/ojluni/src/test/java/util/List/ |
D | ListFactories.java | 136 asList(Arrays.copyOfRange(stringArray, 5, NUM_STRINGS))) in sublists()
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | RecursiveActionTest.java | 1241 long[] buf = Arrays.copyOfRange(array, lo, mid); in merge()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | RecursiveActionTest.java | 1229 long[] buf = Arrays.copyOfRange(array, lo, mid); in merge()
|