Home
last modified time | relevance | path

Searched refs:minCapacity (Results 1 – 4 of 4) sorted by relevance

/frameworks/support/v4/java/android/support/v4/util/
DCircularIntArray.java57 public CircularIntArray(int minCapacity) { in CircularIntArray() argument
58 if (minCapacity < 1) { in CircularIntArray()
61 if (minCapacity > (2 << 29)) { in CircularIntArray()
68 if (Integer.bitCount(minCapacity) != 1) { in CircularIntArray()
69 arrayCapacity = Integer.highestOneBit(minCapacity - 1) << 1; in CircularIntArray()
71 arrayCapacity = minCapacity; in CircularIntArray()
DCircularArray.java56 public CircularArray(int minCapacity) { in CircularArray() argument
57 if (minCapacity < 1) { in CircularArray()
60 if (minCapacity > (2 << 29)) { in CircularArray()
67 if (Integer.bitCount(minCapacity) != 1) { in CircularArray()
68 arrayCapacity = Integer.highestOneBit(minCapacity - 1) << 1; in CircularArray()
70 arrayCapacity = minCapacity; in CircularArray()
/frameworks/base/core/java/android/util/
DLongArray.java95 final int minCapacity = currentSize + count; in ensureCapacity() local
96 if (minCapacity >= mValues.length) { in ensureCapacity()
99 final int newCapacity = targetCap > minCapacity ? targetCap : minCapacity; in ensureCapacity()
DIntArray.java115 final int minCapacity = currentSize + count; in ensureCapacity() local
116 if (minCapacity >= mValues.length) { in ensureCapacity()
119 final int newCapacity = targetCap > minCapacity ? targetCap : minCapacity; in ensureCapacity()