Home
last modified time | relevance | path

Searched refs:ensureCapacity (Results 1 – 25 of 38) 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()
149 private void ensureCapacity(int count) { in ensureCapacity() method in IntArray
DLongArray.java89 ensureCapacity(newSize - mSize); in resize()
109 ensureCapacity(1); in add()
127 ensureCapacity(count); in addAll()
136 private void ensureCapacity(int count) { in ensureCapacity() method in LongArray
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()
DArrayMap.java398 public void ensureCapacity(int minimumCapacity) { in ensureCapacity() method in ArrayMap
703 ensureCapacity(mSize + N); in putAll()
987 ensureCapacity(mSize + map.size()); in putAll()
/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.java457 ensureCapacity(INTEGER_BYTE_COUNT); in putInt()
463 ensureCapacity(LONG_BYTE_COUNT); in putLong()
469 ensureCapacity(FLOAT_BYTE_COUNT); in putFloat()
475 ensureCapacity(DOUBLE_BYTE_COUNT); in putDouble()
481 ensureCapacity(src.length); in put()
489 private void ensureCapacity(@IntRange int count) { in ensureCapacity() method in AutoGrowByteBuffer
/frameworks/base/core/java/com/android/internal/widget/
DNotificationActionListLayout.java161 mMeasureOrderTextViews.ensureCapacity(capacityText); in rebuildMeasureOrder()
162 mMeasureOrderOther.ensureCapacity(capacityOther); in rebuildMeasureOrder()
DGapWorker.java219 mTasks.ensureCapacity(totalTaskCount); in buildTaskList()
/frameworks/base/services/core/java/com/android/server/location/
DContextHubServiceUtil.java74 outputArray.ensureCapacity(inputArray.length); in copyToByteArrayList()
/frameworks/base/core/java/android/hardware/camera2/params/
DMandatoryStreamCombination.java750 availableConcurrentStreamCombinations.ensureCapacity( in getAvailableMandatoryConcurrentStreamCombinations()
755 streamsInfo.ensureCapacity(combTemplate.mStreamTemplates.length); in getAvailableMandatoryConcurrentStreamCombinations()
912 availableRawSizes.ensureCapacity(rawSizes.length); in generateAvailableCombinations()
932 availableStreamCombinations.ensureCapacity(availableTemplates.size()); in generateAvailableCombinations()
936 streamsInfo.ensureCapacity(combTemplate.mStreamTemplates.length); in generateAvailableCombinations()
DRecommendedStreamConfigurationMap.java197 integerSet.ensureCapacity(intArray.length); in getUnmodifiableIntegerSet()
/frameworks/base/core/java/android/hardware/camera2/impl/
DCameraMetadataNative.java990 streamConfigList.ensureCapacity(RecommendedStreamConfigurationMap.MAX_USECASE_COUNT); in parseRecommendedConfigurations()
991 streamDurationList.ensureCapacity(RecommendedStreamConfigurationMap.MAX_USECASE_COUNT); in parseRecommendedConfigurations()
992 streamStallList.ensureCapacity(RecommendedStreamConfigurationMap.MAX_USECASE_COUNT); in parseRecommendedConfigurations()
1154 recommendedConfigurations.ensureCapacity( in getRecommendedStreamConfigurations()
1266 caps.ensureCapacity(capabilities.length); in getMandatoryStreamCombinationsHelper()
/frameworks/opt/car/services/src/com/android/server/wm/
DCarLaunchParamsModifier.java249 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/core/java/android/app/admin/
DSystemUpdatePolicy.java723 policy.mFreezePeriods.ensureCapacity(freezeCount);
/frameworks/base/core/java/android/service/notification/
DNotificationListenerService.java2020 mOrderedKeys.ensureCapacity(count);
2021 mRankings.ensureCapacity(count);
/frameworks/base/services/core/java/com/android/server/soundtrigger_middleware/
DConversionUtil.java237 hidlExtra.levels.ensureCapacity(aidlExtra.levels.length); in aidl2hidlPhraseRecognitionExtra()
/frameworks/base/services/core/java/com/android/server/
DWatchdog.java544 pids.ensureCapacity(pids.size() + nativePids.length); in getInterestingNativePids()
/frameworks/base/core/java/com/android/internal/app/procstats/
DProcessStats.java1279 mPageTypeNodes.ensureCapacity(NPAGETYPES); in readFromParcel()
1281 mPageTypeZones.ensureCapacity(NPAGETYPES); in readFromParcel()
1283 mPageTypeLabels.ensureCapacity(NPAGETYPES); in readFromParcel()
1285 mPageTypeSizes.ensureCapacity(NPAGETYPES); in readFromParcel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DStackScrollAlgorithm.java241 state.visibleChildren.ensureCapacity(childCount); in initAlgorithmState()
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DRecurrenceProcessor.java856 sb.ensureCapacity(15); in expand()
/frameworks/base/core/java/android/os/
DBaseBundle.java282 map.ensureCapacity(count); in initializeFromParcelLocked()

12