Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/
DSparseArrayUtilsTest.java40 SparseArray<HashSet<String>> sparseArray = new SparseArray<>(); in union_mergesSets() local
41 sparseArray.append(12, Sets.newHashSet("a", "b", "c")); in union_mergesSets()
42 sparseArray.append(45, Sets.newHashSet("d", "e")); in union_mergesSets()
43 sparseArray.append(46, Sets.newHashSet()); in union_mergesSets()
44 sparseArray.append(66, Sets.newHashSet("a", "e", "f")); in union_mergesSets()
46 assertThat(SparseArrayUtils.union(sparseArray)).isEqualTo( in union_mergesSets()
52 SparseArray<HashSet<String>> sparseArray = new SparseArray<>(); in union_returnsEmptySetForEmptyList() local
54 assertThat(SparseArrayUtils.union(sparseArray)).isEqualTo(Sets.newHashSet()); in union_returnsEmptySetForEmptyList()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiUtils.java355 SparseArray<T> sparseArray) { in dumpSparseArray() argument
358 int size = sparseArray.size(); in dumpSparseArray()
360 int key = sparseArray.keyAt(i); in dumpSparseArray()
361 T value = sparseArray.get(key); in dumpSparseArray()