Searched refs:initialCapacity (Results 1 - 12 of 12) sorted by relevance

/frameworks/base/core/java/android/util/
H A DSparseBooleanArray.java40 public SparseBooleanArray(int initialCapacity) { argument
41 initialCapacity = ArrayUtils.idealIntArraySize(initialCapacity);
43 mKeys = new int[initialCapacity];
44 mValues = new boolean[initialCapacity];
H A DSparseIntArray.java44 public SparseIntArray(int initialCapacity) { argument
45 initialCapacity = ArrayUtils.idealIntArraySize(initialCapacity);
47 mKeys = new int[initialCapacity];
48 mValues = new int[initialCapacity];
H A DSparseLongArray.java46 public SparseLongArray(int initialCapacity) { argument
47 initialCapacity = ArrayUtils.idealLongArraySize(initialCapacity);
49 mKeys = new int[initialCapacity];
50 mValues = new long[initialCapacity];
H A DLongSparseArray.java46 public LongSparseArray(int initialCapacity) { argument
47 initialCapacity = ArrayUtils.idealLongArraySize(initialCapacity);
49 mKeys = new long[initialCapacity];
50 mValues = new Object[initialCapacity];
H A DSparseArray.java46 public SparseArray(int initialCapacity) { argument
47 initialCapacity = ArrayUtils.idealIntArraySize(initialCapacity);
49 mKeys = new int[initialCapacity];
50 mValues = new Object[initialCapacity];
/frameworks/base/core/java/android/database/
H A DMatrixCursor.java38 * @param initialCapacity in rows
40 public MatrixCursor(String[] columnNames, int initialCapacity) { argument
44 if (initialCapacity < 1) {
45 initialCapacity = 1;
48 this.data = new Object[columnCount * initialCapacity];
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
H A DSparseWeakArray.java60 public SparseWeakArray(int initialCapacity) { argument
61 initialCapacity = ArrayUtils.idealIntArraySize(initialCapacity);
63 mKeys = new int[initialCapacity];
64 mValues = new WeakReference[initialCapacity];
/frameworks/support/v4/java/android/support/v4/util/
H A DLongSparseArray.java44 public LongSparseArray(int initialCapacity) { argument
45 initialCapacity = idealLongArraySize(initialCapacity);
47 mKeys = new long[initialCapacity];
48 mValues = new Object[initialCapacity];
H A DSparseArrayCompat.java39 public SparseArrayCompat(int initialCapacity) { argument
40 initialCapacity = idealIntArraySize(initialCapacity);
42 mKeys = new int[initialCapacity];
43 mValues = new Object[initialCapacity];
/frameworks/native/libs/utils/tests/
H A DBasicHashtable_test.cpp411 size_t initialCapacity = h.capacity(); local
414 for (size_t i = 0; i < initialCapacity; i++) {
418 EXPECT_EQ(initialCapacity, h.size());
419 EXPECT_EQ(initialCapacity, h.capacity());
424 EXPECT_EQ(initialCapacity + 1, h.size());
425 EXPECT_GT(h.capacity(), initialCapacity);
/frameworks/rs/
H A DrsElement.cpp345 const uint32_t initialCapacity = 32; local
346 mBuilderElementRefs.setCapacity(initialCapacity);
347 mBuilderElements.setCapacity(initialCapacity);
348 mBuilderNameStrings.setCapacity(initialCapacity);
349 mBuilderNameLengths.setCapacity(initialCapacity);
350 mBuilderArrays.setCapacity(initialCapacity);
/frameworks/ex/common/java/com/android/common/widget/
H A DCompositeCursorAdapter.java69 public CompositeCursorAdapter(Context context, int initialCapacity) { argument

Completed in 199 milliseconds