Home
last modified time | relevance | path

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

/frameworks/support/v4/java/android/support/v4/util/
DLongSparseArray.java65 public LongSparseArray(int initialCapacity) { in LongSparseArray() argument
66 if (initialCapacity == 0) { in LongSparseArray()
70 initialCapacity = ContainerHelpers.idealLongArraySize(initialCapacity); in LongSparseArray()
71 mKeys = new long[initialCapacity]; in LongSparseArray()
72 mValues = new Object[initialCapacity]; in LongSparseArray()
DSparseArrayCompat.java45 public SparseArrayCompat(int initialCapacity) { in SparseArrayCompat() argument
46 if (initialCapacity == 0) { in SparseArrayCompat()
50 initialCapacity = ContainerHelpers.idealIntArraySize(initialCapacity); in SparseArrayCompat()
51 mKeys = new int[initialCapacity]; in SparseArrayCompat()
52 mValues = new Object[initialCapacity]; in SparseArrayCompat()
/frameworks/base/core/java/android/util/
DLongArray.java43 public LongArray(int initialCapacity) { in LongArray() argument
44 if (initialCapacity == 0) { in LongArray()
47 mValues = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongArray()
DSparseLongArray.java64 public SparseLongArray(int initialCapacity) { in SparseLongArray() argument
65 if (initialCapacity == 0) { in SparseLongArray()
69 mValues = ArrayUtils.newUnpaddedLongArray(initialCapacity); in SparseLongArray()
DSparseIntArray.java64 public SparseIntArray(int initialCapacity) { in SparseIntArray() argument
65 if (initialCapacity == 0) { in SparseIntArray()
69 mKeys = ArrayUtils.newUnpaddedIntArray(initialCapacity); in SparseIntArray()
DLongSparseLongArray.java66 public LongSparseLongArray(int initialCapacity) { in LongSparseLongArray() argument
67 if (initialCapacity == 0) { in LongSparseLongArray()
71 mKeys = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongSparseLongArray()
DLongSparseArray.java74 public LongSparseArray(int initialCapacity) { in LongSparseArray() argument
75 if (initialCapacity == 0) { in LongSparseArray()
79 mKeys = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongSparseArray()
80 mValues = ArrayUtils.newUnpaddedObjectArray(initialCapacity); in LongSparseArray()
DSparseBooleanArray.java61 public SparseBooleanArray(int initialCapacity) { in SparseBooleanArray() argument
62 if (initialCapacity == 0) { in SparseBooleanArray()
66 mKeys = ArrayUtils.newUnpaddedIntArray(initialCapacity); in SparseBooleanArray()
DSparseArray.java74 public SparseArray(int initialCapacity) { in SparseArray() argument
75 if (initialCapacity == 0) { in SparseArray()
79 mValues = ArrayUtils.newUnpaddedObjectArray(initialCapacity); in SparseArray()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DPositionMap.java47 public PositionMap(int initialCapacity) { in PositionMap() argument
48 if (initialCapacity == 0) { in PositionMap()
52 initialCapacity = idealIntArraySize(initialCapacity); in PositionMap()
53 mKeys = new int[initialCapacity]; in PositionMap()
54 mValues = new Object[initialCapacity]; in PositionMap()
/frameworks/base/core/java/android/app/usage/
DTimeSparseArray.java31 public TimeSparseArray(int initialCapacity) { in TimeSparseArray() argument
32 super(initialCapacity); in TimeSparseArray()
/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/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/
DUnsafeByteSequence.java34 public UnsafeByteSequence(int initialCapacity) { in UnsafeByteSequence() argument
35 this.bytes = new byte[initialCapacity]; in UnsafeByteSequence()
/frameworks/base/tools/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/services/core/java/com/android/server/display/
DAutomaticBrightnessController.java564 public AmbientLightRingBuffer(int initialCapacity) { in AmbientLightRingBuffer() argument
565 mCapacity = initialCapacity; in AmbientLightRingBuffer()
/frameworks/ex/common/java/com/android/common/widget/
DCompositeCursorAdapter.java74 public CompositeCursorAdapter(Context context, int initialCapacity) { in CompositeCursorAdapter() argument