/frameworks/base/core/java/android/text/ |
D | AutoGrowArray.java | 100 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/ |
D | SimPhonebookRecordCache.java | 434 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() 445 } else if (newCapacity.isSimValid()) { in handlePhonebookCapacityChanged() 455 if (newCapacity.isSimValid() && newCapacity.isSimEmpty()) { in handlePhonebookCapacityChanged() 459 } else if (!newCapacity.isSimValid()) { in handlePhonebookCapacityChanged() [all …]
|
/frameworks/base/core/java/android/util/ |
D | IntArray.java | 165 final int newCapacity = targetCap > minCapacity ? targetCap : minCapacity; in ensureCapacity() local 166 final int[] newValues = ArrayUtils.newUnpaddedIntArray(newCapacity); in ensureCapacity()
|
D | LongArray.java | 142 final int newCapacity = targetCap > minCapacity ? targetCap : minCapacity; in ensureCapacity() local 143 final long[] newValues = ArrayUtils.newUnpaddedLongArray(newCapacity); in ensureCapacity()
|
/frameworks/base/media/java/android/media/ |
D | MediaMetrics.java | 812 int newCapacity = mBuffer.position() + size; in reserveProperty() local 813 if (newCapacity > Integer.MAX_VALUE >> 1) { in reserveProperty() 815 "Item memory requirements too large: " + newCapacity); in reserveProperty() 817 newCapacity <<= 1; in reserveProperty() 818 ByteBuffer buffer = ByteBuffer.allocateDirect(newCapacity); in reserveProperty()
|
D | AudioMetadata.java | 545 int newCapacity = mBuffer.position() + count; in ensureCapacity() local 546 if (newCapacity > Integer.MAX_VALUE >> 1) { in ensureCapacity() 548 "Item memory requirements too large: " + newCapacity); in ensureCapacity() 550 newCapacity <<= 1; in ensureCapacity() 551 ByteBuffer buffer = ByteBuffer.allocateDirect(newCapacity); in ensureCapacity()
|
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/utils/ |
D | WatcherTest.java | 969 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/module/extractors/mpeg2/ |
D | MPEG2PSExtractor.cpp | 177 size_t newCapacity = mBuffer->capacity() + kChunkSize; in feedMore() local 178 sp<ABuffer> newBuffer = new ABuffer(newCapacity); in feedMore()
|
/frameworks/av/media/module/mpeg2ts/ |
D | ATSParser.cpp | 2580 size_t newCapacity = in append() local 2583 newCapacity = (newCapacity + 1023) & ~1023; in append() 2585 sp<ABuffer> newBuffer = new ABuffer(newCapacity); in append()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | PointerLocationView.java | 965 final int newCapacity = oldCapacity * 2; 966 final char[] newChars = new char[newCapacity];
|
/frameworks/native/libs/binder/ |
D | Parcel.cpp | 2952 static uint8_t* reallocZeroFree(uint8_t* data, size_t oldCapacity, size_t newCapacity, bool zero) { in reallocZeroFree() argument 2954 return (uint8_t*)realloc(data, newCapacity); in reallocZeroFree() 2956 uint8_t* newData = (uint8_t*)malloc(newCapacity); in reallocZeroFree() 2961 memcpy(newData, data, std::min(oldCapacity, newCapacity)); in reallocZeroFree()
|
/frameworks/base/config/ |
D | boot-image-profile.txt | 24134 HSPLjava/lang/AbstractStringBuilder;->newCapacity(I)I
|