Home
last modified time | relevance | path

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

/frameworks/support/collection/src/main/java/androidx/collection/
DSimpleArrayMap.java50 private static final int BASE_SIZE = 4; field in SimpleArrayMap
162 if (size == (BASE_SIZE*2)) { in allocArrays()
176 } else if (size == BASE_SIZE) { in allocArrays()
198 if (hashes.length == (BASE_SIZE*2)) { in freeArrays()
212 } else if (hashes.length == BASE_SIZE) { in freeArrays()
428 final int n = osize >= (BASE_SIZE*2) ? (osize+(osize>>1)) in put()
429 : (osize >= BASE_SIZE ? (BASE_SIZE*2) : BASE_SIZE); in put()
523 if (mHashes.length > (BASE_SIZE*2) && mSize < mHashes.length/3) { in removeAt()
527 final int n = osize > (BASE_SIZE*2) ? (osize + (osize>>1)) : (BASE_SIZE*2); in removeAt()
DArraySet.java60 private static final int BASE_SIZE = 4; field in ArraySet
161 if (size == (BASE_SIZE * 2)) { in allocArrays()
177 } else if (size == BASE_SIZE) { in allocArrays()
201 if (hashes.length == (BASE_SIZE * 2)) { in freeArrays()
217 } else if (hashes.length == BASE_SIZE) { in freeArrays()
372 final int n = mSize >= (BASE_SIZE * 2) ? (mSize + (mSize >> 1)) in add()
373 : (mSize >= BASE_SIZE ? (BASE_SIZE * 2) : BASE_SIZE); in add()
485 if (mHashes.length > (BASE_SIZE * 2) && mSize < mHashes.length / 3) { in removeAt()
489 final int n = mSize > (BASE_SIZE * 2) ? (mSize + (mSize >> 1)) : (BASE_SIZE * 2); in removeAt()
/frameworks/base/core/java/android/util/
DArraySet.java54 private static final int BASE_SIZE = 4; field in ArraySet
155 if (size == (BASE_SIZE * 2)) { in allocArrays()
180 } else if (size == BASE_SIZE) { in allocArrays()
212 if (hashes.length == (BASE_SIZE * 2)) { in freeArrays()
228 } else if (hashes.length == BASE_SIZE) { in freeArrays()
387 final int n = mSize >= (BASE_SIZE * 2) ? (mSize + (mSize >> 1)) in add()
388 : (mSize >= BASE_SIZE ? (BASE_SIZE * 2) : BASE_SIZE); in add()
499 if (mHashes.length > (BASE_SIZE * 2) && mSize < mHashes.length / 3) { in removeAt()
503 final int n = mSize > (BASE_SIZE * 2) ? (mSize + (mSize >> 1)) : (BASE_SIZE * 2); in removeAt()
DArrayMap.java68 private static final int BASE_SIZE = 4; field in ArrayMap
194 if (size == (BASE_SIZE*2)) { in allocArrays()
208 } else if (size == BASE_SIZE) { in allocArrays()
229 if (hashes.length == (BASE_SIZE*2)) { in freeArrays()
243 } else if (hashes.length == BASE_SIZE) { in freeArrays()
492 final int n = osize >= (BASE_SIZE*2) ? (osize+(osize>>1)) in put()
493 : (osize >= BASE_SIZE ? (BASE_SIZE*2) : BASE_SIZE); in put()
655 if (mHashes.length > (BASE_SIZE*2) && mSize < mHashes.length/3) { in removeAt()
659 final int n = osize > (BASE_SIZE*2) ? (osize + (osize>>1)) : (BASE_SIZE*2); in removeAt()