/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/ |
D | SortingCursorWrapper.java | 204 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/ |
D | City.java | 138 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 …]
|
D | Timer.java | 394 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/UnifiedEmail/tests/src/com/android/mail/utils/ |
D | RankedComparatorTest.java | 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() 80 comparator.compare(nullRank, knownRank) > 0); in testNullRank() 82 comparator.compare(unknownRank, nullRank) == 0); in testNullRank()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/ |
D | DvrBrowseFragment.java | 116 .compare((RecordedProgram) lhs, (RecordedProgram) rhs); 132 .compare((ScheduledRecording) lhs, (ScheduledRecording) rhs); 149 .compare((ScheduledRecording) lhs, (ScheduledRecording) rhs); 153 int compare = 154 Long.compare( 158 return compare == 0 ? 1 : compare; 166 .compare((RecordedProgram) lhs, (RecordedProgram) rhs); 170 int compare = 171 Long.compare( 175 return compare == 0 ? -1 : compare; [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | WidgetItemComparator.java | 35 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/ |
D | RegionZonePicker.java | 146 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/ |
D | RegionZonePicker.java | 146 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/ |
D | AlbumDataAdapter.java | 113 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/Settings/src/com/android/settings/ |
D | UsageStatsActivity.java | 67 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/ |
D | SimContact.java | 242 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | UsageStatsActivity.java | 67 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/Test/connectivity/sl4n/rapidjson/ |
D | CHANGELOG.md | 76 [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/ |
D | BaseLoaderResults.java | 193 (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()
|
D | WidgetItem.java | 70 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/util/ |
D | TvTrackInfoUtils.java | 76 return Boolean.compare(lhs.getId().equals(id), rhs.getId().equals(id)); in createComparator() 78 return Boolean.compare(lhsCountMatch, rhsCountMatch); in createComparator() 81 return Boolean.compare(lhsLangMatch, rhsLangMatch); in createComparator() 103 if (comparator.compare(track, best) > 0) {
|
/packages/apps/TV/src/com/android/tv/dvr/recorder/ |
D | RecordingTask.java | 69 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/tests/common/src/com/android/tv/testing/ |
D | ComparatorTester.java | 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/TV/src/com/android/tv/data/ |
D | ChannelNumber.java | 52 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/ |
D | PsipData.java | 793 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/services/Car/car-lib/src/android/car/drivingstate/ |
D | CarUxRestrictionsConfiguration.java | 843 if (Float.compare(restrictions.get(0).mSpeedRange.mMinSpeed, 0) != 0) { in validateRangeOfSpeed() 848 if (Float.compare(lastMaxSpeed, SpeedRange.MAX_SPEED) != 0) { in validateRangeOfSpeed() 872 if (Float.compare(curr.mSpeedRange.mMinSpeed, prev.mSpeedRange.mMaxSpeed) != 0) { in validateContinuousSpeedRange() 898 if (Float.compare(minSpeed, 0) < 0 || Float.compare(maxSpeed, 0) < 0) { in SpeedRange() 925 int minSpeedComparison = Float.compare(mMinSpeed, other.mMinSpeed); in compareTo() 930 return Float.compare(mMaxSpeed, other.mMaxSpeed); in compareTo()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | AppStateNotificationBridge.java | 290 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/Settings/src/com/android/settings/applications/ |
D | AppStateNotificationBridge.java | 292 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/apps/Camera2/src/com/android/camera/settings/ |
D | ResolutionUtil.java | 107 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()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
D | SortedArrayAdapter.java | 171 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()
|