Home
last modified time | relevance | path

Searched refs:newCapacity (Results 1 – 9 of 9) sorted by relevance

/aosp14/frameworks/base/core/java/android/text/
H A DAutoGrowArray.java100 final int newCapacity = computeNewCapacity(mSize, requestedSize); in ensureCapacity() local
101 final byte[] newValues = ArrayUtils.newUnpaddedByteArray(newCapacity); in ensureCapacity()
209 final int newCapacity = computeNewCapacity(mSize, requestedSize); in ensureCapacity() local
210 final int[] newValues = ArrayUtils.newUnpaddedIntArray(newCapacity); in ensureCapacity()
318 final int newCapacity = computeNewCapacity(mSize, requestedSize); in ensureCapacity() local
319 final float[] newValues = ArrayUtils.newUnpaddedFloatArray(newCapacity); in ensureCapacity()
/aosp14/frameworks/base/core/java/android/util/
H A DIntArray.java166 final int newCapacity = targetCap > minCapacity ? targetCap : minCapacity; in ensureCapacity() local
167 final int[] newValues = ArrayUtils.newUnpaddedIntArray(newCapacity); in ensureCapacity()
H A DLongArray.java143 final int newCapacity = targetCap > minCapacity ? targetCap : minCapacity; in ensureCapacity() local
144 final long[] newValues = ArrayUtils.newUnpaddedLongArray(newCapacity); in ensureCapacity()
/aosp14/frameworks/base/media/java/android/media/
H A DMediaMetrics.java811 int newCapacity = mBuffer.position() + size; in reserveProperty() local
812 if (newCapacity > Integer.MAX_VALUE >> 1) { in reserveProperty()
814 "Item memory requirements too large: " + newCapacity); in reserveProperty()
816 newCapacity <<= 1; in reserveProperty()
817 ByteBuffer buffer = ByteBuffer.allocateDirect(newCapacity); in reserveProperty()
H A DAudioMetadata.java546 int newCapacity = mBuffer.position() + count; in ensureCapacity() local
547 if (newCapacity > Integer.MAX_VALUE >> 1) { in ensureCapacity()
549 "Item memory requirements too large: " + newCapacity); in ensureCapacity()
551 newCapacity <<= 1; in ensureCapacity()
552 ByteBuffer buffer = ByteBuffer.allocateDirect(newCapacity); in ensureCapacity()
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/utils/
H A DWatcherTest.java969 int newCapacity, int[] indexes) { in fillNew() argument
970 final int size = newCapacity; in fillNew()
1058 private void matrixSetCapacity(WatchedSparseBooleanMatrix matrix, int newCapacity, in matrixSetCapacity() argument
1061 final int[] indexes = indexer.indexes(Math.max(initialCapacity, newCapacity)); in matrixSetCapacity()
1064 matrix.setCapacity(newCapacity); in matrixSetCapacity()
1065 fillNew(matrix, initialCapacity, newCapacity, indexes); in matrixSetCapacity()
/aosp14/frameworks/base/core/java/com/android/internal/widget/
H A DPointerLocationView.java965 final int newCapacity = oldCapacity * 2;
966 final char[] newChars = new char[newCapacity];
/aosp14/frameworks/base/packages/CredentialManager/
H A Dprofile.txt.prof9396 HSPLkotlin/collections/ArrayDeque$Companion;->newCapacity$kotlin_stdlib(II)I
/aosp14/frameworks/base/config/
H A Dboot-image-profile.txt24615 HSPLjava/lang/AbstractStringBuilder;->newCapacity(I)I