/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
H A D | TransitionImageMatcher.java | 29 public int compare(TransitionImage lhs, TransitionImage rhs) { argument 31 Uri r = rhs == null ? null : rhs.getUri();
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
H A D | AbstractUserComparator.java | 40 public int compare(T lhs, T rhs) { argument 45 Long bUserSerial = mUserManager.getSerialNumberForUser(rhs.user);
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
H A D | InputMethodSubtypePreference.java | 60 int compareTo(final Preference rhs, final Collator collator) { argument 61 if (this == rhs) { 64 if (rhs instanceof InputMethodSubtypePreference) { 65 final InputMethodSubtypePreference pref = (InputMethodSubtypePreference) rhs; 67 final CharSequence t1 = rhs.getTitle(); 91 return super.compareTo(rhs);
|
H A D | InputMethodPreference.java | 289 int compareTo(final InputMethodPreference rhs, final Collator collator) { argument 290 if (this == rhs) { 293 if (mHasPriorityInSorting == rhs.mHasPriorityInSorting) { 295 final CharSequence t1 = rhs.getTitle();
|
H A D | PhysicalKeyboardFragment.java | 518 private int compare(@Nullable CharSequence lhs, @Nullable CharSequence rhs) { argument 519 if (!TextUtils.isEmpty(lhs) && !TextUtils.isEmpty(rhs)) { 520 return collator.compare(lhs.toString(), rhs.toString()); 521 } else if (TextUtils.isEmpty(lhs) && TextUtils.isEmpty(rhs)) {
|
/packages/apps/TV/src/com/android/tv/data/ |
H A D | TvInputNewComparator.java | 39 public int compare(TvInputInfo lhs, TvInputInfo rhs) { argument 41 boolean rhsIsNewInput = mSetupUtils.isNewInput(rhs.getId()); 49 boolean rhsSetupDone = mSetupUtils.isSetupDone(rhs.getId()); 55 return mInputManager.getDefaultTvInputInfoComparator().compare(lhs, rhs);
|
H A D | ChannelNumber.java | 118 public static int compare(String lhs, String rhs) { argument 120 ChannelNumber rhsNumber = parseChannelNumber(rhs);
|
H A D | Channel.java | 626 public int compare(Channel lhs, Channel rhs) { argument 627 if (lhs == rhs) { 632 boolean rhsIsPartner = mInputManager.isPartnerInput(rhs.getInputId()); 638 String rhsLabel = getInputLabelForChannel(rhs); 645 result = lhs.getInputId().compareTo(rhs.getInputId()); 650 result = ChannelNumber.compare(lhs.getDisplayNumber(), rhs.getDisplayNumber()); 654 + rhs.getDisplayNumber() + " " + rhs.getDisplayName() + "\"");
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
H A D | RankedComparator.java | 69 public int compare(T lhs, T rhs) { argument 71 final int orderRhs = getOrder(rhs);
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/account/ |
H A D | AccountTypeTest.java | 106 private int compareDisplayLabel(AccountType lhs, AccountType rhs) { argument 108 getInstrumentation().getTargetContext()).compare(lhs, rhs);
|
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/ |
H A D | stringbuffer.h | 42 GenericStringBuffer(GenericStringBuffer&& rhs) : stack_(std::move(rhs.stack_)) {}
argument 43 GenericStringBuffer& operator=(GenericStringBuffer&& rhs) {
argument 44 if (&rhs != this)
45 stack_ = std::move(rhs.stack_);
|
H A D | pointer.h | 158 GenericPointer(const GenericPointer& rhs) : allocator_(), ownAllocator_(), nameBuffer_(), tokens_(), tokenCount_(), parseErrorOffset_(), parseErrorCode_(kPointerParseErrorNone) { argument 159 *this = rhs; 170 GenericPointer& operator=(const GenericPointer& rhs) { argument 171 if (this != &rhs) { 176 tokenCount_ = rhs.tokenCount_; 177 parseErrorOffset_ = rhs.parseErrorOffset_; 178 parseErrorCode_ = rhs.parseErrorCode_; 180 if (rhs.nameBuffer_) 181 CopyFromRaw(rhs); // Normally parsed tokens. 183 tokens_ = rhs 730 CopyFromRaw(const GenericPointer& rhs, size_t extraToken = 0, size_t extraNameBufferSize = 0) argument [all...] |
/packages/apps/Test/connectivity/sl4n/rapidjson/example/serialize/ |
H A D | serialize.cpp | 67 Dependent(const Dependent& rhs) : Person(rhs), education_(0) { education_ = (rhs.education_ == 0) ? 0 : new Education(*rhs.education_); }
argument 70 Dependent& operator=(const Dependent& rhs) {
argument 71 if (this == &rhs)
74 education_ = (rhs.education_ == 0) ? 0 : new Education(*rhs.education_);
|
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/ |
H A D | biginteger.h | 32 BigInteger(const BigInteger& rhs) : count_(rhs.count_) { argument 33 std::memcpy(digits_, rhs.digits_, count_ * sizeof(Type)); 55 BigInteger& operator=(const BigInteger &rhs) argument 57 if (this != &rhs) { 58 count_ = rhs.count_; 59 std::memcpy(digits_, rhs.digits_, count_ * sizeof(Type)); 154 bool operator==(const BigInteger& rhs) const { 155 return count_ == rhs.count_ && std::memcmp(digits_, rhs 186 Difference(const BigInteger& rhs, BigInteger* out) const argument [all...] |
H A D | stack.h | 40 Stack(Stack&& rhs)
argument 41 : allocator_(rhs.allocator_),
42 ownAllocator_(rhs.ownAllocator_),
43 stack_(rhs.stack_),
44 stackTop_(rhs.stackTop_),
45 stackEnd_(rhs.stackEnd_),
46 initialCapacity_(rhs.initialCapacity_)
48 rhs.allocator_ = 0;
49 rhs.ownAllocator_ = 0;
50 rhs 62 operator =(Stack&& rhs) argument [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
H A D | KeyboardTheme.java | 85 public int compareTo(final KeyboardTheme rhs) { argument 86 if (mMinApiVersion > rhs.mMinApiVersion) return -1; 87 if (mMinApiVersion < rhs.mMinApiVersion) return 1;
|
/packages/apps/Messaging/src/com/android/messaging/ui/contact/ |
H A D | ContactRecipientAdapter.java | 260 public int compare(RecipientEntry lhs, RecipientEntry rhs) { argument 275 rhs.getDisplayName()); 283 final long rhsContactId = rhs.getContactId(); 294 } else if (rhs.isFirstLevel()) {
|
/packages/apps/TV/src/com/android/tv/search/ |
H A D | TvProviderSearch.java | 475 public int compare(SearchResult lhs, SearchResult rhs) { argument 482 Long rhsMaxWatchStartTime = mMaxWatchStartTimeMap.get(rhs.channelId); 484 rhsMaxWatchStartTime = getMaxWatchStartTime(rhs.channelId); 485 mMaxWatchStartTimeMap.put(rhs.channelId, rhsMaxWatchStartTime); 491 return Long.compare(rhs.channelId, lhs.channelId);
|
/packages/apps/TV/src/com/android/tv/util/ |
H A D | TvInputManagerHelper.java | 326 public int compare(TvInputInfo lhs, TvInputInfo rhs) { argument 327 if (mInputManager.isPartnerInput(lhs) != mInputManager.isPartnerInput(rhs)) { 330 return mInputManager.loadLabel(lhs).compareTo(mInputManager.loadLabel(rhs));
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
H A D | MessageAttachmentTile.java | 240 public int compare(View lhs, View rhs) { argument 242 if (parent == rhs.getParent()) { 246 int rhsIndex = p.indexOfChild(rhs);
|
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/animation/ |
H A D | FadeAndShortSlide.java | 316 public int compare(View lhs, View rhs) { argument 321 start2 = getRelativeLeft(rhs, mParentForDelay); 324 start2 = getRelativeRight(rhs, mParentForDelay); 340 int top2 = getRelativeTop(rhs, mParentForDelay);
|
/packages/apps/TV/src/com/android/tv/ui/ |
H A D | SelectInputView.java | 391 public int compare(TvInputInfo lhs, TvInputInfo rhs) { argument 393 return (rhs == null) ? 0 : 1; 395 if (rhs == null) { 400 boolean enabledR = isInputEnabled(rhs); 406 int priorityR = getPriority(rhs); 412 String customLabelR = (String) rhs.loadCustomLabel(getContext()); 420 String labelR = (String) rhs.loadLabel(getContext());
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/ |
H A D | AccountType.java | 522 public int compare(AccountType lhs, AccountType rhs) { argument 523 return mCollator.compare(getDisplayLabel(lhs), getDisplayLabel(rhs));
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | Folder.java | 324 public int compare(ShortcutInfo lhs, ShortcutInfo rhs) { argument 326 int rhIndex = rhs.cellY * mNumCols + rhs.cellX;
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | Utilities.java | 820 public static int longCompare(long lhs, long rhs) { argument 821 return lhs < rhs ? -1 : (lhs == rhs ? 0 : 1);
|