Home
last modified time | relevance | path

Searched refs:lhs (Results 1 – 25 of 92) sorted by relevance

1234

/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DDvrBrowseFragment.java105 (Object lhs, Object rhs) -> {
106 if (lhs instanceof SeriesRecording) {
107 lhs = mSeriesId2LatestProgram.get(((SeriesRecording) lhs).getSeriesId());
112 if (lhs instanceof RecordedProgram) {
116 .compare((RecordedProgram) lhs, (RecordedProgram) rhs);
128 (Object lhs, Object rhs) -> {
129 if (lhs instanceof ScheduledRecording) {
132 .compare((ScheduledRecording) lhs, (ScheduledRecording) rhs);
144 (Object lhs, Object rhs) -> {
145 if (lhs instanceof ScheduledRecording) {
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DUtils.java998 DNASegment lhs = new DNASegment(); in createDNAStrands() local
999 lhs.startMinute = currSegment.startMinute; in createDNAStrands()
1000 lhs.color = currSegment.color; in createDNAStrands()
1001 lhs.endMinute = startMinute - 1; in createDNAStrands()
1002 lhs.day = currSegment.day; in createDNAStrands()
1007 segments.add(i++, lhs); in createDNAStrands()
1008 strands.get(lhs.color).count++; in createDNAStrands()
1030 DNASegment lhs = segments.get(i - 1); in createDNAStrands() local
1031 if (lhs.color == CONFLICT_COLOR && currSegment.day == lhs.day in createDNAStrands()
1032 && lhs.endMinute >= currSegment.startMinute - 1) { in createDNAStrands()
[all …]
/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()
226 if (lhs.container == rhs.container) { in sortWorkspaceItemsSpatially()
228 switch (lhs.container) { in sortWorkspaceItemsSpatially()
230 int lr = (lhs.screenId * screenCellCount + in sortWorkspaceItemsSpatially()
231 lhs.cellY * screenCols + lhs.cellX); in sortWorkspaceItemsSpatially()
238 return Integer.compare(lhs.screenId, rhs.screenId); in sortWorkspaceItemsSpatially()
249 return Integer.compare(lhs.container, rhs.container); in sortWorkspaceItemsSpatially()
/packages/apps/Dialer/java/com/android/dialer/enrichedcall/
DFuzzyPhoneNumberMatcher.java31 public static boolean matches(@NonNull String lhs, @NonNull String rhs) { in matches() argument
32 return lastSevenDigitsCharacterByCharacterMatches(lhs, rhs); in matches()
40 @NonNull String lhs, @NonNull String rhs) { in lastSevenDigitsCharacterByCharacterMatches()
41 int lhsIndex = lhs.length() - 1; in lastSevenDigitsCharacterByCharacterMatches()
47 if (!Character.isDigit(lhs.charAt(lhsIndex))) { in lastSevenDigitsCharacterByCharacterMatches()
55 if (lhs.charAt(lhsIndex) != rhs.charAt(rhsIndex)) { in lastSevenDigitsCharacterByCharacterMatches()
/packages/apps/TV/src/com/android/tv/util/
DTvInputManagerHelper.java712 public int compare(TvInputInfo lhs, TvInputInfo rhs) { in compare() argument
713 if (mInputManager.isPartnerInput(lhs) != mInputManager.isPartnerInput(rhs)) { in compare()
714 return mInputManager.isPartnerInput(lhs) ? -1 : 1; in compare()
716 return mInputManager.loadLabel(lhs).compareTo(mInputManager.loadLabel(rhs)); in compare()
736 public int compare(TvInputInfo lhs, TvInputInfo rhs) { in compare() argument
737 if (lhs == null) { in compare()
745 (mTvInputManagerHelper.getInputState(lhs) in compare()
754 int priorityL = getPriority(lhs); in compare()
760 if (lhs.getType() == TvInputInfo.TYPE_TUNER in compare()
762 boolean isPhysicalL = mTvInputManagerHelper.isInputPhysicalTuner(lhs); in compare()
[all …]
DTvTrackInfoUtils.java52 return (TvTrackInfo lhs, TvTrackInfo rhs) -> { in createComparator()
53 if (Objects.equals(lhs, rhs)) { in createComparator()
56 if (lhs == null) { in createComparator()
65 language == null || Utils.isEqualLanguage(lhs.getLanguage(), language); in createComparator()
70 lhs.getType() != TvTrackInfo.TYPE_AUDIO in createComparator()
71 || lhs.getAudioChannelCount() == channelCount; in createComparator()
76 return Boolean.compare(lhs.getId().equals(id), rhs.getId().equals(id)); in createComparator()
/packages/apps/TV/src/com/android/tv/data/
DChannelNumber.java51 public static boolean equivalent(String lhs, String rhs) { in equivalent() argument
52 if (compare(lhs, rhs) == 0) { in equivalent()
56 ChannelNumber lhsNumber = parseChannelNumber(lhs); in equivalent()
158 public static int compare(String lhs, String rhs) { in compare() argument
159 ChannelNumber lhsNumber = parseChannelNumber(lhs); in compare()
163 return StringUtils.compare(lhs, rhs); in compare()
DTvInputNewComparator.java35 public int compare(TvInputInfo lhs, TvInputInfo rhs) { in compare() argument
36 boolean lhsIsNewInput = mSetupUtils.isNewInput(lhs.getId()); in compare()
44 boolean lhsSetupDone = mSetupUtils.isSetupDone(lhs.getId()); in compare()
51 return mInputManager.getDefaultTvInputInfoComparator().compare(lhs, rhs); in compare()
DChannelImpl.java49 (Channel lhs, Channel rhs) ->
50 ChannelNumber.compare(lhs.getDisplayNumber(), rhs.getDisplayNumber());
741 public int compare(Channel lhs, Channel rhs) { in compare() argument
742 if (lhs == rhs) { in compare()
746 boolean lhsIsPartner = mInputManager.isPartnerInput(lhs.getInputId()); in compare()
752 String lhsLabel = getInputLabelForChannel(lhs); in compare()
762 result = lhs.getInputId().compareTo(rhs.getInputId()); in compare()
767 result = ChannelNumber.compare(lhs.getDisplayNumber(), rhs.getDisplayNumber()); in compare()
772 + lhs.getDisplayText() in compare()
DBaseProgram.java60 public int compare(BaseProgram lhs, BaseProgram rhs) { in compare() argument
61 if (lhs == rhs) { in compare()
64 int seasonNumberCompare = numberCompare(lhs.getSeasonNumber(), rhs.getSeasonNumber()); in compare()
68 return numberCompare(lhs.getEpisodeNumber(), rhs.getEpisodeNumber()); in compare()
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DComparableTester.java57 List<T> lhs = listOfGroups.get(j); in test() local
58 assertOrder(i, j, lhs, currentGroup); in test()
121 for (T lhs : group) { in assertZero()
123 Assert.assertEquals(lhs + " compareTo " + rhs, 0, lhs.compareTo(rhs)); in assertZero()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DProcessStatsUi.java192 public int compare(ProcStatsPackageEntry lhs, ProcStatsPackageEntry rhs) {
194 double lhsWeight = Math.max(lhs.mRunWeight, lhs.mBgWeight);
205 public int compare(ProcStatsPackageEntry lhs, ProcStatsPackageEntry rhs) {
207 double lhsMax = Math.max(lhs.mMaxBgMem, lhs.mMaxRunMem);
DProcessStatsDetail.java242 public int compare(ProcStatsEntry lhs, ProcStatsEntry rhs) {
243 if (lhs.mRunWeight < rhs.mRunWeight) {
245 } else if (lhs.mRunWeight > rhs.mRunWeight) {
315 public int compare(ProcStatsEntry.Service lhs, ProcStatsEntry.Service rhs) {
316 if (lhs.mDuration < rhs.mDuration) {
318 } else if (lhs.mDuration > rhs.mDuration) {
327 public int compare(PkgService lhs, PkgService rhs) {
328 if (lhs.mDuration < rhs.mDuration) {
330 } else if (lhs.mDuration > rhs.mDuration) {
DRunningState.java145 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 …]
/packages/apps/Settings/src/com/android/settings/applications/
DProcessStatsUi.java192 public int compare(ProcStatsPackageEntry lhs, ProcStatsPackageEntry rhs) {
194 double lhsWeight = Math.max(lhs.mRunWeight, lhs.mBgWeight);
205 public int compare(ProcStatsPackageEntry lhs, ProcStatsPackageEntry rhs) {
207 double lhsMax = Math.max(lhs.mMaxBgMem, lhs.mMaxRunMem);
DProcessStatsDetail.java242 public int compare(ProcStatsEntry lhs, ProcStatsEntry rhs) {
243 if (lhs.mRunWeight < rhs.mRunWeight) {
245 } else if (lhs.mRunWeight > rhs.mRunWeight) {
315 public int compare(ProcStatsEntry.Service lhs, ProcStatsEntry.Service rhs) {
316 if (lhs.mDuration < rhs.mDuration) {
318 } else if (lhs.mDuration > rhs.mDuration) {
327 public int compare(PkgService lhs, PkgService rhs) {
328 if (lhs.mDuration < rhs.mDuration) {
330 } else if (lhs.mDuration > rhs.mDuration) {
DRunningState.java145 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 …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DMessagePartData.java374 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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyboardParams.java96 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/
DSortingCursorWrapper.java211 final String lhs = pivotValue; in binarySort() local
215 compare = Shared.compareToIgnoreCaseNullable(lhs, rhs); in binarySort()
218 compare = -Shared.compareToIgnoreCaseNullable(lhs, rhs); in binarySort()
292 final long lhs = pivotValue; in binarySort() local
296 compare = Long.compare(lhs, rhs); in binarySort()
299 compare = -Long.compare(lhs, rhs); in binarySort()
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactRecipientAdapter.java260 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/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/Dialer/java/com/android/incallui/incall/impl/
DMappedButtonConfig.java111 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/DocumentsUI/src/com/android/documentsui/sidebar/
DRootsFragment.java549 public int compare(RootItem lhs, RootItem rhs) { in compare() argument
550 return lhs.root.compareTo(rhs.root); in compare()
569 public int compare(Item lhs, Item rhs) { in compare() argument
572 if (lhs.getPackageName().startsWith(mPreferredPackageName)) { in compare()
586 int score = compareToIgnoreCaseNullable(lhs.title, rhs.title); in compare()
593 if (lhs instanceof RootItem) { in compare()
595 ((RootItem) lhs).root.summary, ((RootItem) rhs).root.summary) : 1; in compare()
/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());

1234