Searched refs:lhs (Results 1 - 25 of 83) sorted by relevance

1234

/packages/apps/Dialer/java/com/android/dialer/enrichedcall/
H A DFuzzyPhoneNumberMatcher.java31 public static boolean matches(@NonNull String lhs, @NonNull String rhs) { argument
32 int aIndex = lhs.length() - 1;
38 if (!Character.isDigit(lhs.charAt(aIndex))) {
46 if (lhs.charAt(aIndex) != rhs.charAt(bIndex)) {
/packages/apps/TV/src/com/android/tv/util/
H A DTvTrackInfoUtils.java35 * @return -1 if lhs is a worse match, 0 if lhs and rhs match equally and 1 if lhs is a better
43 public int compare(TvTrackInfo lhs, TvTrackInfo rhs) {
44 if (lhs == rhs) {
47 if (lhs == null) {
55 boolean lhsLangMatch = language == null || Utils.isEqualLanguage(lhs.getLanguage(),
60 boolean lhsCountMatch = lhs.getType() != TvTrackInfo.TYPE_AUDIO
61 || lhs.getAudioChannelCount() == channelCount;
65 return Boolean.compare(lhs
[all...]
H A DCompositeComparator.java33 public int compare(T lhs, T rhs) { argument
35 int result = comparator.compare(lhs, rhs);
H A DTvInputManagerHelper.java562 public int compare(TvInputInfo lhs, TvInputInfo rhs) { argument
563 if (mInputManager.isPartnerInput(lhs) != mInputManager.isPartnerInput(rhs)) {
564 return mInputManager.isPartnerInput(lhs) ? -1 : 1;
566 return mInputManager.loadLabel(lhs).compareTo(mInputManager.loadLabel(rhs));
586 public int compare(TvInputInfo lhs, TvInputInfo rhs) { argument
587 if (lhs == null) {
594 boolean enabledL = (mTvInputManagerHelper.getInputState(lhs)
602 int priorityL = getPriority(lhs);
608 if (lhs.getType() == TvInputInfo.TYPE_TUNER
610 boolean isPhysicalL = mTvInputManagerHelper.isInputPhysicalTuner(lhs);
[all...]
/packages/apps/TV/src/com/android/tv/data/
H A DTvInputNewComparator.java39 public int compare(TvInputInfo lhs, TvInputInfo rhs) { argument
40 boolean lhsIsNewInput = mSetupUtils.isNewInput(lhs.getId());
48 boolean lhsSetupDone = mSetupUtils.isSetupDone(lhs.getId());
55 return mInputManager.getDefaultTvInputInfoComparator().compare(lhs, rhs);
H A DBaseProgram.java57 public int compare(BaseProgram lhs, BaseProgram rhs) { argument
58 if (lhs == rhs) {
62 numberCompare(lhs.getSeasonNumber(), rhs.getSeasonNumber());
66 return numberCompare(lhs.getEpisodeNumber(), rhs.getEpisodeNumber());
H A DChannelNumber.java142 public static int compare(String lhs, String rhs) { argument
143 ChannelNumber lhsNumber = parseChannelNumber(lhs);
147 return StringUtils.compare(lhs, rhs);
H A DChannel.java59 public int compare(Channel lhs, Channel rhs) {
60 return ChannelNumber.compare(lhs.getDisplayNumber(), rhs.getDisplayNumber());
689 public int compare(Channel lhs, Channel rhs) { argument
690 if (lhs == rhs) {
694 boolean lhsIsPartner = mInputManager.isPartnerInput(lhs.getInputId());
700 String lhsLabel = getInputLabelForChannel(lhs);
708 result = lhs.getInputId().compareTo(rhs.getInputId());
713 result = ChannelNumber.compare(lhs.getDisplayNumber(), rhs.getDisplayNumber());
716 + lhs.getDisplayText() + "\" and \"" + rhs.getDisplayText() + "\"");
/packages/apps/TV/tests/common/src/com/android/tv/testing/
H A DComparableTester.java61 List<T> lhs = listOfGroups.get(j);
62 assertOrder(i, j, lhs, currentGroup);
109 for (T lhs : group) {
111 Assert.assertEquals(lhs + " compareTo " + rhs, 0, lhs.compareTo(rhs));
H A DComparatorTester.java74 List<T> lhs = listOfGroups.get(j);
75 assertOrder(i, j, lhs, currentGroup);
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DRankedComparator.java69 public int compare(T lhs, T rhs) { argument
70 final int orderLhs = getOrder(lhs);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A 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/Dialer/java/com/android/incallui/incall/impl/
H A DMappedButtonConfig.java111 public int compare(Integer lhs, Integer rhs) {
112 MappingInfo lhsInfo = lookupMappingInfo(lhs);
115 throw new IllegalArgumentException("lhs and rhs don't go in the same slot");
135 public int compare(Integer lhs, Integer rhs) {
136 MappingInfo lhsInfo = lookupMappingInfo(lhs);
/packages/apps/Settings/src/com/android/settings/applications/
H A DProcessStatsUi.java191 public int compare(ProcStatsPackageEntry lhs, ProcStatsPackageEntry rhs) {
193 double lhsWeight = Math.max(lhs.mRunWeight, lhs.mBgWeight);
204 public int compare(ProcStatsPackageEntry lhs, ProcStatsPackageEntry rhs) {
206 double lhsMax = Math.max(lhs.mMaxBgMem, lhs.mMaxRunMem);
H A DProcessStatsDetail.java241 public int compare(ProcStatsEntry lhs, ProcStatsEntry rhs) {
242 if (lhs.mRunWeight < rhs.mRunWeight) {
244 } else if (lhs.mRunWeight > rhs.mRunWeight) {
314 public int compare(ProcStatsEntry.Service lhs, ProcStatsEntry.Service rhs) {
315 if (lhs.mDuration < rhs.mDuration) {
317 } else if (lhs.mDuration > rhs.mDuration) {
326 public int compare(PkgService lhs, PkgService rhs) {
327 if (lhs.mDuration < rhs.mDuration) {
329 } else if (lhs.mDuration > rhs.mDuration) {
/packages/apps/Launcher3/src/com/android/launcher3/model/
H A DLoaderResults.java230 public int compare(ItemInfo lhs, ItemInfo rhs) {
231 return Utilities.longCompare(lhs.container, rhs.container);
264 public int compare(ItemInfo lhs, ItemInfo rhs) {
265 if (lhs.container == rhs.container) {
267 switch ((int) lhs.container) {
269 long lr = (lhs.screenId * screenCellCount +
270 lhs.cellY * screenCols + lhs.cellX);
277 return Utilities.longCompare(lhs.screenId, rhs.screenId);
288 return Utilities.longCompare(lhs
[all...]
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
H A DDvrBrowseFragment.java103 public int compare(Object lhs, Object rhs) {
104 if (lhs instanceof SeriesRecording) {
105 lhs = mSeriesId2LatestProgram.get(((SeriesRecording) lhs).getSeriesId());
110 if (lhs instanceof RecordedProgram) {
113 .compare((RecordedProgram) lhs, (RecordedProgram) rhs);
127 public int compare(Object lhs, Object rhs) {
128 if (lhs instanceof ScheduledRecording) {
131 .compare((ScheduledRecording) lhs, (ScheduledRecording) rhs);
627 public int compare(SeriesRecording lhs, SeriesRecordin
[all...]
/packages/apps/Messaging/src/com/android/messaging/datamodel/
H A DFrequentContactsCursorBuilder.java138 public int compare(final Object[] lhs, final Object[] rhs) {
139 final String lookupKeyLhs = (String) lhs[ContactUtil.INDEX_LOOKUP_KEY];
153 final int phoneTypeLhs = (int) lhs[ContactUtil.INDEX_PHONE_EMAIL_TYPE];
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/
H A DSortingCursorWrapper.java211 final String lhs = pivotValue;
215 compare = Shared.compareToIgnoreCaseNullable(lhs, rhs);
218 compare = -Shared.compareToIgnoreCaseNullable(lhs, rhs);
292 final long lhs = pivotValue;
296 compare = Long.compare(lhs, rhs);
299 compare = -Long.compare(lhs, rhs);
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
H A DContactRecipientAdapter.java260 public int compare(RecipientEntry lhs, RecipientEntry rhs) { argument
263 .isSendToDestinationContact(lhs);
265 .isSendToDestinationContact(lhs);
274 final int displayNameCompare = mCollator.compare(lhs.getDisplayName(),
282 final long lhsContactId = lhs.getContactId();
292 if (lhs.isFirstLevel()) {
/packages/apps/Contacts/tests/src/com/android/contacts/model/account/
H A DAccountTypeTest.java106 private int compareDisplayLabel(AccountType lhs, AccountType rhs) { argument
108 getInstrumentation().getTargetContext()).compare(lhs, rhs);
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
H A DMessagePartData.java374 MessagePartData lhs = (MessagePartData) o;
375 return mWidth == lhs.mWidth && mHeight == lhs.mHeight &&
376 TextUtils.equals(mMessageId, lhs.mMessageId) &&
377 TextUtils.equals(mText, lhs.mText) &&
378 TextUtils.equals(mContentType, lhs.mContentType) &&
379 (mContentUri == null ? lhs.mContentUri == null
380 : mContentUri.equals(lhs.mContentUri));
/packages/apps/TV/tests/unit/src/com/android/tv/data/
H A DTvInputNewComparatorTest.java76 public int compare(TvInputInfo lhs, TvInputInfo rhs) {
77 return lhs.getId().compareTo(rhs.getId());
/packages/apps/Calendar/src/com/android/calendar/
H A DUtils.java1075 DNASegment lhs = new DNASegment();
1076 lhs.startMinute = currSegment.startMinute;
1077 lhs.color = currSegment.color;
1078 lhs.endMinute = startMinute - 1;
1079 lhs.day = currSegment.day;
1084 segments.add(i++, lhs);
1085 strands.get(lhs.color).count++;
1087 Log.d(TAG, "Added lhs, curr:" + currSegment.toString() + " i:"
1107 DNASegment lhs = segments.get(i - 1);
1108 if (lhs
[all...]
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/
H A DChannelsBlockedFragment.java120 public int compare(Channel lhs, Channel rhs) {
121 if (lhs.isBrowsable() != rhs.isBrowsable()) {
122 return lhs.isBrowsable() ? -1 : 1;
124 return ChannelNumber.compare(lhs.getDisplayNumber(), rhs.getDisplayNumber());

Completed in 2514 milliseconds

1234