Home
last modified time | relevance | path

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

/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/SettingsLib/src/com/android/settingslib/applications/
DApplicationsState.java840 public ArrayList<AppEntry> rebuild(AppFilter filter, Comparator<AppEntry> comparator) { in rebuild() argument
841 return rebuild(filter, comparator, true); in rebuild()
844 public ArrayList<AppEntry> rebuild(AppFilter filter, Comparator<AppEntry> comparator, in rebuild() argument
852 mRebuildComparator = comparator; in rebuild()
868 Comparator<AppEntry> comparator; in handleRebuildList() local
875 comparator = mRebuildComparator; in handleRebuildList()
904 if (comparator != null) { in handleRebuildList()
919 if (comparator != null) { in handleRebuildList()
923 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.java261 ViewComparator comparator, in HeaderProcessor() argument
266 mComparator = comparator; in HeaderProcessor()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowContainer.java217 protected void addChild(E child, Comparator<E> comparator) { in addChild() argument
225 if (comparator != null) { in addChild()
228 if (comparator.compare(child, mChildren.get(i)) < 0) { in addChild()
DDisplayContent.java2414 Comparator<DisplayChildWindowContainer> comparator) { in addChild() argument
/frameworks/base/core/java/android/net/
DNetworkUtils.java394 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.java889 WifiConfigurationUtil.WifiConfigurationComparator comparator = in testPnoListComparator() local
906 Collections.sort(networks, comparator); in testPnoListComparator()
/frameworks/base/core/java/android/hardware/camera2/params/
DMandatoryStreamCombination.java1217 Comparator<Size> comparator = new SizeComparator(); in getAscendingOrderSizes() local
1220 Collections.sort(sortedSizes, comparator); in getAscendingOrderSizes()
/frameworks/base/services/core/java/com/android/server/
DAlarmManagerService.java2447 final Comparator<FilterStats> comparator = new Comparator<FilterStats>() { in dumpImpl() local
2467 ? Arrays.binarySearch(topFilters, 0, len, fs, comparator) : 0; in dumpImpl()
2520 Collections.sort(tmpFilters, comparator); in dumpImpl()
2722 final Comparator<FilterStats> comparator = new Comparator<FilterStats>() { in dumpProto() local
2742 ? Arrays.binarySearch(topFilters, 0, len, fs, comparator) : 0; in dumpProto()
2785 Collections.sort(tmpFilters, comparator); in dumpProto()
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerShellCommand.java1989 final Comparator<Configuration> comparator = new Comparator<Configuration>() {
1998 Collections.sort(configs, comparator);
DActivityManagerService.java11767 Comparator<Pair<ProcessRecord, Integer>> comparator in sortProcessOomList() local
11785 Collections.sort(list, comparator); in sortProcessOomList()
/frameworks/base/services/core/java/com/android/server/job/
DJobSchedulerService.java785 static <T> void addOrderedItem(ArrayList<T> array, T newItem, Comparator<T> comparator) { in addOrderedItem() argument
786 int where = Collections.binarySearch(array, newItem, comparator); in addOrderedItem()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt48611 method public java.util.Comparator<? super E> comparator();
48840 method public abstract java.util.Comparator<? super K> comparator();
48849 method public abstract java.util.Comparator<? super E> comparator();
48939 method public java.util.Comparator<? super K> comparator();
48971 method public java.util.Comparator<? super E> comparator();
49240 method public java.util.Comparator<? super K> comparator();
49276 method public java.util.Comparator<? super E> comparator();
49665 method public java.util.Comparator<? super E> comparator();
/frameworks/base/non-updatable-api/
Dcurrent.txt71714 method public java.util.Comparator<? super E> comparator();
71954 method @Nullable public java.util.Comparator<? super K> comparator();
71963 method public java.util.Comparator<? super E> comparator();
72197 method @Nullable public java.util.Comparator<? super K> comparator();
72229 method public java.util.Comparator<? super E> comparator();
72637 method public java.util.Comparator<? super K> comparator();
72670 method public java.util.Comparator<? super E> comparator();
73122 method public java.util.Comparator<? super E> comparator();
/frameworks/base/api/
Dcurrent.txt71858 method public java.util.Comparator<? super E> comparator();
72098 method @Nullable public java.util.Comparator<? super K> comparator();
72107 method public java.util.Comparator<? super E> comparator();
72341 method @Nullable public java.util.Comparator<? super K> comparator();
72373 method public java.util.Comparator<? super E> comparator();
72781 method public java.util.Comparator<? super K> comparator();
72814 method public java.util.Comparator<? super E> comparator();
73266 method public java.util.Comparator<? super E> comparator();
/frameworks/base/config/
Dboot-image-profile.txt29329 HSPLjava/util/TreeMap$AscendingSubMap;->comparator()Ljava/util/Comparator;
29370 HSPLjava/util/TreeMap;->comparator()Ljava/util/Comparator;
29404 HSPLjava/util/TreeSet;->comparator()Ljava/util/Comparator;
43638 HSPLjava/util/PriorityQueue;->comparator()Ljava/util/Comparator;
43666 HSPLjava/util/TreeMap$KeySet;->comparator()Ljava/util/Comparator;
Dhiddenapi-greylist-max-o.txt108580 Ljava/util/concurrent/ConcurrentSkipListMap$CSLMSpliterator;->comparator:Ljava/util/Comparator;
108681 Ljava/util/concurrent/ConcurrentSkipListMap;->comparator:Ljava/util/Comparator;
109452 Ljava/util/concurrent/PriorityBlockingQueue;->comparator:Ljava/util/Comparator;
110783 Ljava/util/PriorityQueue;->comparator:Ljava/util/Comparator;
111823 Ljava/util/TreeMap;->comparator:Ljava/util/Comparator;