/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | ArraysTest.java | 3239 byte[] result = Arrays.copyOf(byteArray, arraySize * 2); in test_copyOf_$BI() 3247 result = Arrays.copyOf(byteArray, arraySize / 2); in test_copyOf_$BI() 3253 Arrays.copyOf((byte[]) null, arraySize); in test_copyOf_$BI() 3259 Arrays.copyOf(byteArray, -1); in test_copyOf_$BI() 3265 Arrays.copyOf((byte[]) null, -1); in test_copyOf_$BI() 3276 short[] result = Arrays.copyOf(shortArray, arraySize * 2); in test_copyOf_$SI() 3284 result = Arrays.copyOf(shortArray, arraySize / 2); in test_copyOf_$SI() 3290 Arrays.copyOf((short[]) null, arraySize); in test_copyOf_$SI() 3296 Arrays.copyOf(shortArray, -1); in test_copyOf_$SI() 3302 Arrays.copyOf((short[]) null, -1); in test_copyOf_$SI() [all …]
|
D | EnumSetTest.java | 897 EnumSet.copyOf((Collection) null); in test_CopyOf_LCollection() 905 EnumSet.copyOf(collection); in test_CopyOf_LCollection() 913 EnumSet.copyOf(collection); in test_CopyOf_LCollection() 922 EnumSet<EnumFoo> copyOfEnumCollection = EnumSet.copyOf(enumCollection); in test_CopyOf_LCollection() 933 copyOfEnumCollection = EnumSet.copyOf(enumCollection); in test_CopyOf_LCollection() 943 EnumSet.copyOf(rawEnumCollection); in test_CopyOf_LCollection() 953 EnumSet<HugeEnum> copyOfHugeEnumCollection = EnumSet.copyOf(hugeEnumCollection); in test_CopyOf_LCollection() 961 copyOfHugeEnumCollection = EnumSet.copyOf(hugeEnumCollection); in test_CopyOf_LCollection() 971 EnumSet.copyOf(rawEnumCollection); in test_CopyOf_LCollection() 987 EnumSet<EnumWithInnerClass> copyOfE = EnumSet.copyOf(enumSet); in test_CopyOf_LEnumSet() [all …]
|
/libcore/luni/src/main/java/java/util/ |
D | EnumSet.java | 82 public static <E extends Enum<E>> EnumSet<E> copyOf(EnumSet<E> s) { in copyOf() method in EnumSet 102 public static <E extends Enum<E>> EnumSet<E> copyOf(Collection<E> c) { in copyOf() method in EnumSet 104 return copyOf((EnumSet<E>) c); in copyOf()
|
D | Arrays.java | 2432 public static boolean[] copyOf(boolean[] original, int newLength) { in copyOf() method in Arrays 2451 public static byte[] copyOf(byte[] original, int newLength) { in copyOf() method in Arrays 2470 public static char[] copyOf(char[] original, int newLength) { in copyOf() method in Arrays 2489 public static double[] copyOf(double[] original, int newLength) { in copyOf() method in Arrays 2508 public static float[] copyOf(float[] original, int newLength) { in copyOf() method in Arrays 2527 public static int[] copyOf(int[] original, int newLength) { in copyOf() method in Arrays 2546 public static long[] copyOf(long[] original, int newLength) { in copyOf() method in Arrays 2565 public static short[] copyOf(short[] original, int newLength) { in copyOf() method in Arrays 2584 public static <T> T[] copyOf(T[] original, int newLength) { in copyOf() method in Arrays 2608 public static <T, U> T[] copyOf(U[] original, int newLength, Class<? extends T[]> newType) { in copyOf() method in Arrays
|
D | ArrayDeque.java | 794 result.elements = Arrays.copyOf(elements, elements.length); in clone()
|
D | BitSet.java | 727 return Arrays.copyOf(bits, longCount); in toLongArray()
|
/libcore/benchmarks/src/benchmarks/ |
D | ArrayCopyBenchmark.java | 47 char[] dst = Arrays.copyOf(src, 8192); in time_Arrays_copyOf()
|
/libcore/luni/src/main/java/java/util/concurrent/atomic/ |
D | AtomicReferenceArray.java | 76 this.array = Arrays.copyOf(array, array.length, Object[].class); in AtomicReferenceArray() 206 a = Arrays.copyOf((Object[])a, Array.getLength(a), Object[].class); in readObject()
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | ScheduledThreadPoolExecutor.java | 888 queue = Arrays.copyOf(queue, newCapacity); in grow() 1193 return Arrays.copyOf(queue, size, Object[].class); in toArray() 1205 return (T[]) Arrays.copyOf(queue, size, a.getClass()); in toArray() 1216 return new Itr(Arrays.copyOf(queue, size)); in iterator()
|
D | PriorityBlockingQueue.java | 228 a = Arrays.copyOf(a, n, Object[].class); in PriorityBlockingQueue() 689 return Arrays.copyOf(queue, size); in toArray() 814 return (T[]) Arrays.copyOf(queue, size, a.getClass()); in toArray()
|
D | CopyOnWriteArrayList.java | 98 this.elements = Arrays.copyOf(array, array.length, Object[].class); in CopyOnWriteArrayList() 231 return (T[]) Arrays.copyOf(snapshot, snapshot.length, contents.getClass()); in toArray()
|
D | ConcurrentHashMap.java | 2696 r = Arrays.copyOf(r, n); in toArray() 2700 return (i == n) ? r : Arrays.copyOf(r, i); in toArray() 2722 r = Arrays.copyOf(r, n); in toArray() 2730 return (i == n) ? r : Arrays.copyOf(r, i); in toArray()
|
D | ForkJoinPool.java | 1350 workQueues = ws = Arrays.copyOf(ws, n <<= 1); in registerWorker()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | CopyOnWriteArraySetTest.java | 313 assertTrue(Arrays.equals(elements, Arrays.copyOf(a, SIZE))); in testToArray2()
|
D | CopyOnWriteArrayListTest.java | 461 assertTrue(Arrays.equals(elements, Arrays.copyOf(a, SIZE))); in testToArray2()
|
/libcore/benchmarks/libs/ |
D | caliper.jar | META-INF/
META-INF/MANIFEST.MF
com/
com/google/
com/ ... |
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | SSLSocketTest.java | 1497 return Arrays.copyOf(buffer, bytesRead); in test_SSLSocket_ClientHello_size()
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
D | CipherTest.java | 1986 encrypted = Arrays.copyOf(encrypted, encrypted.length - 1); in testRSA_ECB_NoPadding_Public_OnlyDoFinalWithOffset_Success()
|