Home
last modified time | relevance | path

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

1234

/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/
Dstack.h40 Stack(Stack&& rhs) in Stack() argument
41 : allocator_(rhs.allocator_), in Stack()
42 ownAllocator_(rhs.ownAllocator_), in Stack()
43 stack_(rhs.stack_), in Stack()
44 stackTop_(rhs.stackTop_), in Stack()
45 stackEnd_(rhs.stackEnd_), in Stack()
46 initialCapacity_(rhs.initialCapacity_) in Stack()
48 rhs.allocator_ = 0; in Stack()
49 rhs.ownAllocator_ = 0; in Stack()
50 rhs.stack_ = 0; in Stack()
[all …]
Dbiginteger.h32 BigInteger(const BigInteger& rhs) : count_(rhs.count_) { in BigInteger() argument
33 std::memcpy(digits_, rhs.digits_, count_ * sizeof(Type)); in BigInteger()
55 BigInteger& operator=(const BigInteger &rhs)
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.digits_, count_ * sizeof(Type)) == 0;
158 bool operator==(const Type rhs) const {
159 return count_ == 1 && digits_[0] == rhs;
[all …]
Ddiyfp.h61 DiyFp operator-(const DiyFp& rhs) const {
62 return DiyFp(f - rhs.f, e);
65 DiyFp operator*(const DiyFp& rhs) const {
68 uint64_t l = _umul128(f, rhs.f, &h);
71 return DiyFp(h, e + rhs.e + 64);
74 uint128 p = static_cast<uint128>(f) * static_cast<uint128>(rhs.f);
79 return DiyFp(h, e + rhs.e + 64);
84 const uint64_t c = rhs.f >> 32;
85 const uint64_t d = rhs.f & M32;
92 return DiyFp(ac + (ad >> 32) + (bc >> 32) + (tmp >> 32), e + rhs.e + 64);
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Ddocument.h443 GenericValue(GenericValue&& rhs) RAPIDJSON_NOEXCEPT : data_(rhs.data_), flags_(rhs.flags_) {
444 rhs.flags_ = kNullFlag; // give up contents
450 GenericValue(const GenericValue& rhs);
455 explicit GenericValue(GenericDocument<Encoding,Allocator,StackAllocator>&& rhs);
459 GenericValue& operator=(GenericDocument<Encoding,Allocator,StackAllocator>&& rhs);
490 GenericValue(const GenericValue<Encoding, SourceAllocator>& rhs, Allocator & allocator);
606 GenericValue& operator=(GenericValue& rhs) RAPIDJSON_NOEXCEPT {
607 RAPIDJSON_ASSERT(this != &rhs);
609 RawAssign(rhs);
615 GenericValue& operator=(GenericValue&& rhs) RAPIDJSON_NOEXCEPT {
[all …]
Dpointer.h158 …GenericPointer(const GenericPointer& rhs) : allocator_(), ownAllocator_(), nameBuffer_(), tokens_(… in GenericPointer() argument
159 *this = rhs; in GenericPointer()
170 GenericPointer& operator=(const GenericPointer& rhs) {
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.tokens_; // User supplied const tokens.
[all …]
Dstringbuffer.h42 GenericStringBuffer(GenericStringBuffer&& rhs) : stack_(std::move(rhs.stack_)) {} in GenericStringBuffer() argument
43 GenericStringBuffer& operator=(GenericStringBuffer&& rhs) {
44 if (&rhs != this)
45 stack_ = std::move(rhs.stack_);
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DDvrBrowseFragment.java106 (Object lhs, Object rhs) -> {
110 if (rhs instanceof SeriesRecording) {
111 rhs = mSeriesId2LatestProgram.get(((SeriesRecording) rhs).getSeriesId());
114 if (rhs instanceof RecordedProgram) {
117 .compare((RecordedProgram) lhs, (RecordedProgram) rhs);
121 } else if (rhs instanceof RecordedProgram) {
129 (Object lhs, Object rhs) -> {
131 if (rhs instanceof ScheduledRecording) {
133 .compare((ScheduledRecording) lhs, (ScheduledRecording) rhs);
137 } else if (rhs instanceof ScheduledRecording) {
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/example/serialize/
Dserialize.cpp67 …Dependent(const Dependent& rhs) : Person(rhs), education_(0) { education_ = (rhs.education_ == 0) … in Dependent() argument
70 Dependent& operator=(const Dependent& rhs) { in operator =() argument
71 if (this == &rhs) in operator =()
74 education_ = (rhs.education_ == 0) ? 0 : new Education(*rhs.education_); in operator =()
/packages/apps/TV/tuner/src/com/android/tv/tuner/hdhomerun/
DHdHomeRunDevice.java155 HdHomeRunDevice rhs = (HdHomeRunDevice) o; in equals() local
156 return rhs != null in equals()
157 && getIpAddress() == rhs.getIpAddress() in equals()
158 && getDeviceType() == rhs.getDeviceType() in equals()
159 && getDeviceId() == rhs.getDeviceId() in equals()
160 && getTunerIndex() == rhs.getTunerIndex() in equals()
161 && TextUtils.equals(getDeviceModel(), rhs.getDeviceModel()); in equals()
/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() argument
42 int rhsIndex = rhs.length() - 1; in lastSevenDigitsCharacterByCharacterMatches()
51 if (!Character.isDigit(rhs.charAt(rhsIndex))) { in lastSevenDigitsCharacterByCharacterMatches()
55 if (lhs.charAt(lhsIndex) != rhs.charAt(rhsIndex)) { in lastSevenDigitsCharacterByCharacterMatches()
/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()
232 int rr = (rhs.screenId * screenCellCount + in sortWorkspaceItemsSpatially()
233 rhs.cellY * screenCols + rhs.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/TV/src/com/android/tv/util/
DTvTrackInfoUtils.java61 return (TvTrackInfo lhs, TvTrackInfo rhs) -> { in createComparator()
62 if (Objects.equals(lhs, rhs)) { in createComparator()
68 if (rhs == null) { in createComparator()
80 Iterables.indexOf(languages, s -> Utils.isEqualLanguage(rhs.getLanguage(), s)); in createComparator()
92 rhs.getType() != TvTrackInfo.TYPE_AUDIO in createComparator()
93 || rhs.getAudioChannelCount() == channelCount; in createComparator()
95 return Boolean.compare(lhs.getId().equals(id), rhs.getId().equals(id)); in createComparator()
99 return Integer.compare(lhs.getAudioChannelCount(), rhs.getAudioChannelCount()); in createComparator()
DTvInputManagerHelper.java724 public int compare(TvInputInfo lhs, TvInputInfo rhs) { in compare() argument
725 if (mInputManager.isPartnerInput(lhs) != mInputManager.isPartnerInput(rhs)) { in compare()
729 mInputManager.loadLabel(lhs), mInputManager.loadLabel(rhs)); in compare()
749 public int compare(TvInputInfo lhs, TvInputInfo rhs) { in compare() argument
751 return (rhs == null) ? 0 : 1; in compare()
753 if (rhs == null) { in compare()
761 (mTvInputManagerHelper.getInputState(rhs) in compare()
768 int priorityR = getPriority(rhs); in compare()
774 && rhs.getType() == TvInputInfo.TYPE_TUNER) { in compare()
776 boolean isPhysicalR = mTvInputManagerHelper.isInputPhysicalTuner(rhs); in compare()
[all …]
/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()
57 ChannelNumber rhsNumber = parseChannelNumber(rhs); in equivalent()
158 public static int compare(String lhs, String rhs) { in compare() argument
160 ChannelNumber rhsNumber = parseChannelNumber(rhs); in compare()
163 return StringUtils.compare(lhs, rhs); in compare()
DTvInputNewComparator.java35 public int compare(TvInputInfo lhs, TvInputInfo rhs) { in compare() argument
37 boolean rhsIsNewInput = mSetupUtils.isNewInput(rhs.getId()); in compare()
45 boolean rhsSetupDone = mSetupUtils.isSetupDone(rhs.getId()); in compare()
51 return mInputManager.getDefaultTvInputInfoComparator().compare(lhs, rhs); in compare()
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DComparableTester.java62 List<T> rhs = listOfGroups.get(j); in test() local
63 assertOrder(i, j, currentGroup, rhs); in test()
122 for (T rhs : 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) {
193 double rhsWeight = Math.max(rhs.mRunWeight, rhs.mBgWeight);
205 public int compare(ProcStatsPackageEntry lhs, ProcStatsPackageEntry rhs) {
206 double rhsMax = Math.max(rhs.mMaxBgMem, rhs.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) {
153 if (rhs.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) {
193 double rhsWeight = Math.max(rhs.mRunWeight, rhs.mBgWeight);
205 public int compare(ProcStatsPackageEntry lhs, ProcStatsPackageEntry rhs) {
206 double rhsMax = Math.max(rhs.mMaxBgMem, rhs.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) {
153 if (rhs.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/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.java212 final String rhs = sortKey[mid]; in binarySort() local
215 compare = Shared.compareToIgnoreCaseNullable(lhs, rhs); in binarySort()
218 compare = -Shared.compareToIgnoreCaseNullable(lhs, rhs); in binarySort()
293 final long rhs = sortKey[mid]; in binarySort() local
296 compare = Long.compare(lhs, rhs); in binarySort()
299 compare = -Long.compare(lhs, rhs); in binarySort()
/packages/apps/TV/src/com/android/tv/data/api/
DBaseProgram.java129 public int compare(BaseProgram lhs, BaseProgram rhs) { in compare() argument
130 if (lhs == rhs) { in compare()
133 int seasonNumberCompare = numberCompare(lhs.getSeasonNumber(), rhs.getSeasonNumber()); in compare()
137 return numberCompare(lhs.getEpisodeNumber(), rhs.getEpisodeNumber()); in compare()

1234