Home
last modified time | relevance | path

Searched refs:compare (Results 1 – 25 of 289) sorted by relevance

12345678910>>...12

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneNumberUtilsTest.java184 assertTrue(PhoneNumberUtils.compare(null, null)); in testExtractNetworkPortion()
185 assertFalse(PhoneNumberUtils.compare(null, "123")); in testExtractNetworkPortion()
186 assertFalse(PhoneNumberUtils.compare("123", null)); in testExtractNetworkPortion()
268 assertFalse(PhoneNumberUtils.compare("", "")); in testCompare()
270 assertTrue(PhoneNumberUtils.compare("911", "911")); in testCompare()
271 assertFalse(PhoneNumberUtils.compare("911", "18005550911")); in testCompare()
272 assertTrue(PhoneNumberUtils.compare("5555", "5555")); in testCompare()
273 assertFalse(PhoneNumberUtils.compare("5555", "180055555555")); in testCompare()
275 assertTrue(PhoneNumberUtils.compare("+17005554141", "+17005554141")); in testCompare()
276 assertTrue(PhoneNumberUtils.compare("+17005554141", "+1 (700).555-4141")); in testCompare()
[all …]
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DArrayMapTests.java111 private static boolean compare(Object v1, Object v2) { in compare() method in ArrayMapTests
131 if (!compare(expValue, gotValue)) { in compareMaps()
142 if (!compare(expValue, gotValue)) { in compareMaps()
235 if (!compare(entry, realEntry)) { in compareSets()
254 if (!compare(realValue, value)) { in validateArrayMap()
261 if (!compare(realValue, value)) { in validateArrayMap()
275 if (!compare(realValue, value)) { in validateArrayMap()
289 if (!compare(realValue, value)) { in validateArrayMap()
366 if (!compare(oldHash, oldArray)) { in run()
429 if (!compare(mapCopy, newMap)) { in run()
[all …]
/frameworks/base/tools/aapt2/
DLocale.h62 inline int compare(const LocaleValue& other) const;
86 int LocaleValue::compare(const LocaleValue& other) const { in compare() function
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;
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/services/core/java/com/android/server/notification/
DNotificationComparator.java27 public int compare(NotificationRecord left, NotificationRecord right) { in compare() method in NotificationComparator
32 return -1 * Integer.compare(leftImportance, rightImportance); in compare()
40 return -1 * Integer.compare(leftPackagePriority, rightPackagePriority); in compare()
47 return -1 * Integer.compare(leftPriority, rightPriority); in compare()
54 return -1 * Float.compare(leftPeople, rightPeople); in compare()
58 return -1 * Long.compare(left.getRankingTimeMs(), right.getRankingTimeMs()); in compare()
/frameworks/base/tools/aapt/
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; }
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; }
DAaptAssets.h81 int compare(const AaptLocaleValue& other) const { in compare() function
85 inline bool operator<(const AaptLocaleValue& o) const { return compare(o) < 0; }
86 inline bool operator<=(const AaptLocaleValue& o) const { return compare(o) <= 0; }
87 inline bool operator==(const AaptLocaleValue& o) const { return compare(o) == 0; }
88 inline bool operator!=(const AaptLocaleValue& o) const { return compare(o) != 0; }
89 inline bool operator>=(const AaptLocaleValue& o) const { return compare(o) >= 0; }
90 inline bool operator>(const AaptLocaleValue& o) const { return compare(o) > 0; }
112 inline int compare(const AaptGroupEntry& o) const { return mParams.compareLogical(o.mParams); } in compare() function
113 inline bool operator<(const AaptGroupEntry& o) const { return compare(o) < 0; }
114 inline bool operator<=(const AaptGroupEntry& o) const { return compare(o) <= 0; }
[all …]
/frameworks/base/libs/usb/src/com/android/future/usb/
DUsbAccessory.java98 private static boolean compare(String s1, String s2) { in compare() method in UsbAccessory
107 return (compare(mManufacturer, accessory.getManufacturer()) && in equals()
108 compare(mModel, accessory.getModel()) && in equals()
109 compare(mDescription, accessory.getDescription()) && in equals()
110 compare(mVersion, accessory.getVersion()) && in equals()
111 compare(mUri, accessory.getUri()) && in equals()
112 compare(mSerial, accessory.getSerial())); in equals()
/frameworks/base/core/java/android/hardware/usb/
DUsbAccessory.java154 private static boolean compare(String s1, String s2) { in compare() method in UsbAccessory
163 return (compare(mManufacturer, accessory.getManufacturer()) && in equals()
164 compare(mModel, accessory.getModel()) && in equals()
165 compare(mDescription, accessory.getDescription()) && in equals()
166 compare(mVersion, accessory.getVersion()) && in equals()
167 compare(mUri, accessory.getUri()) && in equals()
168 compare(mSerial, accessory.getSerial())); in equals()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
DModel.java229 int compare = 0; in binarySort() local
232 compare = -1; in binarySort()
234 compare = 1; in binarySort()
238 compare = Shared.compareToIgnoreCaseNullable(lhs, rhs); in binarySort()
241 if (compare < 0) { in binarySort()
302 int compare = 0; in binarySort() local
305 compare = -1; in binarySort()
307 compare = 1; in binarySort()
313 compare = -Long.compare(lhs, rhs); in binarySort()
320 if (compare == 0) { in binarySort()
[all …]
/frameworks/base/tools/aapt2/xml/
DXmlPullParser.h133 int compare(const Attribute& rhs) const;
255 inline int XmlPullParser::Attribute::compare(const Attribute& rhs) const { in compare() function
256 int cmp = namespaceUri.compare(rhs.namespaceUri); in compare()
258 return name.compare(rhs.name); in compare()
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(), in findAttribute()
283 cmp = attr.name.compare(0, attr.name.size(), rhs.second.data(), rhs.second.size()); in findAttribute()
/frameworks/base/tools/split-select/
DSplitDescription.h34 int compare(const SplitDescription& rhs) const;
51 return compare(rhs) < 0;
55 return compare(rhs) == 0;
59 return compare(rhs) != 0;
/frameworks/support/v7/recyclerview/src/android/support/v7/util/
DSortedList.java236 int compare = mCallback.compare(items[rangeStart], currentItem); in deduplicate() local
237 if (compare > 0) { in deduplicate()
241 if (compare == 0) { in deduplicate()
305 int compare = mCallback.compare(oldItem, newItem); in merge() local
306 if (compare > 0) { in merge()
312 } else if (compare == 0 && mCallback.areItemsTheSame(oldItem, newItem)) { in merge()
487 final int cmp = mCallback.compare(existing, item); in updateItemAt()
596 final int cmp = mCallback.compare(myItem, item); in findIndexOf()
621 int cmp = mCallback.compare(nextItem, item); in linearEqualitySearch()
631 int cmp = mCallback.compare(nextItem, item); in linearEqualitySearch()
[all …]
/frameworks/base/libs/hwui/
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; in strictly_order_type()
125 return PatchDescription::compare(lhs, rhs); in compare_type()
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;
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;
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; in strictly_order_type()
103 return ShadowText::compare(lhs, rhs); in compare_type()
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; in strictly_order_type()
92 return GradientCacheEntry::compare(lhs, rhs); in compare_type()
/frameworks/base/libs/hwui/renderstate/
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/base/libs/hwui/font/
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; in strictly_order_type()
161 return Font::FontDescription::compare(lhs, rhs); in compare_type()
/frameworks/compile/mclinker/include/mcld/ADT/
DStringEntry.h47 bool compare(const llvm::StringRef& pX) { return key().equals(pX); } in compare() function
49 bool compare(const llvm::StringRef& pX) const { return key().equals(pX); } in compare() function
90 bool compare(const llvm::StringRef pX) { return key().equals(pX); } in compare() function
92 bool compare(const llvm::StringRef pX) const { return key().equals(pX); } in compare() function
/frameworks/base/tools/aapt2/util/
DStringPiece.h61 int compare(const BasicStringPiece<TChar>& rhs) const;
179 inline int BasicStringPiece<char>::compare(const BasicStringPiece<char>& rhs) const { in compare() function
212 inline int BasicStringPiece<char16_t>::compare(const BasicStringPiece<char16_t>& rhs) const { in compare() function
221 return compare(rhs) < 0;
226 return compare(rhs) > 0;
231 return compare(rhs) == 0;
236 return compare(rhs) != 0;
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DTaskStackViewScroller.java141 return Float.compare(prevScroll, mStackScrollP) != 0; in setStackScrollToInitialState()
162 if (Float.compare(newScroll, curScroll) != 0) { in boundScroll()
186 return Float.compare(getScrollAmountOutOfBounds(mStackScrollP), 0f) != 0; in isScrollOutOfBounds()
194 if (Float.compare(newScroll, curScroll) != 0) { in animateBoundScroll()
218 if (Float.compare(mStackScrollP, newScroll) != 0) { in animateScroll()
/frameworks/base/core/java/android/widget/
DAlphabetIndexer.java126 protected int compare(String word, String letter) { in compare() method in AlphabetIndexer
134 return mCollator.compare(firstLetter, letter); in compare()
212 int diff = compare(curName, targetLetter); in getPositionForSection()
265 if (compare(curName, targetLetter) == 0) { in getSectionForPosition()

12345678910>>...12