Home
last modified time | relevance | path

Searched refs:comparator (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DAbstractResolverComparatorTest.java48 AbstractResolverComparator comparator = getTestComparator(context); in testPinned() local
50 assertEquals("Pinned ranks over unpinned", -1, comparator.compare(r1, r2)); in testPinned()
51 assertEquals("Unpinned ranks under pinned", 1, comparator.compare(r2, r1)); in testPinned()
73 AbstractResolverComparator comparator = getTestComparator(context); in testBothPinned() local
75 assertEquals("Both pinned should rank alphabetically", -1, comparator.compare(r1, r2)); in testBothPinned()
/frameworks/libs/native_bridge_support/linker/
Dlinker_translate_path.cpp92 auto comparator = [name](auto p) { return strcmp(name, p[0]) == 0; }; in translateSystemPathToApexPath() local
94 if (auto it = std::find_if(std::begin(kPathTranslation), std::end(kPathTranslation), comparator); in translateSystemPathToApexPath()
102 std::find_if(std::begin(kPathTranslationQ), std::end(kPathTranslationQ), comparator); in translateSystemPathToApexPath()
111 std::find_if(std::begin(kPathTranslationN), std::end(kPathTranslationN), comparator); in translateSystemPathToApexPath()
/frameworks/compile/mclinker/include/mcld/ADT/
DHashEntry.tcc23 static KeyCompare comparator; in compare() local
24 return comparator(m_Key, pKey); in compare()
/frameworks/base/test-runner/src/android/test/suitebuilder/
DTestGrouping.java59 TestGrouping(Comparator<Class<? extends TestCase>> comparator, ClassLoader classLoader) { in TestGrouping() argument
60 testCaseClasses = new TreeSet<Class<? extends TestCase>>(comparator); in TestGrouping()
94 return this.testCaseClasses.comparator().equals(other.testCaseClasses.comparator()); in equals()
/frameworks/base/core/java/android/widget/
DArrayAdapter.java342 public void sort(@NonNull Comparator<? super T> comparator) { in sort() argument
345 Collections.sort(mOriginalValues, comparator); in sort()
347 Collections.sort(mObjects, comparator); in sort()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/kv/
DDecryptedChunkKvOutputTest.java147 Comparator<KeyValuePairProto.KeyValuePair> comparator) { in isInOrder() argument
153 Collections.sort(sortedList, comparator); in isInOrder()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DControlsFavoritingActivity.kt89 private lateinit var comparator: Comparator<StructureContainer> in <lambda>() variable
126 comparator = compareBy(collator) { it.structureName } in <lambda>()
154 }.sortedWith(comparator) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DShadeListBuilder.java207 for (NotifComparator comparator : comparators) { in setComparators()
208 mNotifComparators.add(comparator); in setComparators()
209 comparator.setInvalidationListener(this::onNotifComparatorInvalidated); in setComparators()
263 private void onNotifComparatorInvalidated(NotifComparator comparator) { in onNotifComparatorInvalidated() argument
266 mLogger.logNotifComparatorInvalidated(comparator.getName(), mPipelineState.getState()); in onNotifComparatorInvalidated()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DShadeListBuilderTest.java767 NotifComparator comparator = spy(new HypeComparator(PACKAGE_4)); in testListenersAndPluggablesAreFiredInOrder() local
773 mListBuilder.setComparators(Collections.singletonList(comparator)); in testListenersAndPluggablesAreFiredInOrder()
796 comparator, in testListenersAndPluggablesAreFiredInOrder()
810 inOrder.verify(comparator, atLeastOnce()) in testListenersAndPluggablesAreFiredInOrder()
1093 NotifComparator comparator = new HypeComparator(PACKAGE_5); in testOutOfOrderComparatorInvalidationThrows() local
1095 (list) -> comparator.invalidateList(); in testOutOfOrderComparatorInvalidationThrows()
1096 mListBuilder.setComparators(Collections.singletonList(comparator)); in testOutOfOrderComparatorInvalidationThrows()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DApplicationsState.java855 public ArrayList<AppEntry> rebuild(AppFilter filter, Comparator<AppEntry> comparator) { in rebuild() argument
856 return rebuild(filter, comparator, true); in rebuild()
859 public ArrayList<AppEntry> rebuild(AppFilter filter, Comparator<AppEntry> comparator, in rebuild() argument
867 mRebuildComparator = comparator; in rebuild()
883 Comparator<AppEntry> comparator; in handleRebuildList() local
894 comparator = mRebuildComparator; in handleRebuildList()
923 if (comparator != null) { in handleRebuildList()
938 if (comparator != null) { in handleRebuildList()
942 Collections.sort(filteredApps, comparator); in handleRebuildList()
/frameworks/rs/cpu_ref/
DrsCpuScriptGroup2.cpp389 auto comparator = [](const char* str1, const char* str2) -> bool { in compile() local
392 std::set<const char*, decltype(comparator)> inputSet(comparator); in compile()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationHeaderUtil.java268 ViewComparator comparator, in HeaderProcessor() argument
273 mComparator = comparator; in HeaderProcessor()
/frameworks/base/core/java/android/net/
DNetworkUtils.java395 final TreeSet<IpPrefix> dst = new TreeSet<>(src.comparator()); in deduplicatePrefixSet()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraTestUtils.java1104 Comparator<Size> comparator = new SizeComparator(); in getAscendingOrderSizes() local
1107 Collections.sort(sortedSizes, comparator); in getAscendingOrderSizes()
1121 Comparator<Size> comparator = new SizeComparator(); in getSortedSizesForFormat() local
1127 if (comparator.compare(sz, bound) <= 0) { in getSortedSizesForFormat()
1137 Collections.sort(sortedSizes, comparator); in getSortedSizesForFormat()
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipWakeupTimer.java103 mEventQueue.comparator()); in recalculatePeriods()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigurationUtilTest.java874 WifiConfigurationUtil.WifiConfigurationComparator comparator = in testPnoListComparator() local
891 Collections.sort(networks, comparator); in testPnoListComparator()
DWifiConnectivityManagerTest.java134 Comparator<WifiConfiguration> comparator = in setUp() local
136 when(mWifiConfigManager.getScanListComparator()).thenReturn(comparator); in setUp()
/frameworks/base/core/java/android/hardware/camera2/params/
DMandatoryStreamCombination.java1339 Comparator<Size> comparator = new SizeComparator(); in getAscendingOrderSizes() local
1342 Collections.sort(sortedSizes, comparator); in getAscendingOrderSizes()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowContainer.java484 protected void addChild(E child, Comparator<E> comparator) { in addChild() argument
492 if (comparator != null) { in addChild()
495 if (comparator.compare(child, mChildren.get(i)) < 0) { in addChild()
DDisplayContent.java2567 Comparator<DisplayChildWindowContainer> comparator) { in addChild() argument
/frameworks/base/services/core/java/com/android/server/
DAlarmManagerService.java2472 final Comparator<FilterStats> comparator = new Comparator<FilterStats>() { in dumpImpl() local
2492 ? Arrays.binarySearch(topFilters, 0, len, fs, comparator) : 0; in dumpImpl()
2545 Collections.sort(tmpFilters, comparator); in dumpImpl()
2746 final Comparator<FilterStats> comparator = new Comparator<FilterStats>() { in dumpProto() local
2766 ? Arrays.binarySearch(topFilters, 0, len, fs, comparator) : 0; in dumpProto()
2809 Collections.sort(tmpFilters, comparator); in dumpProto()
/frameworks/opt/setupwizard/tools/docs/
Ddoclava.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/ccil/ org/ ...
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobSchedulerService.java796 static <T> void addOrderedItem(ArrayList<T> array, T newItem, Comparator<T> comparator) {
797 int where = Collections.binarySearch(array, newItem, comparator);
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerShellCommand.java2042 final Comparator<Configuration> comparator = new Comparator<Configuration>() {
2051 Collections.sort(configs, comparator);
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...

12