Searched refs:compare (Results 1 - 25 of 344) sorted by relevance

1234567891011>>

/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
H A DObjectUtilsTest.java24 assertEquals(0, ObjectUtils.compare(null, null));
25 assertEquals(1, ObjectUtils.compare("a", null));
26 assertEquals(-1, ObjectUtils.compare(null, "a"));
28 assertEquals(0, ObjectUtils.compare("a", "a"));
30 assertEquals(-1, ObjectUtils.compare("a", "b"));
31 assertEquals(1, ObjectUtils.compare("b", "a"));
/frameworks/base/tools/aapt2/
H A DLocale.h63 inline int compare(const LocaleValue& other) const;
87 int LocaleValue::compare(const LocaleValue& other) const { function in class:aapt::LocaleValue
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;
H A DConfigDescription.h155 return compare(o) < 0;
159 return compare(o) <= 0;
163 return compare(o) == 0;
167 return compare(o) != 0;
171 return compare(o) >= 0;
175 return compare(o) > 0;
/frameworks/base/tools/split-select/
H A 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/tools/aapt/
H A 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; }
H A 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; }
/frameworks/base/libs/usb/src/com/android/future/usb/
H A DUsbAccessory.java98 private static boolean compare(String s1, String s2) { method in class:UsbAccessory
107 return (compare(mManufacturer, accessory.getManufacturer()) &&
108 compare(mModel, accessory.getModel()) &&
109 compare(mDescription, accessory.getDescription()) &&
110 compare(mVersion, accessory.getVersion()) &&
111 compare(mUri, accessory.getUri()) &&
112 compare(mSerial, accessory.getSerial()));
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/vo/
H A DCoordinates.java30 if (Double.compare(that.lat, lat) != 0) return false;
31 return Double.compare(that.lng, lng) == 0;
/frameworks/base/libs/hwui/
H A DRenderBufferCache.h88 static int compare(const RenderBufferEntry& lhs, const RenderBufferEntry& rhs);
90 bool operator==(const RenderBufferEntry& other) const { return compare(*this, other) == 0; }
92 bool operator!=(const RenderBufferEntry& other) const { return compare(*this, other) != 0; }
95 return RenderBufferEntry::compare(*this, other) < 0;
H A DPatchCache.h100 static int compare(const PatchDescription& lhs, const PatchDescription& rhs);
102 bool operator==(const PatchDescription& other) const { return compare(*this, other) == 0; }
104 bool operator!=(const PatchDescription& other) const { return compare(*this, other) != 0; }
108 return PatchDescription::compare(lhs, rhs) < 0;
112 return PatchDescription::compare(lhs, rhs);
H A DTextDropShadowCache.h65 static int compare(const ShadowText& lhs, const ShadowText& rhs);
67 bool operator==(const ShadowText& other) const { return compare(*this, other) == 0; }
69 bool operator!=(const ShadowText& other) const { return compare(*this, other) != 0; }
100 return ShadowText::compare(lhs, rhs) < 0;
104 return ShadowText::compare(lhs, rhs);
/frameworks/base/services/core/java/com/android/server/notification/
H A DNotificationComparator.java49 public int compare(NotificationRecord left, NotificationRecord right) { method in class:NotificationComparator
55 return -1 * Boolean.compare(leftImportantColorized, rightImportantColorized);
64 return -1 * Boolean.compare(leftImportantOngoing, rightImportantOngoing);
70 return -1 * Boolean.compare(leftMessaging, rightMessaging);
77 Float.compare(left.getContactAffinity(), right.getContactAffinity());
86 return -1 * Boolean.compare(leftPeople, rightPeople);
93 return -1 * Integer.compare(leftImportance, rightImportance);
106 return -1 * Integer.compare(leftPackagePriority, rightPackagePriority);
113 return -1 * Integer.compare(leftPriority, rightPriority);
117 return -1 * Long.compare(lef
[all...]
H A DGlobalSortKeyComparator.java29 public int compare(NotificationRecord left, NotificationRecord right) { method in class:GlobalSortKeyComparator
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
H A DArrayMapTests.java111 private static boolean compare(Object v1, Object v2) { method in class:ArrayMapTests
131 if (!compare(expValue, gotValue)) {
142 if (!compare(expValue, gotValue)) {
235 if (!compare(entry, realEntry)) {
254 if (!compare(realValue, value)) {
261 if (!compare(realValue, value)) {
275 if (!compare(realValue, value)) {
289 if (!compare(realValue, value)) {
366 if (!compare(oldHash, oldArray)) {
429 if (!compare(mapCop
[all...]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DPhoneNumberUtilsTest.java195 assertTrue(PhoneNumberUtils.compare(null, null));
196 assertFalse(PhoneNumberUtils.compare(null, "123"));
197 assertFalse(PhoneNumberUtils.compare("123", null));
296 assertFalse(PhoneNumberUtils.compare("", ""));
298 assertTrue(PhoneNumberUtils.compare("911", "911"));
299 assertFalse(PhoneNumberUtils.compare("911", "18005550911"));
300 assertTrue(PhoneNumberUtils.compare("5555", "5555"));
301 assertFalse(PhoneNumberUtils.compare("5555", "180055555555"));
303 assertTrue(PhoneNumberUtils.compare("+17005554141", "+17005554141"));
304 assertTrue(PhoneNumberUtils.compare("
[all...]
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/writer/
H A DEntityDeleteComparator.kt27 override fun compare(lhs: Entity, rhs: Entity): Int {
/frameworks/av/include/media/
H A DStringArray.h49 void sort(int (*compare)(const void*, const void*));
/frameworks/av/media/libmedia/include/media/
H A DStringArray.h49 void sort(int (*compare)(const void*, const void*));
/frameworks/base/core/java/android/hardware/usb/
H A DUsbAccessory.java154 private static boolean compare(String s1, String s2) { method in class:UsbAccessory
163 return (compare(mManufacturer, accessory.getManufacturer()) &&
164 compare(mModel, accessory.getModel()) &&
165 compare(mDescription, accessory.getDescription()) &&
166 compare(mVersion, accessory.getVersion()) &&
167 compare(mUri, accessory.getUri()) &&
168 compare(mSerial, accessory.getSerial()));
/frameworks/base/core/java/com/android/internal/util/
H A DObjectUtils.java32 public static <T extends Comparable> int compare(@Nullable T a, @Nullable T b) { method in class:ObjectUtils
/frameworks/base/libs/hwui/renderstate/
H A DOffscreenBufferPool.h139 static int compare(const Entry& lhs, const Entry& rhs);
141 bool operator==(const Entry& other) const { return compare(*this, other) == 0; }
143 bool operator!=(const Entry& other) const { return compare(*this, other) != 0; }
145 bool operator<(const Entry& other) const { return Entry::compare(*this, other) < 0; }
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/touch/
H A DOverScroll.java45 if (Float.compare(amount, 0) == 0) return 0;
/frameworks/compile/mclinker/include/mcld/ADT/
H A DStringEntry.h47 bool compare(const llvm::StringRef& pX) { return key().equals(pX); } function in class:mcld::StringEntry
49 bool compare(const llvm::StringRef& pX) const { return key().equals(pX); } function in class:mcld::StringEntry
90 bool compare(const llvm::StringRef pX) { return key().equals(pX); } function in class:mcld::StringEntry
92 bool compare(const llvm::StringRef pX) const { return key().equals(pX); } function in class:mcld::StringEntry
/frameworks/opt/colorpicker/src/com/android/colorpicker/
H A DHsvColorComparator.java29 public int compare(Integer lhs, Integer rhs) { method in class:HsvColorComparator
/frameworks/base/tools/aapt2/xml/
H A DXmlPullParser.h137 int compare(const Attribute& rhs) const;
277 inline int XmlPullParser::Attribute::compare(const Attribute& rhs) const { function in class:aapt::xml::XmlPullParser::Attribute
278 int cmp = namespace_uri.compare(rhs.namespace_uri);
280 return name.compare(rhs.name);
284 return compare(rhs) < 0;
288 return compare(rhs) == 0;
292 return compare(rhs) != 0;
303 int cmp = attr.namespace_uri.compare(
307 cmp = attr.name.compare(0, attr.name.size(), rhs.second.data(),

Completed in 2012 milliseconds

1234567891011>>