Home
last modified time | relevance | path

Searched refs:initialCapacity (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/core/java/android/text/
DAutoGrowArray.java66 public ByteArray(@IntRange(from = 0) int initialCapacity) { in ByteArray()
67 if (initialCapacity == 0) { in ByteArray()
70 mValues = ArrayUtils.newUnpaddedByteArray(initialCapacity); in ByteArray()
175 public IntArray(@IntRange(from = 0) int initialCapacity) { in IntArray()
176 if (initialCapacity == 0) { in IntArray()
179 mValues = ArrayUtils.newUnpaddedIntArray(initialCapacity); in IntArray()
284 public FloatArray(@IntRange(from = 0) int initialCapacity) { in FloatArray()
285 if (initialCapacity == 0) { in FloatArray()
288 mValues = ArrayUtils.newUnpaddedFloatArray(initialCapacity); in FloatArray()
/frameworks/base/core/java/android/net/metrics/
DDnsEvent.java50 public DnsEvent(int netId, long transports, int initialCapacity) { in DnsEvent() argument
53 eventTypes = new byte[initialCapacity]; in DnsEvent()
54 returnCodes = new byte[initialCapacity]; in DnsEvent()
55 latenciesMs = new int[initialCapacity]; in DnsEvent()
/frameworks/base/core/java/android/util/
DLongArrayQueue.java45 public LongArrayQueue(int initialCapacity) { in LongArrayQueue() argument
46 if (initialCapacity == 0) { in LongArrayQueue()
49 mValues = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongArrayQueue()
DIntArray.java52 public IntArray(int initialCapacity) { in IntArray() argument
53 if (initialCapacity == 0) { in IntArray()
56 mValues = ArrayUtils.newUnpaddedIntArray(initialCapacity); in IntArray()
DSparseDoubleArray.java63 public SparseDoubleArray(int initialCapacity) { in SparseDoubleArray() argument
64 mValues = new SparseLongArray(initialCapacity); in SparseDoubleArray()
DSparseLongArray.java64 public SparseLongArray(int initialCapacity) { in SparseLongArray() argument
65 if (initialCapacity == 0) { in SparseLongArray()
69 mValues = ArrayUtils.newUnpaddedLongArray(initialCapacity); in SparseLongArray()
DSparseIntArray.java71 public SparseIntArray(int initialCapacity) { in SparseIntArray() argument
72 if (initialCapacity == 0) { in SparseIntArray()
76 mKeys = ArrayUtils.newUnpaddedIntArray(initialCapacity); in SparseIntArray()
DLongArray.java57 public LongArray(int initialCapacity) { in LongArray() argument
58 if (initialCapacity == 0) { in LongArray()
61 mValues = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongArray()
DLongSparseLongArray.java73 public LongSparseLongArray(int initialCapacity) { in LongSparseLongArray() argument
74 if (initialCapacity == 0) { in LongSparseLongArray()
78 mKeys = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongSparseLongArray()
DSparseBooleanArray.java64 public SparseBooleanArray(int initialCapacity) { in SparseBooleanArray() argument
65 if (initialCapacity == 0) { in SparseBooleanArray()
69 mKeys = ArrayUtils.newUnpaddedIntArray(initialCapacity); in SparseBooleanArray()
DLongSparseArray.java82 public LongSparseArray(int initialCapacity) { in LongSparseArray() argument
83 if (initialCapacity == 0) { in LongSparseArray()
87 mKeys = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongSparseArray()
88 mValues = ArrayUtils.newUnpaddedObjectArray(initialCapacity); in LongSparseArray()
DSparseArray.java84 public SparseArray(int initialCapacity) { in SparseArray() argument
85 if (initialCapacity == 0) { in SparseArray()
89 mValues = ArrayUtils.newUnpaddedObjectArray(initialCapacity); in SparseArray()
/frameworks/base/core/java/android/database/
DMatrixCursor.java45 public MatrixCursor(String[] columnNames, int initialCapacity) { in MatrixCursor() argument
49 if (initialCapacity < 1) { in MatrixCursor()
50 initialCapacity = 1; in MatrixCursor()
53 this.data = new Object[columnCount * initialCapacity]; in MatrixCursor()
/frameworks/base/core/java/com/android/internal/infra/
DAbstractMultiplePendingRequestsRemoteService.java51 int bindingFlags, boolean verbose, int initialCapacity) { in AbstractMultiplePendingRequestsRemoteService() argument
54 mInitialCapacity = initialCapacity; in AbstractMultiplePendingRequestsRemoteService()
/frameworks/base/services/core/java/com/android/server/utils/
DWatchedSparseBooleanArray.java52 public WatchedSparseBooleanArray(int initialCapacity) { in WatchedSparseBooleanArray() argument
53 mStorage = new SparseBooleanArray(initialCapacity); in WatchedSparseBooleanArray()
DWatchedSparseIntArray.java52 public WatchedSparseIntArray(int initialCapacity) { in WatchedSparseIntArray() argument
53 mStorage = new SparseIntArray(initialCapacity); in WatchedSparseIntArray()
DWatchedSparseBooleanMatrix.java148 public WatchedSparseBooleanMatrix(int initialCapacity) { in WatchedSparseBooleanMatrix() argument
149 mOrder = initialCapacity; in WatchedSparseBooleanMatrix()
154 mOrder = ((initialCapacity / STEP) + 1) * STEP; in WatchedSparseBooleanMatrix()
157 throw new RuntimeException("mOrder is " + mOrder + " initCap is " + initialCapacity); in WatchedSparseBooleanMatrix()
DWatchedLongSparseArray.java139 public WatchedLongSparseArray(int initialCapacity) { in WatchedLongSparseArray() argument
140 mStorage = new LongSparseArray(initialCapacity); in WatchedLongSparseArray()
DWatchedSparseArray.java141 public WatchedSparseArray(int initialCapacity) { in WatchedSparseArray() argument
142 mStorage = new SparseArray(initialCapacity); in WatchedSparseArray()
/frameworks/base/core/java/com/android/internal/util/
DLineBreakBufferedWriter.java79 public LineBreakBufferedWriter(Writer out, int bufferSize, int initialCapacity) { in LineBreakBufferedWriter() argument
81 this.buffer = new char[Math.min(initialCapacity, bufferSize)]; in LineBreakBufferedWriter()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
DSparseWeakArray.java62 public SparseWeakArray(int initialCapacity) { in SparseWeakArray() argument
63 mKeys = ArrayUtils.newUnpaddedLongArray(initialCapacity); in SparseWeakArray()
/frameworks/base/media/java/android/media/
DAudioMetadata.java475 AutoGrowByteBuffer(@IntRange(from = 0) int initialCapacity) { in AutoGrowByteBuffer()
476 mBuffer = ByteBuffer.allocateDirect(initialCapacity); in AutoGrowByteBuffer()
/frameworks/ex/common/java/com/android/common/widget/
DCompositeCursorAdapter.java74 public CompositeCursorAdapter(Context context, int initialCapacity) { in CompositeCursorAdapter() argument
/frameworks/base/services/tests/servicestests/src/com/android/server/utils/
DWatcherTest.java976 int initialCapacity = matrix.capacity(); in matrixShrink() local
988 assertTrue("Matrix shrink", initialCapacity > finalCapacity); in matrixShrink()