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

1234

/frameworks/opt/colorpicker/src/com/android/colorpicker/
H A DHsvColorComparator.java29 public int compare(Integer lhs, Integer rhs) { method in class:HsvColorComparator
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DSizeAreaComparator.java38 public int compare(Camera.Size size, Camera.Size size2) { method in class:SizeAreaComparator
/frameworks/base/core/java/android/hardware/camera2/utils/
H A DSizeAreaComparator.java37 public int compare(Size size, Size size2) { method in class:SizeAreaComparator
/frameworks/base/services/core/java/com/android/server/notification/
H A DGlobalSortKeyComparator.java25 public int compare(NotificationRecord left, NotificationRecord right) { method in class:GlobalSortKeyComparator
H A DNotificationComparator.java27 public int compare(NotificationRecord left, NotificationRecord right) { method in class:NotificationComparator
32 return -1 * Integer.compare(leftImportance, rightImportance);
40 return -1 * Integer.compare(leftPackagePriority, rightPackagePriority);
47 return -1 * Integer.compare(leftPriority, rightPriority);
54 return -1 * Float.compare(leftPeople, rightPeople);
58 return -1 * Long.compare(left.getRankingTimeMs(), right.getRankingTimeMs());
/frameworks/base/tools/aapt2/
H A DLocale.h62 inline int compare(const LocaleValue& other) const;
86 int LocaleValue::compare(const LocaleValue& other) const { function in class:aapt::LocaleValue
91 return compare(o) < 0;
95 return compare(o) <= 0;
99 return compare(o) == 0;
103 return compare(o) != 0;
107 return compare(o) >= 0;
111 return compare(o) > 0;
/frameworks/base/tools/preload2/src/com/android/preload/actions/
H A DReloadListAction.java55 public int compare(Client o1, Client o2) { method in class:ReloadListAction.ClientComparator
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DCameraUtils.java55 * <p>Compares the number of pixels it covers.If two the areas of two sizes are same, compare
71 * <p>If two the areas of two sizes are same, compare the widths.</p>
75 public int compare(Camera.Size lhs, Camera.Size rhs) { method in class:CameraUtils.LegacySizeComparator
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/
H A DTestDelegates.java76 compare(originalClass, delegateClass);
84 private void compare(Class<?> originalClass, Class<?> delegateClass) throws SecurityException { method in class:TestDelegates
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/
H A DObjects.java34 * Returns 0 if {@code a == b}, or {@code c.compare(a, b)} otherwise.
37 public static <T> int compare(T a, T b, Comparator<? super T> c) { method in class:Objects
41 return c.compare(a, b);
/frameworks/compile/mclinker/include/mcld/ADT/
H A DStringEntry.h47 bool compare(const llvm::StringRef& pX) { return key().equals(pX); } function in class:mcld::StringEntry
49 bool compare(const llvm::StringRef& pX) const { return key().equals(pX); } function in class:mcld::StringEntry
90 bool compare(const llvm::StringRef pX) { return key().equals(pX); } function in class:mcld::StringEntry
92 bool compare(const llvm::StringRef pX) const { return key().equals(pX); } function in class:mcld::StringEntry
/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) {
/frameworks/base/core/java/com/android/internal/app/
H A DLocaleHelper.java248 public int compare(LocaleStore.LocaleInfo lhs, LocaleStore.LocaleInfo rhs) { method in class:LocaleHelper.LocaleInfoComparator
252 // They are in the same "bucket" (suggested / others), so we compare the text
253 return mCollator.compare(
H A DResolverComparator.java154 public int compare(ResolvedComponentInfo lhsp, ResolvedComponentInfo rhsp) { method in class:ResolverComparator
203 return mCollator.compare(sa.toString().trim(), sb.toString().trim());
/frameworks/base/libs/hwui/
H A DLayerCache.cpp66 int LayerCache::LayerEntry::compare(const LayerCache::LayerEntry& lhs, function in class:android::uirenderer::LayerCache::LayerEntry
H A DRenderBufferCache.cpp67 int RenderBufferCache::RenderBufferEntry::compare( function in class:android::uirenderer::RenderBufferCache::RenderBufferEntry
H A DTextDropShadowCache.cpp52 int ShadowText::compare(const ShadowText& lhs, const ShadowText& rhs) { function in class:android::uirenderer::ShadowText
/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/packages/PrintSpooler/src/com/android/printspooler/util/
H A DMediaSizeUtils.java143 public int compare(MediaSize lhs, MediaSize rhs) { method in class:MediaSizeUtils.MediaSizeComparator
/frameworks/base/tools/split-select/
H A DSplitDescription.cpp33 int SplitDescription::compare(const SplitDescription& rhs) const { function in class:split::SplitDescription
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DAndroidCameraCapabilities.java243 public int compare(int[] fps1, int[] fps2) { method in class:AndroidCameraCapabilities.FpsComparator
251 public int compare(Size size1, Size size2) { method in class:AndroidCameraCapabilities.SizeComparator
/frameworks/base/core/java/com/android/internal/inputmethod/
H A DLocaleUtils.java137 if (compare(mScore, score) == -1) { // mScore < score
158 private static int compare(@NonNull byte[] left, @NonNull byte[] right) { method in class:LocaleUtils.ScoreEntry
171 return -1 * compare(mScore, other.mScore); // Order by descending order.
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
H A DArrayMapTests.java111 private static boolean compare(Object v1, Object v2) { method in class:ArrayMapTests
131 if (!compare(expValue, gotValue)) {
142 if (!compare(expValue, gotValue)) {
235 if (!compare(entry, realEntry)) {
254 if (!compare(realValue, value)) {
261 if (!compare(realValue, value)) {
275 if (!compare(realValue, value)) {
289 if (!compare(realValue, value)) {
366 if (!compare(oldHash, oldArray)) {
429 if (!compare(mapCop
[all...]
/frameworks/base/tests/Camera2Tests/CameraToo/src/com/example/android/camera2/cameratoo/
H A DCameraTooActivity.java113 public int compare(Size lhs, Size rhs) { method in class:CameraTooActivity.CompareSizesByArea
/frameworks/base/tools/aapt2/util/
H A DStringPiece.h61 int compare(const BasicStringPiece<TChar>& rhs) const;
179 inline int BasicStringPiece<char>::compare(const BasicStringPiece<char>& rhs) const { function in class:aapt::BasicStringPiece
212 inline int BasicStringPiece<char16_t>::compare(const BasicStringPiece<char16_t>& rhs) const { function in class:aapt::BasicStringPiece
221 return compare(rhs) < 0;
226 return compare(rhs) > 0;
231 return compare(rhs) == 0;
236 return compare(rhs) != 0;

Completed in 760 milliseconds

1234