Home
last modified time | relevance | path

Searched refs:compare (Results 1 – 25 of 276) sorted by relevance

12345678910>>...12

/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/
DSortingCursorWrapper.java204 int compare = 0; in binarySort() local
207 compare = -1; in binarySort()
209 compare = 1; in binarySort()
215 compare = Shared.compareToIgnoreCaseNullable(lhs, rhs); in binarySort()
218 compare = -Shared.compareToIgnoreCaseNullable(lhs, rhs); in binarySort()
227 if (compare == 0) { in binarySort()
228 compare = pivotId.compareTo(ids[mid]); in binarySort()
231 if (compare < 0) { in binarySort()
285 int compare = 0; in binarySort() local
288 compare = -1; in binarySort()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/data/
DCity.java138 public int compare(City c1, City c2) { in compare() method in City.UtcOffsetComparator
139 int result = mDelegate1.compare(c1, c2); in compare()
142 result = mDelegate2.compare(c1, c2); in compare()
161 public int compare(City c1, City c2) { in compare() method in City.UtcOffsetIndexComparator
164 return Integer.compare(utcOffset1, utcOffset2); in compare()
185 public int compare(City c1, City c2) { in compare() method in City.NameComparator
186 int result = mDelegate.compare(c1, c2); in compare()
189 result = mNameCollator.compare(c1.getPhoneticName(), c2.getPhoneticName()); in compare()
210 public int compare(City c1, City c2) { in compare() method in City.NameIndexComparator
211 int result = Integer.compare(c1.getIndex(), c2.getIndex()); in compare()
[all …]
DCity.kt102 override fun compare(c1: City, c2: City): Int { in compare() method in com.android.deskclock.data.City.UtcOffsetComparator
103 var result = mDelegate1.compare(c1, c2) in compare()
106 result = mDelegate2.compare(c1, c2) in compare()
122 override fun compare(c1: City, c2: City): Int { in compare() method in com.android.deskclock.data.City.UtcOffsetIndexComparator
142 override fun compare(c1: City, c2: City): Int { in compare() method in com.android.deskclock.data.City.NameComparator
143 var result = mDelegate.compare(c1, c2) in compare()
146 result = mNameCollator.compare(c1.phoneticName, c2.phoneticName) in compare()
163 override fun compare(c1: City, c2: City): Int { in compare() method in com.android.deskclock.data.City.NameIndexComparator
167 result = mNameCollator.compare(c1.indexString, c2.indexString) in compare()
DTimer.java394 public int compare(Timer timer1, Timer timer2) {
395 return Integer.compare(timer2.getId(), timer1.getId());
416 public int compare(Timer timer1, Timer timer2) {
420 int order = Integer.compare(stateIndex1, stateIndex2);
424 order = Long.compare(timer1.getLength(), timer2.getLength());
426 order = Long.compare(timer1.getRemainingTime(), timer2.getRemainingTime());
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DDvrBrowseFragment.java117 .compare((RecordedProgram) lhs, (RecordedProgram) rhs);
133 .compare((ScheduledRecording) lhs, (ScheduledRecording) rhs);
150 .compare((ScheduledRecording) lhs, (ScheduledRecording) rhs);
154 int compare =
155 Long.compare(
159 return compare == 0 ? 1 : compare;
167 .compare((RecordedProgram) lhs, (RecordedProgram) rhs);
171 int compare =
172 Long.compare(
176 return compare == 0 ? -1 : compare;
[all …]
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DComparatorTester.java134 private int compare(Object a, Object b) { in compare() method in ComparatorTester
139 compareValue = comparator.compare(a, b); in compare()
159 .that(Integer.signum(compare(reference, other))) in doTestEquivalanceGroupOrdering()
161 Integer.signum(Ints.compare(referenceIndex, otherIndex))); in doTestEquivalanceGroupOrdering()
180 .isEqualTo(compare(reference, other) == 0); in doTestEqualsCompatibility()
191 compare(obj, null); in testNullCompare()
203 compare(obj, ICanNotBeCompared.INSTANCE); in testClassCast()
/packages/apps/TV/tests/robotests/src/com/android/tv/data/
DChannelNumberTest.java103 assertThat(ChannelNumber.compare(null, null)).isEqualTo(0); in compare_null_null()
108 assertThat(ChannelNumber.compare("1", "1")).isEqualTo(0); in compare_1_1()
114 assertThat(ChannelNumber.compare(null, "1")).isLessThan(0); in compare_null_1()
119 assertThat(ChannelNumber.compare("abcd", "1")).isLessThan(0); in compare_abcd_1()
124 assertThat(ChannelNumber.compare(".4", "1")).isLessThan(0); in compare_dash1_1()
129 assertThat(ChannelNumber.compare("1", null)).isGreaterThan(0); in compare_1_null()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetItemComparator.java35 public int compare(WidgetItem a, WidgetItem b) { in compare() method in WidgetItemComparator
44 int labelCompare = mCollator.compare(a.label, b.label); in compare()
54 ? Integer.compare(a.spanY, b.spanY) in compare()
55 : Integer.compare(thisArea, otherArea); in compare()
/packages/apps/Settings/src/com/android/settings/datetime/timezone/
DRegionZonePicker.java146 public int compare(TimeZoneInfo tzi1, TimeZoneInfo tzi2) { in compare() method in RegionZonePicker.TimeZoneInfoComparator
147 int result = Integer.compare(tzi1.getTimeZone().getOffset(mNow.getTime()), in compare()
150 result = Integer.compare(tzi1.getTimeZone().getRawOffset(), in compare()
154 result = mCollator.compare(tzi1.getExemplarLocation(), tzi2.getExemplarLocation()); in compare()
157 result = mCollator.compare(tzi1.getGenericName(), tzi2.getGenericName()); in compare()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datetime/timezone/
DRegionZonePicker.java146 public int compare(TimeZoneInfo tzi1, TimeZoneInfo tzi2) { in compare() method in RegionZonePicker.TimeZoneInfoComparator
147 int result = Integer.compare(tzi1.getTimeZone().getOffset(mNow.getTime()), in compare()
150 result = Integer.compare(tzi1.getTimeZone().getRawOffset(), in compare()
154 result = mCollator.compare(tzi1.getExemplarLocation(), tzi2.getExemplarLocation()); in compare()
157 result = mCollator.compare(tzi1.getGenericName(), tzi2.getGenericName()); in compare()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DAlbumDataAdapter.java113 public int compare(PhotoSource.AlbumData a, PhotoSource.AlbumData b) { in compare() method in AlbumDataAdapter.AccountComparator
115 return recency.compare(a, b); in compare()
152 public int compare(PhotoSource.AlbumData a, PhotoSource.AlbumData b) { in compare() method in AlbumDataAdapter.RecencyComparator
154 return title.compare(a, b); in compare()
163 public int compare(PhotoSource.AlbumData a, PhotoSource.AlbumData b) { in compare() method in AlbumDataAdapter.TitleComparator
/packages/apps/TV/src/com/android/tv/util/
DTvTrackInfoUtils.java86 return Integer.compare(rhsLangIndex, lhsLangIndex); in createComparator()
95 return Boolean.compare(lhs.getId().equals(id), rhs.getId().equals(id)); in createComparator()
97 return Boolean.compare(lhsCountMatch, rhsCountMatch); in createComparator()
99 return Integer.compare(lhs.getAudioChannelCount(), rhs.getAudioChannelCount()); in createComparator()
134 if (comparator.compare(track, best) > 0) {
/packages/apps/Settings/src/com/android/settings/
DUsageStatsActivity.java67 public final int compare(UsageStats a, UsageStats b) { in compare() method in UsageStatsActivity.AppNameComparator
76 public final int compare(UsageStats a, UsageStats b) { in compare() method in UsageStatsActivity.LastTimeUsedComparator
78 return Long.compare(b.getLastTimeUsed(), a.getLastTimeUsed()); in compare()
84 public final int compare(UsageStats a, UsageStats b) { in compare() method in UsageStatsActivity.UsageTimeComparator
85 return Long.compare(b.getTotalTimeInForeground(), a.getTotalTimeInForeground()); in compare()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DUsageStatsActivity.java67 public final int compare(UsageStats a, UsageStats b) { in compare() method in UsageStatsActivity.AppNameComparator
76 public final int compare(UsageStats a, UsageStats b) { in compare() method in UsageStatsActivity.LastTimeUsedComparator
78 return Long.compare(b.getLastTimeUsed(), a.getLastTimeUsed()); in compare()
84 public final int compare(UsageStats a, UsageStats b) { in compare() method in UsageStatsActivity.UsageTimeComparator
85 return Long.compare(b.getTotalTimeInForeground(), a.getTotalTimeInForeground()); in compare()
/packages/apps/Contacts/src/com/android/contacts/model/
DSimContact.java242 public int compare(SimContact lhs, SimContact rhs) { in compareByPhoneThenName()
244 .compare(lhs.mPhone, rhs.mPhone) in compareByPhoneThenName()
245 .compare(lhs.mName, rhs.mName, Ordering.<String>natural().nullsFirst()) in compareByPhoneThenName()
254 public int compare(SimContact lhs, SimContact rhs) {
256 return Long.compare(lhs.mId, rhs.mId);
/packages/apps/Test/connectivity/sl4n/rapidjson/
DCHANGELOG.md76 [Unreleased]: https://github.com/miloyip/rapidjson/compare/v1.0.2...HEAD
77 [1.0.2]: https://github.com/miloyip/rapidjson/compare/v1.0.1...v1.0.2
78 [1.0.1]: https://github.com/miloyip/rapidjson/compare/v1.0.0...v1.0.1
79 [1.0.0]: https://github.com/miloyip/rapidjson/compare/v1.0-beta...v1.0.0
/packages/apps/Launcher3/src/com/android/launcher3/model/
DBaseLoaderResults.java193 (lhs, rhs) -> Integer.compare(lhs.container, rhs.container)); in filterCurrentWorkspaceItems()
225 public int compare(ItemInfo lhs, ItemInfo rhs) { in sortWorkspaceItemsSpatially()
234 return Integer.compare(lr, rr); in sortWorkspaceItemsSpatially()
238 return Integer.compare(lhs.screenId, rhs.screenId); in sortWorkspaceItemsSpatially()
249 return Integer.compare(lhs.container, rhs.container); in sortWorkspaceItemsSpatially()
DWidgetItem.java70 int labelCompare = sCollator.compare(label, another.label); in compareTo()
80 ? Integer.compare(spanY, another.spanY) in compareTo()
81 : Integer.compare(thisArea, otherArea); in compareTo()
/packages/apps/TV/src/com/android/tv/dvr/recorder/
DRecordingTask.java69 public int compare(RecordingTask lhs, RecordingTask rhs) {
70 return Long.compare(lhs.getEndTimeMs(), rhs.getEndTimeMs());
78 public int compare(RecordingTask lhs, RecordingTask rhs) {
79 return Long.compare(lhs.getScheduleId(), rhs.getScheduleId());
87 public int compare(RecordingTask lhs, RecordingTask rhs) {
88 return Long.compare(lhs.getPriority(), rhs.getPriority());
/packages/apps/TV/src/com/android/tv/data/
DChannelNumber.java52 if (compare(lhs, rhs) == 0) { in equivalent()
158 public static int compare(String lhs, String rhs) { in compare() method in ChannelNumber
163 return StringUtils.compare(lhs, rhs); in compare()
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/
DPsipData.java793 ret = StringUtils.compare(mTitleText, item.getTitleText()); in compareTo()
809 ret = StringUtils.compare(mContentRating, item.getContentRating()); in compareTo()
815 ret = StringUtils.compare(mBroadcastGenre, item.getBroadcastGenre()); in compareTo()
820 ret = StringUtils.compare(mCanonicalGenre, item.getCanonicalGenre()); in compareTo()
826 return StringUtils.compare(mDescription, item.getDescription()); in compareTo()
/packages/apps/TV/src/com/android/tv/dvr/ui/
DSortedArrayAdapter.java171 if (mComparator.compare(old, item) == 0) { in change()
213 if (mComparator.compare(r, item) <= 0) { in findInsertPosition()
226 int compareResult = mComparator.compare(item, r); in findInsertPositionBinary()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateNotificationBridge.java292 public int compare(AppEntry object1, AppEntry object2) {
301 return ApplicationsState.ALPHA_COMPARATOR.compare(object1, object2);
308 public int compare(AppEntry object1, AppEntry object2) {
317 return ApplicationsState.ALPHA_COMPARATOR.compare(object1, object2);
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DAppStateNotificationBridge.java290 public int compare(AppEntry object1, AppEntry object2) {
299 return ApplicationsState.ALPHA_COMPARATOR.compare(object1, object2);
306 public int compare(AppEntry object1, AppEntry object2) {
315 return ApplicationsState.ALPHA_COMPARATOR.compare(object1, object2);
/packages/apps/Camera2/src/com/android/camera/settings/
DResolutionUtil.java107 public int compare(Size size, Size size2) { in add()
109 return Integer.compare(size2.width() * size2.height(), in add()
263 … public int compare(ResolutionBucket resolutionBucket, ResolutionBucket resolutionBucket2) { in parseAvailableSizes()
264 return Integer.compare(resolutionBucket2.maxPixels, resolutionBucket.maxPixels); in parseAvailableSizes()

12345678910>>...12