Home
last modified time | relevance | path

Searched refs:DEFAULT_MAX_EMPTIES_KEPT (Results 1 – 2 of 2) sorted by relevance

/packages/apps/TV/tests/unit/src/com/android/tv/util/
DMultiLongSparseArrayTest.java66 for (int i = 0; i <= MultiLongSparseArray.DEFAULT_MAX_EMPTIES_KEPT + 2; i++) { in testMaxEmptyCacheSize()
69 for (int i = 0; i <= MultiLongSparseArray.DEFAULT_MAX_EMPTIES_KEPT + 2; i++) { in testMaxEmptyCacheSize()
72 assertEquals(MultiLongSparseArray.DEFAULT_MAX_EMPTIES_KEPT, in testMaxEmptyCacheSize()
83 for (int i = 0; i <= MultiLongSparseArray.DEFAULT_MAX_EMPTIES_KEPT + 2; i++) { in testReuseEmptySets()
87 for (int i = 0; i <= MultiLongSparseArray.DEFAULT_MAX_EMPTIES_KEPT + 2; i++) { in testReuseEmptySets()
90 assertEquals(MultiLongSparseArray.DEFAULT_MAX_EMPTIES_KEPT, in testReuseEmptySets()
94 for (int i = 0; i < MultiLongSparseArray.DEFAULT_MAX_EMPTIES_KEPT; i++) { in testReuseEmptySets()
96 assertEquals(MultiLongSparseArray.DEFAULT_MAX_EMPTIES_KEPT - i - 1, in testReuseEmptySets()
/packages/apps/TV/src/com/android/tv/util/
DMultiLongSparseArray.java33 static final int DEFAULT_MAX_EMPTIES_KEPT = 4; field in MultiLongSparseArray
40 mEmptySets = new Set[DEFAULT_MAX_EMPTIES_KEPT]; in MultiLongSparseArray()
100 if (mEmptyIndex < DEFAULT_MAX_EMPTIES_KEPT - 1) { in cacheEmptySet()