Searched refs:newLength (Results 1 – 9 of 9) sorted by relevance
/libcore/luni/src/main/java/java/io/ |
D | File.java | 207 int newLength = 0; in fixSlashes() local 212 newPath[newLength++] = separatorChar; in fixSlashes() 216 newPath[newLength++] = ch; in fixSlashes() 221 if (lastWasSlash && newLength > 1) { in fixSlashes() 222 newLength--; in fixSlashes() 225 return (newLength != length) ? new String(newPath, 0, newLength) : origPath; in fixSlashes() 510 int newLength = 0, lastSlash = 0, foundDots = 0; in getCanonicalPath() local 514 newResult[newLength++] = result.charAt(i); in getCanonicalPath() 528 newLength = sepLocations[lastSlash] + 1; in getCanonicalPath() 532 sepLocations[++lastSlash] = newLength; in getCanonicalPath() [all …]
|
D | BufferedInputStream.java | 150 int newLength = localBuf.length * 2; in fillbuf() local 151 if (newLength > marklimit) { in fillbuf() 152 newLength = marklimit; in fillbuf() 154 byte[] newbuf = new byte[newLength]; in fillbuf()
|
D | BufferedReader.java | 139 int newLength = buf.length * 2; in fillBuf() local 140 if (newLength > markLimit) { in fillBuf() 141 newLength = markLimit; in fillBuf() 143 char[] newbuf = new char[newLength]; in fillBuf()
|
D | RandomAccessFile.java | 722 public void setLength(long newLength) throws IOException { in setLength() argument 724 if (newLength < 0) { in setLength() 727 fileSystem.truncate(fd.descriptor, newLength); in setLength()
|
/libcore/luni/src/main/java/java/util/ |
D | Arrays.java | 2513 public static boolean[] copyOf(boolean[] original, int newLength) { in copyOf() argument 2514 if (newLength < 0) { in copyOf() 2517 return copyOfRange(original, 0, newLength); in copyOf() 2532 public static byte[] copyOf(byte[] original, int newLength) { in copyOf() argument 2533 if (newLength < 0) { in copyOf() 2536 return copyOfRange(original, 0, newLength); in copyOf() 2551 public static char[] copyOf(char[] original, int newLength) { in copyOf() argument 2552 if (newLength < 0) { in copyOf() 2555 return copyOfRange(original, 0, newLength); in copyOf() 2570 public static double[] copyOf(double[] original, int newLength) { in copyOf() argument [all …]
|
D | ArrayDeque.java | 529 int newLength = length << 1; in checkAndExpand() local 531 if (newLength < 0) { in checkAndExpand() 532 newLength = Integer.MAX_VALUE; in checkAndExpand() 534 E[] newElements = (E[]) new Object[newLength]; in checkAndExpand()
|
/libcore/luni/src/test/java/org/bouncycastle/crypto/digests/ |
D | DigestTest.java | 74 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/org/apache/harmony/luni/util/ |
D | HexStringParser.java | 277 int newLength = countBitsLength(mantissa); in round() local 280 if (oldLength >= MANTISSA_WIDTH && newLength > oldLength) { in round()
|
/libcore/luni/src/main/java/java/util/logging/ |
D | FileHandler.java | 617 public void setLength(long newLength) { in setLength() argument 618 length = newLength; in setLength()
|