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

12345678910

/frameworks/base/services/core/java/com/android/server/notification/
H A DNotificationComparator.java27 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 DGlobalSortKeyComparator.java25 public int compare(NotificationRecord left, NotificationRecord right) { method in class:GlobalSortKeyComparator
/frameworks/base/tools/aapt2/
H A DLocale.h62 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 DConfigDescription.h105 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 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.h58 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 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/base/libs/hwui/
H A DLayerCache.h112 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 DRenderBufferCache.h90 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 DPatchCache.h108 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 DTextDropShadowCache.h60 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 DGradientCache.h59 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 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.java184 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 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/libs/hwui/renderstate/
H A DOffscreenBufferPool.h135 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 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.h133 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 DStringArray.cpp88 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 DAppItem.java67 int comparison = Integer.compare(category, another.category);
69 comparison = Long.compare(another.total, total);
/frameworks/base/libs/hwui/font/
H A DFont.h57 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 DModel.java229 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...]

Completed in 1782 milliseconds

12345678910