Home
last modified time | relevance | path

Searched refs:rhs (Results 1 – 25 of 28) sorted by relevance

12

/packages/apps/Exchange/tests/src/com/android/exchange/provider/
DExchangeDirectoryProviderTests.java155 … final ExchangeDirectoryProvider.GalSortKey rhs = new ExchangeDirectoryProvider.GalSortKey("A", 1); in testNameComparatorEqualsStringLhsIdGreater() local
158 final int ret = comparator.compare(lhs, rhs); in testNameComparatorEqualsStringLhsIdGreater()
164 … final ExchangeDirectoryProvider.GalSortKey rhs = new ExchangeDirectoryProvider.GalSortKey("A", 2); in testNameComparatorEqualsStringRhsIdGreater() local
167 final int ret = comparator.compare(lhs, rhs); in testNameComparatorEqualsStringRhsIdGreater()
173 … final ExchangeDirectoryProvider.GalSortKey rhs = new ExchangeDirectoryProvider.GalSortKey("A", 1); in testNameComparatorEqualsEverythingEqual() local
176 final int ret = comparator.compare(lhs, rhs); in testNameComparatorEqualsEverythingEqual()
182 … final ExchangeDirectoryProvider.GalSortKey rhs = new ExchangeDirectoryProvider.GalSortKey("A", 2); in testNameComparatorLhsGreaterString() local
185 final int ret = comparator.compare(lhs, rhs); in testNameComparatorLhsGreaterString()
191 … final ExchangeDirectoryProvider.GalSortKey rhs = new ExchangeDirectoryProvider.GalSortKey("B", 2); in testNameComparatorRhsGreaterString() local
194 final int ret = comparator.compare(lhs, rhs); in testNameComparatorRhsGreaterString()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/
DRunningState.java144 public int compare(MergedItem lhs, MergedItem rhs) {
146 Log.i(TAG, "Comparing " + lhs + " with " + rhs);
147 Log.i(TAG, " Proc " + lhs.mProcess + " with " + rhs.mProcess);
148 Log.i(TAG, " UserId " + lhs.mUserId + " with " + rhs.mUserId);
150 if (lhs.mUserId != rhs.mUserId) {
152 if (rhs.mUserId == mMyUserId) return 1;
153 return lhs.mUserId < rhs.mUserId ? -1 : 1;
155 if (lhs.mProcess == rhs.mProcess) {
156 if (lhs.mLabel == rhs.mLabel) {
159 return lhs.mLabel != null ? lhs.mLabel.compareTo(rhs.mLabel) : -1;
[all …]
DProcessStatsDetail.java214 public int compare(ProcStatsEntry.Service lhs, ProcStatsEntry.Service rhs) {
215 if (lhs.mDuration < rhs.mDuration) {
217 } else if (lhs.mDuration > rhs.mDuration) {
228 ArrayList<ProcStatsEntry.Service> rhs) {
230 long topRhs = rhs.size() > 0 ? rhs.get(0).mDuration : 0;
DProcessStatsUi.java74 public int compare(ProcStatsEntry lhs, ProcStatsEntry rhs) {
75 if (lhs.mWeight < rhs.mWeight) {
77 } else if (lhs.mWeight > rhs.mWeight) {
79 } else if (lhs.mDuration < rhs.mDuration) {
81 } else if (lhs.mDuration > rhs.mDuration) {
/packages/apps/Calendar/src/com/android/calendar/
DUtils.java1059 DNASegment rhs = new DNASegment(); in createDNAStrands() local
1060 rhs.endMinute = currSegment.endMinute; in createDNAStrands()
1061 rhs.color = currSegment.color; in createDNAStrands()
1062 rhs.startMinute = endMinute + 1; in createDNAStrands()
1063 rhs.day = currSegment.day; in createDNAStrands()
1065 segments.add(i + 1, rhs); in createDNAStrands()
1066 strands.get(rhs.color).count++; in createDNAStrands()
1094 DNASegment rhs = segments.get(i + 1); in createDNAStrands() local
1095 if (rhs.color == CONFLICT_COLOR && currSegment.day == rhs.day in createDNAStrands()
1096 && rhs.startMinute <= currSegment.endMinute + 1) { in createDNAStrands()
[all …]
/packages/apps/Exchange/src/com/android/exchange/provider/
DExchangeDirectoryProvider.java680 public int compare(final GalSortKey lhs, final GalSortKey rhs) { in compare() argument
681 if (lhs.sortName != null && rhs.sortName != null) { in compare()
682 final int res = collator.compare(lhs.sortName, rhs.sortName); in compare()
688 } else if (rhs.sortName != null) { in compare()
693 if (lhs.id != rhs.id) { in compare()
694 return lhs.id > rhs.id ? 1 : -1; in compare()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DMessageAttachmentTile.java226 public int compare(View lhs, View rhs) { in compare() argument
228 if (parent == rhs.getParent()) { in compare()
232 int rhsIndex = p.indexOfChild(rhs); in compare()
/packages/apps/Browser/src/com/android/browser/homepages/
DRequestHandler.java150 public int compare(File lhs, File rhs) {
151 if (lhs.isDirectory() != rhs.isDirectory()) {
154 return lhs.getName().compareTo(rhs.getName());
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DEmojiPalettesView.java356 public int compare(Key lhs, Key rhs) { in sortKeys()
358 final Rect rHitBox = rhs.getHitBox(); in sortKeys()
369 if (lhs.getCode() == rhs.getCode()) { in sortKeys()
372 return lhs.getCode() < rhs.getCode() ? -1 : 1; in sortKeys()
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/account/
DAccountTypeTest.java106 private int compareDisplayLabel(AccountType lhs, AccountType rhs) {
107 return new AccountType.DisplayLabelComparator(getContext()).compare(lhs, rhs);
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherModel.java1561 public int compare(ItemInfo lhs, ItemInfo rhs) { in filterCurrentWorkspaceItems()
1562 return (int) (lhs.container - rhs.container); in filterCurrentWorkspaceItems()
1640 public int compare(ItemInfo lhs, ItemInfo rhs) { in sortWorkspaceItemsSpatially()
1647 long rr = (rhs.container * containerOffset + rhs.screen * screenOffset + in sortWorkspaceItemsSpatially()
1648 rhs.cellY * cellCountX + rhs.cellX); in sortWorkspaceItemsSpatially()
DFolder.java324 public int compare(ShortcutInfo lhs, ShortcutInfo rhs) { in compare() argument
326 int rhIndex = rhs.cellY * mNumCols + rhs.cellX; in compare()
DFocusHelper.java578 public int compare(View lhs, View rhs) { in getCellLayoutChildrenSortedSpatially()
580 CellLayout.LayoutParams rlp = (CellLayout.LayoutParams) rhs.getLayoutParams(); in getCellLayoutChildrenSortedSpatially()
/packages/apps/Settings/src/com/android/settings/
DAppWidgetLoader.java163 public int compare(Item lhs, Item rhs) { in getItems()
164 return mCollator.compare(lhs.getLabel(), rhs.getLabel()); in getItems()
DDreamBackend.java299 public int compare(DreamInfo lhs, DreamInfo rhs) { in compare() argument
300 return sortKey(lhs).compareTo(sortKey(rhs)); in compare()
DNotificationStation.java96 HistoricalNotificationInfo rhs) {
97 return (int)(rhs.timestamp - lhs.timestamp);
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DRecentFolderList.java82 public int compare(Folder lhs, Folder rhs) {
83 return lhs.name.compareToIgnoreCase(rhs.name);
DNestedFolderTeaserView.java169 public int compare(final FolderHolder lhs, final FolderHolder rhs) {
170 return lhs.getFolder().name.compareTo(rhs.getFolder().name);
/packages/apps/Settings/src/com/android/settings/location/
DLocationSettings.java96 public int compare(Preference lhs, Preference rhs) { in addPreferencesSorted()
97 return lhs.getTitle().toString().compareTo(rhs.getTitle().toString()); in addPreferencesSorted()
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/
DAccountType.java527 public int compare(AccountType lhs, AccountType rhs) { in compare() argument
528 return mCollator.compare(getDisplayLabel(lhs), getDisplayLabel(rhs)); in compare()
/packages/apps/Settings/src/com/android/settings/tts/
DTtsEngineSettingsFragment.java219 public int compare(Pair<String, String> lhs, Pair<String, String> rhs) { in updateDefaultLocalePref()
220 return lhs.first.compareToIgnoreCase(rhs.first); in updateDefaultLocalePref()
/packages/apps/Dialer/src/com/android/dialer/list/
DPhoneFavoritesTileAdapter.java133 public int compare(ContactEntry lhs, ContactEntry rhs) {
135 .compare(lhs.pinned, rhs.pinned)
136 .compare(lhs.name, rhs.name)
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherModel.java2223 public int compare(ItemInfo lhs, ItemInfo rhs) { in filterCurrentWorkspaceItems()
2224 return (int) (lhs.container - rhs.container); in filterCurrentWorkspaceItems()
2294 public int compare(ItemInfo lhs, ItemInfo rhs) { in sortWorkspaceItemsSpatially()
2301 long rr = (rhs.container * containerOffset + rhs.screenId * screenOffset + in sortWorkspaceItemsSpatially()
2302 rhs.cellY * cellCountX + rhs.cellX); in sortWorkspaceItemsSpatially()
DFolder.java342 public int compare(ShortcutInfo lhs, ShortcutInfo rhs) { in compare() argument
344 int rhIndex = rhs.cellY * mNumCols + rhs.cellX; in compare()
/packages/apps/Email/src/com/android/email/service/
DImapService.java1421 public int compare(SortableMessage lhs, SortableMessage rhs) { in searchMailboxImpl()
1422 return lhs.mUid > rhs.mUid ? -1 : lhs.mUid < rhs.mUid ? 1 : 0; in searchMailboxImpl()

12