Searched defs:compare (Results 1 - 22 of 22) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/accounts/
H A DAccountManagerServiceTest.java46 public int compare(Account object1, Account object2) { method in class:AccountManagerServiceTest.AccountSorter
/frameworks/base/tools/layoutlib/bridge/tests/com/android/layoutlib/bridge/
H A DTestClassReplacement.java43 compare(newClass, oldClass);
49 private void compare(Class<?> newClass, Class<?> oldClass) { method in class:TestClassReplacement
50 // first compare the methods.
89 // compare the return types
/frameworks/base/core/java/android/widget/
H A DAlphabetIndexer.java63 * Use a collator to compare strings in a localized manner.
126 protected int compare(String word, String letter) { method in class:AlphabetIndexer
134 return mCollator.compare(firstLetter, letter);
212 int diff = compare(curName, targetLetter);
224 // if (mCollator.compare(startingLetter, targetLetter) < 0) {
265 if (compare(curName, targetLetter) == 0) {
H A DAppSecurityPermissions.java430 public final int compare(PermissionInfo a, PermissionInfo b) { method in class:AppSecurityPermissions.PermissionInfoComparator
433 return sCollator.compare(sa, sb);
H A DRelativeLayout.java967 public int compare(View first, View second) { method in class:RelativeLayout.TopToBottomLeftToRightComparator
/frameworks/base/include/utils/
H A DString16.h120 inline int compare(const String16& other) const;
149 return lhs.compare(rhs);
191 inline int String16::compare(const String16& other) const function in class:android::String16
H A DString8.h190 inline int compare(const String8& other) const;
322 return lhs.compare(rhs);
393 inline int String8::compare(const String8& other) const function in class:android::String8
H A DResourceTypes.h1002 inline int compare(const ResTable_config& o) const { function in struct:android::ResTable_config
/frameworks/base/core/java/android/content/pm/
H A DPackageItemInfo.java230 public final int compare(PackageItemInfo aa, PackageItemInfo ab) { method in class:PackageItemInfo.DisplayNameComparator
235 return sCollator.compare(sa.toString(), sb.toString());
H A DResolveInfo.java311 public final int compare(ResolveInfo a, ResolveInfo b) { method in class:ResolveInfo.DisplayNameComparator
317 return sCollator.compare(sa.toString(), sb.toString());
H A DApplicationInfo.java340 * compare that this number is >= the SDK version number at which your
388 public final int compare(ApplicationInfo aa, ApplicationInfo ab) { method in class:ApplicationInfo.DisplayNameComparator
398 return sCollator.compare(sa.toString(), sb.toString());
/frameworks/base/core/jni/
H A DTime.cpp44 Time::compare(Time& a, Time& b) function in class:android::Time
47 // if the timezones are the same, we can easily compare the two
48 // times. Otherwise, convert to milliseconds and compare that.
H A Dandroid_os_Debug.cpp238 char compare[128]; local
239 int len = snprintf(compare, 128, "proc %d", getpid());
246 } while (strncmp(compare, line, len));
249 len = snprintf(compare, 128, " %s: ", stat);
255 } while (strncmp(compare, line, len));
/frameworks/base/test-runner/src/android/test/suitebuilder/
H A DTestGrouping.java188 public int compare(Class<? extends TestCase> class1, method in class:TestGrouping.SortBySimpleName
205 public int compare(Class<? extends TestCase> class1, method in class:TestGrouping.SortByFullyQualifiedName
/frameworks/base/core/java/android/webkit/
H A DCookieManager.java206 public int compare(Cookie cookie1, Cookie cookie2) { method in class:CookieManager.CookieComparator
/frameworks/base/media/libdrm/mobile2/src/util/ustl-1.0/
H A Dustring.cpp135 /*static*/ int string::compare (const_iterator first1, const_iterator last1, const_iterator first2, const_iterator last2) function in class:ustl::string
H A Dustring.h104 inline int compare (const string& s) const { return (compare (begin(), end(), s.begin(), s.end())); } function in class:ustl::string
105 inline int compare (const_pointer s) const { return (compare (begin(), end(), s, s + strlen(s))); } function in class:ustl::string
106 static int compare (const_iterator first1, const_iterator last1, const_iterator first2, const_iterator last2);
125 inline bool operator< (const string& s) const { return (0 > compare (s)); }
126 inline bool operator< (const_pointer s) const { return (0 > compare (s)); }
127 inline bool operator< (const_reference c) const { return (0 > compare (begin(), end(), &c, &c + 1)); }
128 inline bool operator> (const_pointer s) const { return (0 < compare (s)); }
/frameworks/base/core/java/android/text/format/
H A DTime.java281 native public static int compare(Time a, Time b); method in class:Time
610 * @param that a given Time object to compare against
614 return Time.compare(this, that) < 0;
622 * @param that a given Time object to compare against
626 return Time.compare(this, that) > 0;
/frameworks/base/services/java/com/android/server/
H A DAlarmManagerService.java582 public int compare(Alarm a1, Alarm a2) { method in class:AlarmManagerService.IncreasingTimeOrder
/frameworks/base/location/java/android/location/
H A DLocationManager.java364 public int compare(int a1, int a2) { method in class:LocationManager.LpComparator
374 public int compare(float a1, float a2) { method in class:LocationManager.LpComparator
386 public int compare(LocationProvider l1, LocationProvider l2) { method in class:LocationManager.LpPowerComparator
389 return compare(a1, a2); // Smaller is better
400 public int compare(LocationProvider l1, LocationProvider l2) { method in class:LocationManager.LpAccuracyComparator
403 return compare(a1, a2); // Smaller is better
425 public int compare(LocationProvider l1, LocationProvider l2) { method in class:LocationManager.LpCapabilityComparator
428 return compare(-a1, -a2); // Bigger is better
/frameworks/base/telephony/java/android/telephony/
H A DPhoneNumberUtils.java339 public static boolean compare(String a, String b) { method in class:PhoneNumberUtils
342 return compare(a, b, false);
350 public static boolean compare(Context context, String a, String b) { method in class:PhoneNumberUtils
353 return compare(a, b, useStrict);
359 public static boolean compare(String a, String b, boolean useStrictComparation) { method in class:PhoneNumberUtils
574 return compare(a, b, false);
582 return compare(a, b, false);
1361 // compare tolerates null so we need to make sure that we
1363 return !TextUtils.isEmpty(number) && compare(number, vmNumber);
1885 * digit to compare tw
[all...]
/frameworks/base/tools/aapt/
H A DAaptAssets.cpp1104 int AaptGroupEntry::compare(const AaptGroupEntry& o) const function in class:AaptGroupEntry
1106 int v = mcc.compare(o.mcc);
1107 if (v == 0) v = mnc.compare(o.mnc);
1108 if (v == 0) v = locale.compare(o.locale);
1109 if (v == 0) v = vendor.compare(o.vendor);
1110 if (v == 0) v = screenLayoutSize.compare(o.screenLayoutSize);
1111 if (v == 0) v = screenLayoutLong.compare(o.screenLayoutLong);
1112 if (v == 0) v = orientation.compare(o.orientation);
1113 if (v == 0) v = uiModeType.compare(o.uiModeType);
1114 if (v == 0) v = uiModeNight.compare(
[all...]

Completed in 303 milliseconds