/aosp12/frameworks/base/core/java/android/text/ |
H A D | AutoGrowArray.java | 81 ensureCapacity(newSize - mSize); in resize() 90 ensureCapacity(1); in append() 97 private void ensureCapacity(@IntRange int count) { in ensureCapacity() method in AutoGrowArray.ByteArray 190 ensureCapacity(newSize - mSize); in resize() 199 ensureCapacity(1); in append() 206 private void ensureCapacity(@IntRange(from = 0) int count) { in ensureCapacity() method in AutoGrowArray.IntArray 299 ensureCapacity(newSize - mSize); in resize() 308 ensureCapacity(1); in append() 315 private void ensureCapacity(int count) { in ensureCapacity() method in AutoGrowArray.FloatArray
|
/aosp12/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/ |
H A D | ResizableIntArray.java | 53 ensureCapacity(currentLength + 1); in add() 74 private void ensureCapacity(final int minimumCapacity) { in ensureCapacity() method in ResizableIntArray 87 ensureCapacity(newLength); in setLength() 124 ensureCapacity(newLength); in append() 134 ensureCapacity(endPos); in fill()
|
/aosp12/frameworks/base/core/java/android/util/ |
H A D | IntArray.java | 85 ensureCapacity(newSize - mSize); in resize() 104 ensureCapacity(1); in add() 140 ensureCapacity(count); in addAll() 151 ensureCapacity(count); in addAll() 160 private void ensureCapacity(int count) { in ensureCapacity() method in IntArray
|
H A D | LongArray.java | 90 ensureCapacity(newSize - mSize); in resize() 110 ensureCapacity(1); in add() 128 ensureCapacity(count); in addAll() 137 private void ensureCapacity(int count) { in ensureCapacity() method in LongArray
|
H A D | ArraySet.java | 367 public void ensureCapacity(int minimumCapacity) { in ensureCapacity() method in ArraySet 552 ensureCapacity(mSize + N); in addAll() 943 ensureCapacity(mSize + collection.size()); in addAll()
|
H A D | ArrayMap.java | 399 public void ensureCapacity(int minimumCapacity) { in ensureCapacity() method in ArrayMap 704 ensureCapacity(mSize + N); in putAll() 988 ensureCapacity(mSize + map.size()); in putAll()
|
/aosp12/frameworks/base/services/core/java/com/android/server/utils/ |
H A D | WatchedArrayList.java | 175 mStorage.ensureCapacity(end); in copyFrom() 187 dst.ensureCapacity(end); in copyTo() 278 public void ensureCapacity(int min) { in ensureCapacity() method in WatchedArrayList 279 mStorage.ensureCapacity(min); in ensureCapacity() 409 dst.mStorage.ensureCapacity(end); in snapshot()
|
H A D | WatchedArraySet.java | 173 mStorage.ensureCapacity(end); in copyFrom() 185 dst.ensureCapacity(end); in copyTo() 427 dst.mStorage.ensureCapacity(end); in snapshot()
|
H A D | WatchedArrayMap.java | 182 mStorage.ensureCapacity(end); in copyFrom() 194 dst.ensureCapacity(end); in copyTo() 464 dst.mStorage.ensureCapacity(end); in snapshot()
|
/aosp12/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
H A D | LongArray.java | 80 ensureCapacity(newSize - mSize); in resize() 99 ensureCapacity(1); in add() 117 ensureCapacity(count); in addAll() 126 private void ensureCapacity(int count) { in ensureCapacity() method in LongArray
|
/aosp12/frameworks/base/core/java/android/database/ |
H A D | MatrixCursor.java | 94 ensureCapacity(endIndex); in newRow() 115 ensureCapacity(start + columnCount); in addRow() 131 ensureCapacity(end); in addRow() 175 private void ensureCapacity(int size) { in ensureCapacity() method in MatrixCursor
|
/aosp12/frameworks/base/core/java/android/view/textclassifier/ |
H A D | EntityConfidence.java | 61 mEntityConfidence.ensureCapacity(source.size()); in EntityConfidence() 129 mEntityConfidence.ensureCapacity(numEntities); in EntityConfidence() 138 mSortedEntities.ensureCapacity(mEntityConfidence.size()); in resetSortedEntitiesFromMap()
|
/aosp12/frameworks/base/core/java/com/android/internal/util/ |
H A D | LineBreakBufferedWriter.java | 234 ensureCapacity(bufferIndex + len); in appendToBuffer() 249 ensureCapacity(bufferIndex + len); in appendToBuffer() 261 private void ensureCapacity(int capacity) { in ensureCapacity() method in LineBreakBufferedWriter
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/util/ |
H A D | IntArray.java | 80 ensureCapacity(1); in add() 98 ensureCapacity(count); in addAll() 115 private void ensureCapacity(int count) { in ensureCapacity() method in IntArray
|
/aosp12/frameworks/base/media/java/android/media/ |
H A D | AudioMetadata.java | 512 ensureCapacity(INTEGER_BYTE_COUNT); in putInt() 518 ensureCapacity(LONG_BYTE_COUNT); in putLong() 524 ensureCapacity(FLOAT_BYTE_COUNT); in putFloat() 530 ensureCapacity(DOUBLE_BYTE_COUNT); in putDouble() 536 ensureCapacity(src.length); in put() 544 private void ensureCapacity(@IntRange int count) { in ensureCapacity() method in AutoGrowByteBuffer
|
/aosp12/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | MandatoryStreamCombination.java | 996 availableConcurrentStreamCombinations.ensureCapacity( in getAvailableMandatoryConcurrentStreamCombinations() 1001 streamsInfo.ensureCapacity(combTemplate.mStreamTemplates.length); in getAvailableMandatoryConcurrentStreamCombinations() 1097 availableStreamCombinations.ensureCapacity( in getAvailableMandatoryMaximumResolutionStreamCombinations() 1109 streamsInfo.ensureCapacity(combTemplate.mStreamTemplates.length); in createUHSensorMandatoryStreamCombination() 1147 availableDefaultRawSizes.ensureCapacity(defaultRawSizes.length); in createUHSensorMandatoryStreamCombination() 1351 availableRawSizes.ensureCapacity(rawSizes.length); in generateAvailableCombinations() 1371 availableStreamCombinations.ensureCapacity(availableTemplates.size()); in generateAvailableCombinations() 1375 streamsInfo.ensureCapacity(combTemplate.mStreamTemplates.length); in generateAvailableCombinations()
|
H A D | RecommendedStreamConfigurationMap.java | 197 integerSet.ensureCapacity(intArray.length); in getUnmodifiableIntegerSet()
|
/aosp12/frameworks/base/core/java/com/android/internal/widget/ |
H A D | NotificationActionListLayout.java | 223 mMeasureOrderTextViews.ensureCapacity(capacityText); in rebuildMeasureOrder() 224 mMeasureOrderOther.ensureCapacity(capacityOther); in rebuildMeasureOrder()
|
H A D | GapWorker.java | 219 mTasks.ensureCapacity(totalTaskCount); in buildTaskList()
|
/aosp12/frameworks/base/services/core/java/com/android/server/am/ |
H A D | ProcessProviderRecord.java | 82 mPubProviders.ensureCapacity(capacity); in ensureProviderCapacity()
|
/aosp12/frameworks/base/services/core/java/com/android/server/location/contexthub/ |
H A D | ContextHubServiceUtil.java | 81 outputArray.ensureCapacity(inputArray.length); in copyToByteArrayList()
|
/aosp12/packages/services/Car/service/src/com/android/car/hal/ |
H A D | ClusterHalService.java | 286 byteList.ensureCapacity(bytesArray.length); in fillByteList()
|
/aosp12/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | SharedUserSetting.java | 270 this.processes.ensureCapacity(numProcs);
|
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/files/ |
H A D | QuickViewIntentBuilder.java | 182 uris.ensureCapacity(siblingIds.length); in collectViewableUris()
|
/aosp12/frameworks/base/core/java/android/hardware/camera2/impl/ |
H A D | CameraMetadataNative.java | 1075 streamConfigList.ensureCapacity(RecommendedStreamConfigurationMap.MAX_USECASE_COUNT); in parseRecommendedConfigurations() 1076 streamDurationList.ensureCapacity(RecommendedStreamConfigurationMap.MAX_USECASE_COUNT); in parseRecommendedConfigurations() 1077 streamStallList.ensureCapacity(RecommendedStreamConfigurationMap.MAX_USECASE_COUNT); in parseRecommendedConfigurations() 1239 recommendedConfigurations.ensureCapacity( in getRecommendedStreamConfigurations() 1364 caps.ensureCapacity(capabilities.length); in getMandatoryStreamCombinationsHelper()
|