Home
last modified time | relevance | path

Searched refs:COMPARATOR (Results 1 – 11 of 11) sorted by relevance

/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/s2/
DS2LevelRangeTest.java127 assertEquals(0, S2LevelRange.COMPARATOR.compare(lowRange, lowRange)); in startCellIdComparator()
128 assertEquals(-1, S2LevelRange.COMPARATOR.compare(lowRange, midRange)); in startCellIdComparator()
129 assertEquals(-1, S2LevelRange.COMPARATOR.compare(lowRange, highRange)); in startCellIdComparator()
130 assertEquals(1, S2LevelRange.COMPARATOR.compare(midRange, lowRange)); in startCellIdComparator()
131 assertEquals(0, S2LevelRange.COMPARATOR.compare(midRange, midRange)); in startCellIdComparator()
132 assertEquals(-1, S2LevelRange.COMPARATOR.compare(midRange, highRange)); in startCellIdComparator()
133 assertEquals(1, S2LevelRange.COMPARATOR.compare(highRange, lowRange)); in startCellIdComparator()
134 assertEquals(1, S2LevelRange.COMPARATOR.compare(highRange, midRange)); in startCellIdComparator()
135 assertEquals(0, S2LevelRange.COMPARATOR.compare(highRange, highRange)); in startCellIdComparator()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/picker/
DWidgetsDiffReporterTest.java62 private static final WidgetListBaseRowEntryComparator COMPARATOR = field in WidgetsDiffReporterTest
115 mWidgetsDiffReporter.process(currentList, currentList, COMPARATOR); in listNotChanged_shouldNotInvokeAnyCallbacks()
134 mWidgetsDiffReporter.process(currentList, newList, COMPARATOR); in headersOnly_emptyListToNonEmpty_shouldInvokeNotifyDataSetChanged()
151 mWidgetsDiffReporter.process(currentList, newList, COMPARATOR); in headersOnly_nonEmptyToEmptyList_shouldInvokeNotifyDataSetChanged()
168 mWidgetsDiffReporter.process(currentList, newList, COMPARATOR); in headersOnly_itemAddedAndRemovedInTheNewList_shouldInvokeCorrectCallbacks()
191 mWidgetsDiffReporter.process(currentList, newList, COMPARATOR); in headersContentsMix_itemAddedAndRemovedInTheNewList_shouldInvokeCorrectCallbacks()
215 mWidgetsDiffReporter.process(currentList, newList, COMPARATOR); in headersContentsMix_userInteractWithHeader_shouldInvokeCorrectCallbacks()
236 mWidgetsDiffReporter.process(currentList, newList, COMPARATOR); in headersContentsMix_headerWidgetsModified_shouldInvokeCorrectCallbacks()
260 mWidgetsDiffReporter.process(currentList, newList, COMPARATOR); in headersContentsMix_contentMaxSpanSizeModified_shouldInvokeCorrectCallbacks()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDevicePreferenceTest.java66 private static final Comparator<BluetoothDevicePreference> COMPARATOR = field in BluetoothDevicePreferenceTest
244 Collections.sort(mPreferenceList, COMPARATOR); in compareTo_sortTypeFIFO()
269 Collections.sort(mPreferenceList, COMPARATOR); in compareTo_sortTypeDefault()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DBluetoothDevicesSlice.java75 private static final Comparator<CachedBluetoothDevice> COMPARATOR = Comparator.naturalOrder(); field in BluetoothDevicesSlice
191 .sorted(COMPARATOR).collect(Collectors.toList()); in getPairedBluetoothDevices()
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/timezone/location/storage/s2/
DS2LevelRange.java35 public static Comparator<? super S2LevelRange> COMPARATOR = (o1, o2) -> { field in S2LevelRange
/packages/modules/NetworkStack/src/com/android/server/
DNetworkStackService.java227 private static final Comparator<AidlVersion> COMPARATOR = field in NetworkStackService.NetworkStackConnector.AidlVersion
261 return COMPARATOR.compare(this, o); in compareTo()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryChartPreferenceController.java373 Collections.sort(appEntries, BatteryDiffEntry.COMPARATOR); in addAllPreferences()
374 Collections.sort(mSystemEntries, BatteryDiffEntry.COMPARATOR); in addAllPreferences()
DBatteryDiffEntry.java46 public static final Comparator<BatteryDiffEntry> COMPARATOR = field in BatteryDiffEntry
DBatteryAppListPreferenceController.java390 results.sort(BatteryEntry.COMPARATOR); in getCoalescedUsageList()
DBatteryEntry.java157 public static final Comparator<BatteryEntry> COMPARATOR = field in BatteryEntry
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryDiffEntryTest.java109 Collections.sort(entryList, BatteryDiffEntry.COMPARATOR); in testComparator_sortCollectionsInDescOrder()