Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/text/
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
/frameworks/base/core/java/android/util/
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
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
DArraySet.java368 public void ensureCapacity(int minimumCapacity) { in ensureCapacity() method in ArraySet
553 ensureCapacity(mSize + N); in addAll()
961 ensureCapacity(mSize + collection.size()); in addAll()
DArrayMap.java401 public void ensureCapacity(int minimumCapacity) { in ensureCapacity() method in ArrayMap
706 ensureCapacity(mSize + N); in putAll()
1012 ensureCapacity(mSize + map.size()); in putAll()
/frameworks/base/services/core/java/com/android/server/utils/
DWatchedArrayList.java175 mStorage.ensureCapacity(end); in copyFrom()
187 dst.ensureCapacity(end); in copyTo()
285 public void ensureCapacity(int min) { in ensureCapacity() method in WatchedArrayList
286 mStorage.ensureCapacity(min); in ensureCapacity()
416 dst.mStorage.ensureCapacity(end); in snapshot()
DWatchedArraySet.java175 mStorage.ensureCapacity(end); in copyFrom()
187 dst.ensureCapacity(end); in copyTo()
427 dst.mStorage.ensureCapacity(end); in snapshot()
DWatchedArrayMap.java182 mStorage.ensureCapacity(end); in copyFrom()
194 dst.ensureCapacity(end); in copyTo()
464 dst.mStorage.ensureCapacity(end); in snapshot()
/frameworks/base/core/java/android/database/
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
/frameworks/base/core/java/android/view/textclassifier/
DEntityConfidence.java61 mEntityConfidence.ensureCapacity(source.size()); in EntityConfidence()
129 mEntityConfidence.ensureCapacity(numEntities); in EntityConfidence()
138 mSortedEntities.ensureCapacity(mEntityConfidence.size()); in resetSortedEntitiesFromMap()
/frameworks/base/core/java/com/android/internal/util/
DLineBreakBufferedWriter.java234 ensureCapacity(bufferIndex + len); in appendToBuffer()
249 ensureCapacity(bufferIndex + len); in appendToBuffer()
261 private void ensureCapacity(int capacity) { in ensureCapacity() method in LineBreakBufferedWriter
/frameworks/base/media/java/android/media/
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
/frameworks/base/core/java/android/hardware/camera2/params/
DMandatoryStreamCombination.java1337 availableStreamCombinations.ensureCapacity(chosenStreamCombinations.length); in getAvailableMandatoryStreamCombinationsInternal()
1340 streamsInfo.ensureCapacity(combTemplate.mStreamTemplates.length); in getAvailableMandatoryStreamCombinationsInternal()
1464 availableStreamCombinations.ensureCapacity(sStreamUseCaseCombinations.length); in getAvailableMandatoryStreamUseCaseCombinations()
1468 streamsInfo.ensureCapacity(combTemplate.mStreamTemplates.length); in getAvailableMandatoryStreamUseCaseCombinations()
1532 availableConcurrentStreamCombinations.ensureCapacity( in getAvailableMandatoryConcurrentStreamCombinations()
1537 streamsInfo.ensureCapacity(combTemplate.mStreamTemplates.length); in getAvailableMandatoryConcurrentStreamCombinations()
1633 availableStreamCombinations.ensureCapacity( in getAvailableMandatoryMaximumResolutionStreamCombinations()
1645 streamsInfo.ensureCapacity(combTemplate.mStreamTemplates.length); in createUHSensorMandatoryStreamCombination()
1683 availableDefaultRawSizes.ensureCapacity(defaultRawSizes.length); in createUHSensorMandatoryStreamCombination()
1887 availableRawSizes.ensureCapacity(rawSizes.length); in generateAvailableCombinations()
[all …]
DRecommendedStreamConfigurationMap.java210 integerSet.ensureCapacity(intArray.length); in getUnmodifiableIntegerSet()
/frameworks/base/core/java/com/android/internal/widget/
DNotificationActionListLayout.java223 mMeasureOrderTextViews.ensureCapacity(capacityText); in rebuildMeasureOrder()
224 mMeasureOrderOther.ensureCapacity(capacityOther); in rebuildMeasureOrder()
DGapWorker.java219 mTasks.ensureCapacity(totalTaskCount); in buildTaskList()
/frameworks/base/services/core/java/com/android/server/am/
DProcessProviderRecord.java82 mPubProviders.ensureCapacity(capacity); in ensureProviderCapacity()
/frameworks/base/services/core/java/com/android/server/location/contexthub/
DContextHubServiceUtil.java78 outputArray.ensureCapacity(inputArray.length); in copyToByteArrayList()
/frameworks/base/core/java/android/hardware/camera2/impl/
DCameraMetadataNative.java1128 streamConfigList.ensureCapacity(RecommendedStreamConfigurationMap.MAX_USECASE_COUNT); in parseRecommendedConfigurations()
1129 streamDurationList.ensureCapacity(RecommendedStreamConfigurationMap.MAX_USECASE_COUNT); in parseRecommendedConfigurations()
1130 streamStallList.ensureCapacity(RecommendedStreamConfigurationMap.MAX_USECASE_COUNT); in parseRecommendedConfigurations()
1292 recommendedConfigurations.ensureCapacity( in getRecommendedStreamConfigurations()
1435 caps.ensureCapacity(capabilities.length); in getMandatoryStreamCombinationsHelper()
/frameworks/base/core/java/android/os/
DPackageTagsList.java329 mPackageTags.ensureCapacity(packageTagsMap.size()); in add()
/frameworks/opt/car/services/updatableServices/src/com/android/server/wm/
DCarLaunchParamsModifierUpdatableImpl.java242 mPassengerDisplays.ensureCapacity(displayIdsForPassenger.length); in setPassengerDisplays()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DSecurityLogMonitor.java334 mPendingLogs.ensureCapacity(mPendingLogs.size() + newLogs.size()); in mergeBatchLocked()
/frameworks/base/services/core/java/com/android/server/pm/
DSharedUserSetting.java339 this.processes.ensureCapacity(numProcs);
/frameworks/base/core/java/android/app/admin/
DSystemUpdatePolicy.java723 policy.mFreezePeriods.ensureCapacity(freezeCount);
/frameworks/base/services/core/java/com/android/server/
DIntentResolver.java907 l.ensureCapacity(end); in copyInto()
922 l.ensureCapacity(end); in copyInto()

12