Searched refs:initialCapacity (Results 1 – 13 of 13) sorted by relevance
46 public SparseLongArray(int initialCapacity) { in SparseLongArray() argument47 initialCapacity = ArrayUtils.idealLongArraySize(initialCapacity); in SparseLongArray()49 mKeys = new int[initialCapacity]; in SparseLongArray()50 mValues = new long[initialCapacity]; in SparseLongArray()
44 public SparseIntArray(int initialCapacity) { in SparseIntArray() argument45 initialCapacity = ArrayUtils.idealIntArraySize(initialCapacity); in SparseIntArray()47 mKeys = new int[initialCapacity]; in SparseIntArray()48 mValues = new int[initialCapacity]; in SparseIntArray()
40 public SparseBooleanArray(int initialCapacity) { in SparseBooleanArray() argument41 initialCapacity = ArrayUtils.idealIntArraySize(initialCapacity); in SparseBooleanArray()43 mKeys = new int[initialCapacity]; in SparseBooleanArray()44 mValues = new boolean[initialCapacity]; in SparseBooleanArray()
46 public LongSparseArray(int initialCapacity) { in LongSparseArray() argument47 initialCapacity = ArrayUtils.idealLongArraySize(initialCapacity); in LongSparseArray()49 mKeys = new long[initialCapacity]; in LongSparseArray()50 mValues = new Object[initialCapacity]; in LongSparseArray()
46 public SparseArray(int initialCapacity) { in SparseArray() argument47 initialCapacity = ArrayUtils.idealIntArraySize(initialCapacity); in SparseArray()49 mKeys = new int[initialCapacity]; in SparseArray()50 mValues = new Object[initialCapacity]; in SparseArray()
39 public SparseArrayCompat(int initialCapacity) { in SparseArrayCompat() argument40 initialCapacity = idealIntArraySize(initialCapacity); in SparseArrayCompat()42 mKeys = new int[initialCapacity]; in SparseArrayCompat()43 mValues = new Object[initialCapacity]; in SparseArrayCompat()
44 public LongSparseArray(int initialCapacity) { in LongSparseArray() argument45 initialCapacity = idealLongArraySize(initialCapacity); in LongSparseArray()47 mKeys = new long[initialCapacity]; in LongSparseArray()48 mValues = new Object[initialCapacity]; in LongSparseArray()
60 public SparseWeakArray(int initialCapacity) { in SparseWeakArray() argument61 initialCapacity = ArrayUtils.idealIntArraySize(initialCapacity); in SparseWeakArray()63 mKeys = new int[initialCapacity]; in SparseWeakArray()64 mValues = new WeakReference[initialCapacity]; in SparseWeakArray()
40 public MatrixCursor(String[] columnNames, int initialCapacity) { in MatrixCursor() argument44 if (initialCapacity < 1) { in MatrixCursor()45 initialCapacity = 1; in MatrixCursor()48 this.data = new Object[columnCount * initialCapacity]; in MatrixCursor()
345 const uint32_t initialCapacity = 32; in Builder() local346 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()
411 size_t initialCapacity = h.capacity(); in TEST_F() local414 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()
69 public CompositeCursorAdapter(Context context, int initialCapacity) { in CompositeCursorAdapter() argument