/packages/apps/Dialer/java/com/android/dialer/enrichedcall/ |
H A D | FuzzyPhoneNumberMatcher.java | 31 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 D | TvTrackInfoUtils.java | 35 * @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 D | CompositeComparator.java | 33 public int compare(T lhs, T rhs) { argument 35 int result = comparator.compare(lhs, rhs);
|
H A D | TvInputManagerHelper.java | 562 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 D | TvInputNewComparator.java | 39 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 D | BaseProgram.java | 57 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 D | ChannelNumber.java | 142 public static int compare(String lhs, String rhs) { argument 143 ChannelNumber lhsNumber = parseChannelNumber(lhs); 147 return StringUtils.compare(lhs, rhs);
|
H A D | Channel.java | 59 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 D | ComparableTester.java | 61 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 D | ComparatorTester.java | 74 List<T> lhs = listOfGroups.get(j); 75 assertOrder(i, j, lhs, currentGroup);
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
H A D | RankedComparator.java | 69 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 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/Dialer/java/com/android/incallui/incall/impl/ |
H A D | MappedButtonConfig.java | 111 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 D | ProcessStatsUi.java | 191 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 D | ProcessStatsDetail.java | 241 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 D | LoaderResults.java | 230 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 D | DvrBrowseFragment.java | 103 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 D | FrequentContactsCursorBuilder.java | 138 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 D | SortingCursorWrapper.java | 211 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 D | ContactRecipientAdapter.java | 260 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 D | AccountTypeTest.java | 106 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 D | MessagePartData.java | 374 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 D | TvInputNewComparatorTest.java | 76 public int compare(TvInputInfo lhs, TvInputInfo rhs) { 77 return lhs.getId().compareTo(rhs.getId());
|
/packages/apps/Calendar/src/com/android/calendar/ |
H A D | Utils.java | 1075 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 D | ChannelsBlockedFragment.java | 120 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());
|