/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | PhoneNumberUtilsTest.java | 184 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/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/aapt/ |
D | StringPool.h | 58 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; }
|
D | AaptAssets.h | 100 int compare(const AaptGroupEntry& o) const; 104 inline bool operator<(const AaptGroupEntry& o) const { return compare(o) < 0; } 105 inline bool operator<=(const AaptGroupEntry& o) const { return compare(o) <= 0; } 106 inline bool operator==(const AaptGroupEntry& o) const { return compare(o) == 0; } 107 inline bool operator!=(const AaptGroupEntry& o) const { return compare(o) != 0; } 108 inline bool operator>=(const AaptGroupEntry& o) const { return compare(o) >= 0; } 109 inline bool operator>(const AaptGroupEntry& o) const { return compare(o) > 0; } 144 return lhs.compare(rhs); in compare_type()
|
D | AaptAssets.cpp | 1413 int AaptGroupEntry::compare(const AaptGroupEntry& o) const in compare() function in AaptGroupEntry 1415 int v = mcc.compare(o.mcc); in compare() 1416 if (v == 0) v = mnc.compare(o.mnc); in compare() 1417 if (v == 0) v = locale.compare(o.locale); in compare() 1418 if (v == 0) v = vendor.compare(o.vendor); in compare() 1419 if (v == 0) v = smallestScreenWidthDp.compare(o.smallestScreenWidthDp); in compare() 1420 if (v == 0) v = screenWidthDp.compare(o.screenWidthDp); in compare() 1421 if (v == 0) v = screenHeightDp.compare(o.screenHeightDp); in compare() 1422 if (v == 0) v = screenLayoutSize.compare(o.screenLayoutSize); in compare() 1423 if (v == 0) v = screenLayoutLong.compare(o.screenLayoutLong); in compare() [all …]
|
D | ResourceTable.h | 102 inline bool operator<(const ConfigDescription& o) const { return compare(o) < 0; } 103 inline bool operator<=(const ConfigDescription& o) const { return compare(o) <= 0; } 104 inline bool operator==(const ConfigDescription& o) const { return compare(o) == 0; } 105 inline bool operator!=(const ConfigDescription& o) const { return compare(o) != 0; } 106 inline bool operator>=(const ConfigDescription& o) const { return compare(o) >= 0; } 107 inline bool operator>(const ConfigDescription& o) const { return compare(o) > 0; }
|
/frameworks/base/core/java/android/hardware/usb/ |
D | UsbAccessory.java | 156 private static boolean compare(String s1, String s2) { in compare() method in UsbAccessory 165 return (compare(mManufacturer, accessory.getManufacturer()) && in equals() 166 compare(mModel, accessory.getModel()) && in equals() 167 compare(mDescription, accessory.getDescription()) && in equals() 168 compare(mVersion, accessory.getVersion()) && in equals() 169 compare(mUri, accessory.getUri()) && in equals() 170 compare(mSerial, accessory.getSerial())); in equals()
|
/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/native/libs/utils/ |
D | StringArray.cpp | 88 void StringArray::sort(int (*compare)(const void*, const void*)) { in sort() 89 qsort(mArray, mCurrent, sizeof(char*), compare); in sort()
|
/frameworks/native/include/utils/ |
D | String16.h | 94 inline int compare(const String16& other) const; 127 return lhs.compare(rhs); in compare_type() 169 inline int String16::compare(const String16& other) const in compare() function
|
D | String8.h | 98 inline int compare(const String8& other) const; 234 return lhs.compare(rhs); in compare_type() 314 inline int String8::compare(const String8& other) const in compare() function
|
D | StringArray.h | 49 void sort(int (*compare)(const void*, const void*));
|
/frameworks/base/core/jni/android/graphics/ |
D | TextLayoutCache.h | 89 static int compare(const TextLayoutCacheKey& lhs, const TextLayoutCacheKey& rhs); 110 return TextLayoutCacheKey::compare(lhs, rhs) < 0; in strictly_order_type() 114 return TextLayoutCacheKey::compare(lhs, rhs); in compare_type()
|
/frameworks/base/core/jni/ |
D | android_os_Debug.cpp | 327 char compare[128]; in read_binder_stat() local 328 int len = snprintf(compare, 128, "proc %d", getpid()); in read_binder_stat() 335 } while (strncmp(compare, line, len)); in read_binder_stat() 338 len = snprintf(compare, 128, " %s: ", stat); in read_binder_stat() 344 } while (strncmp(compare, line, len)); in read_binder_stat()
|
D | TimeUtils.h | 57 static int compare(Time& a, Time& b);
|
/frameworks/av/media/libstagefright/foundation/ |
D | AString.cpp | 290 return compare(other) < 0; in operator <() 294 return compare(other) > 0; in operator >() 297 int AString::compare(const AString &other) const { in compare() function in android::AString
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageItemInfo.java | 277 public final int compare(PackageItemInfo aa, PackageItemInfo ab) { in compare() method in PackageItemInfo.DisplayNameComparator 282 return sCollator.compare(sa.toString(), sb.toString()); in compare()
|
/frameworks/compile/mclinker/include/mcld/ADT/ |
D | HashBase.tcc | 146 if (bucket.Entry->compare(pKey)) { in lookUpBucketFor() 182 if (bucket.Entry->compare(pKey)) in findKey()
|
D | HashEntry.tcc | 23 bool HashEntry<KeyType, ValueType, KeyCompare>::compare(const KeyType& pKey) in compare() function in HashEntry
|
D | HashEntry.h | 67 bool compare(const key_type& pKey);
|
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/ |
D | TestDelegates.java | 74 compare(originalClass, delegateClass); in loadAndCompareClasses() 82 private void compare(Class<?> originalClass, Class<?> delegateClass) throws SecurityException { in compare() method in TestDelegates
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationData.java | 78 public int compare(Entry a, Entry b) { 109 if (mEntryCmp.compare(mEntries.get(i), entry) > 0) { in add()
|
/frameworks/base/core/java/android/net/ |
D | NetworkPolicyManager.java | 168 if (Time.compare(cycle, now) >= 0) { in computeLastCycleBoundary() 198 if (Time.compare(cycle, now) <= 0) { in computeNextCycleBoundary()
|
/frameworks/rs/scriptc/ |
D | rs_atomic.rsh | 224 * @param addr The address to compare and replace if the compare passes. 238 * @param addr The address to compare and replace if the compare passes.
|
/frameworks/base/test-runner/src/android/test/suitebuilder/ |
D | TestGrouping.java | 190 public int compare(Class<? extends TestCase> class1, in compare() method in TestGrouping.SortBySimpleName 207 public int compare(Class<? extends TestCase> class1, in compare() method in TestGrouping.SortByFullyQualifiedName
|