Home
last modified time | relevance | path

Searched refs:lhs (Results 1 – 25 of 96) sorted by relevance

1234

/aosp14/frameworks/base/tools/aapt2/
H A DResource.h299 return lhs.id < rhs.id;
404 return std::tie(lhs.type, lhs.name) < std::tie(rhs.type, rhs.name);
408 return std::tie(lhs.type, lhs.name) == std::tie(rhs.type, rhs.name);
412 return std::tie(lhs.type, lhs.name) != std::tie(rhs.type, rhs.name);
446 return std::tie(lhs.package, lhs.type, lhs.entry) <
451 return std::tie(lhs.package, lhs.type, lhs.entry) ==
456 return std::tie(lhs.package, lhs.type, lhs.entry) !=
497 return std::tie(lhs.package, lhs.type, lhs.entry) <
502 return std::tie(lhs.package, lhs.type, lhs.entry) ==
507 return std::tie(lhs.package, lhs.type, lhs.entry) !=
[all …]
H A DResourceTable.cpp48 return lhs->named_type < rhs; in less_than_type()
53 return lhs->name.compare(0, lhs->name.size(), rhs.data(), rhs.size()) < 0; in less_than_struct_with_name()
58 return rhs->name.compare(0, rhs->name.size(), lhs.data(), lhs.size()) > 0; in greater_than_struct_with_name()
64 return less_than_struct_with_name<T>(lhs, rhs); in operator ()()
74 if (lhs.id != rhs.second) { in less_than_struct_with_name_and_id()
75 return lhs.id < rhs.second; in less_than_struct_with_name_and_id()
77 return lhs.name.compare(0, lhs.name.size(), rhs.first.data(), rhs.first.size()) < 0; in less_than_struct_with_name_and_id()
95 int cmp = lhs->config.compare(*rhs.config); in lt_config_key_ref()
314 return Comparer::operator()(lhs, rhs); in LowerBound()
333 lhs, std::make_pair(rhs.name, rhs.id)); in operator ()()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/display/color/
H A DDisplayWhiteBalanceTintController.java187 private static float[] mul3x3(@NonNull @Size(9) float[] lhs, @NonNull @Size(9) float[] rhs) { in mul3x3() argument
189 r[0] = lhs[0] * rhs[0] + lhs[3] * rhs[1] + lhs[6] * rhs[2]; in mul3x3()
190 r[1] = lhs[1] * rhs[0] + lhs[4] * rhs[1] + lhs[7] * rhs[2]; in mul3x3()
191 r[2] = lhs[2] * rhs[0] + lhs[5] * rhs[1] + lhs[8] * rhs[2]; in mul3x3()
192 r[3] = lhs[0] * rhs[3] + lhs[3] * rhs[4] + lhs[6] * rhs[5]; in mul3x3()
193 r[4] = lhs[1] * rhs[3] + lhs[4] * rhs[4] + lhs[7] * rhs[5]; in mul3x3()
194 r[5] = lhs[2] * rhs[3] + lhs[5] * rhs[4] + lhs[8] * rhs[5]; in mul3x3()
195 r[6] = lhs[0] * rhs[6] + lhs[3] * rhs[7] + lhs[6] * rhs[8]; in mul3x3()
196 r[7] = lhs[1] * rhs[6] + lhs[4] * rhs[7] + lhs[7] * rhs[8]; in mul3x3()
197 r[8] = lhs[2] * rhs[6] + lhs[5] * rhs[7] + lhs[8] * rhs[8]; in mul3x3()
/aosp14/frameworks/base/tools/aapt2/configuration/
H A DConfigurationParser.h61 inline friend bool operator==(const Locale& lhs, const Locale& rhs) {
62 return lhs.lang == rhs.lang && lhs.region == rhs.region;
68 inline friend bool operator==(const AndroidManifest& lhs, const AndroidManifest& rhs) {
86 inline friend bool operator==(const AndroidSdk& lhs, const AndroidSdk& rhs) {
87 return lhs.min_sdk_version == rhs.min_sdk_version &&
88 lhs.target_sdk_version == rhs.target_sdk_version &&
89 lhs.max_sdk_version == rhs.max_sdk_version &&
90 lhs.manifest == rhs.manifest;
102 inline friend bool operator==(const GlTexture& lhs, const GlTexture& rhs) {
103 return lhs.name == rhs.name && lhs.texture_paths == rhs.texture_paths;
H A DConfigurationParser.internal.h88 ComparisonChain& Add(const Group<T>& groups, const std::optional<std::string>& lhs, in Add() argument
90 return Add(GetGroupOrder(groups, lhs), GetGroupOrder(groups, rhs)); in Add()
97 ComparisonChain& Add(int lhs, int rhs) { in Add() argument
99 has_result_ = (lhs != rhs); in Add()
100 result_ = (lhs < rhs); in Add()
180 bool operator()(const ConfiguredArtifact& lhs, const ConfiguredArtifact& rhs) { in operator()
186 .Add(GetMinSdk(lhs), GetMinSdk(rhs)) in operator()
190 .Add(abi_groups, lhs.abi_group, rhs.abi_group) in operator()
192 .Add(screen_density_groups, lhs.screen_density_group, rhs.screen_density_group) in operator()
193 .Add(locale_groups, lhs.locale_group, rhs.locale_group) in operator()
[all …]
H A DConfigurationParser_test.cpp35 bool operator==(const ConfiguredArtifact& lhs, const ConfiguredArtifact& rhs) { in operator ==() argument
36 return lhs.name == rhs.name && lhs.abi_group == rhs.abi_group && in operator ==()
37 lhs.screen_density_group == rhs.screen_density_group && in operator ==()
38 lhs.locale_group == rhs.locale_group && lhs.android_sdk == rhs.android_sdk && in operator ==()
39 lhs.device_feature_group == rhs.device_feature_group && in operator ==()
40 lhs.gl_texture_group == rhs.gl_texture_group; in operator ==()
/aosp14/frameworks/base/media/native/midi/
H A DMidiDeviceInfo.cpp122 static inline bool areVectorsEqual(const Vector<String16>& lhs, const Vector<String16>& rhs) { in areVectorsEqual() argument
123 if (lhs.size() != rhs.size()) return false; in areVectorsEqual()
124 for (size_t i = 0; i < lhs.size(); ++i) { in areVectorsEqual()
125 if (lhs[i] != rhs[i]) return false; in areVectorsEqual()
130 bool operator==(const MidiDeviceInfo& lhs, const MidiDeviceInfo& rhs) { in operator ==() argument
131 return (lhs.mType == rhs.mType && lhs.mId == rhs.mId && in operator ==()
132 areVectorsEqual(lhs.mInputPortNames, rhs.mInputPortNames) && in operator ==()
133 areVectorsEqual(lhs.mOutputPortNames, rhs.mOutputPortNames) && in operator ==()
134 lhs.mProperties == rhs.mProperties && in operator ==()
135 lhs.mIsPrivate == rhs.mIsPrivate && in operator ==()
[all …]
H A DMidiDeviceInfo.h72 friend bool operator==(const MidiDeviceInfo& lhs, const MidiDeviceInfo& rhs);
73 friend bool operator!=(const MidiDeviceInfo& lhs, const MidiDeviceInfo& rhs) {
74 return !(lhs == rhs);
/aosp14/frameworks/base/libs/androidfw/include/androidfw/
H A DSource.h71 inline bool operator==(const Source& lhs, const Source& rhs) {
72 return lhs.path == rhs.path && lhs.line == rhs.line;
75 inline bool operator<(const Source& lhs, const Source& rhs) {
76 int cmp = lhs.path.compare(rhs.path);
79 if (lhs.line) {
81 return lhs.line.value() < rhs.line.value();
/aosp14/frameworks/base/tools/aapt2/java/
H A DProguardRules.h102 inline bool operator==(const UsageLocation& lhs, const UsageLocation& rhs) {
105 return lhs.name == rhs.name;
108 inline bool operator<(const UsageLocation& lhs, const UsageLocation& rhs) {
109 return lhs.name.compare(rhs.name) < 0;
116 inline bool operator<(const NameAndSignature& lhs, const NameAndSignature& rhs) {
117 if (lhs.name < rhs.name) {
120 if (lhs.name == rhs.name) {
121 return lhs.signature < rhs.signature;
/aosp14/frameworks/base/services/people/java/com/android/server/people/data/
H A DAggregateEventHistoryImpl.java80 private List<Event> combineEventLists(List<Event> lhs, List<Event> rhs) { in combineEventLists() argument
83 while (i < lhs.size() && j < rhs.size()) { in combineEventLists()
84 if (lhs.get(i).getTimestamp() < rhs.get(j).getTimestamp()) { in combineEventLists()
85 results.add(lhs.get(i++)); in combineEventLists()
90 if (i < lhs.size()) { in combineEventLists()
91 results.addAll(lhs.subList(i, lhs.size())); in combineEventLists()
/aosp14/frameworks/base/core/java/com/android/internal/app/
H A DLocaleHelper.java250 public int compare(LocaleStore.LocaleInfo lhs, LocaleStore.LocaleInfo rhs) { in compare() argument
253 if (lhs.isAppCurrentLocale() || rhs.isAppCurrentLocale()) { in compare()
254 return lhs.isAppCurrentLocale() ? -1 : 1; in compare()
255 } else if (lhs.isSystemLocale() || rhs.isSystemLocale()) { in compare()
256 return lhs.isSystemLocale() ? -1 : 1; in compare()
257 } else if (lhs.isSuggested() == rhs.isSuggested()) { in compare()
260 removePrefixForCompare(lhs.getLocale(), lhs.getLabel(mCountryMode)), in compare()
264 return lhs.isSuggested() ? -1 : 1; in compare()
H A DAppPredictionServiceResolverComparator.java100 int compare(ResolveInfo lhs, ResolveInfo rhs) { in compare() argument
101 return mComparatorModel.getComparator().compare(lhs, rhs); in compare()
229 return (lhs, rhs) -> comparator.compare(lhs, rhs); in adaptLegacyResolverComparatorToComparatorModel()
263 return (lhs, rhs) -> {
264 Integer lhsRank = mTargetRanks.get(new ComponentName(lhs.activityInfo.packageName,
265 lhs.activityInfo.name));
H A DAbstractResolverComparator.java180 final ResolveInfo lhs = lhsp.getResolveInfoAt(0); in compare() local
189 if (lhs.targetUserId != UserHandle.USER_CURRENT) { in compare()
197 final boolean lhsSpecific = ResolverActivity.isSpecificUriMatch(lhs.match); in compare()
217 return compare(lhs, rhs); in compare()
226 abstract int compare(ResolveInfo lhs, ResolveInfo rhs); in compare() argument
/aosp14/frameworks/base/tests/Camera2Tests/CameraToo/tests/src/com/example/android/camera2/cameratoo/
H A DCameraTooTest.java43 private <T> void assertComparatorEq(T lhs, T rhs, Comparator<T> rel) { in assertComparatorEq() argument
44 assertEquals(String.format("%s should be equal to %s", lhs, rhs), rel.compare(lhs, rhs), 0); in assertComparatorEq()
45 assertEquals(String.format("%s should be equal to %s (reverse check)", lhs, rhs), in assertComparatorEq()
46 rel.compare(rhs, lhs), 0); in assertComparatorEq()
49 private <T> void assertComparatorLt(T lhs, T rhs, Comparator<T> rel) { in assertComparatorLt() argument
50 assertTrue(String.format("%s should be less than %s", lhs, rhs), rel.compare(lhs, rhs) < 0); in assertComparatorLt()
51 assertTrue(String.format("%s should be less than %s (reverse check)", lhs, rhs), in assertComparatorLt()
52 rel.compare(rhs, lhs) > 0); in assertComparatorLt()
/aosp14/frameworks/base/graphics/java/android/graphics/
H A DColorSpace.java1856 r[0] = lhs[0] * rhs[0] + lhs[3] * rhs[1] + lhs[6] * rhs[2];
1857 r[1] = lhs[1] * rhs[0] + lhs[4] * rhs[1] + lhs[7] * rhs[2];
1858 r[2] = lhs[2] * rhs[0] + lhs[5] * rhs[1] + lhs[8] * rhs[2];
1859 r[3] = lhs[0] * rhs[3] + lhs[3] * rhs[4] + lhs[6] * rhs[5];
1860 r[4] = lhs[1] * rhs[3] + lhs[4] * rhs[4] + lhs[7] * rhs[5];
1883 rhs[0] = lhs[0] * r0 + lhs[3] * r1 + lhs[6] * r2;
1884 rhs[1] = lhs[1] * r0 + lhs[4] * r1 + lhs[7] * r2;
1885 rhs[2] = lhs[2] * r0 + lhs[5] * r1 + lhs[8] * r2;
1903 lhs[0] * rhs[0], lhs[1] * rhs[1], lhs[2] * rhs[2],
1904 lhs[0] * rhs[3], lhs[1] * rhs[4], lhs[2] * rhs[5],
[all …]
/aosp14/system/core/property_service/libpropertyinfoserializer/
H A Dtrie_serializer.cpp68 [](const auto& lhs, const auto& rhs) { return lhs.name.size() > rhs.name.size(); }); in WriteTrieNode() argument
84 [](const auto& lhs, const auto& rhs) { return lhs.name < rhs.name; }); in WriteTrieNode() argument
100 [](const auto& lhs, const auto& rhs) { return lhs.name() < rhs.name(); }); in WriteTrieNode() argument
/aosp14/frameworks/base/opengl/java/android/opengl/
H A DMatrix.java121 if (lhs == null) { in multiplyMM()
139 if (lhs.length < lhsOffset + 16) { in multiplyMM()
152 float ri0 = lhs[ 0 + lhsOffset ] * rhs_i0; in multiplyMM()
153 float ri1 = lhs[ 1 + lhsOffset ] * rhs_i0; in multiplyMM()
154 float ri2 = lhs[ 2 + lhsOffset ] * rhs_i0; in multiplyMM()
155 float ri3 = lhs[ 3 + lhsOffset ] * rhs_i0; in multiplyMM()
158 ri0 += lhs[ 4*j + 0 + lhsOffset ] * rhs_ij; in multiplyMM()
177 float ri0 = lhs[ 0 + lhsOffset ] * rhs_i0; in multiplyMM()
178 float ri1 = lhs[ 1 + lhsOffset ] * rhs_i0; in multiplyMM()
179 float ri2 = lhs[ 2 + lhsOffset ] * rhs_i0; in multiplyMM()
[all …]
/aosp14/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DCameraUtils.java75 public int compare(Camera.Size lhs, Camera.Size rhs) { in compare() argument
76 return compareSizes(lhs.width, lhs.height, rhs.width, rhs.height); in compare()
/aosp14/system/core/fs_mgr/tests/
H A Dfs_mgr_test.cpp189 return lhs.wait == rhs.wait && in CompareFlags()
190 lhs.check == rhs.check && in CompareFlags()
191 lhs.crypt == rhs.crypt && in CompareFlags()
196 lhs.no_trim == rhs.no_trim && in CompareFlags()
198 lhs.formattable == rhs.formattable && in CompareFlags()
200 lhs.late_mount == rhs.late_mount && in CompareFlags()
201 lhs.no_fail == rhs.no_fail && in CompareFlags()
202 lhs.quota == rhs.quota && in CompareFlags()
203 lhs.avb == rhs.avb && in CompareFlags()
204 lhs.logical == rhs.logical && in CompareFlags()
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/widget/
H A DGapWorker.java185 public int compare(Task lhs, Task rhs) {
187 if ((lhs.view == null) != (rhs.view == null)) {
188 return lhs.view == null ? 1 : -1;
192 if (lhs.immediate != rhs.immediate) {
193 return lhs.immediate ? -1 : 1;
197 int deltaViewVelocity = rhs.viewVelocity - lhs.viewVelocity;
201 int deltaDistanceToItem = lhs.distanceToItem - rhs.distanceToItem;
/aosp14/frameworks/base/test-runner/src/android/test/
H A DMoreAsserts.java476 String message, Object lhs, Object rhs, boolean expectedResult) { in checkEqualsAndHashCodeMethods() argument
478 if ((lhs == null) && (rhs == null)) { in checkEqualsAndHashCodeMethods()
485 if ((lhs == null) || (rhs == null)) { in checkEqualsAndHashCodeMethods()
491 if (lhs != null) { in checkEqualsAndHashCodeMethods()
492 Assert.assertEquals(message, expectedResult, lhs.equals(rhs)); in checkEqualsAndHashCodeMethods()
495 Assert.assertEquals(message, expectedResult, rhs.equals(lhs)); in checkEqualsAndHashCodeMethods()
504 Assert.assertTrue(hashMessage, lhs.hashCode() == rhs.hashCode()); in checkEqualsAndHashCodeMethods()
513 public static void checkEqualsAndHashCodeMethods(Object lhs, Object rhs, in checkEqualsAndHashCodeMethods() argument
515 checkEqualsAndHashCodeMethods((String) null, lhs, rhs, expectedResult); in checkEqualsAndHashCodeMethods()
/aosp14/frameworks/base/rs/java/android/renderscript/
H A DMatrix2f.java137 public void loadMultiply(Matrix2f lhs, Matrix2f rhs) { in loadMultiply() argument
143 ri0 += lhs.get(j,0) * rhs_ij; in loadMultiply()
144 ri1 += lhs.get(j,1) * rhs_ij; in loadMultiply()
H A DMatrix3f.java211 public void loadMultiply(Matrix3f lhs, Matrix3f rhs) { in loadMultiply() argument
218 ri0 += lhs.get(j,0) * rhs_ij; in loadMultiply()
219 ri1 += lhs.get(j,1) * rhs_ij; in loadMultiply()
220 ri2 += lhs.get(j,2) * rhs_ij; in loadMultiply()
/aosp14/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
H A DMediaSizeUtils.java143 public int compare(MediaSize lhs, MediaSize rhs) { in compare() argument
144 int lhsStandard = getStandardForMediaSize(mContext, lhs); in compare()
161 return getLabel(mContext, lhs).compareTo(getLabel(mContext, rhs)); in compare()

1234