/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/tools/localize/ |
D | Configuration.cpp | 9 n = locale.compare(that.locale); in Compare() 12 n = vendor.compare(that.vendor); in Compare() 15 n = orientation.compare(that.orientation); in Compare() 18 n = density.compare(that.density); in Compare() 21 n = touchscreen.compare(that.touchscreen); in Compare() 24 n = keyboard.compare(that.keyboard); in Compare() 27 n = navigation.compare(that.navigation); in Compare() 30 n = screenSize.compare(that.screenSize); in Compare()
|
/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/core/java/android/hardware/usb/ |
D | UsbAccessory.java | 137 private static boolean compare(String s1, String s2) { in compare() method in UsbAccessory 146 return (compare(mManufacturer, accessory.getManufacturer()) && in equals() 147 compare(mModel, accessory.getModel()) && in equals() 148 compare(mDescription, accessory.getDescription()) && in equals() 149 compare(mVersion, accessory.getVersion()) && in equals() 150 compare(mUri, accessory.getUri()) && in equals() 151 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/base/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/base/core/jni/android/graphics/ |
D | TextLayoutCache.h | 87 static int compare(const TextLayoutCacheKey& lhs, const TextLayoutCacheKey& rhs); 108 return TextLayoutCacheKey::compare(lhs, rhs) < 0; in strictly_order_type() 112 return TextLayoutCacheKey::compare(lhs, rhs); in compare_type()
|
/frameworks/base/tools/aapt/ |
D | AaptAssets.h | 107 int compare(const AaptGroupEntry& o) const; 111 inline bool operator<(const AaptGroupEntry& o) const { return compare(o) < 0; } 112 inline bool operator<=(const AaptGroupEntry& o) const { return compare(o) <= 0; } 113 inline bool operator==(const AaptGroupEntry& o) const { return compare(o) == 0; } 114 inline bool operator!=(const AaptGroupEntry& o) const { return compare(o) != 0; } 115 inline bool operator>=(const AaptGroupEntry& o) const { return compare(o) >= 0; } 116 inline bool operator>(const AaptGroupEntry& o) const { return compare(o) > 0; } 151 return lhs.compare(rhs); in compare_type()
|
D | AaptAssets.cpp | 1365 int AaptGroupEntry::compare(const AaptGroupEntry& o) const in compare() function in AaptGroupEntry 1367 int v = mcc.compare(o.mcc); in compare() 1368 if (v == 0) v = mnc.compare(o.mnc); in compare() 1369 if (v == 0) v = locale.compare(o.locale); in compare() 1370 if (v == 0) v = vendor.compare(o.vendor); in compare() 1371 if (v == 0) v = smallestScreenWidthDp.compare(o.smallestScreenWidthDp); in compare() 1372 if (v == 0) v = screenWidthDp.compare(o.screenWidthDp); in compare() 1373 if (v == 0) v = screenHeightDp.compare(o.screenHeightDp); in compare() 1374 if (v == 0) v = screenLayoutSize.compare(o.screenLayoutSize); in compare() 1375 if (v == 0) v = screenLayoutLong.compare(o.screenLayoutLong); in compare() [all …]
|
D | ResourceTable.h | 349 inline bool operator<(const ConfigDescription& o) const { return compare(o) < 0; } 350 inline bool operator<=(const ConfigDescription& o) const { return compare(o) <= 0; } 351 inline bool operator==(const ConfigDescription& o) const { return compare(o) == 0; } 352 inline bool operator!=(const ConfigDescription& o) const { return compare(o) != 0; } 353 inline bool operator>=(const ConfigDescription& o) const { return compare(o) >= 0; } 354 inline bool operator>(const ConfigDescription& o) const { return compare(o) > 0; }
|
/frameworks/base/include/utils/ |
D | String16.h | 93 inline int compare(const String16& other) const; 122 return lhs.compare(rhs); in compare_type() 164 inline int String16::compare(const String16& other) const in compare() function
|
D | String8.h | 97 inline int compare(const String8& other) const; 229 return lhs.compare(rhs); in compare_type() 309 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/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationData.java | 50 public int compare(Entry a, Entry b) { 81 if (mEntryCmp.compare(mEntries.get(i), entry) > 0) { in add()
|
/frameworks/base/core/jni/ |
D | android_os_Debug.cpp | 324 char compare[128]; in read_binder_stat() local 325 int len = snprintf(compare, 128, "proc %d", getpid()); in read_binder_stat() 332 } while (strncmp(compare, line, len)); in read_binder_stat() 335 len = snprintf(compare, 128, " %s: ", stat); in read_binder_stat() 341 } while (strncmp(compare, line, len)); in read_binder_stat()
|
D | TimeUtils.h | 57 static int compare(Time& a, Time& b);
|
/frameworks/base/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()
|
D | ResolveInfo.java | 318 public final int compare(ResolveInfo a, ResolveInfo b) { in compare() method in ResolveInfo.DisplayNameComparator 324 return sCollator.compare(sa.toString(), sb.toString()); in compare()
|
/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/cmds/keystore/ |
D | test-keystore | 60 function compare() { function 268 compare
|
/frameworks/base/core/java/android/net/ |
D | NetworkPolicyManager.java | 142 if (Time.compare(cycle, now) >= 0) { in computeLastCycleBoundary() 168 if (Time.compare(cycle, now) <= 0) { in computeNextCycleBoundary()
|
/frameworks/base/libs/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
|
/frameworks/base/cmds/dumpsys/ |
D | dumpsys.cpp | 26 return lhs->compare(*rhs); in sort_func()
|