/libcore/ojluni/src/main/java/java/util/ |
D | Arrays.java | 3105 public static <T> T[] copyOf(T[] original, int newLength) { in copyOf() argument 3106 return (T[]) copyOf(original, newLength, original.getClass()); in copyOf() 3133 public static <T,U> T[] copyOf(U[] original, int newLength, Class<? extends T[]> newType) { in copyOf() argument 3136 ? (T[]) new Object[newLength] in copyOf() 3137 : (T[]) Array.newInstance(newType.getComponentType(), newLength); in copyOf() 3139 Math.min(original.length, newLength)); in copyOf() 3160 public static byte[] copyOf(byte[] original, int newLength) { in copyOf() argument 3161 byte[] copy = new byte[newLength]; in copyOf() 3163 Math.min(original.length, newLength)); in copyOf() 3184 public static short[] copyOf(short[] original, int newLength) { in copyOf() argument [all …]
|
D | Properties.java | 483 int newLength = lineBuf.length * 2; in readLine() local 484 if (newLength < 0) { in readLine() 485 newLength = Integer.MAX_VALUE; in readLine() 487 char[] buf = new char[newLength]; in readLine()
|
D | IdentityHashMap.java | 459 int newLength = newCapacity * 2; in resize() local 468 if (oldLength >= newLength) in resize() 471 Object[] newTable = new Object[newLength]; in resize() 479 int i = hash(key, newLength); in resize() 481 i = nextKeyIndex(i, newLength); in resize()
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Arrays.java | 458 public static <T> T[] copyOf(T[] original, int newLength) { in copyOf() argument 463 U[] original, int newLength, java.lang.Class<? extends T[]> newType) { in copyOf() argument 467 public static byte[] copyOf(byte[] original, int newLength) { in copyOf() argument 471 public static short[] copyOf(short[] original, int newLength) { in copyOf() argument 475 public static int[] copyOf(int[] original, int newLength) { in copyOf() argument 479 public static long[] copyOf(long[] original, int newLength) { in copyOf() argument 483 public static char[] copyOf(char[] original, int newLength) { in copyOf() argument 487 public static float[] copyOf(float[] original, int newLength) { in copyOf() argument 491 public static double[] copyOf(double[] original, int newLength) { in copyOf() argument 495 public static boolean[] copyOf(boolean[] original, int newLength) { in copyOf() argument
|
/libcore/ojluni/src/main/java/java/io/ |
D | RandomAccessFile.java | 661 public void setLength(long newLength) throws IOException { in setLength() argument 663 if (newLength < 0) { in setLength() 667 Libcore.os.ftruncate(fd, newLength); in setLength() 673 if (filePointer > newLength) { in setLength() 674 seek(newLength); in setLength()
|
D | ObjectOutputStream.java | 2446 int newLength = (next.length << 1) + 1; in growEntries() local 2447 int[] newNext = new int[newLength]; in growEntries() 2451 Object[] newObjs = new Object[newLength]; in growEntries()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | AbstractStringBuilder.java | 205 public void setLength(int newLength) { in setLength() argument 206 if (newLength < 0) in setLength() 207 throw new StringIndexOutOfBoundsException(newLength); in setLength() 208 ensureCapacityInternal(newLength); in setLength() 210 if (count < newLength) { in setLength() 211 Arrays.fill(value, count, newLength, '\0'); in setLength() 214 count = newLength; in setLength()
|
D | StringBuffer.java | 190 public synchronized void setLength(int newLength) { in setLength() argument 192 super.setLength(newLength); in setLength()
|
/libcore/luni/src/test/java/tests/com/android/org/bouncycastle/crypto/digests/ |
D | DigestTest.java | 85 int newLength = newDigest.doFinal(newHash, 0); in doTestMessageDigest() local 92 assertEquals("Hash sizes must be equal", oldLength, newLength); in doTestMessageDigest()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Arrays.annotated.java | 224 …libcore.util.NonNull [] copyOf(T @libcore.util.NonNull [] original, int newLength) { throw new Run… in copyOf() argument 226 …libcore.util.NonNull [] copyOf(U @libcore.util.NonNull [] original, int newLength, @libcore.util.N… in copyOf() argument 228 …core.util.NonNull [] copyOf(byte @libcore.util.NonNull [] original, int newLength) { throw new Run… in copyOf() argument 230 …ore.util.NonNull [] copyOf(short @libcore.util.NonNull [] original, int newLength) { throw new Run… in copyOf() argument 232 …bcore.util.NonNull [] copyOf(int @libcore.util.NonNull [] original, int newLength) { throw new Run… in copyOf() argument 234 …core.util.NonNull [] copyOf(long @libcore.util.NonNull [] original, int newLength) { throw new Run… in copyOf() argument 236 …core.util.NonNull [] copyOf(char @libcore.util.NonNull [] original, int newLength) { throw new Run… in copyOf() argument 238 …ore.util.NonNull [] copyOf(float @libcore.util.NonNull [] original, int newLength) { throw new Run… in copyOf() argument 240 …re.util.NonNull [] copyOf(double @libcore.util.NonNull [] original, int newLength) { throw new Run… in copyOf() argument 242 …e.util.NonNull [] copyOf(boolean @libcore.util.NonNull [] original, int newLength) { throw new Run… in copyOf() argument
|
/libcore/ojluni/src/main/java/java/text/ |
D | MessageFormat.java | 1446 int newLength = formats.length * 2; in makeFormat() local 1447 Format[] newFormats = new Format[newLength]; in makeFormat() 1448 int[] newOffsets = new int[newLength]; in makeFormat() 1449 int[] newArgumentNumbers = new int[newLength]; in makeFormat()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | AbstractStringBuilder.java | 69 public void setLength(int newLength) { in setLength() argument
|
/libcore/ojluni/annotations/hiddenapi/java/io/ |
D | RandomAccessFile.java | 112 public void setLength(long newLength) throws java.io.IOException { in setLength() argument
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | StringBuffer.annotated.java | 49 public synchronized void setLength(int newLength) { throw new RuntimeException("Stub!"); } in setLength() argument
|
D | StringBuilder.annotated.java | 130 public void setLength(int newLength) { throw new RuntimeException("Stub!"); } in setLength() argument
|