Searched refs:newLength (Results 1 - 10 of 10) sorted by relevance

/libcore/luni/src/main/java/java/util/
H A DArrays.java2421 * Copies {@code newLength} elements from {@code original} into a new array.
2422 * If {@code newLength} is greater than {@code original.length}, the result is padded
2426 * @param newLength the length of the new array
2428 * @throws NegativeArraySizeException if {@code newLength < 0}
2432 public static boolean[] copyOf(boolean[] original, int newLength) { argument
2433 if (newLength < 0) {
2434 throw new NegativeArraySizeException(Integer.toString(newLength));
2436 return copyOfRange(original, 0, newLength);
2440 * Copies {@code newLength} elements from {@code original} into a new array.
2441 * If {@code newLength} i
2451 copyOf(byte[] original, int newLength) argument
2470 copyOf(char[] original, int newLength) argument
2489 copyOf(double[] original, int newLength) argument
2508 copyOf(float[] original, int newLength) argument
2527 copyOf(int[] original, int newLength) argument
2546 copyOf(long[] original, int newLength) argument
2565 copyOf(short[] original, int newLength) argument
2584 copyOf(T[] original, int newLength) argument
2608 copyOf(U[] original, int newLength, Class<? extends T[]> newType) argument
[all...]
H A DBitSet.java141 int newLength = Math.max(desiredLongCount, bits.length * 2);
142 long[] newBits = new long[newLength];
/libcore/luni/src/test/java/com/android/org/bouncycastle/crypto/digests/
H A DDigestTest.java74 int newLength = newDigest.doFinal(newHash, 0);
79 assertEquals("Hash sizes must be equal", oldLength, newLength);
/libcore/luni/src/main/java/java/io/
H A DBufferedInputStream.java159 int newLength = localBuf.length * 2;
160 if (newLength > marklimit) {
161 newLength = marklimit;
163 byte[] newbuf = new byte[newLength];
H A DBufferedReader.java156 int newLength = buf.length * 2;
157 if (newLength > markLimit) {
158 newLength = markLimit;
160 char[] newbuf = new char[newLength];
H A DFile.java187 int newLength = 0;
192 newPath[newLength++] = separatorChar;
196 newPath[newLength++] = ch;
201 if (lastWasSlash && newLength > 1) {
202 newLength--;
205 return (newLength != length) ? new String(newPath, 0, newLength) : origPath;
H A DRandomAccessFile.java607 * Sets the length of this file to {@code newLength}. If the current file is
610 * size is bigger than {@code newLength}. If the current file pointer
613 * @param newLength
616 * if {@code newLength < 0}.
620 public void setLength(long newLength) throws IOException { argument
621 if (newLength < 0) {
622 throw new IllegalArgumentException("newLength < 0");
625 Libcore.os.ftruncate(fd, newLength);
631 if (filePointer > newLength) {
632 seek(newLength);
[all...]
/libcore/luni/src/main/java/java/lang/
H A DHexStringParser.java267 int newLength = countBitsLength(mantissa);
270 if (oldLength >= MANTISSA_WIDTH && newLength > oldLength) {
/libcore/luni/src/main/java/java/util/logging/
H A DFileHandler.java565 public void setLength(long newLength) { argument
566 length = newLength;
/libcore/benchmarks/libs/
H A Dcaliper.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/caliper/ com/google/caliper/AllocationMeasurer ...

Completed in 4758 milliseconds