Home
last modified time | relevance | path

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

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