/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 | 196 assertTrue(PhoneNumberUtils.compare(null, null)); in testExtractNetworkPortion() 197 assertFalse(PhoneNumberUtils.compare(null, "123")); in testExtractNetworkPortion() 198 assertFalse(PhoneNumberUtils.compare("123", null)); in testExtractNetworkPortion() 297 assertFalse(PhoneNumberUtils.compare("", "")); in testCompare() 299 assertTrue(PhoneNumberUtils.compare("911", "911")); in testCompare() 300 assertFalse(PhoneNumberUtils.compare("911", "18005550911")); in testCompare() 301 assertTrue(PhoneNumberUtils.compare("5555", "5555")); in testCompare() 302 assertFalse(PhoneNumberUtils.compare("5555", "180055555555")); in testCompare() 304 assertTrue(PhoneNumberUtils.compare("+17005554141", "+17005554141")); in testCompare() 305 assertTrue(PhoneNumberUtils.compare("+17005554141", "+1 (700).555-4141")); in testCompare() [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/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 | 52 public int compare(NotificationRecord left, NotificationRecord right) { in compare() method in NotificationComparator 64 return -1 * Boolean.compare(isLeftHighImportance, isRightHighImportance); 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() 129 return -1 * Integer.compare(leftPriority, rightPriority); 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/opt/gamesdk/src/protobuf/full/ |
D | CMakeLists.txt | 12 "-Wno-tautological-constant-compare" "-Wno-enum-compare-switch") 18 "-Wno-tautological-constant-compare" "-Wno-enum-compare-switch")
|
/frameworks/opt/gamesdk/src/protobuf/lite/ |
D | CMakeLists.txt | 13 "-Wno-tautological-constant-compare" "-Wno-enum-compare-switch") 20 "-Wno-tautological-constant-compare" "-Wno-enum-compare-switch")
|
/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 | 181 private static boolean compare(String s1, String s2) { in compare() method in UsbAccessory 190 return (compare(mManufacturer, accessory.getManufacturer()) && in equals() 191 compare(mModel, accessory.getModel()) && in equals() 192 compare(mDescription, accessory.getDescription()) && in equals() 193 compare(mVersion, accessory.getVersion()) && in equals() 194 compare(mUri, accessory.getUri()) && in equals() 195 compare(getSerial(), accessory.getSerial())); in equals()
|
/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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | UtilsTest.java | 124 assertEquals(-1, Utils.compare(-1, 1)); in testCompare() 125 assertEquals(0, Utils.compare(0, 0)); in testCompare() 126 assertEquals(1, Utils.compare(1, -1)); in testCompare() 128 assertEquals(-1, Utils.compare(null, 0)); in testCompare() 129 assertEquals(0, Utils.compare(null, null)); in testCompare() 130 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()
|
D | ArcShape.java | 92 return Float.compare(arcShape.mStartAngle, mStartAngle) == 0 in equals() 93 && Float.compare(arcShape.mSweepAngle, mSweepAngle) == 0; in equals()
|
D | Shape.java | 130 return Float.compare(shape.mWidth, mWidth) == 0 in equals() 131 && Float.compare(shape.mHeight, mHeight) == 0; in equals()
|
/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/net/ |
D | NetworkIdentity.java | 236 int res = Integer.compare(mType, another.mType); in compareTo() 238 res = Integer.compare(mSubType, another.mSubType); in compareTo() 247 res = Boolean.compare(mRoaming, another.mRoaming); in compareTo() 250 res = Boolean.compare(mMetered, another.mMetered); in compareTo() 253 res = Boolean.compare(mDefaultNetwork, another.mDefaultNetwork); in compareTo()
|
/frameworks/native/vulkan/vkjson/ |
D | Android.bp | 13 "-Wno-sign-compare", 39 "-Wno-sign-compare",
|