Home
last modified time | relevance | path

Searched refs:isSorted (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/listbuilder/
DSemiStableSortTest.kt194 assertTrue(emptyList<Int>().isSorted(intCmp)) in <lambda>()
195 assertTrue(listOf(1).isSorted(intCmp)) in <lambda>()
196 assertTrue(listOf(1, 2).isSorted(intCmp)) in <lambda>()
197 assertTrue(listOf(1, 2, 3).isSorted(intCmp)) in <lambda>()
198 assertTrue(listOf(1, 2, 3, 4).isSorted(intCmp)) in <lambda>()
199 assertTrue(listOf(1, 2, 3, 4, 5).isSorted(intCmp)) in <lambda>()
200 assertTrue(listOf(1, 1, 1, 1, 1).isSorted(intCmp)) in <lambda>()
201 assertTrue(listOf(1, 1, 2, 2, 3, 3).isSorted(intCmp)) in <lambda>()
202 assertFalse(listOf(2, 1).isSorted(intCmp)) in <lambda>()
203 assertFalse(listOf(2, 1, 2).isSorted(intCmp)) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/listbuilder/
DSemiStableSort.kt71 val isOrdered = result.isSorted(comparator) in <lambda>()
95 val isOrdered = result.isSorted(stableRankComparator) in <lambda>()
177 fun <T> List<T>.isSorted(comparator: Comparator<T>): Boolean { in <lambda>() method
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DShadeListBuilderTest.java2271 assertTrue(ShadeListBuilder.isSorted(Collections.emptyList(), intCmp)); in testIsSorted()
2272 assertTrue(ShadeListBuilder.isSorted(Collections.singletonList(1), intCmp)); in testIsSorted()
2273 assertTrue(ShadeListBuilder.isSorted(Arrays.asList(1, 2), intCmp)); in testIsSorted()
2274 assertTrue(ShadeListBuilder.isSorted(Arrays.asList(1, 2, 3), intCmp)); in testIsSorted()
2275 assertTrue(ShadeListBuilder.isSorted(Arrays.asList(1, 2, 3, 4), intCmp)); in testIsSorted()
2276 assertTrue(ShadeListBuilder.isSorted(Arrays.asList(1, 2, 3, 4, 5), intCmp)); in testIsSorted()
2277 assertTrue(ShadeListBuilder.isSorted(Arrays.asList(1, 1, 1, 1, 1), intCmp)); in testIsSorted()
2278 assertTrue(ShadeListBuilder.isSorted(Arrays.asList(1, 1, 2, 2, 3, 3), intCmp)); in testIsSorted()
2280 assertFalse(ShadeListBuilder.isSorted(Arrays.asList(2, 1), intCmp)); in testIsSorted()
2281 assertFalse(ShadeListBuilder.isSorted(Arrays.asList(2, 1, 2), intCmp)); in testIsSorted()
[all …]
/frameworks/base/tools/aapt/
DStringPool.cpp64 pool->isSorted() ? "sorted" : "non-sorted", in printStringPool()
/frameworks/base/tools/aapt2/
DDebug.cpp454 pool->isSorted() ? "sorted" : "non-sorted", N, pool->styleCount(), in DumpResStringPool()
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h554 bool isSorted() const;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DShadeListBuilder.java1039 public static <T> boolean isSorted(List<T> items, Comparator<? super T> comparator) { in isSorted() method in ShadeListBuilder
/frameworks/base/libs/androidfw/
DResourceTypes.cpp1250 bool ResStringPool::isSorted() const in isSorted() function in android::ResStringPool