/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
H A D | ObjectUtilsTest.java | 24 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 D | Locale.h | 63 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 D | ConfigDescription.h | 155 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 D | SplitDescription.h | 34 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 D | ConfigDescription.h | 52 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 D | StringPool.h | 57 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 D | UsbAccessory.java | 98 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 D | Coordinates.java | 30 if (Double.compare(that.lat, lat) != 0) return false; 31 return Double.compare(that.lng, lng) == 0;
|
/frameworks/base/libs/hwui/ |
H A D | RenderBufferCache.h | 88 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 D | PatchCache.h | 100 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 D | TextDropShadowCache.h | 65 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 D | NotificationComparator.java | 49 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 D | GlobalSortKeyComparator.java | 29 public int compare(NotificationRecord left, NotificationRecord right) { method in class:GlobalSortKeyComparator
|
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
H A D | ArrayMapTests.java | 111 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 D | PhoneNumberUtilsTest.java | 195 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 D | EntityDeleteComparator.kt | 27 override fun compare(lhs: Entity, rhs: Entity): Int {
|
/frameworks/av/include/media/ |
H A D | StringArray.h | 49 void sort(int (*compare)(const void*, const void*));
|
/frameworks/av/media/libmedia/include/media/ |
H A D | StringArray.h | 49 void sort(int (*compare)(const void*, const void*));
|
/frameworks/base/core/java/android/hardware/usb/ |
H A D | UsbAccessory.java | 154 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 D | ObjectUtils.java | 32 public static <T extends Comparable> int compare(@Nullable T a, @Nullable T b) { method in class:ObjectUtils
|
/frameworks/base/libs/hwui/renderstate/ |
H A D | OffscreenBufferPool.h | 139 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 D | OverScroll.java | 45 if (Float.compare(amount, 0) == 0) return 0;
|
/frameworks/compile/mclinker/include/mcld/ADT/ |
H A D | StringEntry.h | 47 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 D | HsvColorComparator.java | 29 public int compare(Integer lhs, Integer rhs) { method in class:HsvColorComparator
|
/frameworks/base/tools/aapt2/xml/ |
H A D | XmlPullParser.h | 137 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(),
|