Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/java/util/
DArrays.java2432 public static boolean[] copyOf(boolean[] original, int newLength) { in copyOf() argument
2433 if (newLength < 0) { in copyOf()
2434 throw new NegativeArraySizeException(Integer.toString(newLength)); in copyOf()
2436 return copyOfRange(original, 0, newLength); in copyOf()
2451 public static byte[] copyOf(byte[] original, int newLength) { in copyOf() argument
2452 if (newLength < 0) { in copyOf()
2453 throw new NegativeArraySizeException(Integer.toString(newLength)); in copyOf()
2455 return copyOfRange(original, 0, newLength); in copyOf()
2470 public static char[] copyOf(char[] original, int newLength) { in copyOf() argument
2471 if (newLength < 0) { in copyOf()
[all …]
DBitSet.java141 int newLength = Math.max(desiredLongCount, bits.length * 2); in ensureCapacity() local
142 long[] newBits = new long[newLength]; in ensureCapacity()
/libcore/luni/src/main/java/java/io/
DBufferedInputStream.java159 int newLength = localBuf.length * 2; in fillbuf() local
160 if (newLength > marklimit) { in fillbuf()
161 newLength = marklimit; in fillbuf()
163 byte[] newbuf = new byte[newLength]; in fillbuf()
DBufferedReader.java156 int newLength = buf.length * 2; in fillBuf() local
157 if (newLength > markLimit) { in fillBuf()
158 newLength = markLimit; in fillBuf()
160 char[] newbuf = new char[newLength]; in fillBuf()
DRandomAccessFile.java620 public void setLength(long newLength) throws IOException { in setLength() argument
621 if (newLength < 0) { in setLength()
625 Libcore.os.ftruncate(fd, newLength); in setLength()
631 if (filePointer > newLength) { in setLength()
632 seek(newLength); in setLength()
DFile.java187 int newLength = 0; in fixSlashes() local
192 newPath[newLength++] = separatorChar; in fixSlashes()
196 newPath[newLength++] = ch; in fixSlashes()
201 if (lastWasSlash && newLength > 1) { in fixSlashes()
202 newLength--; in fixSlashes()
205 return (newLength != length) ? new String(newPath, 0, newLength) : origPath; in fixSlashes()
/libcore/luni/src/test/java/com/android/org/bouncycastle/crypto/digests/
DDigestTest.java74 int newLength = newDigest.doFinal(newHash, 0); in doTestMessageDigest() local
79 assertEquals("Hash sizes must be equal", oldLength, newLength); in doTestMessageDigest()
/libcore/luni/src/main/java/java/lang/
DHexStringParser.java267 int newLength = countBitsLength(mantissa); in round() local
270 if (oldLength >= MANTISSA_WIDTH && newLength > oldLength) { in round()
/libcore/luni/src/main/java/java/util/logging/
DFileHandler.java565 public void setLength(long newLength) { in setLength() argument
566 length = newLength; in setLength()
/libcore/benchmarks/libs/
Dcaliper.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...