/frameworks/base/libs/hwui/utils/ |
H A D | Macros.h | 25 int compare(const Type& rhs) const { return memcmp(this, &rhs, sizeof(Type));} \ 26 bool operator==(const Type& other) const { return compare(other) == 0; } \ 27 bool operator!=(const Type& other) const { return compare(other) != 0; } \ 28 friend inline int strictly_order_type(const Type& lhs, const Type& rhs) { return lhs.compare(rhs) < 0; } \ 29 friend inline int compare_type(const Type& lhs, const Type& rhs) { return lhs.compare(rhs); } \
|
/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(leftPackagePriority, rightPackagePriority); 39 return -1 * Integer.compare(leftScore, rightScore); 46 return -1 * Float.compare(leftPeople, rightPeople); 50 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/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 | 60 int compare(const entry& o) const; 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; } 66 inline bool operator>=(const entry& o) const { return compare(o) >= 0; } 67 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(lhs, rhs) < 0; 127 return LayerEntry::compare(lhs, rhs);
|
H A D | RenderBufferCache.h | 93 static int compare(const RenderBufferEntry& lhs, const RenderBufferEntry& rhs); 96 return compare(*this, other) == 0; 100 return compare(*this, other) != 0; 105 return RenderBufferEntry::compare(lhs, rhs) < 0; 110 return RenderBufferEntry::compare(lhs, rhs);
|
H A D | PatchCache.h | 107 static int compare(const PatchDescription& lhs, const PatchDescription& rhs); 110 return compare(*this, other) == 0; 114 return compare(*this, other) != 0; 119 return PatchDescription::compare(lhs, rhs) < 0; 124 return PatchDescription::compare(lhs, rhs);
|
H A D | TextDropShadowCache.h | 64 static int compare(const ShadowText& lhs, const ShadowText& rhs); 67 return compare(*this, other) == 0; 71 return compare(*this, other) != 0; 104 return ShadowText::compare(lhs, rhs) < 0; 108 return ShadowText::compare(lhs, rhs);
|
H A D | GradientCache.h | 66 static int compare(const GradientCacheEntry& lhs, const GradientCacheEntry& rhs); 69 return compare(*this, other) == 0; 73 return compare(*this, other) != 0; 95 return GradientCacheEntry::compare(lhs, rhs) < 0; 99 return GradientCacheEntry::compare(lhs, rhs);
|
/frameworks/compile/mclinker/lib/Support/ |
H A D | CommandLine.cpp | 102 if (0 == Arg.compare("combreloc")) 104 else if (0 == Arg.compare("nocombreloc")) 106 else if (0 == Arg.compare("defs")) 108 else if (0 == Arg.compare("execstack")) 110 else if (0 == Arg.compare("noexecstack")) 112 else if (0 == Arg.compare("initfirst")) 114 else if (0 == Arg.compare("interpose")) 116 else if (0 == Arg.compare("loadfltr")) 118 else if (0 == Arg.compare("muldefs")) 120 else if (0 == Arg.compare("nocopyrelo [all...] |
/frameworks/compile/mclinker/include/mcld/ADT/ |
H A D | StringEntry.h | 54 bool compare(const llvm::StringRef& pX) function in class:mcld::StringEntry 55 { return (0 == key().compare(pX)); } 57 bool compare(const llvm::StringRef& pX) const function in class:mcld::StringEntry 58 { return (0 == key().compare(pX)); } 108 bool compare(const llvm::StringRef& pX) function in class:mcld::StringEntry 109 { return (0 == key().compare(pX)); } 111 bool compare(const llvm::StringRef& pX) const function in class:mcld::StringEntry 112 { return (0 == key().compare(pX)); }
|
/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/opt/colorpicker/src/com/android/colorpicker/ |
H A D | HsvColorComparator.java | 29 public int compare(Integer lhs, Integer rhs) { method in class:HsvColorComparator
|
/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/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; 158 return Font::FontDescription::compare(lhs, rhs) < 0; 162 return Font::FontDescription::compare(lhs, rhs);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | TaskStackViewScroller.java | 86 return Float.compare(prevStackScrollP, mStackScrollP) != 0; 93 if (Float.compare(newScroll, curScroll) != 0) { 103 if (Float.compare(newScroll, curScroll) != 0) { 127 return Float.compare(getScrollAmountOutOfBounds(mStackScrollP), 0f) != 0; 134 if (Float.compare(newScroll, curScroll) != 0) {
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
H A D | SizeAreaComparator.java | 38 public int compare(Camera.Size size, Camera.Size size2) { method in class:SizeAreaComparator
|
/frameworks/base/core/java/android/hardware/camera2/utils/ |
H A D | SizeAreaComparator.java | 37 public int compare(Size size, Size size2) { method in class:SizeAreaComparator
|
/frameworks/base/core/java/android/widget/ |
H A D | AlphabetIndexer.java | 63 * Use a collator to compare strings in a localized manner. 126 protected int compare(String word, String letter) { method in class:AlphabetIndexer 134 return mCollator.compare(firstLetter, letter); 212 int diff = compare(curName, targetLetter); 224 // if (mCollator.compare(startingLetter, targetLetter) < 0) { 265 if (compare(curName, targetLetter) == 0) {
|