/packages/apps/Calendar/src/com/android/calendar/ |
D | Utils.java | 1075 DNASegment lhs = new DNASegment(); in createDNAStrands() local 1076 lhs.startMinute = currSegment.startMinute; in createDNAStrands() 1077 lhs.color = currSegment.color; in createDNAStrands() 1078 lhs.endMinute = startMinute - 1; in createDNAStrands() 1079 lhs.day = currSegment.day; in createDNAStrands() 1084 segments.add(i++, lhs); in createDNAStrands() 1085 strands.get(lhs.color).count++; in createDNAStrands() 1107 DNASegment lhs = segments.get(i - 1); in createDNAStrands() local 1108 if (lhs.color == CONFLICT_COLOR && currSegment.day == lhs.day in createDNAStrands() 1109 && lhs.endMinute >= currSegment.startMinute - 1) { in createDNAStrands() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
D | DvrBrowseFragment.java | 85 public int compare(Object lhs, Object rhs) { 86 if (lhs instanceof SeriesRecording) { 87 lhs = mSeriesId2LatestProgram.get(((SeriesRecording) lhs).getSeriesId()); 92 if (lhs instanceof RecordedProgram) { 95 .compare((RecordedProgram) lhs, (RecordedProgram) rhs); 109 public int compare(Object lhs, Object rhs) { 110 if (lhs instanceof ScheduledRecording) { 113 .compare((ScheduledRecording) lhs, (ScheduledRecording) rhs); 564 public int compare(SeriesRecording lhs, SeriesRecording rhs) { in SeriesAdapter() 565 if (lhs.isStopped() && !rhs.isStopped()) { in SeriesAdapter() [all …]
|
/packages/apps/TV/src/com/android/tv/util/ |
D | TvTrackInfoUtils.java | 43 public int compare(TvTrackInfo lhs, TvTrackInfo rhs) { in createComparator() 44 if (lhs == rhs) { in createComparator() 47 if (lhs == null) { in createComparator() 57 boolean lhsLangMatch = language == null || Utils.isEqualLanguage(lhs.getLanguage(), in createComparator() 62 boolean lhsCountMatch = lhs.getAudioChannelCount() == channelCount; in createComparator() 66 boolean lhsIdMatch = lhs.getId().equals(id); in createComparator()
|
D | TvInputManagerHelper.java | 353 public int compare(TvInputInfo lhs, TvInputInfo rhs) { in compare() argument 354 if (mInputManager.isPartnerInput(lhs) != mInputManager.isPartnerInput(rhs)) { in compare() 355 return mInputManager.isPartnerInput(lhs) ? -1 : 1; in compare() 357 return mInputManager.loadLabel(lhs).compareTo(mInputManager.loadLabel(rhs)); in compare()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | RunningState.java | 145 public int compare(MergedItem lhs, MergedItem rhs) { 147 Log.i(TAG, "Comparing " + lhs + " with " + rhs); 148 Log.i(TAG, " Proc " + lhs.mProcess + " with " + rhs.mProcess); 149 Log.i(TAG, " UserId " + lhs.mUserId + " with " + rhs.mUserId); 151 if (lhs.mUserId != rhs.mUserId) { 152 if (lhs.mUserId == mMyUserId) return -1; 154 return lhs.mUserId < rhs.mUserId ? -1 : 1; 156 if (lhs.mProcess == rhs.mProcess) { 157 if (lhs.mLabel == rhs.mLabel) { 160 return lhs.mLabel != null ? lhs.mLabel.compareTo(rhs.mLabel) : -1; [all …]
|
D | ProcessStatsDetail.java | 240 public int compare(ProcStatsEntry lhs, ProcStatsEntry rhs) { 241 if (lhs.mRunWeight < rhs.mRunWeight) { 243 } else if (lhs.mRunWeight > rhs.mRunWeight) { 313 public int compare(ProcStatsEntry.Service lhs, ProcStatsEntry.Service rhs) { 314 if (lhs.mDuration < rhs.mDuration) { 316 } else if (lhs.mDuration > rhs.mDuration) { 325 public int compare(PkgService lhs, PkgService rhs) { 326 if (lhs.mDuration < rhs.mDuration) { 328 } else if (lhs.mDuration > rhs.mDuration) {
|
D | ProcessStatsUi.java | 186 public int compare(ProcStatsPackageEntry lhs, ProcStatsPackageEntry rhs) { 188 double lhsWeight = Math.max(lhs.mRunWeight, lhs.mBgWeight); 199 public int compare(ProcStatsPackageEntry lhs, ProcStatsPackageEntry rhs) { 201 double lhsMax = Math.max(lhs.mMaxBgMem, lhs.mMaxRunMem);
|
D | ProcStatsData.java | 451 public int compare(ProcStatsEntry lhs, ProcStatsEntry rhs) { 452 if (lhs.mRunWeight < rhs.mRunWeight) { 454 } else if (lhs.mRunWeight > rhs.mRunWeight) { 456 } else if (lhs.mRunDuration < rhs.mRunDuration) { 458 } else if (lhs.mRunDuration > rhs.mRunDuration) {
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
D | MessagePartData.java | 374 MessagePartData lhs = (MessagePartData) o; in equals() local 375 return mWidth == lhs.mWidth && mHeight == lhs.mHeight && in equals() 376 TextUtils.equals(mMessageId, lhs.mMessageId) && in equals() 377 TextUtils.equals(mText, lhs.mText) && in equals() 378 TextUtils.equals(mContentType, lhs.mContentType) && in equals() 379 (mContentUri == null ? lhs.mContentUri == null in equals() 380 : mContentUri.equals(lhs.mContentUri)); in equals()
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/ |
D | ComparableTester.java | 61 List<T> lhs = listOfGroups.get(j); in test() local 62 assertOrder(i, j, lhs, currentGroup); in test() 109 for (T lhs : group) { in assertZero() 111 Assert.assertEquals(lhs + " compareTo " + rhs, 0, lhs.compareTo(rhs)); in assertZero()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | KeyboardParams.java | 96 public int compare(final Key lhs, final Key rhs) { 97 if (lhs.getY() < rhs.getY()) return -1; 98 if (lhs.getY() > rhs.getY()) return 1; 99 if (lhs.getX() < rhs.getX()) return -1; 100 if (lhs.getX() > rhs.getX()) return 1;
|
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/ |
D | SortingCursorWrapper.java | 204 final String lhs = pivotValue; in binarySort() local 208 compare = Shared.compareToIgnoreCaseNullable(lhs, rhs); in binarySort() 211 compare = -Shared.compareToIgnoreCaseNullable(lhs, rhs); in binarySort() 280 final long lhs = pivotValue; in binarySort() local 284 compare = Long.compare(lhs, rhs); in binarySort() 287 compare = -Long.compare(lhs, rhs); in binarySort()
|
/packages/apps/TV/src/com/android/tv/data/ |
D | TvInputNewComparator.java | 39 public int compare(TvInputInfo lhs, TvInputInfo rhs) { in compare() argument 40 boolean lhsIsNewInput = mSetupUtils.isNewInput(lhs.getId()); in compare() 48 boolean lhsSetupDone = mSetupUtils.isSetupDone(lhs.getId()); in compare() 55 return mInputManager.getDefaultTvInputInfoComparator().compare(lhs, rhs); in compare()
|
D | BaseProgram.java | 52 public int compare(BaseProgram lhs, BaseProgram rhs) { in compare() argument 53 if (lhs == rhs) { in compare() 57 numberCompare(lhs.getSeasonNumber(), rhs.getSeasonNumber()); in compare() 61 return numberCompare(lhs.getEpisodeNumber(), rhs.getEpisodeNumber()); in compare()
|
D | Channel.java | 611 public int compare(Channel lhs, Channel rhs) { in compare() argument 612 if (lhs == rhs) { in compare() 616 boolean lhsIsPartner = mInputManager.isPartnerInput(lhs.getInputId()); in compare() 622 String lhsLabel = getInputLabelForChannel(lhs); in compare() 630 result = lhs.getInputId().compareTo(rhs.getInputId()); in compare() 635 result = ChannelNumber.compare(lhs.getDisplayNumber(), rhs.getDisplayNumber()); in compare() 638 + lhs.getDisplayText() + "\" and \"" + rhs.getDisplayText() + "\""); in compare()
|
/packages/apps/Messaging/src/com/android/messaging/ui/contact/ |
D | ContactRecipientAdapter.java | 260 public int compare(RecipientEntry lhs, RecipientEntry rhs) { in compare() argument 263 .isSendToDestinationContact(lhs); in compare() 265 .isSendToDestinationContact(lhs); in compare() 274 final int displayNameCompare = mCollator.compare(lhs.getDisplayName(), in compare() 282 final long lhsContactId = lhs.getContactId(); in compare() 292 if (lhs.isFirstLevel()) { in compare()
|
/packages/apps/TV/src/com/android/tv/dvr/ |
D | RecordingTask.java | 67 public int compare(RecordingTask lhs, RecordingTask rhs) { 68 return Long.compare(lhs.getEndTimeMs(), rhs.getEndTimeMs()); 78 public int compare(RecordingTask lhs, RecordingTask rhs) { 79 return Long.compare(lhs.getScheduleId(), rhs.getScheduleId()); 89 public int compare(RecordingTask lhs, RecordingTask rhs) { 90 return Long.compare(lhs.getPriority(), rhs.getPriority());
|
D | ScheduledRecording.java | 66 public int compare(ScheduledRecording lhs, ScheduledRecording rhs) { 67 return Long.compare(lhs.mStartTimeMs, rhs.mStartTimeMs); 77 public int compare(ScheduledRecording lhs, ScheduledRecording rhs) { 78 return Long.compare(lhs.mEndTimeMs, rhs.mEndTimeMs); 88 public int compare(ScheduledRecording lhs, ScheduledRecording rhs) { 89 return Long.compare(lhs.mId, rhs.mId); 99 public int compare(ScheduledRecording lhs, ScheduledRecording rhs) { 100 return Long.compare(lhs.mPriority, rhs.mPriority);
|
D | SeriesRecording.java | 91 public int compare(SeriesRecording lhs, SeriesRecording rhs) { 92 int value = Long.compare(rhs.mPriority, lhs.mPriority); 95 value = Long.compare(rhs.mId, lhs.mId); 107 public int compare(SeriesRecording lhs, SeriesRecording rhs) { 108 return Long.compare(lhs.mId, rhs.mId);
|
/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/apps/TV/src/com/android/tv/ui/ |
D | SelectInputView.java | 390 public int compare(TvInputInfo lhs, TvInputInfo rhs) { in compare() argument 391 if (lhs == null) { in compare() 398 boolean enabledL = isInputEnabled(lhs); in compare() 404 int priorityL = getPriority(lhs); in compare() 410 String customLabelL = (String) lhs.loadCustomLabel(getContext()); in compare() 418 String labelL = (String) lhs.loadLabel(getContext()); in compare()
|
/packages/apps/Dialer/java/com/android/incallui/incall/impl/ |
D | MappedButtonConfig.java | 111 public int compare(Integer lhs, Integer rhs) { in getSlotComparator() 112 MappingInfo lhsInfo = lookupMappingInfo(lhs); in getSlotComparator() 135 public int compare(Integer lhs, Integer rhs) { 136 MappingInfo lhsInfo = lookupMappingInfo(lhs);
|
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/ |
D | ChannelsBlockedFragment.java | 120 public int compare(Channel lhs, Channel rhs) { in getItemList() 121 if (lhs.isBrowsable() != rhs.isBrowsable()) { in getItemList() 122 return lhs.isBrowsable() ? -1 : 1; in getItemList() 124 return ChannelNumber.compare(lhs.getDisplayNumber(), rhs.getDisplayNumber()); in getItemList()
|
/packages/apps/TV/src/com/android/tv/tuner/layout/ |
D | ScaledLayout.java | 43 public int compare(Rect lhs, Rect rhs) { 44 if (lhs.top != rhs.top) { 45 return lhs.top - rhs.top; 47 return lhs.left - rhs.left;
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
D | PhysicalKeyboardFragment.java | 522 private int compare(@Nullable CharSequence lhs, @Nullable CharSequence rhs) { in compare() argument 523 if (!TextUtils.isEmpty(lhs) && !TextUtils.isEmpty(rhs)) { in compare() 524 return collator.compare(lhs.toString(), rhs.toString()); in compare() 525 } else if (TextUtils.isEmpty(lhs) && TextUtils.isEmpty(rhs)) { in compare() 527 } else if (!TextUtils.isEmpty(lhs)) { in compare()
|