/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 | 75 private final Comparator comparator; field in ComparatorTester 95 public ComparatorTester(@Nullable Comparator<?> comparator) { in ComparatorTester() argument 97 this.comparator = comparator; in ComparatorTester() 98 this.testForEqualsCompatibility = (this.comparator == null); in ComparatorTester() 136 if (comparator == null) { in compare() 139 compareValue = comparator.compare(a, b); in compare() 189 if (comparator == null) { in testNullCompare() 201 if (comparator == null) { in testClassCast()
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/common/entity/ |
D | ContactSortingInfo.java | 66 Comparator<Contact> comparator; in getSortingInfo() local 71 comparator = sFirstNameComparator; in getSortingInfo() 74 comparator = sLastNameComparator; in getSortingInfo() 78 return new Pair<>(comparator, sortMethod); in getSortingInfo()
|
/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/apps/Launcher3/src/com/android/launcher3/widget/picker/ |
D | WidgetsDiffReporter.java | 57 WidgetListBaseRowEntryComparator comparator) { in process() argument 84 int diff = compareAppNameAndType(orgRowEntry, newRowEntry, comparator); in process() 141 WidgetListBaseRowEntryComparator comparator) { in compareAppNameAndType() argument 152 int diff = comparator.compare(curRow, newRow); in compareAppNameAndType()
|
/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 | 269 Comparator<Channel> comparator = new TestChannelComparator(manager); in testComparator() local 271 new ComparatorTester(comparator).permitInconsistencyWithEquals(); in testComparator() 323 Comparator<Channel> comparator = new ChannelComparatorWithDescriptionAsLabel(manager); in testComparatorLabel() local 325 new ComparatorTester(comparator).permitInconsistencyWithEquals(); 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 | 131 Comparator<TvTrackInfo> comparator = createComparator(id, languages, channelCount); 134 if (comparator.compare(track, best) > 0) {
|
/packages/apps/Settings/tests/unit/src/com/android/settings/datetime/timezone/ |
D | RegionZonePickerTest.java | 49 TimeZoneInfoComparator comparator = in compareTimeZoneInfo_matchGmtOrder() local 54 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/TV/tests/robotests/src/com/android/tv/data/ |
D | TvInputNewComparatorTest.java | 83 TvInputNewComparator comparator = new TvInputNewComparator(setupUtils, inputManager); in testComparator() local 85 new ComparatorTester(comparator).permitInconsistencyWithEquals(); in testComparator()
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/contact/ |
D | ContactListViewModel.java | 121 Comparator<Contact> comparator = contactSortingInfo.first; in sortContacts() local 125 Collections.sort(contactList, comparator); in sortContacts()
|
/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/services/Telecomm/src/com/android/server/telecom/ |
D | CarModeTracker.java | 229 .sorted(mCarModeApps.comparator()) in getCarModeApps() 237 .sorted(mCarModeApps.comparator()) in getCarModePriorityString()
|
/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/tests/robotests/src/com/android/tv/util/ |
D | TvTrackInfoUtilsTest.java | 149 Comparator<TvTrackInfo> comparator = in testComparator() local 151 new ComparatorTester(comparator) in testComparator()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/ |
D | SeriesRecordingDetailsFragment.java | 356 Comparator<RecordedProgram> comparator, 358 super(selector, comparator);
|
/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()
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | NetworkUtils.java | 369 final TreeSet<IpPrefix> dst = new TreeSet<>(src.comparator()); in deduplicatePrefixSet()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConfigurationUtilTest.java | 991 WifiConfigurationUtil.WifiConfigurationComparator comparator = in testPnoListComparator() local 1008 Collections.sort(networks, comparator); in testPnoListComparator()
|
D | WifiConnectivityManagerTest.java | 184 Comparator<WifiConfiguration> comparator = in setUp() local 186 when(mWifiConfigManager.getScanListComparator()).thenReturn(comparator); in setUp()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | CellLayout.java | 1521 final PositionComparator comparator = new PositionComparator(); field in CellLayout.ViewCluster 1542 comparator.whichEdge = edge; in sortConfigurationForEdgePush() 1543 Collections.sort(config.sortedViews, comparator); in sortConfigurationForEdgePush()
|
/packages/inputmethods/LatinIME/dictionaries/ |
D | en_GB_wordlist.combined.gz | 1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ... |