Searched refs:compare (Results 1 - 25 of 121) sorted by relevance

12345

/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/libs/hwui/
H A DLayerCache.h108 static int compare(const LayerEntry& lhs, const LayerEntry& rhs);
111 return compare(*this, other) == 0;
115 return compare(*this, other) != 0;
119 return LayerEntry::compare(lhs, rhs) < 0;
123 return LayerEntry::compare(lhs, rhs);
H A DRenderBufferCache.h93 static int compare(const RenderBufferEntry& lhs, const RenderBufferEntry& rhs);
96 return compare(*this, other) == 0;
100 return compare(*this, other) != 0;
105 return RenderBufferEntry::compare(lhs, rhs) < 0;
110 return RenderBufferEntry::compare(lhs, rhs);
H A DPatchCache.h107 static int compare(const PatchDescription& lhs, const PatchDescription& rhs);
110 return compare(*this, other) == 0;
114 return compare(*this, other) != 0;
119 return PatchDescription::compare(lhs, rhs) < 0;
124 return PatchDescription::compare(lhs, rhs);
H A DTextDropShadowCache.h64 static int compare(const ShadowText& lhs, const ShadowText& rhs);
67 return compare(*this, other) == 0;
71 return compare(*this, other) != 0;
104 return ShadowText::compare(lhs, rhs) < 0;
108 return ShadowText::compare(lhs, rhs);
H A DGradientCache.h66 static int compare(const GradientCacheEntry& lhs, const GradientCacheEntry& rhs);
69 return compare(*this, other) == 0;
73 return compare(*this, other) != 0;
95 return GradientCacheEntry::compare(lhs, rhs) < 0;
99 return GradientCacheEntry::compare(lhs, rhs);
H A DPathCache.h152 int compare(const PathDescription& rhs) const;
155 return compare(other) == 0;
159 return compare(other) != 0;
164 return lhs.compare(rhs) < 0;
168 return lhs.compare(rhs);
/frameworks/compile/mclinker/lib/Support/
H A DCommandLine.cpp102 if (0 == Arg.compare("combreloc"))
104 else if (0 == Arg.compare("nocombreloc"))
106 else if (0 == Arg.compare("defs"))
108 else if (0 == Arg.compare("execstack"))
110 else if (0 == Arg.compare("noexecstack"))
112 else if (0 == Arg.compare("initfirst"))
114 else if (0 == Arg.compare("interpose"))
116 else if (0 == Arg.compare("loadfltr"))
118 else if (0 == Arg.compare("muldefs"))
120 else if (0 == Arg.compare("nocopyrelo
[all...]
/frameworks/compile/mclinker/include/mcld/ADT/
H A DStringEntry.h57 bool compare(const llvm::StringRef& pX) function in class:mcld::StringEntry
58 { return (0 == key().compare(pX)); }
60 bool compare(const llvm::StringRef& pX) const function in class:mcld::StringEntry
61 { return (0 == key().compare(pX)); }
111 bool compare(const llvm::StringRef& pX) function in class:mcld::StringEntry
112 { return (0 == key().compare(pX)); }
114 bool compare(const llvm::StringRef& pX) const function in class:mcld::StringEntry
115 { return (0 == key().compare(pX)); }
H A DHashEntry.h67 bool compare(const key_type& pKey);
/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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DPhoneNumberUtilsTest.java184 assertTrue(PhoneNumberUtils.compare(null, null));
185 assertFalse(PhoneNumberUtils.compare(null, "123"));
186 assertFalse(PhoneNumberUtils.compare("123", null));
268 assertFalse(PhoneNumberUtils.compare("", ""));
270 assertTrue(PhoneNumberUtils.compare("911", "911"));
271 assertFalse(PhoneNumberUtils.compare("911", "18005550911"));
272 assertTrue(PhoneNumberUtils.compare("5555", "5555"));
273 assertFalse(PhoneNumberUtils.compare("5555", "180055555555"));
275 assertTrue(PhoneNumberUtils.compare("+17005554141", "+17005554141"));
276 assertTrue(PhoneNumberUtils.compare("
[all...]
/frameworks/av/media/libmedia/
H A DStringArray.h49 void sort(int (*compare)(const void*, const void*));
H A DStringArray.cpp88 void StringArray::sort(int (*compare)(const void*, const void*)) {
89 qsort(mArray, mCurrent, sizeof(char*), compare);
/frameworks/base/core/java/android/hardware/usb/
H A DUsbAccessory.java156 private static boolean compare(String s1, String s2) { method in class:UsbAccessory
165 return (compare(mManufacturer, accessory.getManufacturer()) &&
166 compare(mModel, accessory.getModel()) &&
167 compare(mDescription, accessory.getDescription()) &&
168 compare(mVersion, accessory.getVersion()) &&
169 compare(mUri, accessory.getUri()) &&
170 compare(mSerial, accessory.getSerial()));
/frameworks/base/tools/aapt/
H A DStringPool.h57 int compare(const entry& o) const;
59 inline bool operator<(const entry& o) const { return compare(o) < 0; }
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; }
/frameworks/opt/colorpicker/src/com/android/colorpicker/
H A DHsvColorComparator.java29 public int compare(Integer lhs, Integer rhs) { method in class:HsvColorComparator
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DSortingCursorWrapper.java183 final int compare;
185 compare = -1;
187 compare = 1;
189 compare = lhs.compareToIgnoreCase(rhs);
192 if (compare < 0) {
236 final int compare = Long.compare(lhs, rhs);
237 if (compare > 0) {
/frameworks/base/libs/hwui/font/
H A DFont.h53 static int compare(const FontDescription& lhs, const FontDescription& rhs);
58 return compare(*this, other) == 0;
62 return compare(*this, other) != 0;
152 return Font::FontDescription::compare(lhs, rhs) < 0;
156 return Font::FontDescription::compare(lhs, rhs);
/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/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/base/core/jni/android/graphics/
H A DTextLayoutCache.h81 static int compare(const TextLayoutCacheKey& lhs, const TextLayoutCacheKey& rhs);
86 return compare(*this, other) == 0;
90 return compare(*this, other) != 0;
111 return TextLayoutCacheKey::compare(lhs, rhs) < 0;
115 return TextLayoutCacheKey::compare(lhs, rhs);
/frameworks/base/graphics/java/android/graphics/
H A DPointF.java83 if (Float.compare(pointF.x, x) != 0) return false;
84 if (Float.compare(pointF.y, y) != 0) return false;
/frameworks/base/core/jni/
H A DTimeUtils.h57 static int compare(Time& a, Time& b);
/frameworks/volley/src/com/android/volley/toolbox/
H A DByteArrayPool.java71 public int compare(byte[] lhs, byte[] rhs) {

Completed in 590 milliseconds

12345