Home
last modified time | relevance | path

Searched refs:compare (Results 1 – 25 of 425) sorted by relevance

12345678910>>...17

/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/
DCollatorPerfTest.java46 COLLATOR.compare("abcde", "abcdf"); in timeCollatorPrimary()
47 COLLATOR.compare("abcde", "abcde"); in timeCollatorPrimary()
48 COLLATOR.compare("abcdf", "abcde"); in timeCollatorPrimary()
57 COLLATOR.compare("abcdÂ", "abcdÄ"); in timeCollatorSecondary()
58 COLLATOR.compare("abcdÂ", "abcdÂ"); in timeCollatorSecondary()
59 COLLATOR.compare("abcdÄ", "abcdÂ"); in timeCollatorSecondary()
68 COLLATOR.compare("abcdE", "abcde"); in timeCollatorTertiary()
69 COLLATOR.compare("abcde", "abcde"); in timeCollatorTertiary()
70 COLLATOR.compare("abcde", "abcdE"); in timeCollatorTertiary()
79 COLLATOR.compare("abcdȪ", "abcdȫ"); in timeCollatorIdentical()
[all …]
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DArrayMapTests.java111 private static boolean compare(Object v1, Object v2) { in compare() method in ArrayMapTests
131 if (!compare(expValue, gotValue)) { in compareMaps()
142 if (!compare(expValue, gotValue)) { in compareMaps()
235 if (!compare(entry, realEntry)) { in compareSets()
254 if (!compare(realValue, value)) { in validateArrayMap()
261 if (!compare(realValue, value)) { in validateArrayMap()
275 if (!compare(realValue, value)) { in validateArrayMap()
289 if (!compare(realValue, value)) { in validateArrayMap()
366 if (!compare(oldHash, oldArray)) { in run()
429 if (!compare(mapCopy, newMap)) { in run()
[all …]
/frameworks/base/libs/androidfw/include/androidfw/
DLocale.h63 inline int compare(const LocaleValue& other) const;
87 int LocaleValue::compare(const LocaleValue& other) const { in compare() function
92 return compare(o) < 0;
96 return compare(o) <= 0;
100 return compare(o) == 0;
104 return compare(o) != 0;
108 return compare(o) >= 0;
112 return compare(o) > 0;
DConfigDescription.h191 return compare(o) < 0;
195 return compare(o) <= 0;
199 return compare(o) == 0;
203 return compare(o) != 0;
207 return compare(o) >= 0;
211 return compare(o) > 0;
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DObjectUtilsTest.java31 assertEquals(0, ObjectUtils.compare(null, null)); in testCompare()
32 assertEquals(1, ObjectUtils.compare("a", null)); in testCompare()
33 assertEquals(-1, ObjectUtils.compare(null, "a")); in testCompare()
35 assertEquals(0, ObjectUtils.compare("a", "a")); in testCompare()
37 assertEquals(-1, ObjectUtils.compare("a", "b")); in testCompare()
38 assertEquals(1, ObjectUtils.compare("b", "a")); in testCompare()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationComparator.java57 public int compare(NotificationRecord left, NotificationRecord right) { in compare() method in NotificationComparator
65 return -1 * Boolean.compare(isLeftHighImportance, isRightHighImportance); in compare()
71 return -1 * Float.compare(left.getRankingScore(), right.getRankingScore()); in compare()
79 return -1 * Boolean.compare(leftImportantColorized, rightImportantColorized); in compare()
88 return -1 * Boolean.compare(leftImportantOngoing, rightImportantOngoing); in compare()
94 return -1 * Boolean.compare(leftMessaging, rightMessaging); in compare()
101 Float.compare(left.getContactAffinity(), right.getContactAffinity()); in compare()
110 return -1 * Boolean.compare(leftPeople, rightPeople); in compare()
116 return -1 * Boolean.compare(leftSystemMax, rightSystemMax); in compare()
121 return -1 * Integer.compare(leftImportance, rightImportance); in compare()
[all …]
DNotificationTimeComparator.java30 public int compare(NotificationRecord left, NotificationRecord right) { in compare() method in NotificationTimeComparator
32 return -1 * Long.compare(left.getRankingTimeMs(), right.getRankingTimeMs()); in compare()
/frameworks/base/tools/aapt/
DConfigDescription.h52 inline bool operator<(const ConfigDescription& o) const { return compare(o) < 0; }
53 inline bool operator<=(const ConfigDescription& o) const { return compare(o) <= 0; }
54 inline bool operator==(const ConfigDescription& o) const { return compare(o) == 0; }
55 inline bool operator!=(const ConfigDescription& o) const { return compare(o) != 0; }
56 inline bool operator>=(const ConfigDescription& o) const { return compare(o) >= 0; }
57 inline bool operator>(const ConfigDescription& o) const { return compare(o) > 0; }
DStringPool.h57 int compare(const entry& o) const;
59 inline bool operator<(const entry& o) const { return compare(o) < 0; }
60 inline bool operator<=(const entry& o) const { return compare(o) <= 0; }
61 inline bool operator==(const entry& o) const { return compare(o) == 0; }
62 inline bool operator!=(const entry& o) const { return compare(o) != 0; }
63 inline bool operator>=(const entry& o) const { return compare(o) >= 0; }
64 inline bool operator>(const entry& o) const { return compare(o) > 0; }
DAaptAssets.h81 int compare(const AaptLocaleValue& other) const { in compare() function
85 inline bool operator<(const AaptLocaleValue& o) const { return compare(o) < 0; }
86 inline bool operator<=(const AaptLocaleValue& o) const { return compare(o) <= 0; }
87 inline bool operator==(const AaptLocaleValue& o) const { return compare(o) == 0; }
88 inline bool operator!=(const AaptLocaleValue& o) const { return compare(o) != 0; }
89 inline bool operator>=(const AaptLocaleValue& o) const { return compare(o) >= 0; }
90 inline bool operator>(const AaptLocaleValue& o) const { return compare(o) > 0; }
112 inline int compare(const AaptGroupEntry& o) const { return mParams.compareLogical(o.mParams); } in compare() function
113 inline bool operator<(const AaptGroupEntry& o) const { return compare(o) < 0; }
114 inline bool operator<=(const AaptGroupEntry& o) const { return compare(o) <= 0; }
[all …]
/frameworks/base/core/java/android/os/vibrator/
DStepSegment.java65 return Float.compare(mAmplitude, other.mAmplitude) == 0 in equals()
66 && Float.compare(mFrequencyHz, other.mFrequencyHz) == 0 in equals()
107 if (Float.compare(mAmplitude, VibrationEffect.DEFAULT_AMPLITUDE) != 0) { in validate()
110 } else if (Float.compare(mFrequencyHz, 0) != 0) { in validate()
125 if (Float.compare(mAmplitude, VibrationEffect.DEFAULT_AMPLITUDE) != 0) { in resolve()
137 if (Float.compare(mAmplitude, VibrationEffect.DEFAULT_AMPLITUDE) == 0) { in scale()
141 if (Float.compare(newAmplitude, mAmplitude) == 0) { in scale()
151 if (Float.compare(mAmplitude, VibrationEffect.DEFAULT_AMPLITUDE) == 0) { in scaleLinearly()
155 if (Float.compare(newAmplitude, mAmplitude) == 0) { in scaleLinearly()
185 Float.compare(mFrequencyHz, 0) == 0 ? "" : " @ " + mFrequencyHz + "Hz"); in toDebugString()
DRampSegment.java69 return Float.compare(mStartAmplitude, other.mStartAmplitude) == 0 in equals()
70 && Float.compare(mEndAmplitude, other.mEndAmplitude) == 0 in equals()
71 && Float.compare(mStartFrequencyHz, other.mStartFrequencyHz) == 0 in equals()
72 && Float.compare(mEndFrequencyHz, other.mEndFrequencyHz) == 0 in equals()
150 if (Float.compare(mStartAmplitude, newStartAmplitude) == 0 in scale()
151 && Float.compare(mEndAmplitude, newEndAmplitude) == 0) { in scale()
165 if (Float.compare(mStartAmplitude, newStartAmplitude) == 0 in scaleLinearly()
166 && Float.compare(mEndAmplitude, newEndAmplitude) == 0) { in scaleLinearly()
203 Float.compare(mStartFrequencyHz, 0) == 0 ? "" : " @ " + mStartFrequencyHz + "Hz", in toDebugString()
205 Float.compare(mEndFrequencyHz, 0) == 0 ? "" : " @ " + mEndFrequencyHz + "Hz"); in toDebugString()
/frameworks/base/libs/usb/src/com/android/future/usb/
DUsbAccessory.java98 private static boolean compare(String s1, String s2) { in compare() method in UsbAccessory
107 return (compare(mManufacturer, accessory.getManufacturer()) && in equals()
108 compare(mModel, accessory.getModel()) && in equals()
109 compare(mDescription, accessory.getDescription()) && in equals()
110 compare(mVersion, accessory.getVersion()) && in equals()
111 compare(mUri, accessory.getUri()) && in equals()
112 compare(mSerial, accessory.getSerial())); in equals()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneNumberUtilsTest.java219 assertTrue(PhoneNumberUtils.compare(null, null)); in testExtractNetworkPortion()
220 assertFalse(PhoneNumberUtils.compare(null, "123")); in testExtractNetworkPortion()
221 assertFalse(PhoneNumberUtils.compare("123", null)); in testExtractNetworkPortion()
326 assertFalse(PhoneNumberUtils.compare("", "")); in testCompare()
328 assertTrue(PhoneNumberUtils.compare("911", "911")); in testCompare()
329 assertFalse(PhoneNumberUtils.compare("911", "18005550911")); in testCompare()
330 assertTrue(PhoneNumberUtils.compare("5555", "5555")); in testCompare()
331 assertFalse(PhoneNumberUtils.compare("5555", "180055555555")); in testCompare()
333 assertTrue(PhoneNumberUtils.compare("+17005554141", "+17005554141")); in testCompare()
334 assertTrue(PhoneNumberUtils.compare("+17005554141", "+1 (700).555-4141")); in testCompare()
[all …]
DRadioAccessFamilyTest.java37 assertEquals(0, RadioAccessFamily.compare( in testCompareSameFamily()
43 assertTrue(0 > RadioAccessFamily.compare( in testCompareSameFamily()
54 assertTrue(0 < RadioAccessFamily.compare( in testComparedGreatestUnique()
/frameworks/base/tools/split-select/
DSplitDescription.h34 int compare(const SplitDescription& rhs) const;
51 return compare(rhs) < 0;
55 return compare(rhs) == 0;
59 return compare(rhs) != 0;
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DAbstractResolverComparatorTest.java54 assertEquals("FixedAtTop ranks over pinned", -1, comparator.compare(r1, r2)); in testPositionFixed()
55 assertEquals("Pinned ranks under fixedAtTop", 1, comparator.compare(r2, r1)); in testPositionFixed()
72 assertEquals("Pinned ranks over unpinned", -1, comparator.compare(r1, r2)); in testPinned()
73 assertEquals("Unpinned ranks under pinned", 1, comparator.compare(r2, r1)); in testPinned()
97 assertEquals("Both pinned should rank alphabetically", -1, comparator.compare(r1, r2)); in testBothPinned()
108 int compare(ResolveInfo lhs, ResolveInfo rhs) { in getTestComparator()
/frameworks/base/tools/aapt2/xml/
DXmlPullParser.h144 int compare(const Attribute& rhs) const;
287 inline int XmlPullParser::Attribute::compare(const Attribute& rhs) const { in compare() function
288 int cmp = namespace_uri.compare(rhs.namespace_uri); in compare()
290 return name.compare(rhs.name); in compare()
294 return compare(rhs) < 0;
298 return compare(rhs) == 0;
302 return compare(rhs) != 0;
313 int cmp = attr.namespace_uri.compare( in FindAttribute()
317 cmp = attr.name.compare(0, attr.name.size(), rhs.second.data(), in FindAttribute()
/frameworks/base/core/java/android/hardware/usb/
DUsbAccessory.java183 private static boolean compare(String s1, String s2) { in compare() method in UsbAccessory
192 return (compare(mManufacturer, accessory.getManufacturer()) && in equals()
193 compare(mModel, accessory.getModel()) && in equals()
194 compare(mDescription, accessory.getDescription()) && in equals()
195 compare(mVersion, accessory.getVersion()) && in equals()
196 compare(mUri, accessory.getUri()) && in equals()
197 compare(getSerial(), accessory.getSerial())); in equals()
/frameworks/base/graphics/java/android/graphics/drawable/shapes/
DPathShape.java92 return Float.compare(pathShape.mStdWidth, mStdWidth) == 0 in equals()
93 && Float.compare(pathShape.mStdHeight, mStdHeight) == 0 in equals()
94 && Float.compare(pathShape.mScaleX, mScaleX) == 0 in equals()
95 && Float.compare(pathShape.mScaleY, mScaleY) == 0 in equals()
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/planner/
DLayerStateTest.cpp188 EXPECT_FALSE(mLayerState->compare(*otherLayerState)); in TEST_F()
189 EXPECT_FALSE(otherLayerState->compare(*mLayerState)); in TEST_F()
233 EXPECT_FALSE(mLayerState->compare(*otherLayerState)); in TEST_F()
234 EXPECT_FALSE(otherLayerState->compare(*mLayerState)); in TEST_F()
284 EXPECT_TRUE(mLayerState->compare(*otherLayerState)); in TEST_F()
285 EXPECT_TRUE(otherLayerState->compare(*mLayerState)); in TEST_F()
357 EXPECT_TRUE(mLayerState->compare(*otherLayerState)); in TEST_F()
358 EXPECT_TRUE(otherLayerState->compare(*mLayerState)); in TEST_F()
446 EXPECT_FALSE(mLayerState->compare(*otherLayerState)); in TEST_F()
447 EXPECT_FALSE(otherLayerState->compare(*mLayerState)); in TEST_F()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DCacheOomRanker.java444 public int compare(RankedProcessRecord o1, RankedProcessRecord o2) { in compare() method in CacheOomRanker.ScoreComparator
445 return Float.compare(o1.score, o2.score); in compare()
451 public int compare(RankedProcessRecord o1, RankedProcessRecord o2) { in compare() method in CacheOomRanker.LastActivityTimeComparator
452 return Long.compare(o1.proc.getLastActivityTime(), o2.proc.getLastActivityTime()); in compare()
458 public int compare(RankedProcessRecord o1, RankedProcessRecord o2) { in compare() method in CacheOomRanker.CacheUseComparator
459 return Long.compare(o1.proc.mState.getCacheOomRankerUseCount(), in compare()
466 public int compare(RankedProcessRecord o1, RankedProcessRecord o2) { in compare() method in CacheOomRanker.RssComparator
468 return Long.compare( in compare()
476 public int compare(RankedProcessRecord o1, RankedProcessRecord o2) { in compare() method in CacheOomRanker.LastRssComparator
478 return Long.compare(o2.proc.mProfile.getLastRss(), o1.proc.mProfile.getLastRss()); in compare()
/frameworks/compile/mclinker/include/mcld/ADT/
DStringEntry.h47 bool compare(const llvm::StringRef& pX) { return key().equals(pX); } in compare() function
49 bool compare(const llvm::StringRef& pX) const { return key().equals(pX); } in compare() function
90 bool compare(const llvm::StringRef pX) { return key().equals(pX); } in compare() function
92 bool compare(const llvm::StringRef pX) const { return key().equals(pX); } in compare() function
/frameworks/base/tools/aapt2/
DResource.h92 int compare(const ResourceNamedType& other) const;
138 int compare(const ResourceName& other) const;
351 inline int ResourceNamedType::compare(const ResourceNamedType& other) const { in compare() function
354 cmp = name.compare(other.name); in compare()
363 return lhs.compare(rhs) < 0;
367 return lhs.compare(rhs) == 0;
371 return lhs.compare(rhs) != 0;
432 inline int ResourceName::compare(const ResourceName& other) const { in compare() function
433 int cmp = package.compare(other.package); in compare()
435 cmp = type.compare(other.type); in compare()
[all …]
/frameworks/base/location/java/android/location/
DGnssReflectingPlane.java139 return Double.compare(this.mLatitudeDegrees, that.mLatitudeDegrees) == 0 in equals()
140 && Double.compare(this.mLongitudeDegrees, that.mLongitudeDegrees) == 0 in equals()
141 && Double.compare(this.mAltitudeMeters, that.mAltitudeMeters) == 0 in equals()
142 && Double.compare(this.mAzimuthDegrees, that.mAzimuthDegrees) == 0; in equals()

12345678910>>...17