/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
D | ArrayMapTests.java | 111 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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | PhoneNumberUtilsTest.java | 195 assertTrue(PhoneNumberUtils.compare(null, null)); in testExtractNetworkPortion() 196 assertFalse(PhoneNumberUtils.compare(null, "123")); in testExtractNetworkPortion() 197 assertFalse(PhoneNumberUtils.compare("123", null)); in testExtractNetworkPortion() 282 assertFalse(PhoneNumberUtils.compare("", "")); in testCompare() 284 assertTrue(PhoneNumberUtils.compare("911", "911")); in testCompare() 285 assertFalse(PhoneNumberUtils.compare("911", "18005550911")); in testCompare() 286 assertTrue(PhoneNumberUtils.compare("5555", "5555")); in testCompare() 287 assertFalse(PhoneNumberUtils.compare("5555", "180055555555")); in testCompare() 289 assertTrue(PhoneNumberUtils.compare("+17005554141", "+17005554141")); in testCompare() 290 assertTrue(PhoneNumberUtils.compare("+17005554141", "+1 (700).555-4141")); in testCompare() [all …]
|
/frameworks/base/tools/aapt2/ |
D | Locale.h | 60 inline int compare(const LocaleValue& other) const; 82 int LocaleValue::compare(const LocaleValue& other) const { in compare() function 87 return compare(o) < 0; 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;
|
D | ConfigDescription.h | 150 return compare(o) < 0; 154 return compare(o) <= 0; 158 return compare(o) == 0; 162 return compare(o) != 0; 166 return compare(o) >= 0; 170 return compare(o) > 0;
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | ObjectUtilsTest.java | 24 assertEquals(0, ObjectUtils.compare(null, null)); in testCompare() 25 assertEquals(1, ObjectUtils.compare("a", null)); in testCompare() 26 assertEquals(-1, ObjectUtils.compare(null, "a")); in testCompare() 28 assertEquals(0, ObjectUtils.compare("a", "a")); in testCompare() 30 assertEquals(-1, ObjectUtils.compare("a", "b")); in testCompare() 31 assertEquals(1, ObjectUtils.compare("b", "a")); in testCompare()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationComparator.java | 49 public int compare(NotificationRecord left, NotificationRecord right) { in compare() method in NotificationComparator 55 return -1 * Boolean.compare(leftImportantColorized, rightImportantColorized); in compare() 64 return -1 * Boolean.compare(leftImportantOngoing, rightImportantOngoing); in compare() 70 return -1 * Boolean.compare(leftMessaging, rightMessaging); in compare() 77 Float.compare(left.getContactAffinity(), right.getContactAffinity()); in compare() 86 return -1 * Boolean.compare(leftPeople, rightPeople); in compare() 93 return -1 * Integer.compare(leftImportance, rightImportance); in compare() 106 return -1 * Integer.compare(leftPackagePriority, rightPackagePriority); in compare() 113 return -1 * Integer.compare(leftPriority, rightPriority); in compare() 117 return -1 * Long.compare(left.getRankingTimeMs(), right.getRankingTimeMs()); in compare()
|
/frameworks/base/tools/aapt/ |
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; }
|
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; }
|
D | AaptAssets.h | 81 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/ |
D | UsbAccessory.java | 98 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/tools/split-select/ |
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/core/java/android/hardware/usb/ |
D | UsbAccessory.java | 154 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/support/v7/recyclerview/src/android/support/v7/util/ |
D | SortedList.java | 236 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/tools/aapt2/xml/ |
D | XmlPullParser.h | 138 int compare(const Attribute& rhs) const; 278 inline int XmlPullParser::Attribute::compare(const Attribute& rhs) const { in compare() function 279 int cmp = namespace_uri.compare(rhs.namespace_uri); in compare() 281 return name.compare(rhs.name); in compare() 285 return compare(rhs) < 0; 289 return compare(rhs) == 0; 293 return compare(rhs) != 0; 304 int cmp = attr.namespace_uri.compare( in FindAttribute() 308 cmp = attr.name.compare(0, attr.name.size(), rhs.second.data(), in FindAttribute()
|
/frameworks/base/libs/hwui/ |
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;
|
D | PatchCache.h | 101 static int compare(const PatchDescription& lhs, const PatchDescription& rhs); 104 return compare(*this, other) == 0; 108 return compare(*this, other) != 0; 113 return PatchDescription::compare(lhs, rhs) < 0; in strictly_order_type() 118 return PatchDescription::compare(lhs, rhs); in compare_type()
|
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; in strictly_order_type() 103 return ShadowText::compare(lhs, rhs); in compare_type()
|
D | GradientCache.h | 61 static int compare(const GradientCacheEntry& lhs, const GradientCacheEntry& rhs); 64 return compare(*this, other) == 0; 68 return compare(*this, other) != 0; 90 return GradientCacheEntry::compare(lhs, rhs) < 0; in strictly_order_type() 94 return GradientCacheEntry::compare(lhs, rhs); in compare_type()
|
/frameworks/base/libs/hwui/renderstate/ |
D | OffscreenBufferPool.h | 139 static int compare(const Entry& lhs, const Entry& rhs); 142 return compare(*this, other) == 0; 146 return compare(*this, other) != 0; 150 return Entry::compare(*this, other) < 0;
|
/frameworks/compile/mclinker/include/mcld/ADT/ |
D | StringEntry.h | 47 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/support/v7/recyclerview/src/android/support/v7/widget/ |
D | ViewBoundsCheck.java | 158 int compare(int x, int y) { in compare() method in ViewBoundsCheck.BoundFlags 170 if ((mBoundFlags & (compare(mChildStart, mRvStart) << CVS_PVS_POS)) == 0) { in boundsMatch() 176 if ((mBoundFlags & (compare(mChildStart, mRvEnd) << CVS_PVE_POS)) == 0) { in boundsMatch() 182 if ((mBoundFlags & (compare(mChildEnd, mRvStart) << CVE_PVS_POS)) == 0) { in boundsMatch() 188 if ((mBoundFlags & (compare(mChildEnd, mRvEnd) << CVE_PVE_POS)) == 0) { in boundsMatch()
|
/frameworks/base/libs/hwui/font/ |
D | Font.h | 59 static int compare(const FontDescription& lhs, const FontDescription& rhs); 64 return compare(*this, other) == 0; 68 return compare(*this, other) != 0; 159 return Font::FontDescription::compare(lhs, rhs) < 0; in strictly_order_type() 163 return Font::FontDescription::compare(lhs, rhs); in compare_type()
|
/frameworks/support/v7/mediarouter/tests/src/android/support/v7/app/ |
D | MediaRouteChooserDialogTest.java | 92 int result = mComparator.compare(routeInfo1, routeInfo2); in testRouteComparatorWithSameRouteName() 100 int result = mComparator.compare(routeInfo1, routeInfo2); in testRouteComparatorWithCommonComparison() 108 int result1 = mComparator.compare(routeInfo1, routeInfo2); 113 int result2 = mComparator.compare(routeInfo3, routeInfo4);
|
/frameworks/base/core/java/android/widget/ |
D | AlphabetIndexer.java | 126 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()
|
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/util/ |
D | SortedListBatchedCallbackTest.java | 79 public void compare() { in compare() method in SortedListBatchedCallbackTest 82 mBatchedCallback.compare(o1, o2); in compare() 83 verify(mMockCallback).compare(o1, o2); in compare()
|