/packages/apps/UnifiedEmail/tests/src/com/android/mail/utils/ |
D | RankedComparatorTest.java | 35 private RankedComparator<DummyObject, String> comparator; field in RankedComparatorTest 40 comparator = in setUp() 50 comparator.compare(rank1_1, rank1_1) == 0); in testSimple() 52 comparator.compare(rank1_1, rank1_2) == 0); in testSimple() 55 assertTrue(comparator.compare(rank1_1, rank2) < 0); in testSimple() 56 assertTrue(comparator.compare(rank2, rank1_1) > 0); in testSimple() 65 comparator.compare(knownRank, unknownRank1) < 0); in testUnknownRank() 67 comparator.compare(unknownRank1, knownRank) > 0); in testUnknownRank() 69 comparator.compare(unknownRank1, unknownRank2) == 0); in testUnknownRank() 78 comparator.compare(knownRank, nullRank) < 0); in testNullRank() [all …]
|
/packages/apps/TV/common/src/com/android/tv/common/util/ |
D | CollectionUtils.java | 56 Collection<T> originals, Collection<T> toAdds, Comparator<T> comparator) { in union() argument 58 Collections.sort(result, comparator); in union() 61 if (Collections.binarySearch(result, toAdd, comparator) < 0) { in union() 71 Collection<T> originals, T[] toSubtracts, Comparator<T> comparator) { in subtract() argument 73 Collections.sort(result, comparator); in subtract() 75 int index = Collections.binarySearch(result, toSubtract, comparator); in subtract() 85 Collection<T> c1, Collection<T> c2, Comparator<T> comparator) { in containsAny() argument 87 Collections.sort(contains, comparator); in containsAny() 89 if (Collections.binarySearch(contains, iterate, comparator) >= 0) { in containsAny()
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/ |
D | ComparatorTester.java | 49 private final Comparator<T> comparator; field in ComparatorTester 51 public static <T> ComparatorTester<T> withoutEqualsTest(Comparator<T> comparator) { in withoutEqualsTest() argument 52 return new ComparatorTester<>(comparator); in withoutEqualsTest() 55 private ComparatorTester(Comparator<T> comparator) { in ComparatorTester() argument 56 this.comparator = comparator; in ComparatorTester() 104 comparator.compare(leftItem, rightItem) < 0); in assertLess() 127 comparator.compare(leftItem, rightItem) > 0); in assertMore() 139 comparator.compare(leftItem, rightItem)); in assertZero()
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/contact/ |
D | ContactListViewModel.java | 116 Comparator<Contact> comparator; in updateSortedContactList() local 120 comparator = mFirstNameComparator; in updateSortedContactList() 122 comparator = mLastNameComparator; in updateSortedContactList() 132 Collections.sort(contactList, comparator); in updateSortedContactList()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | WidgetsDiffReporter.java | 47 ArrayList<WidgetListRowEntry> newEntries, WidgetListRowEntryComparator comparator) { in process() argument 74 int diff = comparePackageName(orgRowEntry, newRowEntry, comparator); in process() 126 WidgetListRowEntryComparator comparator) { in comparePackageName() argument 136 return comparator.compare(curRow, newRow); in comparePackageName()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
D | SortedArrayAdapter.java | 42 public SortedArrayAdapter(PresenterSelector presenterSelector, Comparator<T> comparator) { in SortedArrayAdapter() argument 43 this(presenterSelector, comparator, Integer.MAX_VALUE); in SortedArrayAdapter() 47 PresenterSelector presenterSelector, Comparator<T> comparator, int maxItemCount) { in SortedArrayAdapter() argument 49 mComparator = comparator; in SortedArrayAdapter()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | SuggestionResults.java | 45 private SuggestionResults(final Comparator<SuggestedWordInfo> comparator, final int capacity, in SuggestionResults() argument 48 super(comparator); in SuggestionResults() 62 if (comparator().compare(e, last()) > 0) return false; in add()
|
/packages/apps/TV/tests/unit/src/com/android/tv/data/ |
D | ChannelImplTest.java | 265 Comparator<Channel> comparator = new TestChannelComparator(manager); in testComparator() local 266 ComparatorTester<Channel> comparatorTester = ComparatorTester.withoutEqualsTest(comparator); in testComparator() 318 Comparator<Channel> comparator = new ChannelComparatorWithDescriptionAsLabel(manager); in testComparatorLabel() local 319 ComparatorTester<Channel> comparatorTester = ComparatorTester.withoutEqualsTest(comparator); in testComparatorLabel()
|
/packages/apps/TV/src/com/android/tv/util/ |
D | CompositeComparator.java | 32 for (Comparator<T> comparator : mComparators) { in compare() 33 int result = comparator.compare(lhs, rhs); in compare()
|
D | TvTrackInfoUtils.java | 100 Comparator<TvTrackInfo> comparator = createComparator(id, language, channelCount); 103 if (comparator.compare(track, best) > 0) {
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/timezone/ |
D | RegionZonePickerTest.java | 48 TimeZoneInfoComparator comparator = in compareTimeZoneInfo_matchGmtOrder() local 53 Collections.sort(list, comparator); in compareTimeZoneInfo_matchGmtOrder()
|
/packages/apps/Camera2/src/com/android/camera/data/ |
D | FilmstripItemList.java | 109 public void sort(Comparator<FilmstripItem> comparator) { in sort() argument 110 Collections.sort(mList, comparator); in sort()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/ |
D | ManageApplicationsController.java | 99 Comparator<ApplicationsState.AppEntry> comparator) { in ManageApplicationsController() argument 104 mComparator = comparator; in ManageApplicationsController()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | LocalMergeAlbum.java | 52 Path path, Comparator<MediaItem> comparator, MediaSet[] sources, int bucketId) { in LocalMergeAlbum() argument 54 mComparator = comparator; in LocalMergeAlbum()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/ |
D | SelectFromListWizardFragment.java | 321 ListItemComparator comparator = new ListItemComparator(); in VerticalListAdapter() local 326 return comparator.compare(t0, t1); in VerticalListAdapter() 331 return comparator.compare(oldItem, newItem) == 0; in VerticalListAdapter()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/ |
D | SeriesRecordingDetailsFragment.java | 356 Comparator<RecordedProgram> comparator, 358 super(selector, comparator);
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/comparator/ |
D | DefaultFileComparator.java | 17 package org.apache.commons.io.comparator;
|
D | ReverseComparator.java | 17 package org.apache.commons.io.comparator;
|
D | LastModifiedFileComparator.java | 17 package org.apache.commons.io.comparator;
|
D | PathFileComparator.java | 17 package org.apache.commons.io.comparator;
|
D | NameFileComparator.java | 17 package org.apache.commons.io.comparator;
|
D | SizeFileComparator.java | 17 package org.apache.commons.io.comparator;
|
D | ExtensionFileComparator.java | 17 package org.apache.commons.io.comparator;
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appops/ |
D | AppOpsState.java | 529 Comparator<AppOpEntry> comparator) { in buildState() argument 631 Collections.sort(entries, comparator); in buildState()
|
/packages/apps/Settings/src/com/android/settings/applications/appops/ |
D | AppOpsState.java | 529 Comparator<AppOpEntry> comparator) { in buildState() argument 631 Collections.sort(entries, comparator); in buildState()
|