/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/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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | PhoneNumberUtilsTest.java | 213 assertTrue(PhoneNumberUtils.compare(null, null)); in testExtractNetworkPortion() 214 assertFalse(PhoneNumberUtils.compare(null, "123")); in testExtractNetworkPortion() 215 assertFalse(PhoneNumberUtils.compare("123", null)); in testExtractNetworkPortion() 314 assertFalse(PhoneNumberUtils.compare("", "")); in testCompare() 316 assertTrue(PhoneNumberUtils.compare("911", "911")); in testCompare() 317 assertFalse(PhoneNumberUtils.compare("911", "18005550911")); in testCompare() 318 assertTrue(PhoneNumberUtils.compare("5555", "5555")); in testCompare() 319 assertFalse(PhoneNumberUtils.compare("5555", "180055555555")); in testCompare() 321 assertTrue(PhoneNumberUtils.compare("+17005554141", "+17005554141")); in testCompare() 322 assertTrue(PhoneNumberUtils.compare("+17005554141", "+1 (700).555-4141")); in testCompare() [all …]
|
D | RadioAccessFamilyTest.java | 36 assertEquals(0, RadioAccessFamily.compare( in testCompareSameFamily() 42 assertTrue(0 > RadioAccessFamily.compare( in testCompareSameFamily() 53 assertTrue(0 < RadioAccessFamily.compare( in testComparedGreatestUnique()
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | Locale.h | 63 inline int compare(const LocaleValue& other) const; 87 int LocaleValue::compare(const LocaleValue& other) const { in compare() function 92 return compare(o) < 0; 96 return compare(o) <= 0; 100 return compare(o) == 0; 104 return compare(o) != 0; 108 return compare(o) >= 0; 112 return compare(o) > 0;
|
D | ConfigDescription.h | 186 return compare(o) < 0; 190 return compare(o) <= 0; 194 return compare(o) == 0; 198 return compare(o) != 0; 202 return compare(o) >= 0; 206 return compare(o) > 0;
|
D | StringPiece.h | 73 int compare(const BasicStringPiece<TChar>& rhs) const; 191 inline int BasicStringPiece<char>::compare(const BasicStringPiece<char>& rhs) const { in compare() function 232 inline int BasicStringPiece<char16_t>::compare(const BasicStringPiece<char16_t>& rhs) const { in compare() function 241 return compare(rhs) < 0; 246 return compare(rhs) > 0; 251 return compare(rhs) == 0; 256 return compare(rhs) != 0;
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationComparator.java | 51 public int compare(NotificationRecord left, NotificationRecord right) { in compare() method in NotificationComparator 59 return -1 * Boolean.compare(isLeftHighImportance, isRightHighImportance); in compare() 65 return -1 * Float.compare(left.getRankingScore(), right.getRankingScore()); in compare() 73 return -1 * Boolean.compare(leftImportantColorized, rightImportantColorized); in compare() 82 return -1 * Boolean.compare(leftImportantOngoing, rightImportantOngoing); in compare() 88 return -1 * Boolean.compare(leftMessaging, rightMessaging); in compare() 95 Float.compare(left.getContactAffinity(), right.getContactAffinity()); in compare() 104 return -1 * Boolean.compare(leftPeople, rightPeople); in compare() 109 return -1 * Integer.compare(leftImportance, rightImportance); in compare() 122 return -1 * Integer.compare(leftPackagePriority, rightPackagePriority); in compare() [all …]
|
/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/startop/view_compiler/ |
D | layout_validation.cc | 24 if (0 == name.compare(u"merge")) { in VisitStartTag() 28 if (0 == name.compare(u"include")) { in VisitStartTag() 32 if (0 == name.compare(u"view")) { in VisitStartTag() 36 if (0 == name.compare(u"fragment")) { in VisitStartTag()
|
/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/tools/aapt2/xml/ |
D | XmlPullParser.h | 139 int compare(const Attribute& rhs) const; 287 inline int XmlPullParser::Attribute::compare(const Attribute& rhs) const { in compare() function 288 int cmp = namespace_uri.compare(rhs.namespace_uri); in compare() 290 return name.compare(rhs.name); in compare() 294 return compare(rhs) < 0; 298 return compare(rhs) == 0; 302 return compare(rhs) != 0; 313 int cmp = attr.namespace_uri.compare( in FindAttribute() 317 cmp = attr.name.compare(0, attr.name.size(), rhs.second.data(), in FindAttribute()
|
/frameworks/base/core/java/android/hardware/usb/ |
D | UsbAccessory.java | 184 private static boolean compare(String s1, String s2) { in compare() method in UsbAccessory 193 return (compare(mManufacturer, accessory.getManufacturer()) && in equals() 194 compare(mModel, accessory.getModel()) && in equals() 195 compare(mDescription, accessory.getDescription()) && in equals() 196 compare(mVersion, accessory.getVersion()) && in equals() 197 compare(mUri, accessory.getUri()) && in equals() 198 compare(getSerial(), accessory.getSerial())); in equals()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | UtilsTest.java | 126 assertEquals(-1, Utils.compare(-1, 1)); in testCompare() 127 assertEquals(0, Utils.compare(0, 0)); in testCompare() 128 assertEquals(1, Utils.compare(1, -1)); in testCompare() 130 assertEquals(-1, Utils.compare(null, 0)); in testCompare() 131 assertEquals(0, Utils.compare(null, null)); in testCompare() 132 assertEquals(1, Utils.compare(0, null)); in testCompare()
|
/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
D | PathShape.java | 92 return Float.compare(pathShape.mStdWidth, mStdWidth) == 0 in equals() 93 && Float.compare(pathShape.mStdHeight, mStdHeight) == 0 in equals() 94 && Float.compare(pathShape.mScaleX, mScaleX) == 0 in equals() 95 && Float.compare(pathShape.mScaleY, mScaleY) == 0 in equals()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | AbstractResolverComparatorTest.java | 50 assertEquals("Pinned ranks over unpinned", -1, comparator.compare(r1, r2)); in testPinned() 51 assertEquals("Unpinned ranks under pinned", 1, comparator.compare(r2, r1)); in testPinned() 75 assertEquals("Both pinned should rank alphabetically", -1, comparator.compare(r1, r2)); in testBothPinned() 85 int compare(ResolveInfo lhs, ResolveInfo rhs) { in getTestComparator()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | AbstractResolverComparator.java | 142 public final int compare(ResolvedComponentInfo lhsp, ResolvedComponentInfo rhsp) { in compare() method in AbstractResolverComparator 172 return mAzComparator.compare(lhsp.getResolveInfoAt(0), rhsp.getResolveInfoAt(0)); in compare() 175 return compare(lhs, rhs); in compare() 184 abstract int compare(ResolveInfo lhs, ResolveInfo rhs); in compare() method in AbstractResolverComparator 269 public int compare(ResolveInfo lhsp, ResolveInfo rhsp) { in compare() method in AbstractResolverComparator.AzInfoComparator 275 return mCollator.compare(lhsp.activityInfo.packageName, rhsp.activityInfo.packageName); in compare()
|
/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/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/base/core/java/android/service/controls/templates/ |
D | RangeTemplate.java | 171 if (Float.compare(mMinValue, mMaxValue) > 0) { in validate() 175 if (Float.compare(mMinValue, mCurrentValue) > 0) { in validate() 179 if (Float.compare(mCurrentValue, mMaxValue) > 0) { in validate()
|
/frameworks/native/vulkan/vkjson/ |
D | Android.bp | 13 "-Wno-sign-compare", 42 "-Wno-sign-compare",
|
/frameworks/base/core/java/android/net/ |
D | NetworkIdentity.java | 225 int res = Integer.compare(mType, another.mType); in compareTo() 227 res = Integer.compare(mSubType, another.mSubType); in compareTo() 236 res = Boolean.compare(mRoaming, another.mRoaming); in compareTo() 239 res = Boolean.compare(mMetered, another.mMetered); in compareTo() 242 res = Boolean.compare(mDefaultNetwork, another.mDefaultNetwork); in compareTo()
|