Home
last modified time | relevance | path

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

123

/libcore/ojluni/src/main/java/java/text/
DDateFormatSymbols.java455 return Arrays.copyOf(eras, eras.length); in getEras()
463 eras = Arrays.copyOf(newEras, newEras.length); in setEras()
483 return Arrays.copyOf(months, months.length); in getMonths()
491 months = Arrays.copyOf(newMonths, newMonths.length); in setMonths()
511 return Arrays.copyOf(shortMonths, shortMonths.length); in getShortMonths()
519 shortMonths = Arrays.copyOf(newShortMonths, newShortMonths.length); in setShortMonths()
529 return Arrays.copyOf(weekdays, weekdays.length); in getWeekdays()
539 weekdays = Arrays.copyOf(newWeekdays, newWeekdays.length); in setWeekdays()
549 return Arrays.copyOf(shortWeekdays, shortWeekdays.length); in getShortWeekdays()
559 shortWeekdays = Arrays.copyOf(newShortWeekdays, newShortWeekdays.length); in setShortWeekdays()
[all …]
DChoiceFormat.java349 choiceLimits = Arrays.copyOf(limits, limits.length); in setChoices()
350 choiceFormats = Arrays.copyOf(formats, formats.length); in setChoices()
359 double[] newLimits = Arrays.copyOf(choiceLimits, choiceLimits.length); in getLimits()
369 Object[] newFormats = Arrays.copyOf(choiceFormats, choiceFormats.length); in getFormats()
/libcore/ojluni/src/main/java/java/io/
DCharArrayWriter.java82 buf = Arrays.copyOf(buf, Math.max(buf.length << 1, newcount)); in write()
105 buf = Arrays.copyOf(buf, Math.max(buf.length << 1, newcount)); in write()
122 buf = Arrays.copyOf(buf, Math.max(buf.length << 1, newcount)); in write()
245 return Arrays.copyOf(buf, count); in toCharArray()
DByteArrayOutputStream.java118 buf = Arrays.copyOf(buf, newCapacity); in grow()
191 return Arrays.copyOf(buf, count); in toByteArray()
/libcore/ojluni/src/main/java/java/lang/
DThreadGroup.java285 groupsSnapshot = Arrays.copyOf(groups, ngroupsSnapshot); in setMaxPriority()
365 groupsSnapshot = Arrays.copyOf(groups, ngroupsSnapshot); in activeCount()
460 groupsSnapshot = Arrays.copyOf(groups, ngroupsSnapshot); in enumerate()
498 groupsSnapshot = Arrays.copyOf(groups, ngroupsSnapshot); in activeGroupCount()
593 groupsSnapshot = Arrays.copyOf(groups, ngroupsSnapshot); in enumerate()
659 groupsSnapshot = Arrays.copyOf(groups, ngroupsSnapshot); in interrupt()
721 groupsSnapshot = Arrays.copyOf(groups, ngroupsSnapshot); in stopOrSuspend()
763 groupsSnapshot = Arrays.copyOf(groups, ngroupsSnapshot); in resume()
798 groupsSnapshot = Arrays.copyOf(groups, ngroupsSnapshot); in destroy()
831 groups = Arrays.copyOf(groups, ngroups * 2); in add()
[all …]
/libcore/ojluni/src/main/java/java/sql/
DBatchUpdateException.java83 …this.updateCounts = (updateCounts == null) ? null : Arrays.copyOf(updateCounts, updateCounts.leng… in BatchUpdateException()
295 …this.updateCounts = (updateCounts == null) ? null : Arrays.copyOf(updateCounts, updateCounts.leng… in BatchUpdateException()
329 return (updateCounts == null) ? null : Arrays.copyOf(updateCounts, updateCounts.length); in getUpdateCounts()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/
DTCKWeekFieldsSerialization.java111 byte[] val = Arrays.copyOf(template, template.length); in test_invalid_serialform()
122 val = Arrays.copyOf(template, template.length); in test_invalid_serialform()
133 val = Arrays.copyOf(template, template.length); in test_invalid_serialform()
144 val = Arrays.copyOf(template, 110); in test_invalid_serialform()
DTCKValueRangeSerialization.java146 byte[] val = Arrays.copyOf(template, template.length); in test_invalid_serialform()
157 val = Arrays.copyOf(template, template.length); in test_invalid_serialform()
168 val = Arrays.copyOf(template, template.length); in test_invalid_serialform()
/libcore/ojluni/src/main/java/sun/misc/
DIOUtils.java60 output = Arrays.copyOf(output, pos + bytesToRead); in readFully()
71 output = Arrays.copyOf(output, pos); in readFully()
DResource.java117 b = Arrays.copyOf(b, pos + bytesToRead); in getBytes()
134 b = Arrays.copyOf(b, pos); in getBytes()
/libcore/ojluni/src/main/java/java/util/concurrent/
DCopyOnWriteArrayList.java140 elements = Arrays.copyOf(elements, elements.length, Object[].class); in CopyOnWriteArrayList()
153 setArray(Arrays.copyOf(toCopyIn, toCopyIn.length, Object[].class)); in CopyOnWriteArrayList()
321 return Arrays.copyOf(elements, elements.length); in toArray()
367 return (T[]) Arrays.copyOf(elements, len, a.getClass()); in toArray()
409 Object[] newElements = Arrays.copyOf(elements, len); in set()
430 Object[] newElements = Arrays.copyOf(elements, len + 1); in add()
453 newElements = Arrays.copyOf(elements, len + 1); in add()
479 setArray(Arrays.copyOf(elements, len - 1)); in remove()
566 setArray(Arrays.copyOf(elements, newlen)); in removeRange()
607 Object[] newElements = Arrays.copyOf(current, len + 1); in addIfAbsent()
[all …]
/libcore/ojluni/src/main/java/java/util/
DAbstractCollection.java140 return Arrays.copyOf(r, i); in toArray()
187 return Arrays.copyOf(r, i); in toArray()
230 r = Arrays.copyOf(r, newCap); in finishToArray()
235 return (i == r.length) ? r : Arrays.copyOf(r, i); in finishToArray()
DEnumSet.java150 public static <E extends Enum<E>> EnumSet<E> copyOf(EnumSet<E> s) { in copyOf() method in EnumSet
168 public static <E extends Enum<E>> EnumSet<E> copyOf(Collection<E> c) { in copyOf() method in EnumSet
194 EnumSet<E> result = copyOf(s); in complementOf()
DVector.java175 elementData = Arrays.copyOf(elementData, elementCount, Object[].class); in Vector()
207 elementData = Arrays.copyOf(elementData, elementCount); in trimToSize()
266 elementData = Arrays.copyOf(elementData, newCapacity); in grow()
675 v.elementData = Arrays.copyOf(elementData, elementCount); in clone()
691 return Arrays.copyOf(elementData, elementCount); in toArray()
720 return (T[]) Arrays.copyOf(elementData, elementCount, a.getClass()); in toArray()
DPriorityQueue.java258 a = Arrays.copyOf(a, a.length, Object[].class); in initElementsFromCollection()
300 queue = Arrays.copyOf(queue, newCapacity); in grow()
426 return Arrays.copyOf(queue, size); in toArray()
470 return (T[]) Arrays.copyOf(queue, size, a.getClass()); in toArray()
/libcore/ojluni/annotations/hiddenapi/java/util/
DArrays.java458 public static <T> T[] copyOf(T[] original, int newLength) { in copyOf() method in Arrays
462 public static <T, U> T[] copyOf( in copyOf() method in Arrays
467 public static byte[] copyOf(byte[] original, int newLength) { in copyOf() method in Arrays
471 public static short[] copyOf(short[] original, int newLength) { in copyOf() method in Arrays
475 public static int[] copyOf(int[] original, int newLength) { in copyOf() method in Arrays
479 public static long[] copyOf(long[] original, int newLength) { in copyOf() method in Arrays
483 public static char[] copyOf(char[] original, int newLength) { in copyOf() method in Arrays
487 public static float[] copyOf(float[] original, int newLength) { in copyOf() method in Arrays
491 public static double[] copyOf(double[] original, int newLength) { in copyOf() method in Arrays
495 public static boolean[] copyOf(boolean[] original, int newLength) { in copyOf() method in Arrays
DEnumSet.java51 public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> copyOf( in copyOf() method in EnumSet
56 public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> copyOf( in copyOf() method in EnumSet
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DArraysTest.java3250 byte[] result = Arrays.copyOf(byteArray, arraySize * 2); in test_copyOf_$BI()
3258 result = Arrays.copyOf(byteArray, arraySize / 2); in test_copyOf_$BI()
3264 Arrays.copyOf((byte[]) null, arraySize); in test_copyOf_$BI()
3270 Arrays.copyOf(byteArray, -1); in test_copyOf_$BI()
3276 Arrays.copyOf((byte[]) null, -1); in test_copyOf_$BI()
3287 short[] result = Arrays.copyOf(shortArray, arraySize * 2); in test_copyOf_$SI()
3295 result = Arrays.copyOf(shortArray, arraySize / 2); in test_copyOf_$SI()
3301 Arrays.copyOf((short[]) null, arraySize); in test_copyOf_$SI()
3307 Arrays.copyOf(shortArray, -1); in test_copyOf_$SI()
3313 Arrays.copyOf((short[]) null, -1); in test_copyOf_$SI()
[all …]
/libcore/benchmarks/src/benchmarks/
DArrayCopyBenchmark.java43 char[] dst = Arrays.copyOf(src, 8192); in time_Arrays_copyOf()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/
DNullArgsTestCase.java59 Object[] temp = Arrays.copyOf(args, args.length); in throwWithNull()
/libcore/ojluni/annotations/sdk/nullability/java/util/
DArrays.annotated.java224 public static <T> T @libcore.util.NonNull [] copyOf(T @libcore.util.NonNull [] original, int newLen… in copyOf() method in Arrays
226 public static <T, U> T @libcore.util.NonNull [] copyOf(U @libcore.util.NonNull [] original, int new… in copyOf() method in Arrays
228 public static byte @libcore.util.NonNull [] copyOf(byte @libcore.util.NonNull [] original, int newL… in copyOf() method in Arrays
230 public static short @libcore.util.NonNull [] copyOf(short @libcore.util.NonNull [] original, int ne… in copyOf() method in Arrays
232 public static int @libcore.util.NonNull [] copyOf(int @libcore.util.NonNull [] original, int newLen… in copyOf() method in Arrays
234 public static long @libcore.util.NonNull [] copyOf(long @libcore.util.NonNull [] original, int newL… in copyOf() method in Arrays
236 public static char @libcore.util.NonNull [] copyOf(char @libcore.util.NonNull [] original, int newL… in copyOf() method in Arrays
238 public static float @libcore.util.NonNull [] copyOf(float @libcore.util.NonNull [] original, int ne… in copyOf() method in Arrays
240 public static double @libcore.util.NonNull [] copyOf(double @libcore.util.NonNull [] original, int … in copyOf() method in Arrays
242 public static boolean @libcore.util.NonNull [] copyOf(boolean @libcore.util.NonNull [] original, in… in copyOf() method in Arrays
/libcore/ojluni/src/main/java/java/util/zip/
DZipCoder.java89 return Arrays.copyOf(ba, blen); in getBytes()
102 return Arrays.copyOf(ba, bb.position()); in getBytes()
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DAtomicReferenceArray.java105 this.array = Arrays.copyOf(array, array.length, Object[].class); in AtomicReferenceArray()
328 a = Arrays.copyOf((Object[])a, Array.getLength(a), Object[].class); in readObject()
/libcore/ojluni/src/main/java/java/util/stream/
DSpinedBuffer.java143 spine = Arrays.copyOf(spine, newSpineSize); in ensureCapacity()
144 priorElementCount = Arrays.copyOf(priorElementCount, newSpineSize); in ensureCapacity()
508 spine = Arrays.copyOf(spine, newSpineSize); in ensureCapacity()
509 priorElementCount = Arrays.copyOf(priorElementCount, newSpineSize); in ensureCapacity()
833 int[] array2 = Arrays.copyOf(array, 200); in toString()
951 long[] array2 = Arrays.copyOf(array, 200); in toString()
1069 double[] array2 = Arrays.copyOf(array, 200); in toString()
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DAclEntry.java186 perms = EnumSet.copyOf(perms); in setPermissions()
231 flags = EnumSet.copyOf(flags); in setFlags()

123