Home
last modified time | relevance | path

Searched refs:copyOf (Results 1 – 18 of 18) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DArraysTest.java3239 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 …]
DEnumSetTest.java897 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/
DEnumSet.java82 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()
DArrays.java2432 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
DArrayDeque.java794 result.elements = Arrays.copyOf(elements, elements.length); in clone()
DBitSet.java727 return Arrays.copyOf(bits, longCount); in toLongArray()
/libcore/benchmarks/src/benchmarks/
DArrayCopyBenchmark.java47 char[] dst = Arrays.copyOf(src, 8192); in time_Arrays_copyOf()
/libcore/luni/src/main/java/java/util/concurrent/atomic/
DAtomicReferenceArray.java76 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/
DScheduledThreadPoolExecutor.java888 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()
DPriorityBlockingQueue.java228 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()
DCopyOnWriteArrayList.java98 this.elements = Arrays.copyOf(array, array.length, Object[].class); in CopyOnWriteArrayList()
231 return (T[]) Arrays.copyOf(snapshot, snapshot.length, contents.getClass()); in toArray()
DConcurrentHashMap.java2696 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()
DForkJoinPool.java1350 workQueues = ws = Arrays.copyOf(ws, n <<= 1); in registerWorker()
/libcore/jsr166-tests/src/test/java/jsr166/
DCopyOnWriteArraySetTest.java313 assertTrue(Arrays.equals(elements, Arrays.copyOf(a, SIZE))); in testToArray2()
DCopyOnWriteArrayListTest.java461 assertTrue(Arrays.equals(elements, Arrays.copyOf(a, SIZE))); in testToArray2()
/libcore/benchmarks/libs/
Dcaliper.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLSocketTest.java1497 return Arrays.copyOf(buffer, bytesRead); in test_SSLSocket_ClientHello_size()
/libcore/luni/src/test/java/libcore/javax/crypto/
DCipherTest.java1986 encrypted = Arrays.copyOf(encrypted, encrypted.length - 1); in testRSA_ECB_NoPadding_Public_OnlyDoFinalWithOffset_Success()