Home
last modified time | relevance | path

Searched refs:ensureCapacity (Results 1 – 25 of 71) sorted by relevance

123

/aosp12/frameworks/base/core/java/android/text/
H A DAutoGrowArray.java81 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 DResizableIntArray.java53 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 DIntArray.java85 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 DLongArray.java90 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 DArraySet.java367 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 DArrayMap.java399 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 DWatchedArrayList.java175 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 DWatchedArraySet.java173 mStorage.ensureCapacity(end); in copyFrom()
185 dst.ensureCapacity(end); in copyTo()
427 dst.mStorage.ensureCapacity(end); in snapshot()
H A DWatchedArrayMap.java182 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 DLongArray.java80 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 DMatrixCursor.java94 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 DEntityConfidence.java61 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 DLineBreakBufferedWriter.java234 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 DIntArray.java80 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 DAudioMetadata.java512 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 DMandatoryStreamCombination.java996 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 DRecommendedStreamConfigurationMap.java197 integerSet.ensureCapacity(intArray.length); in getUnmodifiableIntegerSet()
/aosp12/frameworks/base/core/java/com/android/internal/widget/
H A DNotificationActionListLayout.java223 mMeasureOrderTextViews.ensureCapacity(capacityText); in rebuildMeasureOrder()
224 mMeasureOrderOther.ensureCapacity(capacityOther); in rebuildMeasureOrder()
H A DGapWorker.java219 mTasks.ensureCapacity(totalTaskCount); in buildTaskList()
/aosp12/frameworks/base/services/core/java/com/android/server/am/
H A DProcessProviderRecord.java82 mPubProviders.ensureCapacity(capacity); in ensureProviderCapacity()
/aosp12/frameworks/base/services/core/java/com/android/server/location/contexthub/
H A DContextHubServiceUtil.java81 outputArray.ensureCapacity(inputArray.length); in copyToByteArrayList()
/aosp12/packages/services/Car/service/src/com/android/car/hal/
H A DClusterHalService.java286 byteList.ensureCapacity(bytesArray.length); in fillByteList()
/aosp12/frameworks/base/services/core/java/com/android/server/pm/
H A DSharedUserSetting.java270 this.processes.ensureCapacity(numProcs);
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/files/
H A DQuickViewIntentBuilder.java182 uris.ensureCapacity(siblingIds.length); in collectViewableUris()
/aosp12/frameworks/base/core/java/android/hardware/camera2/impl/
H A DCameraMetadataNative.java1075 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()

123