Searched defs:compare (Results 1 - 24 of 24) 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/src/com/android/layoutlib/bridge/
H A DTestDelegates.java74 compare(originalClass, delegateClass);
82 private void compare(Class<?> originalClass, Class<?> delegateClass) throws SecurityException { method in class:TestDelegates
/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.java425 public final int compare(PermissionInfo a, PermissionInfo b) { method in class:AppSecurityPermissions.PermissionInfoComparator
428 return sCollator.compare(sa, sb);
H A DRelativeLayout.java970 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.h193 inline int compare(const String8& other) const;
325 return lhs.compare(rhs);
396 inline int String8::compare(const String8& other) const function in class:android::String8
H A DResourceTypes.h1008 inline int compare(const ResTable_config& o) const { function in struct:android::ResTable_config
/frameworks/base/libs/usb/src/com/android/future/usb/
H A DUsbAccessory.java98 private static boolean compare(String s1, String s2) { method in class:UsbAccessory
107 return (compare(mManufacturer, accessory.getManufacturer()) &&
108 compare(mModel, accessory.getModel()) &&
109 compare(mDescription, accessory.getDescription()) &&
110 compare(mVersion, accessory.getVersion()) &&
111 compare(mUri, accessory.getUri()) &&
112 compare(mSerial, accessory.getSerial()));
/frameworks/base/core/java/android/content/pm/
H A DPackageItemInfo.java277 public final int compare(PackageItemInfo aa, PackageItemInfo ab) { method in class:PackageItemInfo.DisplayNameComparator
282 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.java370 * compare that this number is >= the SDK version number at which your
430 public final int compare(ApplicationInfo aa, ApplicationInfo ab) { method in class:ApplicationInfo.DisplayNameComparator
440 return sCollator.compare(sa.toString(), sb.toString());
/frameworks/base/core/java/android/hardware/usb/
H A DUsbAccessory.java124 private static boolean compare(String s1, String s2) { method in class:UsbAccessory
133 return (compare(mManufacturer, accessory.getManufacturer()) &&
134 compare(mModel, accessory.getModel()) &&
135 compare(mDescription, accessory.getDescription()) &&
136 compare(mVersion, accessory.getVersion()) &&
137 compare(mUri, accessory.getUri()) &&
138 compare(mSerial, accessory.getSerial()));
/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/media/libstagefright/foundation/
H A DAString.cpp290 return compare(other) < 0;
294 return compare(other) > 0;
297 int AString::compare(const AString &other) const { function in class:android::AString
/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/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.java588 public int compare(Alarm a1, Alarm a2) { method in class:AlarmManagerService.IncreasingTimeOrder
H A DLocationManagerService.java700 public int compare(LocationProviderInterface l1, LocationProviderInterface l2) { method in class:LocationManagerService.LpPowerComparator
711 public int compare(LocationProviderInterface l1, LocationProviderInterface l2) { method in class:LocationManagerService.LpAccuracyComparator
733 public int compare(LocationProviderInterface l1, LocationProviderInterface l2) { method in class:LocationManagerService.LpCapabilityComparator
/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);
1362 // compare tolerates null so we need to make sure that we
1364 return !TextUtils.isEmpty(number) && compare(number, vmNumber);
1902 * digit to compare tw
[all...]
/frameworks/base/tools/aapt/
H A DAaptAssets.cpp1109 int AaptGroupEntry::compare(const AaptGroupEntry& o) const function in class:AaptGroupEntry
1111 int v = mcc.compare(o.mcc);
1112 if (v == 0) v = mnc.compare(o.mnc);
1113 if (v == 0) v = locale.compare(o.locale);
1114 if (v == 0) v = vendor.compare(o.vendor);
1115 if (v == 0) v = screenLayoutSize.compare(o.screenLayoutSize);
1116 if (v == 0) v = screenLayoutLong.compare(o.screenLayoutLong);
1117 if (v == 0) v = orientation.compare(o.orientation);
1118 if (v == 0) v = uiModeType.compare(o.uiModeType);
1119 if (v == 0) v = uiModeNight.compare(
[all...]
/frameworks/base/voip/java/com/android/server/sip/
H A DSipService.java1412 public int compare(MyEvent e1, MyEvent e2) { method in class:SipService.MyEventComparator

Completed in 520 milliseconds