/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | NotificationComparator.java | 27 public int compare(NotificationRecord left, NotificationRecord right) { method in class:NotificationComparator 32 return -1 * Integer.compare(leftImportance, rightImportance); 40 return -1 * Integer.compare(leftPackagePriority, rightPackagePriority); 47 return -1 * Integer.compare(leftPriority, rightPriority); 54 return -1 * Float.compare(leftPeople, rightPeople); 58 return -1 * Long.compare(left.getRankingTimeMs(), right.getRankingTimeMs());
|
H A D | GlobalSortKeyComparator.java | 25 public int compare(NotificationRecord left, NotificationRecord right) { method in class:GlobalSortKeyComparator
|
/frameworks/base/tools/aapt2/ |
H A D | Locale.h | 62 inline int compare(const LocaleValue& other) const; 86 int LocaleValue::compare(const LocaleValue& other) const { function in class:aapt::LocaleValue 91 return compare(o) < 0; 95 return compare(o) <= 0; 99 return compare(o) == 0; 103 return compare(o) != 0; 107 return compare(o) >= 0; 111 return compare(o) > 0;
|
H A D | ConfigDescription.h | 105 return compare(o) < 0; 109 return compare(o) <= 0; 113 return compare(o) == 0; 117 return compare(o) != 0; 121 return compare(o) >= 0; 125 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 | 58 int compare(const entry& o) const; 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; } 65 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/base/libs/hwui/ |
H A D | LayerCache.h | 112 static int compare(const LayerEntry& lhs, const LayerEntry& rhs); 115 return compare(*this, other) == 0; 119 return compare(*this, other) != 0; 123 return LayerEntry::compare(*this, other) < 0;
|
H A D | RenderBufferCache.h | 90 static int compare(const RenderBufferEntry& lhs, const RenderBufferEntry& rhs); 93 return compare(*this, other) == 0; 97 return compare(*this, other) != 0; 101 return RenderBufferEntry::compare(*this, other) < 0;
|
H A D | PatchCache.h | 108 static int compare(const PatchDescription& lhs, const PatchDescription& rhs); 111 return compare(*this, other) == 0; 115 return compare(*this, other) != 0; 120 return PatchDescription::compare(lhs, rhs) < 0; 125 return PatchDescription::compare(lhs, rhs);
|
H A D | TextDropShadowCache.h | 60 static int compare(const ShadowText& lhs, const ShadowText& rhs); 63 return compare(*this, other) == 0; 67 return compare(*this, other) != 0; 99 return ShadowText::compare(lhs, rhs) < 0; 103 return ShadowText::compare(lhs, rhs);
|
H A D | GradientCache.h | 59 static int compare(const GradientCacheEntry& lhs, const GradientCacheEntry& rhs); 62 return compare(*this, other) == 0; 66 return compare(*this, other) != 0; 88 return GradientCacheEntry::compare(lhs, rhs) < 0; 92 return GradientCacheEntry::compare(lhs, rhs);
|
/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 | 184 assertTrue(PhoneNumberUtils.compare(null, null)); 185 assertFalse(PhoneNumberUtils.compare(null, "123")); 186 assertFalse(PhoneNumberUtils.compare("123", null)); 268 assertFalse(PhoneNumberUtils.compare("", "")); 270 assertTrue(PhoneNumberUtils.compare("911", "911")); 271 assertFalse(PhoneNumberUtils.compare("911", "18005550911")); 272 assertTrue(PhoneNumberUtils.compare("5555", "5555")); 273 assertFalse(PhoneNumberUtils.compare("5555", "180055555555")); 275 assertTrue(PhoneNumberUtils.compare("+17005554141", "+17005554141")); 276 assertTrue(PhoneNumberUtils.compare(" [all...] |
/frameworks/av/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/libs/hwui/renderstate/ |
H A D | OffscreenBufferPool.h | 135 static int compare(const Entry& lhs, const Entry& rhs); 138 return compare(*this, other) == 0; 142 return compare(*this, other) != 0; 146 return Entry::compare(*this, other) < 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 | 133 int compare(const Attribute& rhs) const; 255 inline int XmlPullParser::Attribute::compare(const Attribute& rhs) const { function in class:aapt::xml::XmlPullParser::Attribute 256 int cmp = namespaceUri.compare(rhs.namespaceUri); 258 return name.compare(rhs.name); 262 return compare(rhs) < 0; 266 return compare(rhs) == 0; 270 return compare(rhs) != 0; 279 int cmp = attr.namespaceUri.compare(0, attr.namespaceUri.size(), 283 cmp = attr.name.compare(0, attr.name.size(), rhs.second.data(), rhs.second.size());
|
/frameworks/av/media/libmedia/ |
H A D | StringArray.cpp | 88 void StringArray::sort(int (*compare)(const void*, const void*)) { 89 qsort(mArray, mCurrent, sizeof(char*), compare);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
H A D | AppItem.java | 67 int comparison = Integer.compare(category, another.category); 69 comparison = Long.compare(another.total, total);
|
/frameworks/base/libs/hwui/font/ |
H A D | Font.h | 57 static int compare(const FontDescription& lhs, const FontDescription& rhs); 62 return compare(*this, other) == 0; 66 return compare(*this, other) != 0; 157 return Font::FontDescription::compare(lhs, rhs) < 0; 161 return Font::FontDescription::compare(lhs, rhs);
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/ |
H A D | Model.java | 229 int compare = 0; 232 compare = -1; 234 compare = 1; 238 compare = Shared.compareToIgnoreCaseNullable(lhs, rhs); 241 if (compare < 0) { 302 int compare = 0; 305 compare = -1; 307 compare = 1; 313 compare = -Long.compare(lh [all...] |