Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/text/
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()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DSimPhonebookRecordCache.java434 private void handlePhonebookCapacityChanged(AdnCapacity newCapacity) { in handlePhonebookCapacityChanged() argument
436 if (newCapacity == null) { in handlePhonebookCapacityChanged()
437 newCapacity = new AdnCapacity(); in handlePhonebookCapacityChanged()
439 mAdnCapacity.set(newCapacity); in handlePhonebookCapacityChanged()
440 if (oldCapacity == null && newCapacity != null) { in handlePhonebookCapacityChanged()
441 inflateWithEmptyRecords(newCapacity); in handlePhonebookCapacityChanged()
442 if (!newCapacity.isSimEmpty()){ in handlePhonebookCapacityChanged()
451 if (newCapacity.isSimEmpty() in handlePhonebookCapacityChanged()
452 || !newCapacity.isSimValid()) { in handlePhonebookCapacityChanged()
/frameworks/base/core/java/android/util/
DIntArray.java166 final int newCapacity = targetCap > minCapacity ? targetCap : minCapacity; in ensureCapacity() local
167 final int[] newValues = ArrayUtils.newUnpaddedIntArray(newCapacity); in ensureCapacity()
DLongArray.java143 final int newCapacity = targetCap > minCapacity ? targetCap : minCapacity; in ensureCapacity() local
144 final long[] newValues = ArrayUtils.newUnpaddedLongArray(newCapacity); in ensureCapacity()
/frameworks/base/media/java/android/media/
DMediaMetrics.java775 int newCapacity = mBuffer.position() + size; in reserveProperty() local
776 if (newCapacity > Integer.MAX_VALUE >> 1) { in reserveProperty()
778 "Item memory requirements too large: " + newCapacity); in reserveProperty()
780 newCapacity <<= 1; in reserveProperty()
781 ByteBuffer buffer = ByteBuffer.allocateDirect(newCapacity); in reserveProperty()
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()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/utils/
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()
/frameworks/av/media/extractors/mpeg2/
DMPEG2PSExtractor.cpp177 size_t newCapacity = mBuffer->capacity() + kChunkSize; in feedMore() local
178 sp<ABuffer> newBuffer = new ABuffer(newCapacity); in feedMore()
/frameworks/av/media/libstagefright/mpeg2ts/
DATSParser.cpp2431 size_t newCapacity = in append() local
2434 newCapacity = (newCapacity + 1023) & ~1023; in append()
2436 sp<ABuffer> newBuffer = new ABuffer(newCapacity); in append()
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java984 final int newCapacity = oldCapacity * 2;
985 final char[] newChars = new char[newCapacity];
/frameworks/native/libs/binder/
DParcel.cpp2381 static uint8_t* reallocZeroFree(uint8_t* data, size_t oldCapacity, size_t newCapacity, bool zero) { in reallocZeroFree() argument
2383 return (uint8_t*)realloc(data, newCapacity); in reallocZeroFree()
2385 uint8_t* newData = (uint8_t*)malloc(newCapacity); in reallocZeroFree()
2390 memcpy(newData, data, std::min(oldCapacity, newCapacity)); in reallocZeroFree()
/frameworks/base/config/
Dboot-image-profile.txt24201 HSPLjava/lang/AbstractStringBuilder;->newCapacity(I)I